1044 lines
1.7 MiB
1044 lines
1.7 MiB
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";(function(e){var n;function r(e){return(r="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)}
|
||
/*!
|
||
* jQuery JavaScript Library v3.4.1
|
||
* https://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright JS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2019-05-01T21:04Z
|
||
*/
|
||
/*!
|
||
* jQuery JavaScript Library v3.4.1
|
||
* https://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright JS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2019-05-01T21:04Z
|
||
*/
|
||
!function(t,n){"object"===r(e)&&"object"===r(e.exports)?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:void 0,function(o,i){var a=[],s=o.document,u=Object.getPrototypeOf,l=a.slice,c=a.concat,d=a.push,f=a.indexOf,p={},h=p.toString,v=p.hasOwnProperty,m=v.toString,y=m.call(Object),g={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},w={type:!0,src:!0,nonce:!0,noModule:!0};function k(e,t,n){var r,o,i=(n=n||s).createElement("script");if(i.text=e,t)for(r in w)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function C(e){return null==e?e+"":"object"===r(e)||"function"==typeof e?p[h.call(e)]||"object":r(e)}var T=function e(t,n){return new e.fn.init(t,n)},j=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!b(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}T.fn=T.prototype={jquery:"3.4.1",constructor:T,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.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:d,sort:a.sort,splice:a.splice},T.extend=T.fn.extend=function(){var e,t,n,o,i,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[u]||{},u++),"object"===r(s)||b(s)||(s={}),u===l&&(s=this,u--);u<l;u++)if(null!=(e=arguments[u]))for(t in e)o=e[t],"__proto__"!==t&&s!==o&&(c&&o&&(T.isPlainObject(o)||(i=Array.isArray(o)))?(n=s[t],a=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,s[t]=T.extend(c,a,o)):void 0!==o&&(s[t]=o));return s},T.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=u(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&m.call(n)===y)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){k(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(S(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(j,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?T.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:f.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(S(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return c.apply([],a)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=a[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){p["[object "+t+"]"]=t.toLowerCase()});var _=
|
||
/*!
|
||
* Sizzle CSS Selector Engine v2.3.4
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright JS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://js.foundation/
|
||
*
|
||
* Date: 2019-04-08
|
||
*/
|
||
function(e){var t,n,r,o,i,a,s,u,l,c,d,f,p,h,v,m,y,g,b,x="sizzle"+1*new Date,w=e.document,k=0,C=0,T=ue(),j=ue(),S=ue(),_=ue(),A=function(e,t){return e===t&&(d=!0),0},E={}.hasOwnProperty,N=[],D=N.pop,q=N.push,L=N.push,O=N.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",H="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",I="\\["+H+"*("+R+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+H+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",$=new RegExp(H+"+","g"),Q=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),F=new RegExp("^"+H+"*,"+H+"*"),B=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),z=new RegExp(H+"|>"),U=new RegExp(W),X=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig"),ne=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)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},ae=xe(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(N=O.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){L={apply:N.length?function(e,t){q.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var i,s,l,c,d,h,y,g=t&&t.ownerDocument,k=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==k&&9!==k&&11!==k)return r;if(!o&&((t?t.ownerDocument||t:w)!==p&&f(t),t=t||p,v)){if(11!==k&&(d=Z.exec(e)))if(i=d[1]){if(9===k){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(g&&(l=g.getElementById(i))&&b(t,l)&&l.id===i)return r.push(l),r}else{if(d[2])return L.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!_[e+" "]&&(!m||!m.test(e))&&(1!==k||"object"!==t.nodeName.toLowerCase())){if(y=e,g=t,1===k&&z.test(e)){for((c=t.getAttribute("id"))?c=c.replace(re,oe):t.setAttribute("id",c=x),s=(h=a(e)).length;s--;)h[s]="#"+c+" "+be(h[s]);y=h.join(","),g=ee.test(e)&&ye(t.parentNode)||t}try{return L.apply(r,g.querySelectorAll(y)),r}catch(t){_(e,!0)}finally{c===x&&t.removeAttribute("id")}}}return u(e.replace(Q,"$1"),t,r,o)}function ue(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[x]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return le(function(t){return t=+t,le(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,v=!i(p),w!==p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=ce(function(e){return h.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),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=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=K.test(p.querySelectorAll))&&(ce(function(e){h.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+H+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+H+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=K.test(g=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),y.push("!=",W)}),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.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},A=t?function(e,t){if(e===t)return d=!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:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e===p?-1:t===p?1:o?-1:i?1:c?P(c,e)-P(c,t):0;if(o===i)return fe(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?fe(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),n.matchesSelector&&v&&!_[t+" "]&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){_(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var o=r.attrHandle[t.toLowerCase()],i=o&&E.call(r.attrHandle,t.toLowerCase())?o(e,t,!v):void 0;return void 0!==i?i:n.attributes||!v?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(A),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return c=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:V,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&T(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 o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,d,f,p,h,v=i!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),g=!u&&!s,b=!1;if(m){if(i){for(;v;){for(f=t;f=f[v];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&g){for(b=(p=(l=(c=(d=(f=m)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===k&&l[1])&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[v]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[k,p,b];break}}else if(g&&(b=p=(l=(c=(d=(f=t)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===k&&l[1]),!1===b)for(;(f=++p&&f&&f[v]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++b||(g&&((c=(d=f[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[k,b]),f!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=P(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:le(function(e){var t=[],n=[],r=s(e.replace(Q,"$1"));return r[x]?le(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:le(function(e){return function(t){return se(e,t).length>0}}),contains:le(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}}),lang:le(function(e){return X.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=v?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:ve(!1),disabled:ve(!0),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 Y.test(e.nodeName)},input:function(e){return J.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:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,n){return[n<0?n+t:n]}),even:me(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:me(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:me(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:me(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]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ge(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=C++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,u){var l,c,d,f=[k,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[i])&&l[0]===k&&l[1]===s)return f[2]=l[2];if(c[i]=f,f[2]=e(t,n,u))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function ke(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(s)));return a}function Ce(e,t,n,r,o,i){return r&&!r[x]&&(r=Ce(r)),o&&!o[x]&&(o=Ce(o,i)),le(function(i,a,s,u){var l,c,d,f=[],p=[],h=a.length,v=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?v:ke(v,f,e,s,u),y=n?o||(i?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r)for(l=ke(y,p),r(l,[],s,u),c=l.length;c--;)(d=l[c])&&(y[p[c]]=!(m[p[c]]=d));if(i){if(o||e){if(o){for(l=[],c=y.length;c--;)(d=y[c])&&l.push(m[c]=d);o(null,y=[],l,u)}for(c=y.length;c--;)(d=y[c])&&(l=o?P(i,d):f[c])>-1&&(i[l]=!(a[l]=d))}}else y=ke(y===a?y.splice(h,y.length):y),o?o(null,a,y,u):L.apply(a,y)})}function Te(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=xe(function(e){return e===t},s,!0),d=xe(function(e){return P(t,e)>-1},s,!0),f=[function(e,n,r){var o=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):d(e,n,r));return t=null,o}];u<i;u++)if(n=r.relative[e[u].type])f=[xe(we(f),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[x]){for(o=++u;o<i&&!r.relative[e[o].type];o++);return Ce(u>1&&we(f),u>1&&be(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(Q,"$1"),n,u<o&&Te(e.slice(u,o)),o<i&&Te(e=e.slice(o)),o<i&&be(e))}f.push(n)}return we(f)}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,a=se.tokenize=function(e,t){var n,o,i,a,s,u,l,c=j[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(o=F.exec(s))||(o&&(s=s.slice(o[0].length)||s),u.push(i=[])),n=!1,(o=B.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(Q," ")}),s=s.slice(n.length)),r.filter)!(o=V[a].exec(s))||l[a]&&!(o=l[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):j(e,u).slice(0)},s=se.compile=function(e,t){var n,o=[],i=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Te(t[n]))[x]?o.push(s):i.push(s);(s=S(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,u,c){var d,h,m,y=0,g="0",b=i&&[],x=[],w=l,C=i||o&&r.find.TAG("*",c),T=k+=null==w?1:Math.random()||.1,j=C.length;for(c&&(l=a===p||a||c);g!==j&&null!=(d=C[g]);g++){if(o&&d){for(h=0,a||d.ownerDocument===p||(f(d),s=!v);m=e[h++];)if(m(d,a||p,s)){u.push(d);break}c&&(k=T)}n&&((d=!m&&d)&&y--,i&&b.push(d))}if(y+=g,n&&g!==y){for(h=0;m=t[h++];)m(b,x,a,s);if(i){if(y>0)for(;g--;)b[g]||x[g]||(x[g]=D.call(u));x=ke(x)}L.apply(u,x),c&&!i&&x.length>0&&y+t.length>1&&se.uniqueSort(u)}return c&&(k=T,l=w),b};return n?le(i):i}(i,o))).selector=e}return s},u=se.select=function(e,t,n,o){var i,u,l,c,d,f="function"==typeof e&&e,p=!o&&a(e=f.selector||e);if(n=n||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&v&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(i=V.needsContext.test(e)?0:u.length;i--&&(l=u[i],!r.relative[c=l.type]);)if((d=r.find[c])&&(o=d(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(i,1),!(e=o.length&&be(u)))return L.apply(n,o),n;break}}return(f||s(e,p))(o,t,!v,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=x.split("").sort(A).join("")===x,n.detectDuplicates=!!d,f(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(M,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(o);T.find=_,T.expr=_.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=_.uniqueSort,T.text=_.getText,T.isXMLDoc=_.isXML,T.contains=_.contains,T.escapeSelector=_.escape;var A=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&T(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=T.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return b(t)?T.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?T.grep(e,function(e){return e===t!==n}):"string"!=typeof t?T.grep(e,function(e){return f.call(t,e)>-1!==n}):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<r;t++)if(T.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,o[t],n);return r>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&N.test(e)?T(e):e||[],!1).length}});var O,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.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 T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),q.test(r[1])&&T.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=s.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,O=T(s);var M=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&T(e);if(!N.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?T.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?f.call(T(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(D(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(e,t){T.fn[e]=function(n,r){var o=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=T.filter(r,o)),this.length>1&&(H[e]||T.uniqueSort(o),M.test(e)&&o.reverse()),this.pushStack(o)}});var I=/[^\x20\t\r\n\f]+/g;function W(e){return e}function $(e){throw e}function Q(e,t,n,r){var o;try{e&&b(o=e.promise)?o.call(e).done(t).fail(n):e&&b(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(I)||[],function(e,n){t[n]=!0}),t}(e):T.extend({},e);var t,n,r,o,i=[],a=[],s=-1,u=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},l={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){T.each(n,function(n,r){b(r)?e.unique&&l.has(r)||i.push(r):r&&r.length&&"string"!==C(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return T.each(arguments,function(e,t){for(var n;(n=T.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?T.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return T.Deferred(function(n){T.each(t,function(t,r){var o=b(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=o&&o.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(e,n,i){var a=0;function s(e,t,n,i){return function(){var u=this,l=arguments,c=function(){var o,c;if(!(e<a)){if((o=n.apply(u,l))===t.promise())throw new TypeError("Thenable self-resolution");c=o&&("object"===r(o)||"function"==typeof o)&&o.then,b(c)?i?c.call(o,s(a,t,W,i),s(a,t,$,i)):(a++,c.call(o,s(a,t,W,i),s(a,t,$,i),s(a,t,W,t.notifyWith))):(n!==W&&(u=void 0,l=[o]),(i||t.resolveWith)(u,l))}},d=i?c:function(){try{c()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,d.stackTrace),e+1>=a&&(n!==$&&(u=void 0,l=[r]),t.rejectWith(u,l))}};e?d():(T.Deferred.getStackHook&&(d.stackTrace=T.Deferred.getStackHook()),o.setTimeout(d))}}return T.Deferred(function(r){t[0][3].add(s(0,r,b(i)?i:W,r.notifyWith)),t[1][3].add(s(0,r,b(e)?e:W)),t[2][3].add(s(0,r,b(n)?n:$))}).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},a={};return T.each(t,function(e,r){var o=r[2],s=r[5];i[r[1]]=o.add,s&&o.add(function(){n=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(r[3].fire),a[r[0]]=function(){return a[r[0]+"With"](this===a?void 0:this,arguments),this},a[r[0]+"With"]=o.fireWith}),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),o=l.call(arguments),i=T.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?l.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(Q(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||b(o[n]&&o[n].then)))return i.then();for(;n--;)Q(o[n],a(n),i.reject);return i.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){o.console&&o.console.warn&&e&&F.test(e.name)&&o.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){o.setTimeout(function(){throw e})};var B=T.Deferred();function z(){s.removeEventListener("DOMContentLoaded",z),o.removeEventListener("load",z),T.ready()}T.fn.ready=function(e){return B.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||B.resolveWith(s,[T]))}}),T.ready.then=B.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?o.setTimeout(T.ready):(s.addEventListener("DOMContentLoaded",z),o.addEventListener("load",z));var U=function e(t,n,r,o,i,a,s){var u=0,l=t.length,c=null==r;if("object"===C(r))for(u in i=!0,r)e(t,n,u,r[u],!0,a,s);else if(void 0!==o&&(i=!0,b(o)||(s=!0),c&&(s?(n.call(t,o),n=null):(c=n,n=function(e,t,n){return c.call(T(e),n)})),n))for(;u<l;u++)n(t[u],r,s?o:o.call(t[u],u,n(t[u],r)));return i?t:c?n.call(t):l?n(t[0],r):a},X=/^-ms-/,V=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function J(e){return e.replace(X,"ms-").replace(V,G)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=T.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[J(t)]=n;else for(r in t)o[J(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][J(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(J):(t=J(t))in r?[t]:t.match(I)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var Z=new K,ee=new K,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ne=/[A-Z]/g;function re(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ne,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:te.test(e)?JSON.parse(e):e)}(n)}catch(e){}ee.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return ee.hasData(e)||Z.hasData(e)},data:function(e,t,n){return ee.access(e,t,n)},removeData:function(e,t){ee.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,o,i,a=this[0],s=a&&a.attributes;if(void 0===e){if(this.length&&(i=ee.get(a),1===a.nodeType&&!Z.get(a,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(o=s[n].name).indexOf("data-")&&(o=J(o.slice(5)),re(a,o,i[o]));Z.set(a,"hasDataAttrs",!0)}return i}return"object"===r(e)?this.each(function(){ee.set(this,e)}):U(this,function(t){var n;if(a&&void 0===t)return void 0!==(n=ee.get(a,e))?n:void 0!==(n=re(a,e))?n:void 0;this.each(function(){ee.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ee.remove(this,e)})}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,o=n.shift(),i=T._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){T.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:T.Callbacks("once memory").add(function(){Z.remove(e,[t+"queue",n])})})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each(function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=T.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+oe+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],se=s.documentElement,ue=function(e){return T.contains(e.ownerDocument,e)},le={composed:!0};se.getRootNode&&(ue=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ue(e)&&"none"===T.css(e,"display")},de=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=n.apply(e,r||[]),t)e.style[i]=a[i];return o};function fe(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},u=s(),l=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==l&&+u)&&ie.exec(T.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)T.style(e,t,c+l),(1-i)*(1-(i=s()/u||.5))<=0&&(a=0),c/=i;c*=2,T.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=o)),o}var pe={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,o=pe[r];return o||(t=n.body.appendChild(n.createElement(r)),o=T.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),pe[r]=o,o)}function ve(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=Z.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ce(r)&&(o[i]=he(r))):"none"!==n&&(o[i]="none",Z.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}T.fn.extend({show:function(){return ve(this,!0)},hide:function(){return ve(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ce(this)?T(this).show():T(this).hide()})}});var me=/^(?:checkbox|radio)$/i,ye=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i,be={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 xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?T.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td;var ke=/<|&#?\w+;/;function Ce(e,t,n,r,o){for(var i,a,s,u,l,c,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((i=e[p])||0===i)if("object"===C(i))T.merge(f,i.nodeType?[i]:i);else if(ke.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(ye.exec(i)||["",""])[1].toLowerCase(),u=be[s]||be._default,a.innerHTML=u[1]+T.htmlPrefilter(i)+u[2],c=u[0];c--;)a=a.lastChild;T.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(i));for(d.textContent="",p=0;i=f[p++];)if(r&&T.inArray(i,r)>-1)o&&o.push(i);else if(l=ue(i),a=xe(d.appendChild(i),"script"),l&&we(a),n)for(c=0;i=a[c++];)ge.test(i.type||"")&&n.push(i);return d}!function(){var e=s.createDocumentFragment().appendChild(s.createElement("div")),t=s.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Te=/^key/,je=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function _e(){return!0}function Ae(){return!1}function Ee(e,t){return e===function(){try{return s.activeElement}catch(e){}}()==("focus"===t)}function Ne(e,t,n,o,i,a){var s,u;if("object"===r(t)){for(u in"string"!=typeof n&&(o=o||n,n=void 0),t)Ne(e,u,n,o,t[u],a);return e}if(null==o&&null==i?(i=n,o=n=void 0):null==i&&("string"==typeof n?(i=o,o=void 0):(i=o,o=n,n=void 0)),!1===i)i=Ae;else if(!i)return e;return 1===a&&(s=i,(i=function(e){return T().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=T.guid++)),e.each(function(){T.event.add(this,t,i,o,n)})}function De(e,t,n){n?(Z.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=l.call(arguments),Z.set(this,t,i),r=n(this,t),this[t](),i!==(o=Z.get(this,t))||r?Z.set(this,t,!1):o={},i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else i.length&&(Z.set(this,t,{value:T.event.trigger(T.extend(i[0],T.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&T.event.add(e,t,_e)}T.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,l,c,d,f,p,h,v,m=Z.get(e);if(m)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&T.find.matchesSelector(se,o),n.guid||(n.guid=T.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(I)||[""]).length;l--;)p=v=(s=Se.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},c=T.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},i),(f=u[p])||((f=u[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),T.event.global[p]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,l,c,d,f,p,h,v,m=Z.hasData(e)&&Z.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(I)||[""]).length;l--;)if(p=v=(s=Se.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=u[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;i--;)c=f[i],!o&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(i,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||T.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)T.event.remove(e,p+t[l],n,r,!0);T.isEmptyObject(u)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=T.event.fix(e),u=new Array(arguments.length),l=(Z.get(this,"events")||{})[s.type]||[],c=T.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=T.event.handlers.call(this,s,l),t=0;(o=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((T.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,o,i,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],a={},n=0;n<u;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?T(o,this).index(l)>-1:T.find(o,this,null,[l]).length),a[o]&&i.push(r);i.length&&s.push({elem:l,handlers:i})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&D(t,"input")&&De(t,"click",_e),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&D(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&D(t,"input")&&Z.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?_e:Ae,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=_e,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_e,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_e,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&je.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(e,t){T.event.special[e]={setup:function(){return De(this,e,Ee),!1},trigger:function(){return De(this,e),!0},delegateType:t}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),T.fn.extend({on:function(e,t,n,r){return Ne(this,e,t,n,r)},one:function(e,t,n,r){return Ne(this,e,t,n,r,1)},off:function(e,t,n){var o,i;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,T(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"===r(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=Ae),this.each(function(){T.event.remove(this,e,n,t)})}});var qe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Me(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,o,i,a,s,u,l;if(1===t.nodeType){if(Z.hasData(e)&&(i=Z.access(e),a=Z.set(t,i),l=i.events))for(o in delete a.handle,a.events={},l)for(n=0,r=l[o].length;n<r;n++)T.event.add(t,o,l[o][n]);ee.hasData(e)&&(s=ee.access(e),u=T.extend({},s),ee.set(t,u))}}function We(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function $e(e,t,n,r){t=c.apply([],t);var o,i,a,s,u,l,d=0,f=e.length,p=f-1,h=t[0],v=b(h);if(v||f>1&&"string"==typeof h&&!g.checkClone&&Oe.test(h))return e.each(function(o){var i=e.eq(o);v&&(t[0]=h.call(this,o,i.html())),$e(i,t,n,r)});if(f&&(i=(o=Ce(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=T.map(xe(o,"script"),He)).length;d<f;d++)u=o,d!==p&&(u=T.clone(u,!0,!0),s&&T.merge(a,xe(u,"script"))),n.call(e[d],u,d);if(s)for(l=a[a.length-1].ownerDocument,T.map(a,Re),d=0;d<s;d++)u=a[d],ge.test(u.type||"")&&!Z.access(u,"globalEval")&&T.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?T._evalUrl&&!u.noModule&&T._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")}):k(u.textContent.replace(Pe,""),u,l))}return e}function Qe(e,t,n){for(var r,o=t?T.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||T.cleanData(xe(r)),r.parentNode&&(n&&ue(r)&&we(xe(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e.replace(qe,"<$1></$2>")},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),u=ue(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=xe(s),r=0,o=(i=xe(e)).length;r<o;r++)We(i[r],a[r]);if(t)if(n)for(i=i||xe(e),a=a||xe(s),r=0,o=i.length;r<o;r++)Ie(i[r],a[r]);else Ie(e,s);return(a=xe(s,"script")).length>0&&we(a,!u&&xe(e,"script")),s},cleanData:function(e){for(var t,n,r,o=T.event.special,i=0;void 0!==(n=e[i]);i++)if(Y(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)o[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[ee.expando]&&(n[ee.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Qe(this,e,!0)},remove:function(e){return Qe(this,e)},text:function(e){return U(this,function(e){return void 0===e?T.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 $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(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&&(T.cleanData(xe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return U(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&&!Le.test(e)&&!be[(ye.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(xe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return $e(this,arguments,function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(xe(this)),n&&n.replaceChild(t,this))},e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){T.fn[e]=function(e){for(var n,r=[],o=T(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),T(o[a])[t](n),d.apply(r,n.get());return this.pushStack(r)}});var Fe=new RegExp("^("+oe+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=o),t.getComputedStyle(e)},ze=new RegExp(ae.join("|"),"i");function Ue(e,t,n){var r,o,i,a,s=e.style;return(n=n||Be(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ue(e)||(a=T.style(e,t)),!g.pixelBoxStyles()&&Fe.test(a)&&ze.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function Xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",se.appendChild(l).appendChild(c);var e=o.getComputedStyle(c);n="1%"!==e.top,u=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),r=36===t(e.width),c.style.position="absolute",i=12===t(c.offsetWidth/3),se.removeChild(l),c=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,a,u,l=s.createElement("div"),c=s.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),u},scrollboxSize:function(){return e(),i}}))}();var Ve=["Webkit","Moz","ms"],Ge=s.createElement("div").style,Je={};function Ye(e){var t=T.cssProps[e]||Je[e];return t||(e in Ge?e:Je[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in Ge)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,o,i){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=T.css(e,n+ae[a],!0,o)),r?("content"===n&&(u-=T.css(e,"padding"+ae[a],!0,o)),"margin"!==n&&(u-=T.css(e,"border"+ae[a]+"Width",!0,o))):(u+=T.css(e,"padding"+ae[a],!0,o),"padding"!==n?u+=T.css(e,"border"+ae[a]+"Width",!0,o):s+=T.css(e,"border"+ae[a]+"Width",!0,o));return!r&&i>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-u-s-.5))||0),u}function ot(e,t,n){var r=Be(e),o=(!g.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),i=o,a=Ue(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&o||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===T.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+rt(e,t,n||(o?"border":"content"),i,r,a)+"px"}function it(e,t,n,r,o){return new it.prototype.init(e,t,n,r,o)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ue(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,s,u=J(t),l=Ze.test(t),c=e.style;if(l||(t=Ye(u)),s=T.cssHooks[t]||T.cssHooks[u],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,o))?i:c[t];"string"===(a=r(n))&&(i=ie.exec(n))&&i[1]&&(n=fe(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=i&&i[3]||(T.cssNumber[u]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,o))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var o,i,a,s=J(t);return Ze.test(t)||(t=Ye(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ue(e,t,r)),"normal"===o&&t in tt&&(o=tt[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),T.each(["height","width"],function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,r):de(e,et,function(){return ot(e,t,r)})},set:function(e,n,r){var o,i=Be(e),a=!g.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===T.css(e,"boxSizing",!1,i),u=r?rt(e,t,r,s,i):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-rt(e,t,"border",!1,i)-.5)),u&&(o=ie.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),nt(0,n,u)}}}),T.cssHooks.marginLeft=Xe(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ue(e,"marginLeft"))||e.getBoundingClientRect().left-de(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ae[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(T.cssHooks[e+t].set=nt)}),T.fn.extend({css:function(e,t){return U(this,function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Be(e),o=t.length;a<o;a++)i[t[a]]=T.css(e,t[a],!1,r);return i}return void 0!==n?T.style(e,t,n):T.css(e,t)},e,t,arguments.length>1)}}),T.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(T.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=T.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):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.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=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=it.prototype.init,T.fx.step={};var at,st,ut=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ct(){st&&(!1===s.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(ct):o.setTimeout(ct,T.fx.interval),T.fx.tick())}function dt(){return o.setTimeout(function(){at=void 0}),at=Date.now()}function ft(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ae[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function pt(e,t,n){for(var r,o=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function ht(e,t,n){var r,o,i=0,a=ht.prefilters.length,s=T.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var t=at||dt(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),i=0,a=l.tweens.length;i<a;i++)l.tweens[i].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=J(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=T.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(c,l.opts.specialEasing);i<a;i++)if(r=ht.prefilters[i].call(l,e,c,l.opts))return b(r.stop)&&(T._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return T.map(c,pt,l),b(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),T.fx.timer(T.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}T.Animation=T.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return fe(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){b(e)?(t=e,e=["*"]):e=e.match(I);for(var n,r=0,o=e.length;r<o;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,u,l,c,d="width"in t||"height"in t,f=this,p={},h=e.style,v=e.nodeType&&ce(e),m=Z.get(e,"fxshow");for(r in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[r],ut.test(o)){if(delete t[r],i=i||"toggle"===o,o===(v?"hide":"show")){if("show"!==o||!m||void 0===m[r])continue;v=!0}p[r]=m&&m[r]||T.style(e,r)}if((u=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=m&&m.display)&&(l=Z.get(e,"display")),"none"===(c=T.css(e,"display"))&&(l?c=l:(ve([e],!0),l=e.style.display||l,c=T.css(e,"display"),ve([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===T.css(e,"float")&&(u||(f.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,p)u||(m?"hidden"in m&&(v=m.hidden):m=Z.access(e,"fxshow",{display:l}),i&&(m.hidden=!v),v&&ve([e],!0),f.done(function(){for(r in v||ve([e]),Z.remove(e,"fxshow"),p)T.style(e,r,p[r])})),u=pt(v?m[r]:0,r,f),r in m||(m[r]=u.start,v&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),T.speed=function(e,t,n){var o=e&&"object"===r(e)?T.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return T.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in T.fx.speeds?o.duration=T.fx.speeds[o.duration]:o.duration=T.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){b(o.old)&&o.old.call(this),o.queue&&T.dequeue(this,o.queue)},o},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=T.isEmptyObject(e),i=T.speed(t,n,r),a=function(){var t=ht(this,T.extend({},e),i);(o||Z.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.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,o=null!=e&&e+"queueHooks",i=T.timers,a=Z.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&<.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||T.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Z.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=T.timers,a=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),T.each(["toggle","show","hide"],function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,r,o)}}),T.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),at=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){st||(st=!0,ct())},T.fx.stop=function(){st=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var r=o.setTimeout(t,e);n.stop=function(){o.clearTimeout(r)}})},function(){var e=s.createElement("input"),t=s.createElement("select").appendChild(s.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=s.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var vt,mt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return U(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?T.prop(e,t,n):(1===i&&T.isXMLDoc(e)||(o=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(I);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var n=mt[t]||T.find.attr;mt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=mt[a],mt[a]=o,o=null!=n(e,t,r)?a:null,mt[a]=i),o}});var yt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function bt(e){return(e.match(I)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(I)||[]}T.fn.extend({prop:function(e,t){return U(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&T.isXMLDoc(e)||(t=T.propFix[t]||t,o=T.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.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)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(b(e))return this.each(function(t){T(this).addClass(e.call(this,t,xt(this)))});if((t=wt(e)).length)for(;n=this[u++];)if(o=xt(n),r=1===n.nodeType&&" "+bt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,u=0;if(b(e))return this.each(function(t){T(this).removeClass(e.call(this,t,xt(this)))});if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[u++];)if(o=xt(n),r=1===n.nodeType&&" "+bt(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=r(e),o="string"===n||Array.isArray(e);return"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):b(e)?this.each(function(n){T(this).toggleClass(e.call(this,n,xt(this),t),t)}):this.each(function(){var t,r,i,a;if(o)for(r=0,i=T(this),a=wt(e);t=a[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=xt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(xt(n))+" ").indexOf(t)>-1)return!0;return!1}});var kt=/\r/g;T.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=b(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,T(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,function(e){return null==e?"":e+""})),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(kt,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:bt(T.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?i+1:o.length;for(r=i<0?u:a?i:0;r<u;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=T.makeArray(t),a=o.length;a--;)((r=o[a]).selected=T.inArray(T.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},g.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in o;var Ct=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,n,i){var a,u,l,c,d,f,p,h,m=[n||s],y=v.call(e,"type")?e.type:e,g=v.call(e,"namespace")?e.namespace.split("."):[];if(u=h=l=n=n||s,3!==n.nodeType&&8!==n.nodeType&&!Ct.test(y+T.event.triggered)&&(y.indexOf(".")>-1&&(y=(g=y.split(".")).shift(),g.sort()),d=y.indexOf(":")<0&&"on"+y,(e=e[T.expando]?e:new T.Event(y,"object"===r(e)&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),p=T.event.special[y]||{},i||!p.trigger||!1!==p.trigger.apply(n,t))){if(!i&&!p.noBubble&&!x(n)){for(c=p.delegateType||y,Ct.test(c+y)||(u=u.parentNode);u;u=u.parentNode)m.push(u),l=u;l===(n.ownerDocument||s)&&m.push(l.defaultView||l.parentWindow||o)}for(a=0;(u=m[a++])&&!e.isPropagationStopped();)h=u,e.type=a>1?c:p.bindType||y,(f=(Z.get(u,"events")||{})[e.type]&&Z.get(u,"handle"))&&f.apply(u,t),(f=d&&u[d])&&f.apply&&Y(u)&&(e.result=f.apply(u,t),!1===e.result&&e.preventDefault());return e.type=y,i||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),t)||!Y(n)||d&&b(n[y])&&!x(n)&&((l=n[d])&&(n[d]=null),T.event.triggered=y,e.isPropagationStopped()&&h.addEventListener(y,Tt),n[y](),e.isPropagationStopped()&&h.removeEventListener(y,Tt),T.event.triggered=void 0,l&&(n[d]=l)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),g.focusin||T.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){T.event.simulate(t,e.target,T.event.fix(e))};T.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=Z.access(r,t);o||r.addEventListener(e,n,!0),Z.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=Z.access(r,t)-1;o?Z.access(r,t,o):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}});var jt=o.location,St=Date.now(),_t=/\?/;T.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new o.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+e),t};var At=/\[\]$/,Et=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function qt(e,t,n,o){var i;if(Array.isArray(t))T.each(t,function(t,i){n||At.test(e)?o(e,i):qt(e+"["+("object"===r(i)&&null!=i?t:"")+"]",i,n,o)});else if(n||"object"!==C(t))o(e,t);else for(i in t)qt(e+"["+i+"]",t[i],n,o)}T.param=function(e,t){var n,r=[],o=function(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){o(this.name,this.value)});else for(n in e)qt(n,e[n],t,o);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Dt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!me.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Lt=/%20/g,Ot=/#.*$/,Pt=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,Rt=/^\/\//,It={},Wt={},$t="*/".concat("*"),Qt=s.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(I)||[];if(b(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Bt(e,t,n,r){var o={},i=e===Wt;function a(s){var u;return o[s]=!0,T.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||i||o[l]?i?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!o["*"]&&a("*")}function zt(e,t){var n,r,o=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Qt.href=jt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(jt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,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":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,T.ajaxSettings),t):zt(T.ajaxSettings,e)},ajaxPrefilter:Ft(It),ajaxTransport:Ft(Wt),ajax:function(e,t){"object"===r(e)&&(t=e,e=void 0),t=t||{};var n,i,a,u,l,c,d,f,p,h,v=T.ajaxSetup({},t),m=v.context||v,y=v.context&&(m.nodeType||m.jquery)?T(m):T.event,g=T.Deferred(),b=T.Callbacks("once memory"),x=v.statusCode||{},w={},k={},C="canceled",j={readyState:0,getResponseHeader:function(e){var t;if(d){if(!u)for(u={};t=Mt.exec(a);)u[t[1].toLowerCase()+" "]=(u[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=u[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return d?a:null},setRequestHeader:function(e,t){return null==d&&(e=k[e.toLowerCase()]=k[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==d&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)j.always(e[j.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return n&&n.abort(t),S(0,t),this}};if(g.promise(j),v.url=((e||v.url||jt.href)+"").replace(Rt,jt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(I)||[""],null==v.crossDomain){c=s.createElement("a");try{c.href=v.url,c.href=c.href,v.crossDomain=Qt.protocol+"//"+Qt.host!=c.protocol+"//"+c.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=T.param(v.data,v.traditional)),Bt(It,v,t,j),d)return j;for(p in(f=T.event&&v.global)&&0==T.active++&&T.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ht.test(v.type),i=v.url.replace(Ot,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Lt,"+")):(h=v.url.slice(i.length),v.data&&(v.processData||"string"==typeof v.data)&&(i+=(_t.test(i)?"&":"?")+v.data,delete v.data),!1===v.cache&&(i=i.replace(Pt,"$1"),h=(_t.test(i)?"&":"?")+"_="+St+++h),v.url=i+h),v.ifModified&&(T.lastModified[i]&&j.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&j.setRequestHeader("If-None-Match",T.etag[i])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&j.setRequestHeader("Content-Type",v.contentType),j.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+$t+"; q=0.01":""):v.accepts["*"]),v.headers)j.setRequestHeader(p,v.headers[p]);if(v.beforeSend&&(!1===v.beforeSend.call(m,j,v)||d))return j.abort();if(C="abort",b.add(v.complete),j.done(v.success),j.fail(v.error),n=Bt(Wt,v,t,j)){if(j.readyState=1,f&&y.trigger("ajaxSend",[j,v]),d)return j;v.async&&v.timeout>0&&(l=o.setTimeout(function(){j.abort("timeout")},v.timeout));try{d=!1,n.send(w,S)}catch(e){if(d)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,r,s){var u,c,p,h,w,k=t;d||(d=!0,l&&o.clearTimeout(l),n=void 0,a=s||"",j.readyState=e>0?4:0,u=e>=200&&e<300||304===e,r&&(h=function(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}(v,j,r)),h=function(e,t,n,r){var o,i,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=l[u+" "+i]||l["* "+i]))for(o in l)if((s=o.split(" "))[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[o]:!0!==l[o]&&(i=s[0],c.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 "+i}}}return{state:"success",data:t}}(v,h,j,u),u?(v.ifModified&&((w=j.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=w),(w=j.getResponseHeader("etag"))&&(T.etag[i]=w)),204===e||"HEAD"===v.type?k="nocontent":304===e?k="notmodified":(k=h.state,c=h.data,u=!(p=h.error))):(p=k,!e&&k||(k="error",e<0&&(e=0))),j.status=e,j.statusText=(t||k)+"",u?g.resolveWith(m,[c,k,j]):g.rejectWith(m,[j,k,p]),j.statusCode(x),x=void 0,f&&y.trigger(u?"ajaxSuccess":"ajaxError",[j,v,u?c:p]),b.fireWith(m,[j,k]),f&&(y.trigger("ajaxComplete",[j,v]),--T.active||T.event.trigger("ajaxStop")))}return j},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,t){T[t]=function(e,n,r,o){return b(n)&&(o=o||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:o,data:n,success:r},T.isPlainObject(e)&&e))}}),T._evalUrl=function(e,t){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=T(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 b(e)?this.each(function(t){T(this).wrapInner(e.call(this,t))}):this.each(function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b(e);return this.each(function(n){T(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Xt=T.ajaxSettings.xhr();g.cors=!!Xt&&"withCredentials"in Xt,g.ajax=Xt=!!Xt,T.ajaxTransport(function(e){var t,n;if(g.cors||Xt&&!e.crossDomain)return{send:function(r,i){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||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Ut[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(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&o.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),T.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),T.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 T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}});var Vt=[],Gt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||T.expando+"_"+St++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,a,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+r):!1!==e.jsonp&&(e.url+=(_t.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||T.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i=o[r],o[r]=function(){a=arguments},n.always(function(){void 0===i?T(o).removeProp(r):o[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(r)),a&&b(i)&&i(a[0]),a=i=void 0}),"script"}),g.createHTMLDocument=function(){var e=s.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=s.implementation.createHTMLDocument("")).createElement("base")).href=s.location.href,t.head.appendChild(r)):t=s),o=q.exec(e),i=!n&&[],o?[t.createElement(o[1])]:(o=Ce([e],t,i),i&&i.length&&T(i).remove(),T.merge([],o.childNodes)));var r,o,i},T.fn.load=function(e,t,n){var o,i,a,s=this,u=e.indexOf(" ");return u>-1&&(o=bt(e.slice(u)),e=e.slice(0,u)),b(t)?(n=t,t=void 0):t&&"object"===r(t)&&(i="POST"),s.length>0&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){a=arguments,s.html(o?T("<div>").append(T.parseHTML(e)).find(o):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.pseudos.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,l=T.css(e,"position"),c=T(e),d={};"static"===l&&(e.style.position="relative"),s=c.offset(),i=T.css(e,"top"),u=T.css(e,"left"),("absolute"===l||"fixed"===l)&&(i+u).indexOf("auto")>-1?(a=(r=c.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),b(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):c.css(d)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(r,"marginTop",!0),left:t.left-o.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||se})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return U(this,function(e,r,o){var i;if(x(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),T.each(["top","left"],function(e,t){T.cssHooks[t]=Xe(g.pixelPosition,function(e,n){if(n)return n=Ue(e,t),Fe.test(n)?T(e).position()[t]+"px":n})}),T.each({Height:"height",Width:"width"},function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){T.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return U(this,function(t,n,o){var i;return x(t)?0===r.indexOf("outer")?t["inner"+e]: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===o?T.css(t,n,s):T.style(t,n,o,s)},t,a?o:void 0,a)}})}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),T.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.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)}}),T.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return r=l.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(l.call(arguments)))}).guid=e.guid=e.guid||T.guid++,o},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=D,T.isFunction=b,T.isWindow=x,T.camelCase=J,T.type=C,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(n=function(){return T}.apply(t,[]))||(e.exports=n);var Jt=o.jQuery,Yt=o.$;return T.noConflict=function(e){return o.$===T&&(o.$=Yt),e&&o.jQuery===T&&(o.jQuery=Jt),T},i||(o.jQuery=o.$=T),T})}).call(this,n(3)(e))},function(e,t){e.exports=prestashop},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.psShowHide=
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/
|
||
function(){(0,r.default)(".ps-shown-by-js").show(),(0,r.default)(".ps-hidden-by-js").hide()},t.psGetRequestParameter=o,t.refreshCheckoutPage=function(){if(null!==o("updatedTransaction"))window.location.reload();else{var e=o();e.updatedTransaction=1;var t=[];for(var n in e){var r=e[n];t.push(n+"="+r)}window.location.href=window.location.pathname+"?"+t.join("&")}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function o(e){var t={};return window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,function(e,n,r){t[n]=void 0!==r?r:""}),void 0!==e?t[e]?t[e]:null:t}},function(e,t,n){"use strict";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){(function(t){e.exports=t}).call(this,{})},function(e,t,n){e.exports=n(6)},function(e,t,n){"use strict";var r=u(n(0));n(7),n(8),n(9),n(10),n(11),n(12),n(17),n(18),n(19),n(20);var o=u(n(1)),i=u(n(21)),a=n(2),s=u(n(22));function u(e){return e&&e.__esModule?e:{default:e}}for(var l in window.$=r.default,window.jQuery=r.default,i.default.prototype)o.default[l]=i.default.prototype[l];(0,r.default)(document).ready(function(){(0,a.psShowHide)(),(0,s.default)('input[type="email"]')})},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}}
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/(n(0));void 0===r.default.migrateMute&&(r.default.migrateMute=!window.prestashop.debug)},function(e,t,n){"use strict";var r,o;function i(e){return(i="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)}
|
||
/*!
|
||
* jQuery Migrate - v3.1.0 - 2019-06-08
|
||
* Copyright OpenJS Foundation and other contributors
|
||
*/r=[n(0)],void 0===(o=function(e){return function(e,t){function n(t){return function(e,t){for(var n=/^(\d+)\.(\d+)\.(\d+)/,r=n.exec(e)||[],o=n.exec(t)||[],i=1;i<=3;i++){if(+r[i]>+o[i])return 1;if(+r[i]<+o[i])return-1}return 0}(e.fn.jquery,t)>=0}e.migrateVersion="3.1.0",t.console&&t.console.log&&(e&&n("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var r={};function o(n){var o=t.console;r[n]||(r[n]=!0,e.migrateWarnings.push(n),o&&o.warn&&!e.migrateMute&&(o.warn("JQMIGRATE: "+n),e.migrateTrace&&o.trace&&o.trace()))}function a(e,t,n,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return o(r),n},set:function(e){o(r),n=e}})}function s(e,t,n,r){e[t]=function(){return o(r),n.apply(this,arguments)}}e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){r={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&o("jQuery is not compatible with Quirks Mode");var u,l=e.fn.init,c=e.isNumeric,d=e.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,p=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(u in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(o("jQuery( '#' ) is not a valid selector"),t[0]=[]),l.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var n=Array.prototype.slice.call(arguments);if("string"==typeof e&&f.test(e))try{t.document.querySelector(e)}catch(r){e=e.replace(p,function(e,t,n,r){return"["+t+n+'"'+r+'"]'});try{t.document.querySelector(e),o("Attribute selector with '#' must be quoted: "+n[0]),n[0]=e}catch(e){o("Attribute selector with '#' was not fixed: "+n[0])}}return d.apply(this,n)},d)Object.prototype.hasOwnProperty.call(d,u)&&(e.find[u]=d[u]);e.fn.size=function(){return o("jQuery.fn.size() is deprecated and removed; use the .length property"),this.length},e.parseJSON=function(){return o("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},e.isNumeric=function(t){var n=c(t),r=function(t){var n=t&&t.toString();return!e.isArray(t)&&n-parseFloat(n)+1>=0}(t);return n!==r&&o("jQuery.isNumeric() should not be called on constructed objects"),r},n("3.3.0")&&s(e,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated"),s(e,"holdReady",e.holdReady,"jQuery.holdReady is deprecated"),s(e,"unique",e.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),a(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),a(e.expr,":",e.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),n("3.2.0")&&s(e,"nodeName",e.nodeName,"jQuery.nodeName is deprecated");var h=e.ajax;e.ajax=function(){var e=h.apply(this,arguments);return e.promise&&(s(e,"success",e.done,"jQXHR.success is deprecated and removed"),s(e,"error",e.fail,"jQXHR.error is deprecated and removed"),s(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e};var v=e.fn.removeAttr,m=e.fn.toggleClass,y=/\S+/g;e.fn.removeAttr=function(t){var n=this;return e.each(t.match(y),function(t,r){e.expr.match.bool.test(r)&&(o("jQuery.fn.removeAttr no longer sets boolean properties: "+r),n.prop(r,!1))}),v.apply(this,arguments)},e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?m.apply(this,arguments):(o("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":e.data(this,"__className__")||"")}))};var g=!1;e.swap&&e.each(["height","width","reliableMarginRight"],function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return g=!0,e=r.apply(this,arguments),g=!1,e})}),e.swap=function(e,t,n,r){var i,a,s={};for(a in g||o("jQuery.swap() is undocumented and deprecated"),t)s[a]=e.style[a],e.style[a]=t[a];for(a in i=n.apply(e,r||[]),t)e.style[a]=s[a];return i};var b=e.data;e.data=function(t,n,r){var a;if(n&&"object"===i(n)&&2===arguments.length){a=e.hasData(t)&&b.call(this,t);var s={};for(var u in n)u!==e.camelCase(u)?(o("jQuery.data() always sets/gets camelCased names: "+u),a[u]=n[u]):s[u]=n[u];return b.call(this,t,s),n}return n&&"string"==typeof n&&n!==e.camelCase(n)&&(a=e.hasData(t)&&b.call(this,t))&&n in a?(o("jQuery.data() always sets/gets camelCased names: "+n),arguments.length>2&&(a[n]=r),a[n]):b.apply(this,arguments)};var x=e.Tween.prototype.run,w=function(e){return e};e.Tween.prototype.run=function(){e.easing[this.easing].length>1&&(o("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),e.easing[this.easing]=w),x.apply(this,arguments)};var k=e.fx.interval||13;t.requestAnimationFrame&&Object.defineProperty(e.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return t.document.hidden||o("jQuery.fx.interval is deprecated"),k},set:function(e){o("jQuery.fx.interval is deprecated"),k=e}});var C=e.fn.load,T=e.event.add,j=e.event.fix;e.event.props=[],e.event.fixHooks={},a(e.event.props,"concat",e.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),e.event.fix=function(t){var n,r=t.type,i=this.fixHooks[r],a=e.event.props;if(a.length)for(o("jQuery.event.props are deprecated and removed: "+a.join());a.length;)e.event.addProp(a.pop());if(i&&!i._migrated_&&(i._migrated_=!0,o("jQuery.event.fixHooks are deprecated and removed: "+r),(a=i.props)&&a.length))for(;a.length;)e.event.addProp(a.pop());return n=j.call(this,t),i&&i.filter?i.filter(n,t):n},e.event.add=function(e,n){return e===t&&"load"===n&&"complete"===t.document.readyState&&o("jQuery(window).on('load'...) called after load event occurred"),T.apply(this,arguments)},e.each(["load","unload","error"],function(t,n){e.fn[n]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===n&&"string"==typeof e[0]?C.apply(this,e):(o("jQuery.fn."+n+"() is deprecated"),e.splice(0,0,n),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),e.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){e.fn[n]=function(e,t){return o("jQuery.fn."+n+"() event shorthand is deprecated"),arguments.length>0?this.on(n,null,e,t):this.trigger(n)}}),e(function(){e(t.document).triggerHandler("ready")}),e.event.special.ready={setup:function(){this===t.document&&o("'ready' event is deprecated")}},e.fn.extend({bind:function(e,t,n){return o("jQuery.fn.bind() is deprecated"),this.on(e,null,t,n)},unbind:function(e,t){return o("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,n,r){return o("jQuery.fn.delegate() is deprecated"),this.on(t,e,n,r)},undelegate:function(e,t,n){return o("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return o("jQuery.fn.hover() is deprecated"),this.on("mouseenter",e).on("mouseleave",t||e)}});var S=e.fn.offset;e.fn.offset=function(){var n,r=this[0],i={top:0,left:0};return r&&r.nodeType?(n=(r.ownerDocument||t.document).documentElement,e.contains(n,r)?S.apply(this,arguments):(o("jQuery.fn.offset() requires an element connected to a document"),i)):(o("jQuery.fn.offset() requires a valid DOM element"),i)};var _=e.param;e.param=function(t,n){var r=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===n&&r&&(o("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),n=r),_.call(this,t,n)};var A=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return o("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),A.apply(this,arguments)};var E=e.Deferred,N=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]];return e.Deferred=function(t){var n=E(),r=n.promise();return n.pipe=r.pipe=function(){var t=arguments;return o("deferred.pipe() is deprecated"),e.Deferred(function(o){e.each(N,function(i,a){var s=e.isFunction(t[i])&&t[i];n[a[1]](function(){var t=s&&s.apply(this,arguments);t&&e.isFunction(t.promise)?t.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[a[0]+"With"](this===r?o.promise():this,s?[t]:arguments)})}),t=null}).promise()},t&&t.call(n,n),n},e.Deferred.exceptionHook=E.exceptionHook,e}(e,window)}.apply(t,r))||(e.exports=o)},function(e,t,n){"use strict";var r,o;r=[n(0)],void 0===(o=function(e){return function(e){function t(e){void 0===e&&(e=window.navigator.userAgent),e=e.toLowerCase();var t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[],r={},o={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",versionNumber:t[4]||t[2]||"0",platform:n[0]||""};if(o.browser&&(r[o.browser]=!0,r.version=o.version,r.versionNumber=parseInt(o.versionNumber,10)),o.platform&&(r[o.platform]=!0),(r.android||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"])&&(r.mobile=!0),(r.cros||r.mac||r.linux||r.win)&&(r.desktop=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),(r.rv||r.iemobile)&&(o.browser="msie",r.msie=!0),r.edge&&(delete r.edge,o.browser="msedge",r.msedge=!0),r.safari&&r.blackberry&&(o.browser="blackberry",r.blackberry=!0),r.safari&&r.playbook&&(o.browser="playbook",r.playbook=!0),r.bb){var i="blackberry";o.browser=i,r[i]=!0}return r.opr&&(o.browser="opera",r.opera=!0),r.safari&&r.android&&(o.browser="android",r.android=!0),r.safari&&r.kindle&&(o.browser="kindle",r.kindle=!0),r.safari&&r.silk&&(o.browser="silk",r.silk=!0),r.name=o.browser,r.platform=o.platform,r}return window.jQBrowser=t(window.navigator.userAgent),window.jQBrowser.uaMatch=t,e&&(e.browser=window.jQBrowser),window.jQBrowser}(e)}.apply(t,r))||(e.exports=o)},function(e,t,n){"use strict";var r,o,i;o=[n(0)],void 0===(i="function"==typeof(r=function(e){var t=e.fn.init;e.fn.init=function(e){var n=Array.prototype.slice.call(arguments);"string"==typeof e&&"#"===e&&(console.warn("jQuery('#') is not a valid selector"),n[0]=[]);var r=t.apply(this,arguments);return r.selector="string"==typeof e?e:"",r},e.fn.init.prototype=e.fn,void 0!==e.fn.live&&e.isFunction(e.fn.live)||e.fn.extend({live:function(t,n,r){return this.selector&&e(document).on(t,this.selector,n,r),console.warn("jQuery.live() has been removed since jquery v1.9, please use jQuery.on() instead."),this}})})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";var r=a(n(0)),o=a(n(1)),i=n(2);function a(e){return e&&e.__esModule?e:{default:e}}
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/(0,r.default)(document).ready(function(){o.default.on("updateCart",function(e){o.default.cart=e.reason.cart;var t=(0,r.default)(".js-cart").data("refresh-url");if(t){var n={};e&&e.reason&&(n={id_product_attribute:e.reason.idProductAttribute,id_product:e.reason.idProduct}),r.default.post(t,n).then(function(e){(0,r.default)(".cart-detailed-totals").replaceWith(e.cart_detailed_totals),(0,r.default)(".cart-summary-items-subtotal").replaceWith(e.cart_summary_items_subtotal),(0,r.default)(".cart-summary-subtotals-container").replaceWith(e.cart_summary_subtotals_container),(0,r.default)(".cart-summary-totals").replaceWith(e.cart_summary_totals),(0,r.default)(".cart-detailed-actions").replaceWith(e.cart_detailed_actions),(0,r.default)(".cart-voucher").replaceWith(e.cart_voucher),(0,r.default)(".cart-overview").replaceWith(e.cart_detailed),(0,r.default)("#product_customization_id").val(0),(0,r.default)(".js-cart-line-product-quantity").each(function(e,t){var n=(0,r.default)(t);n.attr("value",n.val())}),(0,r.default)(".js-cart-payment-step-refresh").length&&(0,i.refreshCheckoutPage)(),o.default.emit("updatedCart",{eventType:"updateCart",resp:e})}).fail(function(e){o.default.emit("handleError",{eventType:"updateCart",resp:e})})}});var e=(0,r.default)("body");e.on("click",'[data-button-action="add-to-cart"]',function(e){if(e.preventDefault(),(0,r.default)("#quantity_wanted").val()>(0,r.default)("[data-stock]").data("stock")&&0===(0,r.default)("[data-allow-oosp]").data("allow-oosp").length)(0,r.default)('[data-button-action="add-to-cart"]').attr("disabled","disabled");else{var t=(0,r.default)(e.target).closest("form"),n=t.serialize()+"&add=1&action=update",i=t.attr("action"),a=function(e){e.parents(".product-add-to-cart").first().find(".product-minimal-quantity").addClass("error"),e.parent().find("label").addClass("error")},s=t.find("input[min]");if(!function(e){var t=!0;return e.each(function(e,n){var o=(0,r.default)(n),i=parseInt(o.attr("min"),10);i&&o.val()<i&&(a(o),t=!1)}),t}(s))return void a(s);r.default.post(i,n,null,"json").then(function(e){o.default.emit("updateCart",{reason:{idProduct:e.id_product,idProductAttribute:e.id_product_attribute,idCustomization:e.id_customization,linkAction:"add-to-cart",cart:e.cart},resp:e})}).fail(function(e){o.default.emit("handleError",{eventType:"addProductToCart",resp:e})})}}),e.on("submit",'[data-link-action="add-voucher"]',function(e){e.preventDefault();var t=(0,r.default)(e.currentTarget),n=t.attr("action");0===t.find("[name=action]").length&&t.append((0,r.default)("<input>",{type:"hidden",name:"ajax",value:1})),0===t.find("[name=action]").length&&t.append((0,r.default)("<input>",{type:"hidden",name:"action",value:"update"})),r.default.post(n,t.serialize(),null,"json").then(function(t){t.hasError?(0,r.default)(".js-error").show().find(".js-error-text").text(t.errors[0]):o.default.emit("updateCart",{reason:e.target.dataset,resp:t})}).fail(function(e){o.default.emit("handleError",{eventType:"updateCart",resp:e})})})})},function(e,t,n){"use strict";var r=l(n(0)),o=l(n(1)),i=l(n(13)),a=l(n(14)),s=l(n(15)),u=l(n(16));function l(e){return e&&e.__esModule?e:{default:e}}
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/function c(){(0,i.default)(),(0,a.default)(),(0,s.default)(),function(){var e=new u.default;e.getClickableSteps().on("click",function(t){var n=u.default.getClickedStep(t);n.isUnreachable()||(e.makeCurrent(n),n.hasContinueButton()?n.disableAllAfter():n.enableAllBefore()),o.default.emit("changedCheckoutStep",{event:t})})}(),(0,r.default)(".checkout-step form").submit(function(e){!0===(0,r.default)(this).data("disabled")&&e.preventDefault(),(0,r.default)(this).data("disabled",!0),(0,r.default)('button[type="submit"]',this).addClass("disabled")})}(0,r.default)(document).ready(function(){1===(0,r.default)("#checkout").length&&c()})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,r.default)(".js-edit-addresses").on("click",function(e){e.stopPropagation(),(0,r.default)("#checkout-addresses-step").trigger("click"),o.default.emit("editAddress")}),(0,r.default)("#delivery-addresses input[type=radio], #invoice-addresses input[type=radio]").on("click",function(){(0,r.default)(".address-item").removeClass("selected"),(0,r.default)(".address-item:has(input[type=radio]:checked)").addClass("selected");var e=(0,r.default)(".js-address-error").prop("id").split("-").pop(),t=(0,r.default)("#not-valid-addresses").val(),n=this.name.split("_").pop(),o=(0,r.default)(".js-address-error[name=alert-"+n+"]");l(!1,e,n),""!==t&&null===s&&t.split(",").indexOf(this.value)>=0?(o.show(),l(!0,this.value,n),(0,r.default)(".js-address-error").prop("id","id-failure-address-"+this.value)):o.hide();var i=(0,r.default)(".js-address-error:visible");c(i.length<=0)})};var r=a(n(0)),o=a(n(1)),i=n(2);function a(e){return e&&e.__esModule?e:{default:e}}
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/var s=(0,i.psGetRequestParameter)("editAddress"),u=(0,i.psGetRequestParameter)("use_same_address");(0,r.default)(window).on("load",function(){var e=(0,r.default)(".js-address-error:visible");if(0===parseInt(u)&&(0,r.default)("#invoice-addresses input[type=radio]:checked").trigger("click"),(null!==s||(0,r.default)(".js-address-form:visible").length>1)&&e.hide(),e.length>0){var t=(0,r.default)(".js-address-error").prop("id").split("-").pop();e.each(function(){l(!0,t,(0,r.default)(this).attr("name").split("-").pop())})}e=(0,r.default)(".js-address-error:visible"),c(e.length<=0)});var l=function(e,t,n){var o="#7a7a7a";e&&((0,r.default)("#"+n+"-addresses a.edit-address").prop("style","color: #7a7a7a !important"),o="#2fb5d2"),(0,r.default)("#id-address-"+n+"-address-"+t+" a.edit-address").prop("style","color: "+o+" !important")},c=function(e){(0,r.default)("button[name=confirm-addresses]").prop("disabled",!e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/
|
||
function(){var e=(0,r.default)("body");e.on("change","#js-delivery input",function(e){var t=(0,r.default)("#js-delivery"),n=t.serialize(),a=(0,r.default)(e.currentTarget).parents(".delivery-option");r.default.post(t.data("url-update"),n).then(function(e){(0,r.default)("#js-checkout-summary").replaceWith(e.preview),(0,r.default)(".js-cart-payment-step-refresh").length&&(0,i.refreshCheckoutPage)(),o.default.emit("updatedDeliveryForm",{dataForm:t.serializeArray(),deliveryOption:a,resp:e})}).fail(function(e){o.default.trigger("handleError",{eventType:"updateDeliveryOptions",resp:e})})}),e.on("click",".js-edit-delivery",function(e){e.stopPropagation(),(0,r.default)("#checkout-delivery-step").trigger("click"),o.default.emit("editDelivery")})};var r=a(n(0)),o=a(n(1)),i=n(2);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=new i;return e.init(),e};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function o(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)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.confirmationSelector="#payment-confirmation",this.paymentSelector="#payment-section",this.conditionsSelector="#conditions-to-approve",this.conditionAlertSelector=".js-alert-payment-conditions",this.additionalInformatonSelector=".js-additional-information",this.optionsForm=".js-payment-option-form"}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"init",value:function(){(0,r.default)(this.paymentSelector+' input[type="checkbox"][disabled]').attr("disabled",!1);var e=(0,r.default)("body");e.on("change",this.conditionsSelector+' input[type="checkbox"]',r.default.proxy(this.toggleOrderButton,this)),e.on("change",'input[name="payment-option"]',r.default.proxy(this.toggleOrderButton,this)),e.on("click",this.confirmationSelector+" button",r.default.proxy(this.confirm,this)),this.collapseOptions()}},{key:"collapseOptions",value:function(){(0,r.default)(this.additionalInformatonSelector+", "+this.optionsForm).hide()}},{key:"getSelectedOption",value:function(){return(0,r.default)('input[name="payment-option"]:checked').attr("id")}},{key:"hideConfirmation",value:function(){(0,r.default)(this.confirmationSelector).hide()}},{key:"showConfirmation",value:function(){(0,r.default)(this.confirmationSelector).show()}},{key:"toggleOrderButton",value:function(){var e=!0;(0,r.default)(this.conditionsSelector+' input[type="checkbox"]').each(function(t,n){n.checked||(e=!1)}),this.collapseOptions();var t=this.getSelectedOption();if(t||(e=!1),(0,r.default)("#"+t+"-additional-information").show(),(0,r.default)("#pay-with-"+t+"-form").show(),(0,r.default)(".js-payment-binary").hide(),(0,r.default)("#"+t).hasClass("binary")){var n=this.getPaymentOptionSelector(t);this.hideConfirmation(),(0,r.default)(n).show(),e?(0,r.default)(n).removeClass("disabled"):(0,r.default)(n).addClass("disabled")}else this.showConfirmation(),(0,r.default)(this.confirmationSelector+" button").attr("disabled",!e),e?(0,r.default)(this.conditionAlertSelector).hide():(0,r.default)(this.conditionAlertSelector).show()}},{key:"getPaymentOptionSelector",value:function(e){var t=(0,r.default)("#".concat(e)).data("module-name");return".js-payment-".concat(t)}},{key:"confirm",value:function(){var e=this.getSelectedOption();e&&((0,r.default)(this.confirmationSelector+" button").prop("disabled",!0),(0,r.default)("#pay-with-"+e+"-form form").submit())}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var s=".".concat("js-current-step"),u=function(){function e(){o(this,e),this.$steps=(0,r.default)(".checkout-step"),this.$steps.off("click"),this.$clickableSteps=(0,r.default)(s).prevAll().andSelf(),this.$clickableSteps.addClass("-clickable")}return a(e,[{key:"getClickableSteps",value:function(){return this.$clickableSteps}},{key:"makeCurrent",value:function(e){this.$steps.removeClass("-current"),this.$steps.removeClass("js-current-step"),e.makeCurrent()}}],[{key:"getClickedStep",value:function(e){return new l((0,r.default)(e.target).closest(".checkout-step"))}}]),e}();t.default=u;var l=function(){function e(t){o(this,e),this.$step=t}return a(e,[{key:"isUnreachable",value:function(){return this.$step.hasClass("-unreachable")}},{key:"makeCurrent",value:function(){this.$step.addClass("-current"),this.$step.addClass("js-current-step")}},{key:"hasContinueButton",value:function(){return(0,r.default)("button.continue",this.$step).length>0}},{key:"disableAllAfter",value:function(){var e=this.$step.nextAll();e.addClass("-unreachable").removeClass("-complete"),(0,r.default)(".step-title",e).addClass("not-allowed")}},{key:"enableAllBefore",value:function(){var e=this.$step.nextAll(".checkout-step.-clickable");e.removeClass("-unreachable").addClass("-complete"),(0,r.default)(".step-title",e).removeClass("not-allowed")}}]),e}()},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}}
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/(n(0));var o=!1;function i(e){o=!1,prestashop.emit("updateProductList",e),window.history.pushState(e,document.title,e.current_url)}function a(){o=!1}(0,r.default)(document).ready(function(){prestashop.on("updateFacets",function(e){!function(e){if(o);else{var t=[e,e.indexOf("?")>=0?"&":"?","from-xhr"].join("");r.default.get(t,null,null,"json").then(i).fail(a)}}(e)})})},function(e,t,n){"use strict";var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/(0,r.default)(document).ready(function(){(0,r.default)("body").on("click",".quick-view",function(e){o.default.emit("clickQuickView",{dataset:(0,r.default)(e.target).closest(".js-product-miniature").data()}),e.preventDefault()})})},function(e,t,n){"use strict";var r=a(n(0)),o=a(n(1)),i=n(2);function a(e){return e&&e.__esModule?e:{default:e}}
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/var s=null,u=null;function l(e){void 0===e&&(e="An error occurred while processing your request"),function(e,t){var n=(0,r.default)('<div class="alert alert-danger ajax-error" role="alert">'.concat(t,"</div>"));e.replaceWith(n)}((0,r.default)(".quickview #product-availability, .page-product:not(.modal-open) .row #product-availability, .page-product:not(.modal-open) .product-container #product-availability"),e)}function c(e,t,n){var a=(0,r.default)(".product-actions"),c=a.find("#quantity_wanted"),f=a.find("form:first").serialize(),p=(0,i.psGetRequestParameter)("preview");if(p=null!==p?"&preview="+p:"",null!==n){if(!e||"keyup"!==e.type||c.val()!==c.data("old-value")){c.data("old-value",c.val()),u&&clearTimeout(u);var h=30;"updatedProductQuantity"===t&&(h=750),u=setTimeout(function(){""!==f&&(s=r.default.ajax({url:n+(-1===n.indexOf("?")?"?":"&")+f+p,method:"POST",data:{quickview:(0,r.default)(".modal.quickview.in").length,ajax:1,action:"refresh",quantity_wanted:"updatedProductCombination"===t?c.attr("min"):c.val()},dataType:"json",beforeSend:function(){null!==s&&s.abort()},error:function(e,t,n){"abort"!==t&&0===(0,r.default)("section#main > .ajax-error").length&&l()},success:function(e,n,i){var a=(0,r.default)("<div>").append(e.product_cover_thumbnails);(0,r.default)(".quickview .images-container, .page-product:not(.modal-open) .row .images-container, .page-product:not(.modal-open) .product-container .images-container").html()!==a.find(".quickview .images-container, .page-product:not(.modal-open) .row .images-container, .page-product:not(.modal-open) .product-container .images-container").html()&&(0,r.default)(".quickview .images-container, .page-product:not(.modal-open) .row .images-container, .page-product:not(.modal-open) .product-container .images-container").replaceWith(e.product_cover_thumbnails),(0,r.default)(".quickview .product-prices, .page-product:not(.modal-open) .row .product-prices, .page-product:not(.modal-open) .product-container .product-prices").first().replaceWith(e.product_prices),(0,r.default)(".quickview .product-customization, .page-product:not(.modal-open) .row .product-customization, .page-product:not(.modal-open) .product-container .product-customization").first().replaceWith(e.product_customization),(0,r.default)(".quickview .product-variants, .page-product:not(.modal-open) .row .product-variants, .page-product:not(.modal-open) .product-container .product-variants").first().replaceWith(e.product_variants),(0,r.default)(".quickview .product-discounts, .page-product:not(.modal-open) .row .product-discounts, .page-product:not(.modal-open) .product-container .product-discounts").first().replaceWith(e.product_discounts),(0,r.default)(".quickview .product-additional-info, .page-product:not(.modal-open) .row .product-additional-info, .page-product:not(.modal-open) .product-container .product-additional-info").first().replaceWith(e.product_additional_info),(0,r.default)(".quickview #product-details, #product-details").replaceWith(e.product_details),(0,r.default)(".quickview .product-flags, .page-product:not(.modal-open) .row .product-flags, .page-product:not(.modal-open) .product-container .product-flags").first().replaceWith(e.product_flags),function(e){var t=null;(0,r.default)(e.product_add_to_cart).each(function(e,n){if((0,r.default)(n).hasClass("product-add-to-cart"))return t=(0,r.default)(n),!1}),null===t&&l();var n=(0,r.default)(".product-add-to-cart");d({$addToCartSnippet:t,$targetParent:n,targetSelector:".add"}),d({$addToCartSnippet:t,$targetParent:n,targetSelector:"#product-availability"}),d({$addToCartSnippet:t,$targetParent:n,targetSelector:".product-minimal-quantity"})}(e);var s=parseInt(e.product_minimal_quantity,10);isNaN(s)||"updatedProductQuantity"===t||(c.attr("min",s),c.val(s)),o.default.emit("updatedProduct",e)},complete:function(e,t){s=null,u=null}}))}.bind(s,u),h)}}else l()}function d(e){var t=(0,r.default)(e.$targetParent.find(e.targetSelector));if(!(t.length<=0)){var n=e.$addToCartSnippet.find(e.targetSelector);n.length>0?t.replaceWith(n[0].outerHTML):t.html("")}}(0,r.default)(document).ready(function(){(0,r.default)("body").on("change touchspin.on.startspin",".product-variants *[name]",function(e){o.default.emit("updateProduct",{eventType:"updatedProductCombination",event:e,resp:{},reason:{productUrl:o.default.urls.pages.product||""}})}),(0,r.default)("body").on("click",".product-refresh",function(e,t){e.preventDefault();var n="updatedProductCombination";void 0!==t&&t.eventType&&(n=t.eventType),o.default.emit("updateProduct",{eventType:n,event:e,resp:{},reason:{productUrl:o.default.urls.pages.product||""}})}),o.default.on("updateProduct",function(e){var t=e.eventType,n=e.event;(function(){var e=r.default.Deferred(),t=(0,r.default)(".product-actions"),n=(0,r.default)("#quantity_wanted");if(null!==o.default&&null!==o.default.urls&&null!==o.default.urls.pages&&""!==o.default.urls.pages.product&&null!==o.default.urls.pages.product)return e.resolve(o.default.urls.pages.product),e.promise();var i={};return(0,r.default)(t.find("form:first").serializeArray()).each(function(e,t){i[t.name]=t.value}),r.default.ajax({url:t.find("form:first").attr("action"),method:"POST",data:Object.assign({ajax:1,action:"productrefresh",quantity_wanted:n.val()},i),dataType:"json",success:function(t){var n=t.productUrl;o.default.page.canonical=n,e.resolve(n)},error:function(t,n,r){e.reject({jqXHR:t,textStatus:n,errorThrown:r})}}),e.promise()})().done(function(e){return c(n,t,e)}).fail(function(){0===(0,r.default)("section#main > .ajax-error").length&&l()})}),o.default.on("updatedProduct",function(e){if(e.product_url&&e.id_product_attribute&&!(0,r.default)(".modal.quickview").length){var t=document.title;e.product_title&&(t=e.product_title,(0,r.default)(document).attr("title",t)),window.history.replaceState({id_product_attribute:e.id_product_attribute},t,e.product_url)}}),o.default.on("updateCart",function(e){e&&e.reason&&"add-to-cart"===e.reason.linkAction&&(0,r.default)("#quantity_wanted").val(1)}),o.default.on("showErrorNextToAddtoCartButton",function(e){e&&e.errorMessage&&l(e.errorMessage)})})},function(e,t,n){"use strict";var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}(0,r.default)(document).ready(function(){!function(e){(0,r.default)("body").on("change",e.country,function(){var t={id_country:(0,r.default)(e.country).val(),id_address:(0,r.default)(e.address+" form").data("id-address")},n=(0,r.default)(e.address+" form").data("refresh-url"),i=e.address+" input";r.default.post(n,t).then(function(t){var n=[];(0,r.default)(i).each(function(){n[(0,r.default)(this).prop("name")]=(0,r.default)(this).val()}),(0,r.default)(e.address).replaceWith(t.address_form),(0,r.default)(i).each(function(){(0,r.default)(this).val(n[(0,r.default)(this).prop("name")])}),o.default.emit("updatedAddressForm",{target:(0,r.default)(e.address),resp:t})}).fail(function(e){o.default.emit("handleError",{eventType:"updateAddressForm",resp:e})})})}({country:".js-country",address:".js-address-form"})})},function(e,t,n){"use strict";function r(e){return(r="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 o(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function a(e){return"object"===r(e)&&null!==e}function s(e){return void 0===e}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0,o.defaultMaxListeners=10,o.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},o.prototype.emit=function(e){var t,n,r,o,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(s(n=this._events[e]))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(a(n))for(o=Array.prototype.slice.call(arguments,1),r=(l=n.slice()).length,u=0;u<r;u++)l[u].apply(this,o);return!0},o.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?o.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},o.prototype.on=o.prototype.addListener,o.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},o.prototype.removeListener=function(e,t){var n,r,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-->0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},o.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},o.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},o.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},o.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(23));function i(e){return e&&e.__esModule?e:{default:e}}
|
||
/**
|
||
* Copyright since 2007 PrestaShop SA and Contributors
|
||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Open Software License (OSL 3.0)
|
||
* that is bundled with this package in the file LICENSE.md.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/OSL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
*
|
||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||
*/var a=function(e){var t=(0,r.default)(e);r.default.each(t,function(e,t){if(!t.checkValidity()){var n=t.value.split("@");o.default.toASCII(n[0])===n[0]&&(t.value=o.default.toASCII(t.value))}})};t.default=a},function(e,t,n){"use strict";(function(e,r){var o;function i(e){return(i="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)}
|
||
/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){var s="object"==i(t)&&t&&!t.nodeType&&t,u="object"==i(e)&&e&&!e.nodeType&&e,l="object"==(void 0===r?"undefined":i(r))&&r;l.global!==l&&l.window!==l&&l.self!==l||(a=l);var c,d,f=2147483647,p=36,h=1,v=26,m=38,y=700,g=72,b=128,x="-",w=/^xn--/,k=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=p-h,S=Math.floor,_=String.fromCharCode;function A(e){throw new RangeError(T[e])}function E(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function N(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+E((e=e.replace(C,".")).split("."),t).join(".")}function D(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function q(e){return E(e,function(e){var t="";return e>65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)}).join("")}function L(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,n){var r=0;for(e=n?S(e/y):e>>1,e+=S(e/t);e>j*v>>1;r+=p)e=S(e/j);return S(r+(j+1)*e/(e+m))}function M(e){var t,n,r,o,i,a,s,u,l,c,d=[],m=e.length,y=0,w=b,k=g;for((n=e.lastIndexOf(x))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&A("not-basic"),d.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<m;){for(i=y,a=1,s=p;o>=m&&A("invalid-input"),((u=L(e.charCodeAt(o++)))>=p||u>S((f-y)/a))&&A("overflow"),y+=u*a,!(u<(l=s<=k?h:s>=k+v?v:s-k));s+=p)a>S(f/(c=p-l))&&A("overflow"),a*=c;k=P(y-i,t=d.length+1,0==i),S(y/t)>f-w&&A("overflow"),w+=S(y/t),y%=t,d.splice(y++,0,w)}return q(d)}function H(e){var t,n,r,o,i,a,s,u,l,c,d,m,y,w,k,C=[];for(m=(e=D(e)).length,t=b,n=0,i=g,a=0;a<m;++a)(d=e[a])<128&&C.push(_(d));for(r=o=C.length,o&&C.push(x);r<m;){for(s=f,a=0;a<m;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>S((f-n)/(y=r+1))&&A("overflow"),n+=(s-t)*y,t=s,a=0;a<m;++a)if((d=e[a])<t&&++n>f&&A("overflow"),d==t){for(u=n,l=p;!(u<(c=l<=i?h:l>=i+v?v:l-i));l+=p)k=u-c,w=p-c,C.push(_(O(c+k%w,0))),u=S(k/w);C.push(_(O(u,0))),i=P(n,y,r==o),n=0,++r}++n,++t}return C.join("")}if(c={version:"1.4.1",ucs2:{decode:D,encode:q},decode:M,encode:H,toASCII:function(e){return N(e,function(e){return k.test(e)?"xn--"+H(e):e})},toUnicode:function(e){return N(e,function(e){return w.test(e)?M(e.slice(4).toLowerCase()):e})}},"object"==i(n(4))&&n(4))void 0===(o=function(){return c}.call(t,n,t,e))||(e.exports=o);else if(s&&u)if(e.exports==s)u.exports=c;else for(d in c)c.hasOwnProperty(d)&&(s[d]=c[d]);else a.punycode=c}(void 0)}).call(this,n(3)(e),n(24))},function(e,t,n){"use strict";function r(e){return(r="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 o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(o=window)}e.exports=o}]);!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=26)}([function(t,e){t.exports=jQuery},function(t,e){t.exports=prestashop},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(o),s=function(){function t(e){i(this,t),this.el=e}return r(t,[{key:"init",value:function(){this.el.on("show.bs.dropdown",function(t,e){e?(0,a.default)("#"+e).find(".dropdown-menu").first().stop(!0,!0).slideDown():(0,a.default)(t.target).find(".dropdown-menu").first().stop(!0,!0).slideDown()}),this.el.on("hide.bs.dropdown",function(t,e){e?(0,a.default)("#"+e).find(".dropdown-menu").first().stop(!0,!0).slideUp():(0,a.default)(t.target).find(".dropdown-menu").first().stop(!0,!0).slideUp()}),this.el.find("select.link").each(function(t,e){(0,a.default)(e).on("change",function(t){window.location=(0,a.default)(this).val()})})}}]),t}();e.default=s,t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(o),s=function(){function t(){i(this,t)}return r(t,[{key:"init",value:function(){(0,a.default)(".js-product-miniature").each(function(t,e){var n=(0,a.default)(e).find(".discount-product"),i=(0,a.default)(e).find(".on-sale"),r=(0,a.default)(e).find(".new");n.length&&(r.css("top",2*n.height()+10),n.css("top",-(0,a.default)(e).find(".thumbnail-container").height()+(0,a.default)(e).find(".product-description").height()+10),(0,a.default)(e).find(".pack").length&&(0,a.default)(e).find(".pack").css("top",2*n.height()+10)),i.length&&(n.css("top",parseFloat(n.css("top"))+i.height()+10),r.css("top",2*n.height()+i.height()+20)),(0,a.default)(e).find(".color").length>5&&function(){var t=0;(0,a.default)(e).find(".color").each(function(e,n){e>4&&((0,a.default)(n).hide(),t++)}),(0,a.default)(e).find(".js-count").append("+"+t)}()})}}]),t}();e.default=s,t.exports=e.default},function(t,e,n){"use strict";var i,r;!function(t){function e(t){var e=t.length,i=n.type(t);return"function"!==i&&!n.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t))}if(!t.jQuery){var n=function t(e,n){return new t.fn.init(e,n)};n.isWindow=function(t){return t&&t===t.window},n.type=function(t){return t?"object"==typeof t||"function"==typeof t?r[a.call(t)]||"object":typeof t:t+""},n.isArray=Array.isArray||function(t){return"array"===n.type(t)},n.isPlainObject=function(t){var e;if(!t||"object"!==n.type(t)||t.nodeType||n.isWindow(t))return!1;try{if(t.constructor&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||o.call(t,e)},n.each=function(t,n,i){var r=0,o=t.length,a=e(t);if(i){if(a)for(;r<o&&!1!==n.apply(t[r],i);r++);else for(r in t)if(t.hasOwnProperty(r)&&!1===n.apply(t[r],i))break}else if(a)for(;r<o&&!1!==n.call(t[r],r,t[r]);r++);else for(r in t)if(t.hasOwnProperty(r)&&!1===n.call(t[r],r,t[r]))break;return t},n.data=function(t,e,r){if(void 0===r){var o=t[n.expando],a=o&&i[o];if(void 0===e)return a;if(a&&e in a)return a[e]}else if(void 0!==e){var s=t[n.expando]||(t[n.expando]=++n.uuid);return i[s]=i[s]||{},i[s][e]=r,r}},n.removeData=function(t,e){var r=t[n.expando],o=r&&i[r];o&&(e?n.each(e,function(t,e){delete o[e]}):delete i[r])},n.extend=function(){var t,e,i,r,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==n.type(s)&&(s={}),l===u&&(s=this,l--);l<u;l++)if(o=arguments[l])for(r in o)o.hasOwnProperty(r)&&(t=s[r],i=o[r],s!==i&&(c&&i&&(n.isPlainObject(i)||(e=n.isArray(i)))?(e?(e=!1,a=t&&n.isArray(t)?t:[]):a=t&&n.isPlainObject(t)?t:{},s[r]=n.extend(c,a,i)):void 0!==i&&(s[r]=i)));return s},n.queue=function(t,i,r){if(t){i=(i||"fx")+"queue";var o=n.data(t,i);return r?(!o||n.isArray(r)?o=n.data(t,i,function(t,n){var i=n||[];return t&&(e(Object(t))?function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;)t[r++]=e[i++];if(n!==n)for(;void 0!==e[i];)t[r++]=e[i++];t.length=r}(i,"string"==typeof t?[t]:t):[].push.call(i,t)),i}(r)):o.push(r),o):o||[]}},n.dequeue=function(t,e){n.each(t.nodeType?[t]:t,function(t,i){e=e||"fx";var r=n.queue(i,e),o=r.shift();"inprogress"===o&&(o=r.shift()),o&&("fx"===e&&r.unshift("inprogress"),o.call(i,function(){n.dequeue(i,e)}))})},n.fn=n.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var t=this[0],e=function(t){for(var e=t.offsetParent;e&&"html"!==e.nodeName.toLowerCase()&&e.style&&"static"===e.style.position;)e=e.offsetParent;return e||document}(t),i=this.offset(),r=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:n(e).offset();return i.top-=parseFloat(t.style.marginTop)||0,i.left-=parseFloat(t.style.marginLeft)||0,e.style&&(r.top+=parseFloat(e.style.borderTopWidth)||0,r.left+=parseFloat(e.style.borderLeftWidth)||0),{top:i.top-r.top,left:i.left-r.left}}};var i={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var r={},o=r.hasOwnProperty,a=r.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)r["[object "+s[l]+"]"]=s[l].toLowerCase();n.fn.init.prototype=n.fn,t.Velocity={Utilities:n}}}(window),function(o){"object"==typeof t&&"object"==typeof t.exports?t.exports=o():(i=o,void 0!==(r="function"==typeof i?i.call(e,n,e,t):i)&&(t.exports=r))}(function(){return function(t,e,n,i){function r(t){for(var e=-1,n=t?t.length:0,i=[];++e<n;){var r=t[e];r&&i.push(r)}return i}function o(t){return _.isWrapped(t)?t=y.call(t):_.isNode(t)&&(t=[t]),t}function a(t){var e=h.data(t,"velocity");return null===e?i:e}function s(t,e){var n=a(t);n&&n.delayTimer&&!n.delayPaused&&(n.delayRemaining=n.delay-e+n.delayBegin,n.delayPaused=!0,clearTimeout(n.delayTimer.setTimeout))}function l(t,e){var n=a(t);n&&n.delayTimer&&n.delayPaused&&(n.delayPaused=!1,n.delayTimer.setTimeout=setTimeout(n.delayTimer.next,n.delayRemaining))}function u(t){return function(e){return Math.round(e*t)*(1/t)}}function c(t,n,i,r){function o(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,n){return((o(e,n)*t+a(e,n))*t+s(e))*t}function u(t,e,n){return 3*o(e,n)*t*t+2*a(e,n)*t+s(e)}function c(e,n){for(var r=0;r<m;++r){var o=u(n,t,i);if(0===o)return n;n-=(l(n,t,i)-e)/o}return n}function f(){for(var e=0;e<b;++e)S[e]=l(e*_,t,i)}function d(e,n,r){var o,a,s=0;do{a=n+(r-n)/2,o=l(a,t,i)-e,o>0?r=a:n=a}while(Math.abs(o)>v&&++s<y);return a}function p(e){for(var n=0,r=1,o=b-1;r!==o&&S[r]<=e;++r)n+=_;--r;var a=(e-S[r])/(S[r+1]-S[r]),s=n+a*_,l=u(s,t,i);return l>=g?c(e,s):0===l?s:d(e,n,n+_)}function h(){E=!0,t===n&&i===r||f()}var m=4,g=.001,v=1e-7,y=10,b=11,_=1/(b-1),x="Float32Array"in e;if(4!==arguments.length)return!1;for(var w=0;w<4;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;t=Math.min(t,1),i=Math.min(i,1),t=Math.max(t,0),i=Math.max(i,0);var S=x?new Float32Array(b):new Array(b),E=!1,C=function(e){return E||h(),t===n&&i===r?e:0===e?0:1===e?1:l(p(e),n,r)};C.getControlPoints=function(){return[{x:t,y:n},{x:i,y:r}]};var T="generateBezier("+[t,n,i,r]+")";return C.toString=function(){return T},C}function f(t,e){var n=t;return _.isString(t)?E.Easings[t]||(n=!1):n=_.isArray(t)&&1===t.length?u.apply(null,t):_.isArray(t)&&2===t.length?C.apply(null,t.concat([e])):!(!_.isArray(t)||4!==t.length)&&c.apply(null,t),!1===n&&(n=E.Easings[E.defaults.easing]?E.defaults.easing:S),n}function d(t){if(t){var e=E.timestamp&&!0!==t?t:v.now(),n=E.State.calls.length;n>1e4&&(E.State.calls=r(E.State.calls),n=E.State.calls.length);for(var o=0;o<n;o++)if(E.State.calls[o]){var s=E.State.calls[o],l=s[0],u=s[2],c=s[3],f=!!c,g=null,y=s[5],b=s[6];if(c||(c=E.State.calls[o][3]=e-16),y){if(!0!==y.resume)continue;c=s[3]=Math.round(e-b-16),s[5]=null}b=s[6]=e-c;for(var x=Math.min(b/u.duration,1),w=0,S=l.length;w<S;w++){var C=l[w],A=C.element;if(a(A)){var O=!1;if(u.display!==i&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var k=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];h.each(k,function(t,e){T.setPropertyValue(A,"display",e)})}T.setPropertyValue(A,"display",u.display)}u.visibility!==i&&"hidden"!==u.visibility&&T.setPropertyValue(A,"visibility",u.visibility);for(var D in C)if(C.hasOwnProperty(D)&&"element"!==D){var N,P=C[D],L=_.isString(P.easing)?E.Easings[P.easing]:P.easing;if(_.isString(P.pattern)){var j=1===x?function(t,e,n){var i=P.endValue[e];return n?Math.round(i):i}:function(t,e,n){var i=P.startValue[e],r=P.endValue[e]-i,o=i+r*L(x,u,r);return n?Math.round(o):o};N=P.pattern.replace(/{(\d+)(!)?}/g,j)}else if(1===x)N=P.endValue;else{var B=P.endValue-P.startValue;N=P.startValue+B*L(x,u,B)}if(!f&&N===P.currentValue)continue;if(P.currentValue=N,"tween"===D)g=N;else{var V;if(T.Hooks.registered[D]){V=T.Hooks.getRoot(D);var F=a(A).rootPropertyValueCache[V];F&&(P.rootPropertyValue=F)}var R=T.setPropertyValue(A,D,P.currentValue+(m<9&&0===parseFloat(N)?"":P.unitType),P.rootPropertyValue,P.scrollData);T.Hooks.registered[D]&&(T.Normalizations.registered[V]?a(A).rootPropertyValueCache[V]=T.Normalizations.registered[V]("extract",null,R[1]):a(A).rootPropertyValueCache[V]=R[1]),"transform"===R[0]&&(O=!0)}}u.mobileHA&&a(A).transformCache.translate3d===i&&(a(A).transformCache.translate3d="(0px, 0px, 0px)",O=!0),O&&T.flushTransformCache(A)}}u.display!==i&&"none"!==u.display&&(E.State.calls[o][2].display=!1),u.visibility!==i&&"hidden"!==u.visibility&&(E.State.calls[o][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],x,Math.max(0,c+u.duration-e),c,g),1===x&&p(o)}}E.State.isTicking&&I(d)}function p(t,e){if(!E.State.calls[t])return!1;for(var n=E.State.calls[t][0],r=E.State.calls[t][1],o=E.State.calls[t][2],s=E.State.calls[t][4],l=!1,u=0,c=n.length;u<c;u++){var f=n[u].element;e||o.loop||("none"===o.display&&T.setPropertyValue(f,"display",o.display),"hidden"===o.visibility&&T.setPropertyValue(f,"visibility",o.visibility));var d=a(f);if(!0!==o.loop&&(h.queue(f)[1]===i||!/\.velocityQueueEntryFlag/i.test(h.queue(f)[1]))&&d){d.isAnimating=!1,d.rootPropertyValueCache={};var p=!1;h.each(T.Lists.transforms3D,function(t,e){var n=/^scale/.test(e)?1:0,r=d.transformCache[e];d.transformCache[e]!==i&&new RegExp("^\\("+n+"[^.]").test(r)&&(p=!0,delete d.transformCache[e])}),o.mobileHA&&(p=!0,delete d.transformCache.translate3d),p&&T.flushTransformCache(f),T.Values.removeClass(f,"velocity-animating")}if(!e&&o.complete&&!o.loop&&u===c-1)try{o.complete.call(r,r)}catch(t){setTimeout(function(){throw t},1)}s&&!0!==o.loop&&s(r),d&&!0===o.loop&&!e&&(h.each(d.tweensContainer,function(t,e){if(/^rotate/.test(t)&&(parseFloat(e.startValue)-parseFloat(e.endValue))%360==0){var n=e.startValue;e.startValue=e.endValue,e.endValue=n}/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),E(f,"reverse",{loop:!0,delay:o.delay})),!1!==o.queue&&h.dequeue(f,o.queue)}E.State.calls[t]=!1;for(var m=0,g=E.State.calls.length;m<g;m++)if(!1!==E.State.calls[m]){l=!0;break}!1===l&&(E.State.isTicking=!1,delete E.State.calls,E.State.calls=[])}var h,m=function(){if(n.documentMode)return n.documentMode;for(var t=7;t>4;t--){var e=n.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return i}(),g=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-t)),t=i+n,setTimeout(function(){e(i+n)},n)}}(),v=function(){var t=e.performance||{};if("function"!=typeof t.now){var n=t.timing&&t.timing.navigationStart?t.timing.navigationStart:(new Date).getTime();t.now=function(){return(new Date).getTime()-n}}return t}(),y=function(){var t=Array.prototype.slice;try{return t.call(n.documentElement),t}catch(e){return function(e,n){var i=this.length;if("number"!=typeof e&&(e=0),"number"!=typeof n&&(n=i),this.slice)return t.call(this,e,n);var r,o=[],a=e>=0?e:Math.max(0,i+e),s=n<0?i+n:Math.min(n,i),l=s-a;if(l>0)if(o=new Array(l),this.charAt)for(r=0;r<l;r++)o[r]=this.charAt(a+r);else for(r=0;r<l;r++)o[r]=this[a+r];return o}}}(),b=function(){return Array.prototype.includes?function(t,e){return t.includes(e)}:Array.prototype.indexOf?function(t,e){return t.indexOf(e)>=0}:function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}},_={isNumber:function(t){return"number"==typeof t},isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isWrapped:function(t){return t&&t!==e&&_.isNumber(t.length)&&!_.isString(t)&&!_.isFunction(t)&&!_.isNode(t)&&(0===t.length||_.isNode(t[0]))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}},x=!1;if(t.fn&&t.fn.jquery?(h=t,x=!0):h=e.Velocity.Utilities,m<=8&&!x)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(m<=7)return void(jQuery.fn.velocity=jQuery.fn.animate);var w=400,S="swing",E={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:h,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:w,easing:S,begin:i,complete:i,progress:i,display:i,visibility:i,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(t){h.data(t,"velocity",{isSVG:_.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:0},debug:!1,timestamp:!0,pauseAll:function(t){var e=(new Date).getTime();h.each(E.State.calls,function(e,n){if(n){if(t!==i&&(n[2].queue!==t||!1===n[2].queue))return!0;n[5]={resume:!1}}}),h.each(E.State.delayedElements,function(t,n){n&&s(n,e)})},resumeAll:function(t){var e=(new Date).getTime();h.each(E.State.calls,function(e,n){if(n){if(t!==i&&(n[2].queue!==t||!1===n[2].queue))return!0;n[5]&&(n[5].resume=!0)}}),h.each(E.State.delayedElements,function(t,n){n&&l(n,e)})}};e.pageYOffset!==i?(E.State.scrollAnchor=e,E.State.scrollPropertyLeft="pageXOffset",E.State.scrollPropertyTop="pageYOffset"):(E.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,E.State.scrollPropertyLeft="scrollLeft",E.State.scrollPropertyTop="scrollTop");var C=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,n,i){var r={x:e.x+i.dx*n,v:e.v+i.dv*n,tension:e.tension,friction:e.friction};return{dx:r.v,dv:t(r)}}function n(n,i){var r={dx:n.v,dv:t(n)},o=e(n,.5*i,r),a=e(n,.5*i,o),s=e(n,i,a),l=1/6*(r.dx+2*(o.dx+a.dx)+s.dx),u=1/6*(r.dv+2*(o.dv+a.dv)+s.dv);return n.x=n.x+l*i,n.v=n.v+u*i,n}return function t(e,i,r){var o,a,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0;for(e=parseFloat(e)||500,i=parseFloat(i)||20,r=r||null,l.tension=e,l.friction=i,o=null!==r,o?(c=t(e,i),a=c/r*.016):a=.016;;)if(s=n(s||l,a),u.push(1+s.x),c+=16,!(Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4))break;return o?function(t){return u[t*(u.length-1)|0]}:c}}();E.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},h.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){E.Easings[e[0]]=c.apply(null,e[1])});var T=E.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t<T.Lists.colors.length;t++){var e="color"===T.Lists.colors[t]?"0 0 0 1":"255 255 255 1";T.Hooks.templates[T.Lists.colors[t]]=["Red Green Blue Alpha",e]}var n,i,r;if(m)for(n in T.Hooks.templates)if(T.Hooks.templates.hasOwnProperty(n)){i=T.Hooks.templates[n],r=i[0].split(" ");var o=i[1].match(T.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),o.push(o.shift()),T.Hooks.templates[n]=[r.join(" "),o.join(" ")])}for(n in T.Hooks.templates)if(T.Hooks.templates.hasOwnProperty(n)){i=T.Hooks.templates[n],r=i[0].split(" ");for(var a in r)if(r.hasOwnProperty(a)){var s=n+r[a],l=a;T.Hooks.registered[s]=[n,l]}}},getRoot:function(t){var e=T.Hooks.registered[t];return e?e[0]:t},getUnit:function(t,e){var n=(t.substr(e||0,5).match(/^[a-z%]+/)||[])[0]||"";return n&&b(T.Lists.units,n)?n:""},fixColors:function(t){return t.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(t,e,n){return T.Lists.colorNames.hasOwnProperty(n)?(e||"rgba(")+T.Lists.colorNames[n]+(e?"":",1)"):e+n})},cleanRootPropertyValue:function(t,e){return T.RegEx.valueUnwrap.test(e)&&(e=e.match(T.RegEx.valueUnwrap)[1]),T.Values.isCSSNullValue(e)&&(e=T.Hooks.templates[t][1]),e},extractValue:function(t,e){var n=T.Hooks.registered[t];if(n){var i=n[0],r=n[1];return e=T.Hooks.cleanRootPropertyValue(i,e),e.toString().match(T.RegEx.valueSplit)[r]}return e},injectValue:function(t,e,n){var i=T.Hooks.registered[t];if(i){var r,o=i[0],a=i[1];return n=T.Hooks.cleanRootPropertyValue(o,n),r=n.toString().match(T.RegEx.valueSplit),r[a]=e,r.join(" ")}return n}},Normalizations:{registered:{clip:function(t,e,n){switch(t){case"name":return"clip";case"extract":var i;return T.RegEx.wrappedValueAlreadyExtracted.test(n)?i=n:(i=n.toString().match(T.RegEx.valueUnwrap),i=i?i[1].replace(/,(\s+)?/g," "):n),i;case"inject":return"rect("+n+")"}},blur:function(t,e,n){switch(t){case"name":return E.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var r=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=r?r[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(t,e,n){if(m<=8)switch(t){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){function t(t,e,n){if("border-box"===T.getPropertyValue(e,"boxSizing").toString().toLowerCase()===(n||!1)){var i,r,o=0,a="width"===t?["Left","Right"]:["Top","Bottom"],s=["padding"+a[0],"padding"+a[1],"border"+a[0]+"Width","border"+a[1]+"Width"];for(i=0;i<s.length;i++)r=parseFloat(T.getPropertyValue(e,s[i])),isNaN(r)||(o+=r);return n?-o:o}return 0}function e(e,n){return function(i,r,o){switch(i){case"name":return e;case"extract":return parseFloat(o)+t(e,r,n);case"inject":return parseFloat(o)-t(e,r,n)+"px"}}}m&&!(m>9)||E.State.isGingerbread||(T.Lists.transformsBase=T.Lists.transformsBase.concat(T.Lists.transforms3D));for(var n=0;n<T.Lists.transformsBase.length;n++)!function(){var t=T.Lists.transformsBase[n];T.Normalizations.registered[t]=function(e,n,r){switch(e){case"name":return"transform";case"extract":return a(n)===i||a(n).transformCache[t]===i?/^scale/i.test(t)?1:0:a(n).transformCache[t].replace(/[()]/g,"");case"inject":var o=!1;switch(t.substr(0,t.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(r);break;case"scal":case"scale":E.State.isAndroid&&a(n).transformCache[t]===i&&r<1&&(r=1),o=!/(\d)$/i.test(r);break;case"skew":case"rotate":o=!/(deg|\d)$/i.test(r)}return o||(a(n).transformCache[t]="("+r+")"),a(n).transformCache[t]}}}();for(var r=0;r<T.Lists.colors.length;r++)!function(){var t=T.Lists.colors[r];T.Normalizations.registered[t]=function(e,n,r){switch(e){case"name":return t;case"extract":var o;if(T.RegEx.wrappedValueAlreadyExtracted.test(r))o=r;else{var a,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(r)?a=s[r]!==i?s[r]:s.black:T.RegEx.isHex.test(r)?a="rgb("+T.Values.hexToRgb(r).join(" ")+")":/^rgba?\(/i.test(r)||(a=s.black),o=(a||r).toString().match(T.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!m||m>8)&&3===o.split(" ").length&&(o+=" 1"),o;case"inject":return/^rgb/.test(r)?r:(m<=8?4===r.split(" ").length&&(r=r.split(/\s+/).slice(0,3).join(" ")):3===r.split(" ").length&&(r+=" 1"),(m<=8?"rgb":"rgba")+"("+r.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();T.Normalizations.registered.innerWidth=e("width",!0),T.Normalizations.registered.innerHeight=e("height",!0),T.Normalizations.registered.outerWidth=e("width"),T.Normalizations.registered.outerHeight=e("height")}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(m||E.State.isAndroid&&!E.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(E.State.prefixMatches[t])return[E.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],n=0,i=e.length;n<i;n++){var r;if(r=0===n?t:e[n]+t.replace(/^\w/,function(t){return t.toUpperCase()}),_.isString(E.State.prefixElement.style[r]))return E.State.prefixMatches[t]=r,[r,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e,n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return t=t.replace(n,function(t,e,n,i){return e+e+n+n+i+i}),e=i.exec(t),e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return!t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){if(t)if(t.classList)t.classList.add(e);else if(_.isString(t.className))t.className+=(t.className.length?" ":"")+e;else{var n=t.getAttribute(m<=7?"className":"class")||"";t.setAttribute("class",n+(n?" ":"")+e)}},removeClass:function(t,e){if(t)if(t.classList)t.classList.remove(e);else if(_.isString(t.className))t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ");else{var n=t.getAttribute(m<=7?"className":"class")||"";t.setAttribute("class",n.replace(new RegExp("(^|s)"+e.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(t,n,r,o){function s(t,n){var r=0;if(m<=8)r=h.css(t,n);else{var l=!1;/^(width|height)$/.test(n)&&0===T.getPropertyValue(t,"display")&&(l=!0,T.setPropertyValue(t,"display",T.Values.getDisplayType(t)));var u=function(){l&&T.setPropertyValue(t,"display","none")};if(!o){if("height"===n&&"border-box"!==T.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var c=t.offsetHeight-(parseFloat(T.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(T.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(T.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(T.getPropertyValue(t,"paddingBottom"))||0);return u(),c}if("width"===n&&"border-box"!==T.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var f=t.offsetWidth-(parseFloat(T.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(T.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(T.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(T.getPropertyValue(t,"paddingRight"))||0);return u(),f}}var d;d=a(t)===i?e.getComputedStyle(t,null):a(t).computedStyle?a(t).computedStyle:a(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===n&&(n="borderTopColor"),r=9===m&&"filter"===n?d.getPropertyValue(n):d[n],""!==r&&null!==r||(r=t.style[n]),u()}if("auto"===r&&/^(top|right|bottom|left)$/i.test(n)){var p=s(t,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(n))&&(r=h(t).position()[n]+"px")}return r}var l;if(T.Hooks.registered[n]){var u=n,c=T.Hooks.getRoot(u);r===i&&(r=T.getPropertyValue(t,T.Names.prefixCheck(c)[0])),T.Normalizations.registered[c]&&(r=T.Normalizations.registered[c]("extract",t,r)),l=T.Hooks.extractValue(u,r)}else if(T.Normalizations.registered[n]){var f,d;f=T.Normalizations.registered[n]("name",t),"transform"!==f&&(d=s(t,T.Names.prefixCheck(f)[0]),T.Values.isCSSNullValue(d)&&T.Hooks.templates[n]&&(d=T.Hooks.templates[n][1])),l=T.Normalizations.registered[n]("extract",t,d)}if(!/^[\d-]/.test(l)){var p=a(t);if(p&&p.isSVG&&T.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=t.getBBox()[n]}catch(t){l=0}else l=t.getAttribute(n);else l=s(t,T.Names.prefixCheck(n)[0])}return T.Values.isCSSNullValue(l)&&(l=0),E.debug,l},setPropertyValue:function(t,n,i,r,o){var s=n;if("scroll"===n)o.container?o.container["scroll"+o.direction]=i:"Left"===o.direction?e.scrollTo(i,o.alternateValue):e.scrollTo(o.alternateValue,i);else if(T.Normalizations.registered[n]&&"transform"===T.Normalizations.registered[n]("name",t))T.Normalizations.registered[n]("inject",t,i),s="transform",i=a(t).transformCache[n];else{if(T.Hooks.registered[n]){var l=n,u=T.Hooks.getRoot(n);r=r||T.getPropertyValue(t,u),i=T.Hooks.injectValue(l,i,r),n=u}if(T.Normalizations.registered[n]&&(i=T.Normalizations.registered[n]("inject",t,i),n=T.Normalizations.registered[n]("name",t)),s=T.Names.prefixCheck(n)[0],m<=8)try{t.style[s]=i}catch(t){E.debug}else{var c=a(t);c&&c.isSVG&&T.Names.SVGAttribute(n)?t.setAttribute(n,i):t.style[s]=i}E.debug}return[s,i]},flushTransformCache:function(t){var e="",n=a(t);if((m||E.State.isAndroid&&!E.State.isChrome)&&n&&n.isSVG){var i=function(e){return parseFloat(T.getPropertyValue(t,e))},r={translate:[i("translateX"),i("translateY")],skewX:[i("skewX")],skewY:[i("skewY")],scale:1!==i("scale")?[i("scale"),i("scale")]:[i("scaleX"),i("scaleY")],rotate:[i("rotateZ"),0,0]};h.each(a(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),r[t]&&(e+=t+"("+r[t].join(" ")+") ",delete r[t])})}else{var o,s;h.each(a(t).transformCache,function(n){if(o=a(t).transformCache[n],"transformPerspective"===n)return s=o,!0;9===m&&"rotateZ"===n&&(n="rotate"),e+=n+o+" "}),s&&(e="perspective"+s+" "+e)}T.setPropertyValue(t,"transform",e)}};T.Hooks.register(),T.Normalizations.register(),E.hook=function(t,e,n){var r;return t=o(t),h.each(t,function(t,o){if(a(o)===i&&E.init(o),n===i)r===i&&(r=T.getPropertyValue(o,e));else{var s=T.setPropertyValue(o,e,n);"transform"===s[0]&&E.CSS.flushTransformCache(o),r=s}}),r};var A=function t(){function r(){return m?A.promise||null:g}function u(t,r){function o(o){var c,p;if(l.begin&&0===O)try{l.begin.call(y,y)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===N){var m,g,v,w=/^x$/i.test(l.axis)?"Left":"Top",C=parseFloat(l.offset)||0;l.container?_.isWrapped(l.container)||_.isNode(l.container)?(l.container=l.container[0]||l.container,m=l.container["scroll"+w],v=m+h(t).position()[w.toLowerCase()]+C):l.container=null:(m=E.State.scrollAnchor[E.State["scrollProperty"+w]],g=E.State.scrollAnchor[E.State["scrollProperty"+("Left"===w?"Top":"Left")]],v=h(t).offset()[w.toLowerCase()]+C),u={scroll:{rootPropertyValue:!1,startValue:m,currentValue:m,endValue:v,unitType:"",easing:l.easing,scrollData:{container:l.container,direction:w,alternateValue:g}},element:t},E.debug}else if("reverse"===N){if(!(c=a(t)))return;if(!c.tweensContainer)return void h.dequeue(t,l.queue);"none"===c.opts.display&&(c.opts.display="auto"),"hidden"===c.opts.visibility&&(c.opts.visibility="visible"),c.opts.loop=!1,c.opts.begin=null,c.opts.complete=null,S.easing||delete l.easing,S.duration||delete l.duration,l=h.extend({},c.opts,l),p=h.extend(!0,{},c?c.tweensContainer:null);for(var k in p)if(p.hasOwnProperty(k)&&"element"!==k){var D=p[k].startValue;p[k].startValue=p[k].currentValue=p[k].endValue,p[k].endValue=D,_.isEmptyObject(S)||(p[k].easing=l.easing),E.debug}u=p}else if("start"===N){c=a(t),c&&c.tweensContainer&&!0===c.isAnimating&&(p=c.tweensContainer);var P=function(r,o){var a,f=T.Hooks.getRoot(r),d=!1,m=o[0],g=o[1],v=o[2];if(!(c&&c.isSVG||"tween"===f||!1!==T.Names.prefixCheck(f)[1]||T.Normalizations.registered[f]!==i))return void E.debug;(l.display!==i&&null!==l.display&&"none"!==l.display||l.visibility!==i&&"hidden"!==l.visibility)&&/opacity|filter/.test(r)&&!v&&0!==m&&(v=0),l._cacheValues&&p&&p[r]?(v===i&&(v=p[r].endValue+p[r].unitType),d=c.rootPropertyValueCache[f]):T.Hooks.registered[r]?v===i?(d=T.getPropertyValue(t,f),v=T.getPropertyValue(t,r,d)):d=T.Hooks.templates[f][1]:v===i&&(v=T.getPropertyValue(t,r));var y,b,x,w=!1,S=function(t,e){var n,i;return i=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return n=t,""}),n||(n=T.Values.getUnitType(t)),[i,n]};if(v!==m&&_.isString(v)&&_.isString(m)){a="";var C=0,A=0,I=[],O=[],k=0,D=0,N=0;for(v=T.Hooks.fixColors(v),m=T.Hooks.fixColors(m);C<v.length&&A<m.length;){var P=v[C],L=m[A];if(/[\d\.-]/.test(P)&&/[\d\.-]/.test(L)){for(var j=P,B=L,V=".",R=".";++C<v.length;){if((P=v[C])===V)V="..";else if(!/\d/.test(P))break;j+=P}for(;++A<m.length;){if((L=m[A])===R)R="..";else if(!/\d/.test(L))break;B+=L}var M=T.Hooks.getUnit(v,C),H=T.Hooks.getUnit(m,A);if(C+=M.length,A+=H.length,M===H)j===B?a+=j+M:(a+="{"+I.length+(D?"!":"")+"}"+M,I.push(parseFloat(j)),O.push(parseFloat(B)));else{var W=parseFloat(j),U=parseFloat(B);a+=(k<5?"calc":"")+"("+(W?"{"+I.length+(D?"!":"")+"}":"0")+M+" + "+(U?"{"+(I.length+(W?1:0))+(D?"!":"")+"}":"0")+H+")",W&&(I.push(W),O.push(0)),U&&(I.push(0),O.push(U))}}else{if(P!==L){k=0;break}a+=P,C++,A++,0===k&&"c"===P||1===k&&"a"===P||2===k&&"l"===P||3===k&&"c"===P||k>=4&&"("===P?k++:(k&&k<5||k>=4&&")"===P&&--k<5)&&(k=0),0===D&&"r"===P||1===D&&"g"===P||2===D&&"b"===P||3===D&&"a"===P||D>=3&&"("===P?(3===D&&"a"===P&&(N=1),D++):N&&","===P?++N>3&&(D=N=0):(N&&D<(N?5:4)||D>=(N?4:3)&&")"===P&&--D<(N?5:4))&&(D=N=0)}}C===v.length&&A===m.length||(E.debug,a=i),a&&(I.length?(E.debug,v=I,m=O,b=x=""):a=i)}a||(y=S(r,v),v=y[0],x=y[1],y=S(r,m),m=y[0].replace(/^([+-\/*])=/,function(t,e){return w=e,""}),b=y[1],v=parseFloat(v)||0,m=parseFloat(m)||0,"%"===b&&(/^(fontSize|lineHeight)$/.test(r)?(m/=100,b="em"):/^scale/.test(r)?(m/=100,b=""):/(Red|Green|Blue)$/i.test(r)&&(m=m/100*255,b="")));if(/[\/*]/.test(w))b=x;else if(x!==b&&0!==v)if(0===m)b=x;else{s=s||function(){var i={myParent:t.parentNode||n.body,position:T.getPropertyValue(t,"position"),fontSize:T.getPropertyValue(t,"fontSize")},r=i.position===F.lastPosition&&i.myParent===F.lastParent,o=i.fontSize===F.lastFontSize;F.lastParent=i.myParent,F.lastPosition=i.position,F.lastFontSize=i.fontSize;var a={};if(o&&r)a.emToPx=F.lastEmToPx,a.percentToPxWidth=F.lastPercentToPxWidth,a.percentToPxHeight=F.lastPercentToPxHeight;else{var s=c&&c.isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");E.init(s),i.myParent.appendChild(s),h.each(["overflow","overflowX","overflowY"],function(t,e){E.CSS.setPropertyValue(s,e,"hidden")}),E.CSS.setPropertyValue(s,"position",i.position),E.CSS.setPropertyValue(s,"fontSize",i.fontSize),E.CSS.setPropertyValue(s,"boxSizing","content-box"),h.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){E.CSS.setPropertyValue(s,e,"100%")}),E.CSS.setPropertyValue(s,"paddingLeft","100em"),a.percentToPxWidth=F.lastPercentToPxWidth=(parseFloat(T.getPropertyValue(s,"width",null,!0))||1)/100,a.percentToPxHeight=F.lastPercentToPxHeight=(parseFloat(T.getPropertyValue(s,"height",null,!0))||1)/100,a.emToPx=F.lastEmToPx=(parseFloat(T.getPropertyValue(s,"paddingLeft"))||1)/100,i.myParent.removeChild(s)}return null===F.remToPx&&(F.remToPx=parseFloat(T.getPropertyValue(n.body,"fontSize"))||16),null===F.vwToPx&&(F.vwToPx=parseFloat(e.innerWidth)/100,F.vhToPx=parseFloat(e.innerHeight)/100),a.remToPx=F.remToPx,a.vwToPx=F.vwToPx,a.vhToPx=F.vhToPx,E.debug,a}();var q=/margin|padding|left|right|width|text|word|letter/i.test(r)||/X$/.test(r)||"x"===r?"x":"y";switch(x){case"%":v*="x"===q?s.percentToPxWidth:s.percentToPxHeight;break;case"px":break;default:v*=s[x+"ToPx"]}switch(b){case"%":v*=1/("x"===q?s.percentToPxWidth:s.percentToPxHeight);break;case"px":break;default:v*=1/s[b+"ToPx"]}}switch(w){case"+":m=v+m;break;case"-":m=v-m;break;case"*":m*=v;break;case"/":m=v/m}u[r]={rootPropertyValue:d,startValue:v,currentValue:v,endValue:m,unitType:b,easing:g},a&&(u[r].pattern=a),E.debug};for(var L in x)if(x.hasOwnProperty(L)){var j=T.Names.camelCase(L),B=function(e,n){var i,o,a;return _.isFunction(e)&&(e=e.call(t,r,I)),_.isArray(e)?(i=e[0],!_.isArray(e[1])&&/^[\d-]/.test(e[1])||_.isFunction(e[1])||T.RegEx.isHex.test(e[1])?a=e[1]:_.isString(e[1])&&!T.RegEx.isHex.test(e[1])&&E.Easings[e[1]]||_.isArray(e[1])?(o=n?e[1]:f(e[1],l.duration),a=e[2]):a=e[1]||e[2]):i=e,n||(o=o||l.easing),_.isFunction(i)&&(i=i.call(t,r,I)),_.isFunction(a)&&(a=a.call(t,r,I)),[i||0,o,a]}(x[L]);if(b(T.Lists.colors,j)){var V=B[0],M=B[1],H=B[2];if(T.RegEx.isHex.test(V)){for(var W=["Red","Green","Blue"],U=T.Values.hexToRgb(V),q=H?T.Values.hexToRgb(H):i,z=0;z<W.length;z++){var $=[U[z]];M&&$.push(M),q!==i&&$.push(q[z]),P(j+W[z],$)}continue}}P(j,B)}u.element=t}u.element&&(T.Values.addClass(t,"velocity-animating"),R.push(u),c=a(t),c&&(""===l.queue&&(c.tweensContainer=u,c.opts=l),c.isAnimating=!0),O===I-1?(E.State.calls.push([R,y,l,null,A.resolver,null,0]),!1===E.State.isTicking&&(E.State.isTicking=!0,d())):O++)}var s,l=h.extend({},E.defaults,S),u={};switch(a(t)===i&&E.init(t),parseFloat(l.delay)&&!1!==l.queue&&h.queue(t,l.queue,function(e){E.velocityQueueEntryFlag=!0;var n=E.State.delayedElements.count++;E.State.delayedElements[n]=t;var i=function(t){return function(){E.State.delayedElements[t]=!1,e()}}(n);a(t).delayBegin=(new Date).getTime(),a(t).delay=parseFloat(l.delay),a(t).delayTimer={setTimeout:setTimeout(e,parseFloat(l.delay)),next:i}}),l.duration.toString().toLowerCase()){case"fast":l.duration=200;break;case"normal":l.duration=w;break;case"slow":l.duration=600;break;default:l.duration=parseFloat(l.duration)||1}if(!1!==E.mock&&(!0===E.mock?l.duration=l.delay=1:(l.duration*=parseFloat(E.mock)||1,l.delay*=parseFloat(E.mock)||1)),l.easing=f(l.easing,l.duration),l.begin&&!_.isFunction(l.begin)&&(l.begin=null),l.progress&&!_.isFunction(l.progress)&&(l.progress=null),l.complete&&!_.isFunction(l.complete)&&(l.complete=null),l.display!==i&&null!==l.display&&(l.display=l.display.toString().toLowerCase(),"auto"===l.display&&(l.display=E.CSS.Values.getDisplayType(t))),l.visibility!==i&&null!==l.visibility&&(l.visibility=l.visibility.toString().toLowerCase()),l.mobileHA=l.mobileHA&&E.State.isMobile&&!E.State.isGingerbread,!1===l.queue)if(l.delay){var c=E.State.delayedElements.count++;E.State.delayedElements[c]=t;var p=function(t){return function(){E.State.delayedElements[t]=!1,o()}}(c);a(t).delayBegin=(new Date).getTime(),a(t).delay=parseFloat(l.delay),a(t).delayTimer={setTimeout:setTimeout(o,parseFloat(l.delay)),next:p}}else o();else h.queue(t,l.queue,function(t,e){if(!0===e)return A.promise&&A.resolver(y),!0;E.velocityQueueEntryFlag=!0,o(t)});""!==l.queue&&"fx"!==l.queue||"inprogress"===h.queue(t)[0]||h.dequeue(t)}var c,m,g,v,y,x,S,C=arguments[0]&&(arguments[0].p||h.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||_.isString(arguments[0].properties));_.isWrapped(this)?(m=!1,v=0,y=this,g=this):(m=!0,v=1,y=C?arguments[0].elements||arguments[0].e:arguments[0]);var A={promise:null,resolver:null,rejecter:null};if(m&&E.Promise&&(A.promise=new E.Promise(function(t,e){A.resolver=t,A.rejecter=e})),C?(x=arguments[0].properties||arguments[0].p,S=arguments[0].options||arguments[0].o):(x=arguments[v],S=arguments[v+1]),!(y=o(y)))return void(A.promise&&(x&&S&&!1===S.promiseRejectEmpty?A.resolver():A.rejecter()));var I=y.length,O=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(x)&&!h.isPlainObject(S)){var k=v+1;S={};for(var D=k;D<arguments.length;D++)_.isArray(arguments[D])||!/^(fast|normal|slow)$/i.test(arguments[D])&&!/^\d/.test(arguments[D])?_.isString(arguments[D])||_.isArray(arguments[D])?S.easing=arguments[D]:_.isFunction(arguments[D])&&(S.complete=arguments[D]):S.duration=arguments[D]}var N;switch(x){case"scroll":N="scroll";break;case"reverse":N="reverse";break;case"pause":var P=(new Date).getTime();return h.each(y,function(t,e){s(e,P)}),h.each(E.State.calls,function(t,e){var n=!1;e&&h.each(e[1],function(t,r){var o=S===i?"":S;return!0!==o&&e[2].queue!==o&&(S!==i||!1!==e[2].queue)||(h.each(y,function(t,i){if(i===r)return e[5]={resume:!1},n=!0,!1}),!n&&void 0)})}),r();case"resume":return h.each(y,function(t,e){l(e,P)}),h.each(E.State.calls,function(t,e){var n=!1;e&&h.each(e[1],function(t,r){var o=S===i?"":S;return!0!==o&&e[2].queue!==o&&(S!==i||!1!==e[2].queue)||(!e[5]||(h.each(y,function(t,i){if(i===r)return e[5].resume=!0,n=!0,!1}),!n&&void 0))})}),r();case"finish":case"finishAll":case"stop":h.each(y,function(t,e){a(e)&&a(e).delayTimer&&(clearTimeout(a(e).delayTimer.setTimeout),a(e).delayTimer.next&&a(e).delayTimer.next(),delete a(e).delayTimer),"finishAll"!==x||!0!==S&&!_.isString(S)||(h.each(h.queue(e,_.isString(S)?S:""),function(t,e){_.isFunction(e)&&e()}),h.queue(e,_.isString(S)?S:"",[]))});var L=[];return h.each(E.State.calls,function(t,e){e&&h.each(e[1],function(n,r){var o=S===i?"":S;if(!0!==o&&e[2].queue!==o&&(S!==i||!1!==e[2].queue))return!0;h.each(y,function(n,i){if(i===r)if((!0===S||_.isString(S))&&(h.each(h.queue(i,_.isString(S)?S:""),function(t,e){_.isFunction(e)&&e(null,!0)}),h.queue(i,_.isString(S)?S:"",[])),"stop"===x){var s=a(i);s&&s.tweensContainer&&!1!==o&&h.each(s.tweensContainer,function(t,e){e.endValue=e.currentValue}),L.push(t)}else"finish"!==x&&"finishAll"!==x||(e[2].duration=1)})})}),"stop"===x&&(h.each(L,function(t,e){p(e,!0)}),A.promise&&A.resolver(y)),r();default:if(!h.isPlainObject(x)||_.isEmptyObject(x)){if(_.isString(x)&&E.Redirects[x]){c=h.extend({},S);var j=c.duration,B=c.delay||0;return!0===c.backwards&&(y=h.extend(!0,[],y).reverse()),h.each(y,function(t,e){parseFloat(c.stagger)?c.delay=B+parseFloat(c.stagger)*t:_.isFunction(c.stagger)&&(c.delay=B+c.stagger.call(e,t,I)),c.drag&&(c.duration=parseFloat(j)||(/^(callout|transition)/.test(x)?1e3:w),c.duration=Math.max(c.duration*(c.backwards?1-t/I:(t+1)/I),.75*c.duration,200)),E.Redirects[x].call(e,e,c||{},t,I,y,A.promise?A:i)}),r()}var V="Velocity: First argument ("+x+") was not a property map, a known action, or a registered redirect. Aborting.";return A.promise?A.rejecter(new Error(V)):e.console,r()}N="start"}var F={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},R=[];h.each(y,function(t,e){_.isNode(e)&&u(e,t)}),c=h.extend({},E.defaults,S),c.loop=parseInt(c.loop,10);var M=2*c.loop-1;if(c.loop)for(var H=0;H<M;H++){var W={delay:c.delay,progress:c.progress};H===M-1&&(W.display=c.display,W.visibility=c.visibility,W.complete=c.complete),t(y,"reverse",W)}return r()};E=h.extend(A,E),E.animate=A;var I=e.requestAnimationFrame||g;if(!E.State.isMobile&&n.hidden!==i){var O=function(){n.hidden?(I=function(t){return setTimeout(function(){t(!0)},16)},d()):I=e.requestAnimationFrame||g};O(),n.addEventListener("visibilitychange",O)}return t.Velocity=E,t!==e&&(t.fn.velocity=A,t.fn.velocity.defaults=E.defaults),h.each(["Down","Up"],function(t,e){E.Redirects["slide"+e]=function(t,n,r,o,a,s){var l=h.extend({},n),u=l.begin,c=l.complete,f={},d={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===i&&(l.display="Down"===e?"inline"===E.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){0===r&&u&&u.call(a,a);for(var n in d)if(d.hasOwnProperty(n)){f[n]=t.style[n];var i=T.getPropertyValue(t,n);d[n]="Down"===e?[i,0]:[0,i]}f.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in f)f.hasOwnProperty(e)&&(t.style[e]=f[e]);r===o-1&&(c&&c.call(a,a),s&&s.resolver(a))},E(t,d,l)}}),h.each(["In","Out"],function(t,e){E.Redirects["fade"+e]=function(t,n,r,o,a,s){var l=h.extend({},n),u=l.complete,c={opacity:"In"===e?1:0};0!==r&&(l.begin=null),l.complete=r!==o-1?null:function(){u&&u.call(a,a),s&&s.resolver(a)},l.display===i&&(l.display="In"===e?"auto":"none"),E(this,c,l)}}),E}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)})},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}n(25),n(20),n(22),n(19),n(18),n(8),n(13),n(16),n(17),n(7);var r=n(2),o=i(r),a=n(10),s=i(a),l=n(3),u=i(l),c=n(11),f=i(c),d=n(12),p=i(d),h=n(1),m=i(h),g=n(21),v=i(g);n(14),n(15),n(9);for(var y in v.default.prototype)m.default[y]=v.default.prototype[y];$(document).ready(function(){var t=$(".js-dropdown"),e=new s.default,n=$('.js-top-menu ul[data-depth="0"]'),i=new o.default(t),r=new p.default(n),a=new u.default,l=new f.default;i.init(),e.init(),r.init(),a.init(),l.init()})},function(t,e){},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(){a.default.each((0,a.default)(u),function(t,e){(0,a.default)(e).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-touchspin js-decrease-product-quantity",min:parseInt((0,a.default)(e).attr("min"),10),max:1e6})}),p.switchErrorStat()}var o=n(0),a=i(o),s=n(1),l=i(s);l.default.cart=l.default.cart||{},l.default.cart.active_inputs=null;var u='input[name="product-quantity-spin"]',c=!1,f=!1,d="";(0,a.default)(document).ready(function(){function t(t){return"on.startupspin"===t||"on.startdownspin"===t}function e(t){return"on.startupspin"===t}function n(t){var e=t.parents(".bootstrap-touchspin").find(h);return e.is(":focus")?null:e}function i(t){var e=t.split("-"),n=void 0,i=void 0,r="";for(n=0;n<e.length;n++)i=e[n],0!==n&&(i=i.substring(0,1).toUpperCase()+i.substring(1)),r+=i;return r}function o(r,o){if(!t(o))return{url:r.attr("href"),type:i(r.data("link-action"))};var a=n(r);if(a){return e(o)?{url:a.data("up-url"),type:"increaseProductQuantity"}:{url:a.data("down-url"),type:"decreaseProductQuantity"}}}function s(t,e,n){return v(),a.default.ajax({url:t,method:"POST",data:e,dataType:"json",beforeSend:function(t){m.push(t)}}).then(function(t){p.checkUpdateOpertation(t),n.val(t.quantity);var e;e=n&&n.dataset?n.dataset:t,l.default.emit("updateCart",{reason:e})}).fail(function(t){l.default.emit("handleError",{eventType:"updateProductQuantityInCart",resp:t})})}function c(t){return{ajax:"1",qty:Math.abs(t),action:"update",op:f(t)}}function f(t){return t>0?"up":"down"}function d(t){var e=(0,a.default)(t.currentTarget),n=e.data("update-url"),i=e.attr("value"),r=e.val();if(r!=parseInt(r)||r<0||isNaN(r))return void e.val(i);var o=r-i;0!==o&&(e.attr("value",r),s(n,c(o),e))}var h=".js-cart-line-product-quantity",m=[];l.default.on("updateCart",function(){(0,a.default)(".quickview").modal("hide")}),l.default.on("updatedCart",function(){r()}),r();var g=(0,a.default)("body"),v=function(){for(var t;m.length>0;)t=m.pop(),t.abort()},y=function(t){return(0,a.default)(t.parents(".bootstrap-touchspin").find("input"))},b=function(t){t.preventDefault();var e=(0,a.default)(t.currentTarget),n=t.currentTarget.dataset,i=o(e,t.namespace),r={ajax:"1",action:"update"};void 0!==i&&(v(),a.default.ajax({url:i.url,method:"POST",data:r,dataType:"json",beforeSend:function(t){m.push(t)}}).then(function(t){p.checkUpdateOpertation(t),y(e).val(t.quantity),l.default.emit("updateCart",{reason:n})}).fail(function(t){l.default.emit("handleError",{eventType:"updateProductInCart",resp:t,cartAction:i.type})}))};g.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',b),g.on("touchspin.on.startdownspin",u,b),g.on("touchspin.on.startupspin",u,b),g.on("focusout keyup",h,function(t){if("keyup"===t.type)return 13===t.keyCode&&d(t),!1;d(t)}),g.on("click",".js-discount .code",function(t){t.stopPropagation();var e=(0,a.default)(t.currentTarget);return(0,a.default)("[name=discount_name]").val(e.text()),!1})});var p={switchErrorStat:function(){var t=(0,a.default)(".checkout a");if(((0,a.default)("#notifications article.alert-danger").length||""!==d&&!c)&&t.addClass("disabled"),""!==d){var e=' <article class="alert alert-danger" role="alert" data-alert="danger"><ul><li>'+d+"</li></ul></article>";(0,a.default)("#notifications .container").html(e),d="",f=!1,c&&t.removeClass("disabled")}else!c&&f&&(c=!1,f=!1,(0,a.default)("#notifications .container").html(""),t.removeClass("disabled"))},checkUpdateOpertation:function(t){c=t.hasOwnProperty("hasError");var e=t.errors||"";d=e instanceof Array?e.join(" "):e,f=!0}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(){0!==(0,a.default)(".js-cancel-address").length&&(0,a.default)(".checkout-step:not(.js-current-step) .step-title").addClass("not-allowed"),(0,a.default)(".js-terms a").on("click",function(t){t.preventDefault();var e=(0,a.default)(t.target).attr("href");e&&(e+="?content_only=1",a.default.get(e,function(t){(0,a.default)("#modal").find(".js-modal-content").html((0,a.default)(t).find(".page-cms").contents())}).fail(function(t){l.default.emit("handleError",{eventType:"clickTerms",resp:t})})),(0,a.default)("#modal").modal("show")}),(0,a.default)(".js-gift-checkbox").on("click",function(t){(0,a.default)("#gift").collapse("toggle")})}var o=n(0),a=i(o),s=n(1),l=i(s);(0,a.default)(document).ready(function(){1===(0,a.default)("body#checkout").length&&r(),l.default.on("updatedDeliveryForm",function(t){void 0!==t.deliveryOption&&0!==t.deliveryOption.length&&((0,a.default)(".carrier-extra-content").hide(),t.deliveryOption.next(".carrier-extra-content").slideDown())})})},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=n(1),o=i(r),a=n(0),s=i(a);o.default.blockcart=o.default.blockcart||{},o.default.blockcart.showModal=function(t){function e(){return(0,s.default)("#blockcart-modal")}var n=e();n.length&&n.remove(),(0,s.default)("body").append(t),n=e(),n.modal("show").on("hidden.bs.modal",function(t){o.default.emit("updateProduct",{reason:t.currentTarget.dataset,event:t})})}},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(o),s=function(){function t(){i(this,t)}return r(t,[{key:"init",value:function(){this.parentFocus(),this.togglePasswordVisibility()}},{key:"parentFocus",value:function(){(0,a.default)(".js-child-focus").focus(function(){(0,a.default)(this).closest(".js-parent-focus").addClass("focus")}),(0,a.default)(".js-child-focus").focusout(function(){(0,a.default)(this).closest(".js-parent-focus").removeClass("focus")})}},{key:"togglePasswordVisibility",value:function(){(0,a.default)('button[data-action="show-password"]').on("click",function(){var t=(0,a.default)(this).closest(".input-group").children("input.js-visible-password");"password"===t.attr("type")?(t.attr("type","text"),(0,a.default)(this).text((0,a.default)(this).data("textHide"))):(t.attr("type","password"),(0,a.default)(this).text((0,a.default)(this).data("textShow")))})}}]),t}();e.default=s,t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(o);n(4);var s=function(){function t(){i(this,t)}return r(t,[{key:"init",value:function(){var t=this,e=(0,a.default)(".js-modal-arrows"),n=(0,a.default)(".js-modal-product-images"),i=(0,a.default)(".on-sale");(0,a.default)("body").on("click",".js-modal-thumb",function(t){(0,a.default)(".js-modal-thumb").hasClass("selected")&&(0,a.default)(".js-modal-thumb").removeClass("selected"),(0,a.default)(t.currentTarget).addClass("selected"),(0,a.default)(".js-modal-product-cover").attr("src",(0,a.default)(t.target).data("image-large-src")),(0,a.default)(".js-modal-product-cover").attr("title",(0,a.default)(t.target).attr("title")),(0,a.default)(".js-modal-product-cover").attr("alt",(0,a.default)(t.target).attr("alt"))}).on("click","aside#thumbnails",function(t){"thumbnails"==t.target.id&&(0,a.default)("#product-modal").modal("hide")}),i.length&&(0,a.default)("#product").length&&(0,a.default)(".new").css("top",i.height()+10),(0,a.default)(".js-modal-product-images li").length<=5?e.css("opacity",".2"):e.on("click",function(e){(0,a.default)(e.target).hasClass("arrow-up")&&n.position().top<0?(t.move("up"),(0,a.default)(".js-modal-arrow-down").css("opacity","1")):(0,a.default)(e.target).hasClass("arrow-down")&&n.position().top+n.height()>(0,a.default)(".js-modal-mask").height()&&(t.move("down"),(0,a.default)(".js-modal-arrow-up").css("opacity","1"))})}},{key:"move",value:function(t){var e=(0,a.default)(".js-modal-product-images"),n=(0,a.default)(".js-modal-product-images li img").height()+10,i=e.position().top;e.velocity({translateY:"up"===t?i+n:i-n},function(){e.position().top>=0?(0,a.default)(".js-modal-arrow-up").css("opacity",".2"):e.position().top+e.height()<=(0,a.default)(".js-modal-mask").height()&&(0,a.default)(".js-modal-arrow-down").css("opacity",".2")})}}]),t}();e.default=s,t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=o,n=a,i=!0,s=u=void 0}},l=n(0),u=i(l),c=n(2),f=i(c),d=function(t){function e(){r(this,e),s(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments)}return o(e,t),a(e,[{key:"init",value:function(){var t=this,n=void 0,i=this;this.el.find("li").hover(function(e){t.el.parent().hasClass("mobile")||(n!==(0,u.default)(e.currentTarget).attr("id")&&(0===(0,u.default)(e.target).data("depth")&&(0,u.default)("#"+n+" .js-sub-menu").hide(),n=(0,u.default)(e.currentTarget).attr("id")),n&&0===(0,u.default)(e.target).data("depth")&&(0,u.default)("#"+n+" .js-sub-menu").css({top:(0,u.default)("#"+n).height()+(0,u.default)("#"+n).position().top}))}),(0,u.default)("#menu-icon").on("click",function(){(0,u.default)("#mobile_top_menu_wrapper").toggle(),i.toggleMobileMenu()}),(0,u.default)(".js-top-menu .category").mouseleave(function(){t.el.parent().hasClass("mobile")}),this.el.on("click",function(e){t.el.parent().hasClass("mobile")||e.stopPropagation()}),prestashop.on("responsive update",function(t){(0,u.default)(".js-sub-menu").removeAttr("style"),i.toggleMobileMenu()}),s(Object.getPrototypeOf(e.prototype),"init",this).call(this)}},{key:"toggleMobileMenu",value:function(){(0,u.default)("#header").toggleClass("is-open"),(0,u.default)("#mobile_top_menu_wrapper").is(":visible")?(0,u.default)("#notifications, #wrapper, #footer").hide():(0,u.default)("#notifications, #wrapper, #footer").show()}}]),e}(f.default);e.default=d,t.exports=e.default},function(t,e,n){"use strict";function i(){(0,a.default)("#order-return-form table thead input[type=checkbox]").on("click",function(){var t=(0,a.default)(this).prop("checked");(0,a.default)("#order-return-form table tbody input[type=checkbox]").each(function(e,n){(0,a.default)(n).prop("checked",t)})})}function r(){(0,a.default)("body#order-detail")&&i()}var o=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(o);(0,a.default)(document).ready(r)},function(t,e,n){"use strict";!function(t){var e=0,n=function(e,n){this.options=n,this.$elementFilestyle=[],this.$element=t(e)};n.prototype={clear:function(){this.$element.val(""),this.$elementFilestyle.find(":text").val(""),this.$elementFilestyle.find(".badge").remove()},destroy:function(){this.$element.removeAttr("style").removeData("filestyle"),this.$elementFilestyle.remove()},disabled:function(t){if(!0===t)this.options.disabled||(this.$element.attr("disabled","true"),this.$elementFilestyle.find("label").attr("disabled","true"),this.options.disabled=!0);else{if(!1!==t)return this.options.disabled;this.options.disabled&&(this.$element.removeAttr("disabled"),this.$elementFilestyle.find("label").removeAttr("disabled"),this.options.disabled=!1)}},buttonBefore:function(t){if(!0===t)this.options.buttonBefore||(this.options.buttonBefore=!0,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else{if(!1!==t)return this.options.buttonBefore;this.options.buttonBefore&&(this.options.buttonBefore=!1,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()))}},icon:function(t){if(!0===t)this.options.icon||(this.options.icon=!0,this.$elementFilestyle.find("label").prepend(this.htmlIcon()));else{if(!1!==t)return this.options.icon;this.options.icon&&(this.options.icon=!1,this.$elementFilestyle.find(".icon-span-filestyle").remove())}},input:function(t){if(!0===t)this.options.input||(this.options.input=!0,this.options.buttonBefore?this.$elementFilestyle.append(this.htmlInput()):this.$elementFilestyle.prepend(this.htmlInput()),this.$elementFilestyle.find(".badge").remove(),this.pushNameFiles(),this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn"));else{if(!1!==t)return this.options.input;if(this.options.input){this.options.input=!1,this.$elementFilestyle.find(":text").remove();var e=this.pushNameFiles();e.length>0&&this.options.badge&&this.$elementFilestyle.find("label").append(' <span class="badge">'+e.length+"</span>"),this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn")}}},size:function(t){if(void 0===t)return this.options.size;var e=this.$elementFilestyle.find("label"),n=this.$elementFilestyle.find("input");e.removeClass("btn-lg btn-sm"),n.removeClass("input-lg input-sm"),"nr"!=t&&(e.addClass("btn-"+t),n.addClass("input-"+t))},placeholder:function(t){if(void 0===t)return this.options.placeholder;this.options.placeholder=t,this.$elementFilestyle.find("input").attr("placeholder",t)},buttonText:function(t){if(void 0===t)return this.options.buttonText;this.options.buttonText=t,this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText)},buttonName:function(t){if(void 0===t)return this.options.buttonName;this.options.buttonName=t,this.$elementFilestyle.find("label").attr({class:"btn "+this.options.buttonName})},iconName:function(t){if(void 0===t)return this.options.iconName;this.$elementFilestyle.find(".icon-span-filestyle").attr({class:"icon-span-filestyle "+this.options.iconName})},htmlIcon:function(){return this.options.icon?'<span class="icon-span-filestyle '+this.options.iconName+'"></span> ':""},htmlInput:function(){return this.options.input?'<input type="text" class="form-control '+("nr"==this.options.size?"":"input-"+this.options.size)+'" placeholder="'+this.options.placeholder+'" disabled> ':""},pushNameFiles:function(){var t="",e=[];void 0===this.$element[0].files?e[0]={name:this.$element[0]&&this.$element[0].value}:e=this.$element[0].files;for(var n=0;n<e.length;n++)t+=e[n].name.split("\\").pop()+", ";return""!==t?this.$elementFilestyle.find(":text").val(t.replace(/\, $/g,"")):this.$elementFilestyle.find(":text").val(""),e},constructor:function(){var n=this,i="",r=n.$element.attr("id"),o="";""!==r&&r||(r="filestyle-"+e,n.$element.attr({id:r}),e++),o='<span class="group-span-filestyle '+(n.options.input?"input-group-btn":"")+'"><label for="'+r+'" class="btn '+n.options.buttonName+" "+("nr"==n.options.size?"":"btn-"+n.options.size)+'" '+(n.options.disabled?'disabled="true"':"")+">"+n.htmlIcon()+'<span class="buttonText">'+n.options.buttonText+"</span></label></span>",i=n.options.buttonBefore?o+n.htmlInput():n.htmlInput()+o,n.$elementFilestyle=t('<div class="bootstrap-filestyle input-group">'+i+"</div>"),n.$elementFilestyle.find(".group-span-filestyle").attr("tabindex","0").keypress(function(t){if(13===t.keyCode||32===t.charCode)return n.$elementFilestyle.find("label").click(),!1}),n.$element.css({position:"absolute",clip:"rect(0px 0px 0px 0px)"}).attr("tabindex","-1").after(n.$elementFilestyle),n.options.disabled&&n.$element.attr("disabled","true"),n.$element.change(function(){var t=n.pushNameFiles();0==n.options.input&&n.options.badge?0==n.$elementFilestyle.find(".badge").length?n.$elementFilestyle.find("label").append(' <span class="badge">'+t.length+"</span>"):0==t.length?n.$elementFilestyle.find(".badge").remove():n.$elementFilestyle.find(".badge").html(t.length):n.$elementFilestyle.find(".badge").remove()}),window.navigator.userAgent.search(/firefox/i)>-1&&n.$elementFilestyle.find("label").click(function(){return n.$element.click(),!1})}};var i=t.fn.filestyle;t.fn.filestyle=function(e,i){var r="",o=this.each(function(){if("file"===t(this).attr("type")){var o=t(this),a=o.data("filestyle"),s=t.extend({},t.fn.filestyle.defaults,e,"object"==typeof e&&e);a||(o.data("filestyle",a=new n(this,s)),a.constructor()),"string"==typeof e&&(r=a[e](i))}});return void 0!==typeof r?r:o},t.fn.filestyle.defaults={buttonText:"Choose file",iconName:"glyphicon glyphicon-folder-open",buttonName:"btn-default",size:"nr",input:!0,badge:!0,icon:!0,buttonBefore:!1,disabled:!1,placeholder:""},t.fn.filestyle.noConflict=function(){return t.fn.filestyle=i,this},t(function(){t(".filestyle").each(function(){var e=t(this),n={input:"false"!==e.attr("data-input"),icon:"false"!==e.attr("data-icon"),buttonBefore:"true"===e.attr("data-buttonBefore"),disabled:"true"===e.attr("data-disabled"),size:e.attr("data-size"),buttonText:e.attr("data-buttonText"),buttonName:e.attr("data-buttonName"),iconName:e.attr("data-iconName"),badge:"false"!==e.attr("data-badge"),placeholder:e.attr("data-placeholder")};e.filestyle(n)})})}(window.jQuery)},function(t,e,n){"use strict";!function(t){t.fn.scrollbox=function(e){var n={linear:!1,startDelay:2,delay:3,step:5,speed:32,switchItems:1,direction:"vertical",distance:"auto",autoPlay:!0,onMouseOverPause:!0,paused:!1,queue:null,listElement:"ul",listItemElement:"li",infiniteLoop:!0,switchAmount:0,afterForward:null,afterBackward:null,triggerStackable:!1};return e=t.extend(n,e),e.scrollOffset="vertical"===e.direction?"scrollTop":"scrollLeft",e.queue&&(e.queue=t("#"+e.queue)),this.each(function(){var n,i,r,o,a,s,l,u,c,f=t(this),d=null,p=null,h=!1,m=0,g=0;e.onMouseOverPause&&(f.bind("mouseover",function(){h=!0}),f.bind("mouseout",function(){h=!1})),n=f.children(e.listElement+":first-child"),!1===e.infiniteLoop&&0===e.switchAmount&&(e.switchAmount=n.children().length),s=function(){if(!h){var r,a,s,l,u;if(r=n.children(e.listItemElement+":first-child"),l="auto"!==e.distance?e.distance:"vertical"===e.direction?r.outerHeight(!0):r.outerWidth(!0),e.linear?s=Math.min(f[0][e.scrollOffset]+e.step,l):(u=Math.max(3,parseInt(.3*(l-f[0][e.scrollOffset]),10)),s=Math.min(f[0][e.scrollOffset]+u,l)),f[0][e.scrollOffset]=s,s>=l){for(a=0;a<e.switchItems;a++)e.queue&&e.queue.find(e.listItemElement).length>0?(n.append(e.queue.find(e.listItemElement)[0]),n.children(e.listItemElement+":first-child").remove()):n.append(n.children(e.listItemElement+":first-child")),++m;if(f[0][e.scrollOffset]=0,clearInterval(d),d=null,t.isFunction(e.afterForward)&&e.afterForward.call(f,{switchCount:m,currentFirstChild:n.children(e.listItemElement+":first-child")}),e.triggerStackable&&0!==g)return void i();if(!1===e.infiniteLoop&&m>=e.switchAmount)return;e.autoPlay&&(p=setTimeout(o,1e3*e.delay))}}},l=function(){if(!h){var r,a,s,l,u;if(0===f[0][e.scrollOffset]){for(a=0;a<e.switchItems;a++)n.children(e.listItemElement+":last-child").insertBefore(n.children(e.listItemElement+":first-child"));r=n.children(e.listItemElement+":first-child"),l="auto"!==e.distance?e.distance:"vertical"===e.direction?r.height():r.width(),f[0][e.scrollOffset]=l}if(e.linear?s=Math.max(f[0][e.scrollOffset]-e.step,0):(u=Math.max(3,parseInt(.3*f[0][e.scrollOffset],10)),s=Math.max(f[0][e.scrollOffset]-u,0)),f[0][e.scrollOffset]=s,0===s){if(--m,clearInterval(d),d=null,t.isFunction(e.afterBackward)&&e.afterBackward.call(f,{switchCount:m,currentFirstChild:n.children(e.listItemElement+":first-child")}),e.triggerStackable&&0!==g)return void i();e.autoPlay&&(p=setTimeout(o,1e3*e.delay))}}},i=function(){0!==g&&(g>0?(g--,p=setTimeout(o,0)):(g++,p=setTimeout(r,0)))},o=function(){clearInterval(d),d=setInterval(s,e.speed)},r=function(){clearInterval(d),d=setInterval(l,e.speed)},u=function(){e.autoPlay=!0,h=!1,clearInterval(d),d=setInterval(s,e.speed)},c=function(){h=!0},a=function(t){e.delay=t||e.delay,clearTimeout(p),e.autoPlay&&(p=setTimeout(o,1e3*e.delay))},e.autoPlay&&(p=setTimeout(o,1e3*e.startDelay)),f.bind("resetClock",function(t){a(t)}),f.bind("forward",function(){e.triggerStackable?null!==d?g++:o():(clearTimeout(p),o())}),f.bind("backward",function(){e.triggerStackable?null!==d?g--:r():(clearTimeout(p),r())}),f.bind("pauseHover",function(){c()}),f.bind("forwardHover",function(){u()}),f.bind("speedUp",function(t,n){"undefined"===n&&(n=Math.max(1,parseInt(e.speed/2,10))),e.speed=n}),f.bind("speedDown",function(t,n){"undefined"===n&&(n=2*e.speed),e.speed=n}),f.bind("updateConfig",function(n,i){e=t.extend(e,i)})})}}(jQuery)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){(0,a.default)("#search_filters").replaceWith(t.rendered_facets),(0,a.default)("#js-active-search-filters").replaceWith(t.rendered_active_filters),(0,a.default)("#js-product-list-top").replaceWith(t.rendered_products_top),(0,a.default)("#js-product-list").replaceWith(t.rendered_products),(0,a.default)("#js-product-list-bottom").replaceWith(t.rendered_products_bottom),t.rendered_products_header&&(0,a.default)("#js-product-list-header").replaceWith(t.rendered_products_header),(new c.default).init()}var o=n(0),a=i(o),s=n(1),l=i(s);n(4);var u=n(3),c=i(u);(0,a.default)(document).ready(function(){l.default.on("clickQuickView",function(e){var n={action:"quickview",id_product:e.dataset.idProduct,id_product_attribute:e.dataset.idProductAttribute};a.default.post(l.default.urls.pages.product,n,null,"json").then(function(e){(0,a.default)("body").append(e.quickview_html);var n=(0,a.default)("#quickview-modal-"+e.product.id+"-"+e.product.id_product_attribute);n.modal("show"),t(n),n.on("hidden.bs.modal",function(){n.remove()})}).fail(function(t){l.default.emit("handleError",{eventType:"clickQuickView",resp:t})})});var t=function(t){var n=(0,a.default)(".js-arrows"),i=t.find(".js-qv-product-images");(0,a.default)(".js-thumb").on("click",function(t){(0,a.default)(".js-thumb").hasClass("selected")&&(0,a.default)(".js-thumb").removeClass("selected"),(0,a.default)(t.currentTarget).addClass("selected"),(0,a.default)(".js-qv-product-cover").attr("src",(0,a.default)(t.target).data("image-large-src"))}),i.find("li").length<=4?n.hide():n.on("click",function(t){(0,a.default)(t.target).hasClass("arrow-up")&&(0,a.default)(".js-qv-product-images").position().top<0?(e("up"),(0,a.default)(".arrow-down").css("opacity","1")):(0,a.default)(t.target).hasClass("arrow-down")&&i.position().top+i.height()>(0,a.default)(".js-qv-mask").height()&&(e("down"),(0,a.default)(".arrow-up").css("opacity","1"))}),t.find("#quantity_wanted").TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:1,max:1e6})},e=function(t){var e=(0,a.default)(".js-qv-product-images"),n=(0,a.default)(".js-qv-product-images li img").height()+20,i=e.position().top;e.velocity({translateY:"up"===t?i+n:i-n},function(){e.position().top>=0?(0,a.default)(".arrow-up").css("opacity",".2"):e.position().top+e.height()<=(0,a.default)(".js-qv-mask").height()&&(0,a.default)(".arrow-down").css("opacity",".2")})};(0,a.default)("body").on("click","#search_filter_toggler",function(){(0,a.default)("#search_filters_wrapper").removeClass("hidden-sm-down"),(0,a.default)("#content-wrapper").addClass("hidden-sm-down"),(0,a.default)("#footer").addClass("hidden-sm-down")}),(0,a.default)("#search_filter_controls .clear").on("click",function(){(0,a.default)("#search_filters_wrapper").addClass("hidden-sm-down"),(0,a.default)("#content-wrapper").removeClass("hidden-sm-down"),(0,a.default)("#footer").removeClass("hidden-sm-down")}),(0,a.default)("#search_filter_controls .ok").on("click",function(){(0,a.default)("#search_filters_wrapper").addClass("hidden-sm-down"),(0,a.default)("#content-wrapper").removeClass("hidden-sm-down"),(0,a.default)("#footer").removeClass("hidden-sm-down")});var n=function(t){if(void 0!==t.target.dataset.searchUrl)return t.target.dataset.searchUrl;if(void 0===(0,a.default)(t.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return(0,a.default)(t.target).parent()[0].dataset.searchUrl};(0,a.default)("body").on("change","#search_filters input[data-search-url]",function(t){l.default.emit("updateFacets",n(t))}),(0,a.default)("body").on("click",".js-search-filters-clear-all",function(t){l.default.emit("updateFacets",n(t))}),(0,a.default)("body").on("click",".js-search-link",function(t){t.preventDefault(),l.default.emit("updateFacets",(0,a.default)(t.target).closest("a").get(0).href)}),(0,a.default)("body").on("change","#search_filters select",function(t){var e=(0,a.default)(t.target).closest("form");l.default.emit("updateFacets","?"+e.serialize())}),l.default.on("updateProductList",function(t){r(t)})})},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=n(0),o=i(r),a=n(1),s=i(a);(0,o.default)(document).ready(function(){function t(){(0,o.default)(".js-thumb").on("click",function(t){(0,o.default)(".js-modal-product-cover").attr("src",(0,o.default)(t.target).data("image-large-src")),(0,o.default)(".selected").removeClass("selected"),(0,o.default)(t.target).addClass("selected"),(0,o.default)(".js-qv-product-cover").prop("src",(0,o.default)(t.currentTarget).data("image-large-src"))})}function e(){(0,o.default)("#main .js-qv-product-images li").length>2?((0,o.default)("#main .js-qv-mask").addClass("scroll"),(0,o.default)(".scroll-box-arrows").addClass("scroll"),(0,o.default)("#main .js-qv-mask").scrollbox({direction:"h",distance:113,autoPlay:!1}),(0,o.default)(".scroll-box-arrows .left").click(function(){(0,o.default)("#main .js-qv-mask").trigger("backward")}),(0,o.default)(".scroll-box-arrows .right").click(function(){(0,o.default)("#main .js-qv-mask").trigger("forward")})):((0,o.default)("#main .js-qv-mask").removeClass("scroll"),(0,o.default)(".scroll-box-arrows").removeClass("scroll"))}function n(){(0,o.default)(".js-file-input").on("change",function(t){var e=void 0,n=void 0;(e=(0,o.default)(t.currentTarget)[0])&&(n=e.files[0])&&(0,o.default)(e).prev().text(n.name)})}!function(){var t=(0,o.default)("#quantity_wanted");t.TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(t.attr("min"),10),max:1e6}),(0,o.default)("body").on("change keyup","#quantity_wanted",function(t){(0,o.default)(t.currentTarget).trigger("touchspin.stopspin"),s.default.emit("updateProduct",{eventType:"updatedProductQuantity",event:t})})}(),n(),t(),e(),s.default.on("updatedProduct",function(i){if(n(),t(),i&&i.product_minimal_quantity){var r=parseInt(i.product_minimal_quantity,10);(0,o.default)("#quantity_wanted").trigger("touchspin.updatesettings",{min:r})}e(),(0,o.default)((0,o.default)(".tabs .nav-link.active").attr("href")).addClass("active").removeClass("fade"),(0,o.default)(".js-product-images-modal").replaceWith(i.product_images_modal)})})},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n=e.children().detach();e.empty().append(t.children().detach()),t.append(n)}function o(){u.default.responsive.mobile?(0,s.default)("*[id^='_desktop_']").each(function(t,e){var n=(0,s.default)("#"+e.id.replace("_desktop_","_mobile_"));n.length&&r((0,s.default)(e),n)}):(0,s.default)("*[id^='_mobile_']").each(function(t,e){var n=(0,s.default)("#"+e.id.replace("_mobile_","_desktop_"));n.length&&r((0,s.default)(e),n)}),u.default.emit("responsive update",{mobile:u.default.responsive.mobile})}var a=n(0),s=i(a),l=n(1),u=i(l);u.default.responsive=u.default.responsive||{},u.default.responsive.current_width=window.innerWidth,u.default.responsive.min_width=768,u.default.responsive.mobile=u.default.responsive.current_width<u.default.responsive.min_width,(0,s.default)(window).on("resize",function(){var t=u.default.responsive.current_width,e=u.default.responsive.min_width,n=window.innerWidth,i=t>=e&&n<e||t<e&&n>=e;u.default.responsive.current_width=n,u.default.responsive.mobile=u.default.responsive.current_width<u.default.responsive.min_width,i&&o()}),(0,s.default)(document).ready(function(){u.default.responsive.mobile&&o()})},function(t,e,n){"use strict";!function(t){function e(t,e){return t+".touchspin_"+e}function n(n,i){return t.map(n,function(t){return e(t,i)})}var i=0;t.fn.TouchSpin=function(e){if("destroy"===e)return void this.each(function(){var e=t(this),i=e.data();t(document).off(n(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],i.spinnerid).join(" "))});var r={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},o={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){function a(){""!==T.initval&&""===L.val()&&L.val(T.initval)}function s(t){c(t),b();var e=I.input.val();""!==e&&(e=Number(I.input.val()),I.input.val(e.toFixed(T.decimals)))}function l(){T=t.extend({},r,j,u(),e)}function u(){var e={};return t.each(o,function(t,n){var i="bts-"+n;L.is("[data-"+i+"]")&&(e[t]=L.data(i))}),e}function c(e){T=t.extend({},T,e)}function f(){var t=L.val(),e=L.parent();""!==t&&(t=Number(t).toFixed(T.decimals)),L.data("initvalue",t).val(t),L.addClass("form-control"),e.hasClass("input-group")?d(e):p()}function d(e){e.addClass("bootstrap-touchspin");var n,i,r=L.prev(),o=L.next(),a='<span class="input-group-addon bootstrap-touchspin-prefix">'+T.prefix+"</span>",s='<span class="input-group-addon bootstrap-touchspin-postfix">'+T.postfix+"</span>";r.hasClass("input-group-btn")?(n='<button class="'+T.buttondown_class+' bootstrap-touchspin-down" type="button">'+T.buttondown_txt+"</button>",r.append(n)):(n='<span class="input-group-btn"><button class="'+T.buttondown_class+' bootstrap-touchspin-down" type="button">'+T.buttondown_txt+"</button></span>",t(n).insertBefore(L)),o.hasClass("input-group-btn")?(i='<button class="'+T.buttonup_class+' bootstrap-touchspin-up" type="button">'+T.buttonup_txt+"</button>",o.prepend(i)):(i='<span class="input-group-btn"><button class="'+T.buttonup_class+' bootstrap-touchspin-up" type="button">'+T.buttonup_txt+"</button></span>",t(i).insertAfter(L)),t(a).insertBefore(L),t(s).insertAfter(L),A=e}function p(){var e;e=T.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+T.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+T.postfix+'</span><span class="input-group-btn-vertical"><button class="'+T.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+T.verticalupclass+'"></i></button><button class="'+T.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+T.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+T.buttondown_class+' bootstrap-touchspin-down" type="button">'+T.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+T.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+T.postfix+'</span><span class="input-group-btn"><button class="'+T.buttonup_class+' bootstrap-touchspin-up" type="button">'+T.buttonup_txt+"</button></span></div>",A=t(e).insertBefore(L),t(".bootstrap-touchspin-prefix",A).after(L),L.hasClass("input-sm")?A.addClass("input-group-sm"):L.hasClass("input-lg")&&A.addClass("input-group-lg")}function h(){I={down:t(".bootstrap-touchspin-down",A),up:t(".bootstrap-touchspin-up",A),input:t("input",A),prefix:t(".bootstrap-touchspin-prefix",A).addClass(T.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",A).addClass(T.postfix_extraclass)}}function m(){""===T.prefix&&I.prefix.hide(),""===T.postfix&&I.postfix.hide()}function g(){L.on("keydown",function(t){var e=t.keyCode||t.which;38===e?("up"!==V&&(x(),E()),t.preventDefault()):40===e&&("down"!==V&&(w(),S()),t.preventDefault())}),L.on("keyup",function(t){var e=t.keyCode||t.which;38===e?C():40===e&&C()}),L.on("blur",function(){b()}),I.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==V&&(w(),S()),t.preventDefault())}),I.down.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||C()}),I.up.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==V&&(x(),E()),t.preventDefault())}),I.up.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||C()}),I.down.on("mousedown.touchspin",function(t){I.down.off("touchstart.touchspin"),L.is(":disabled")||(w(),S(),t.preventDefault(),t.stopPropagation())}),I.down.on("touchstart.touchspin",function(t){I.down.off("mousedown.touchspin"),L.is(":disabled")||(w(),S(),t.preventDefault(),t.stopPropagation())}),I.up.on("mousedown.touchspin",function(t){I.up.off("touchstart.touchspin"),L.is(":disabled")||(x(),E(),t.preventDefault(),t.stopPropagation())}),I.up.on("touchstart.touchspin",function(t){I.up.off("mousedown.touchspin"),L.is(":disabled")||(x(),E(),t.preventDefault(),t.stopPropagation())}),I.up.on("mouseout touchleave touchend touchcancel",function(t){V&&(t.stopPropagation(),C())}),I.down.on("mouseout touchleave touchend touchcancel",function(t){V&&(t.stopPropagation(),C())}),I.down.on("mousemove touchmove",function(t){V&&(t.stopPropagation(),t.preventDefault())}),I.up.on("mousemove touchmove",function(t){V&&(t.stopPropagation(),t.preventDefault())}),t(document).on(n(["mouseup","touchend","touchcancel"],i).join(" "),function(t){V&&(t.preventDefault(),C())}),t(document).on(n(["mousemove","touchmove","scroll","scrollstart"],i).join(" "),function(t){V&&(t.preventDefault(),C())}),L.on("mousewheel DOMMouseScroll",function(t){if(T.mousewheel&&L.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?w():x()}})}function v(){L.on("touchspin.uponce",function(){C(),x()}),L.on("touchspin.downonce",function(){C(),w()}),L.on("touchspin.startupspin",function(){E()}),L.on("touchspin.startdownspin",function(){S()}),L.on("touchspin.stopspin",function(){C()}),L.on("touchspin.updatesettings",function(t,e){s(e)})}function y(t){switch(T.forcestepdivisibility){case"round":return(Math.round(t/T.step)*T.step).toFixed(T.decimals);case"floor":return(Math.floor(t/T.step)*T.step).toFixed(T.decimals);case"ceil":return(Math.ceil(t/T.step)*T.step).toFixed(T.decimals);default:return t}}function b(){var t,e,n;if(""===(t=L.val()))return void(""!==T.replacementval&&(L.val(T.replacementval),L.trigger("change")));T.decimals>0&&"."===t||(e=parseFloat(t),isNaN(e)&&(e=""!==T.replacementval?T.replacementval:0),n=e,e.toString()!==t&&(n=e),e<T.min&&(n=T.min),e>T.max&&(n=T.max),n=y(n),Number(t).toString()!==n.toString()&&(L.val(n),L.trigger("change")))}function _(){if(T.booster){var t=Math.pow(2,Math.floor(B/T.boostat))*T.step;return T.maxboostedstep&&t>T.maxboostedstep&&(t=T.maxboostedstep,O=Math.round(O/t)*t),Math.max(T.step,t)}return T.step}function x(){b(),O=parseFloat(I.input.val()),isNaN(O)&&(O=0);var t=O,e=_();O+=e,O>T.max&&(O=T.max,L.trigger("touchspin.on.max"),C()),I.input.val(Number(O).toFixed(T.decimals)),t!==O&&L.trigger("change")}function w(){b(),O=parseFloat(I.input.val()),isNaN(O)&&(O=0);var t=O,e=_();O-=e,O<T.min&&(O=T.min,L.trigger("touchspin.on.min"),C()),I.input.val(O.toFixed(T.decimals)),t!==O&&L.trigger("change")}function S(){C(),B=0,V="down",L.trigger("touchspin.on.startspin"),L.trigger("touchspin.on.startdownspin"),N=setTimeout(function(){k=setInterval(function(){B++,w()},T.stepinterval)},T.stepintervaldelay)}function E(){C(),B=0,V="up",L.trigger("touchspin.on.startspin"),L.trigger("touchspin.on.startupspin"),P=setTimeout(function(){D=setInterval(function(){B++,x()},T.stepinterval)},T.stepintervaldelay)}function C(){switch(clearTimeout(N),clearTimeout(P),clearInterval(k),clearInterval(D),V){case"up":L.trigger("touchspin.on.stopupspin"),L.trigger("touchspin.on.stopspin");break;case"down":L.trigger("touchspin.on.stopdownspin"),L.trigger("touchspin.on.stopspin")}B=0,V=!1}var T,A,I,O,k,D,N,P,L=t(this),j=L.data(),B=0,V=!1;!function(){L.data("alreadyinitialized")||(L.data("alreadyinitialized",!0),i+=1,L.data("spinnerid",i),L.is("input")&&(l(),a(),b(),f(),h(),m(),g(),v(),I.input.css("display","block")))}()})}}(jQuery)},function(t,e,n){"use strict";if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(jQuery),function(){function t(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(t){function e(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function n(t){return(t[0]||t).nodeType}function i(){return{bindType:a.end,delegateType:a.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function r(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in s)if(void 0!==t.style[e])return{end:s[e]};return!1}function o(e){var n=this,i=!1;return t(this).one(l.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||l.triggerTransitionEnd(n)},e),this}var a=!1,s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");return e||(e=t.getAttribute("href")||"",e=/^#[a-z]/i.test(e)?e:null),e},reflow:function(t){new Function("bs","return bs")(t.offsetHeight)},triggerTransitionEnd:function(e){t(e).trigger(a.end)},supportsTransitionEnd:function(){return Boolean(a)},typeCheckConfig:function(t,i,r){for(var o in r)if(r.hasOwnProperty(o)){var a=r[o],s=i[o],l=void 0;if(l=s&&n(s)?"element":e(s),!new RegExp(a).test(l))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+l+'" but expected type "'+a+'".')}}};return function(){a=r(),t.fn.emulateTransitionEnd=o,l.supportsTransitionEnd()&&(t.event.special[l.TRANSITION_END]=i())}(),l}(jQuery),a=(function(t){var e="alert",i="bs.alert",a="."+i,s=t.fn[e],l={DISMISS:'[data-dismiss="alert"]'},u={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},c={ALERT:"alert",FADE:"fade",IN:"in"},f=function(){function e(t){n(this,e),this._element=t}return e.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.prototype.dispose=function(){t.removeData(this._element,i),this._element=null},e.prototype._getRootElement=function(e){var n=o.getSelectorFromElement(e),i=!1;return n&&(i=t(n)[0]),i||(i=t(e).closest("."+c.ALERT)[0]),i},e.prototype._triggerCloseEvent=function(e){var n=t.Event(u.CLOSE);return t(e).trigger(n),n},e.prototype._removeElement=function(e){return t(e).removeClass(c.IN),o.supportsTransitionEnd()&&t(e).hasClass(c.FADE)?void t(e).one(o.TRANSITION_END,t.proxy(this._destroyElement,this,e)).emulateTransitionEnd(150):void this._destroyElement(e)},e.prototype._destroyElement=function(e){t(e).detach().trigger(u.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var r=t(this),o=r.data(i);o||(o=new e(this),r.data(i,o)),"close"===n&&o[n](this)})},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),e}();t(document).on(u.CLICK_DATA_API,l.DISMISS,f._handleDismiss(new f)),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=s,f._jQueryInterface}}(jQuery),function(t){var e="button",i="bs.button",o="."+i,a=".data-api",s=t.fn[e],l={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},c={CLICK_DATA_API:"click"+o+a,FOCUS_BLUR_DATA_API:"focus"+o+a+" blur"+o+a},f=function(){function e(t){n(this,e),this._element=t}return e.prototype.toggle=function(){var e=!0,n=t(this._element).closest(u.DATA_TOGGLE)[0];if(n){var i=t(this._element).find(u.INPUT)[0];if(i){if("radio"===i.type)if(i.checked&&t(this._element).hasClass(l.ACTIVE))e=!1;else{var r=t(n).find(u.ACTIVE)[0];r&&t(r).removeClass(l.ACTIVE)}e&&(i.checked=!t(this._element).hasClass(l.ACTIVE),t(this._element).trigger("change")),i.focus()}}else this._element.setAttribute("aria-pressed",!t(this._element).hasClass(l.ACTIVE));e&&t(this._element).toggleClass(l.ACTIVE)},e.prototype.dispose=function(){t.removeData(this._element,i),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data(i);r||(r=new e(this),t(this).data(i,r)),"toggle"===n&&r[n]()})},r(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),e}();t(document).on(c.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var n=e.target;t(n).hasClass(l.BUTTON)||(n=t(n).closest(u.BUTTON)),f._jQueryInterface.call(t(n),"toggle")}).on(c.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(e){var n=t(e.target).closest(u.BUTTON)[0];t(n).toggleClass(l.FOCUS,/^focus(in)?$/.test(e.type))}),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=s,f._jQueryInterface}}(jQuery),function(t){var e="carousel",a="bs.carousel",s="."+a,l=".data-api",u=t.fn[e],c={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},f={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},d={NEXT:"next",PREVIOUS:"prev"},p={SLIDE:"slide"+s,SLID:"slid"+s,KEYDOWN:"keydown"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s,LOAD_DATA_API:"load"+s+l,CLICK_DATA_API:"click"+s+l},h={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"right",LEFT:"left",ITEM:"carousel-item"},m={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".next, .prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},g=function(){function l(e,i){n(this,l),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(i),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(m.INDICATORS)[0],this._addEventListeners()}return l.prototype.next=function(){this._isSliding||this._slide(d.NEXT)},l.prototype.nextWhenVisible=function(){document.hidden||this.next()},l.prototype.prev=function(){this._isSliding||this._slide(d.PREVIOUS)},l.prototype.pause=function(e){e||(this._isPaused=!0),t(this._element).find(m.NEXT_PREV)[0]&&o.supportsTransitionEnd()&&(o.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.prototype.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval(t.proxy(document.visibilityState?this.nextWhenVisible:this.next,this),this._config.interval))},l.prototype.to=function(e){var n=this;this._activeElement=t(this._element).find(m.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding)return void t(this._element).one(p.SLID,function(){return n.to(e)});if(i===e)return this.pause(),void this.cycle();var r=e>i?d.NEXT:d.PREVIOUS;this._slide(r,this._items[e])}},l.prototype.dispose=function(){t(this._element).off(s),t.removeData(this._element,a),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},l.prototype._getConfig=function(n){return n=t.extend({},c,n),o.typeCheckConfig(e,n,f),n},l.prototype._addEventListeners=function(){this._config.keyboard&&t(this._element).on(p.KEYDOWN,t.proxy(this._keydown,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||t(this._element).on(p.MOUSEENTER,t.proxy(this.pause,this)).on(p.MOUSELEAVE,t.proxy(this.cycle,this))},l.prototype._keydown=function(t){if(t.preventDefault(),!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}},l.prototype._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(m.ITEM)),this._items.indexOf(e)},l.prototype._getItemByDirection=function(t,e){var n=t===d.NEXT,i=t===d.PREVIOUS,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var a=t===d.PREVIOUS?-1:1,s=(r+a)%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},l.prototype._triggerSlideEvent=function(e,n){var i=t.Event(p.SLIDE,{relatedTarget:e,direction:n});return t(this._element).trigger(i),i},l.prototype._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(m.ACTIVE).removeClass(h.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(h.ACTIVE)}},l.prototype._slide=function(e,n){var i=this,r=t(this._element).find(m.ACTIVE_ITEM)[0],a=n||r&&this._getItemByDirection(e,r),s=Boolean(this._interval),l=e===d.NEXT?h.LEFT:h.RIGHT;if(a&&t(a).hasClass(h.ACTIVE))return void(this._isSliding=!1);if(!this._triggerSlideEvent(a,l).isDefaultPrevented()&&r&&a){this._isSliding=!0,s&&this.pause(),this._setActiveIndicatorElement(a);var u=t.Event(p.SLID,{relatedTarget:a,direction:l});o.supportsTransitionEnd()&&t(this._element).hasClass(h.SLIDE)?(t(a).addClass(e),o.reflow(a),t(r).addClass(l),t(a).addClass(l),t(r).one(o.TRANSITION_END,function(){t(a).removeClass(l).removeClass(e),t(a).addClass(h.ACTIVE),t(r).removeClass(h.ACTIVE).removeClass(e).removeClass(l),i._isSliding=!1,setTimeout(function(){return t(i._element).trigger(u)},0)}).emulateTransitionEnd(600)):(t(r).removeClass(h.ACTIVE),t(a).addClass(h.ACTIVE),this._isSliding=!1,t(this._element).trigger(u)),s&&this.cycle()}},l._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(a),r=t.extend({},c,t(this).data());"object"===(void 0===e?"undefined":i(e))&&t.extend(r,e);var o="string"==typeof e?e:r.slide;if(n||(n=new l(this,r),t(this).data(a,n)),"number"==typeof e)n.to(e);else if("string"==typeof o){if(void 0===n[o])throw new Error('No method named "'+o+'"');n[o]()}else r.interval&&(n.pause(),n.cycle())})},l._dataApiClickHandler=function(e){var n=o.getSelectorFromElement(this);if(n){var i=t(n)[0];if(i&&t(i).hasClass(h.CAROUSEL)){var r=t.extend({},t(i).data(),t(this).data()),s=this.getAttribute("data-slide-to");s&&(r.interval=!1),l._jQueryInterface.call(t(i),r),s&&t(i).data(a).to(s),e.preventDefault()}}},r(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return c}}]),l}();t(document).on(p.CLICK_DATA_API,m.DATA_SLIDE,g._dataApiClickHandler),t(window).on(p.LOAD_DATA_API,function(){t(m.DATA_RIDE).each(function(){var e=t(this);g._jQueryInterface.call(e,e.data())})}),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=u,g._jQueryInterface}}(jQuery),function(t){var e="collapse",a="bs.collapse",s="."+a,l=t.fn[e],u={toggle:!0,parent:""},c={toggle:"boolean",parent:"string"},f={SHOW:"show"+s,SHOWN:"shown"+s,HIDE:"hide"+s,HIDDEN:"hidden"+s,CLICK_DATA_API:"click"+s+".data-api"},d={IN:"in",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},p={WIDTH:"width",HEIGHT:"height"},h={ACTIVES:".card > .in, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},m=function(){function s(e,i){n(this,s),this._isTransitioning=!1,this._element=e,this._config=this._getConfig(i),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return s.prototype.toggle=function(){t(this._element).hasClass(d.IN)?this.hide():this.show()},s.prototype.show=function(){var e=this;if(!this._isTransitioning&&!t(this._element).hasClass(d.IN)){var n=void 0,i=void 0;if(this._parent&&(n=t.makeArray(t(h.ACTIVES)),n.length||(n=null)),!(n&&(i=t(n).data(a))&&i._isTransitioning)){var r=t.Event(f.SHOW);if(t(this._element).trigger(r),!r.isDefaultPrevented()){n&&(s._jQueryInterface.call(t(n),"hide"),i||t(n).data(a,null));var l=this._getDimension();t(this._element).removeClass(d.COLLAPSE).addClass(d.COLLAPSING),this._element.style[l]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&t(this._triggerArray).removeClass(d.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){t(e._element).removeClass(d.COLLAPSING).addClass(d.COLLAPSE).addClass(d.IN),e._element.style[l]="",e.setTransitioning(!1),t(e._element).trigger(f.SHOWN)};if(!o.supportsTransitionEnd())return void u();var c=l[0].toUpperCase()+l.slice(1),p="scroll"+c;t(this._element).one(o.TRANSITION_END,u).emulateTransitionEnd(600),this._element.style[l]=this._element[p]+"px"}}}},s.prototype.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(d.IN)){var n=t.Event(f.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension(),r=i===p.WIDTH?"offsetWidth":"offsetHeight";this._element.style[i]=this._element[r]+"px",o.reflow(this._element),t(this._element).addClass(d.COLLAPSING).removeClass(d.COLLAPSE).removeClass(d.IN),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&t(this._triggerArray).addClass(d.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var a=function(){e.setTransitioning(!1),t(e._element).removeClass(d.COLLAPSING).addClass(d.COLLAPSE).trigger(f.HIDDEN)};return this._element.style[i]="",o.supportsTransitionEnd()?void t(this._element).one(o.TRANSITION_END,a).emulateTransitionEnd(600):void a()}}},s.prototype.setTransitioning=function(t){this._isTransitioning=t},s.prototype.dispose=function(){t.removeData(this._element,a),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s.prototype._getConfig=function(n){return n=t.extend({},u,n),n.toggle=Boolean(n.toggle),o.typeCheckConfig(e,n,c),n},s.prototype._getDimension=function(){return t(this._element).hasClass(p.WIDTH)?p.WIDTH:p.HEIGHT},s.prototype._getParent=function(){var e=this,n=t(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(i).each(function(t,n){e._addAriaAndCollapsedClass(s._getTargetFromElement(n),[n])}),n},s.prototype._addAriaAndCollapsedClass=function(e,n){if(e){var i=t(e).hasClass(d.IN);e.setAttribute("aria-expanded",i),n.length&&t(n).toggleClass(d.COLLAPSED,!i).attr("aria-expanded",i)}},s._getTargetFromElement=function(e){var n=o.getSelectorFromElement(e);return n?t(n)[0]:null},s._jQueryInterface=function(e){return this.each(function(){var n=t(this),r=n.data(a),o=t.extend({},u,n.data(),"object"===(void 0===e?"undefined":i(e))&&e);if(!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||(r=new s(this,o),n.data(a,r)),"string"==typeof e){if(void 0===r[e])throw new Error('No method named "'+e+'"');r[e]()}})},r(s,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return u}}]),s}();t(document).on(f.CLICK_DATA_API,h.DATA_TOGGLE,function(e){e.preventDefault();var n=m._getTargetFromElement(this),i=t(n).data(a),r=i?"toggle":t(this).data();m._jQueryInterface.call(t(n),r)}),t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=l,m._jQueryInterface}}(jQuery),function(t){var e="dropdown",i="bs.dropdown",a="."+i,s=".data-api",l=t.fn[e],u={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK:"click"+a,CLICK_DATA_API:"click"+a+s,KEYDOWN_DATA_API:"keydown"+a+s},c={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",OPEN:"open"},f={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},d=function(){function e(t){n(this,e),this._element=t,this._addEventListeners()}return e.prototype.toggle=function(){if(this.disabled||t(this).hasClass(c.DISABLED))return!1;var n=e._getParentFromElement(this),i=t(n).hasClass(c.OPEN);if(e._clearMenus(),i)return!1;if("ontouchstart"in document.documentElement&&!t(n).closest(f.NAVBAR_NAV).length){var r=document.createElement("div");r.className=c.BACKDROP,t(r).insertBefore(this),t(r).on("click",e._clearMenus)}var o={relatedTarget:this},a=t.Event(u.SHOW,o);return t(n).trigger(a),!a.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),t(n).toggleClass(c.OPEN),t(n).trigger(t.Event(u.SHOWN,o)),!1)},e.prototype.dispose=function(){t.removeData(this._element,i),t(this._element).off(a),this._element=null},e.prototype._addEventListeners=function(){t(this._element).on(u.CLICK,this.toggle)},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data(i);if(r||t(this).data(i,r=new e(this)),"string"==typeof n){if(void 0===r[n])throw new Error('No method named "'+n+'"');r[n].call(this)}})},e._clearMenus=function(n){if(!n||3!==n.which){var i=t(f.BACKDROP)[0];i&&i.parentNode.removeChild(i);for(var r=t.makeArray(t(f.DATA_TOGGLE)),o=0;o<r.length;o++){var a=e._getParentFromElement(r[o]),s={relatedTarget:r[o]};if(t(a).hasClass(c.OPEN)&&!(n&&"click"===n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(a,n.target))){var l=t.Event(u.HIDE,s);t(a).trigger(l),l.isDefaultPrevented()||(r[o].setAttribute("aria-expanded","false"),t(a).removeClass(c.OPEN).trigger(t.Event(u.HIDDEN,s)))}}}},e._getParentFromElement=function(e){var n=void 0,i=o.getSelectorFromElement(e);return i&&(n=t(i)[0]),n||e.parentNode},e._dataApiKeydownHandler=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!t(this).hasClass(c.DISABLED))){var i=e._getParentFromElement(this),r=t(i).hasClass(c.OPEN);if(!r&&27!==n.which||r&&27===n.which){if(27===n.which){var o=t(i).find(f.DATA_TOGGLE)[0];t(o).trigger("focus")}return void t(this).trigger("click")}var a=t.makeArray(t(f.VISIBLE_ITEMS));if(a=a.filter(function(t){return t.offsetWidth||t.offsetHeight}),a.length){var s=a.indexOf(n.target);38===n.which&&s>0&&s--,40===n.which&&s<a.length-1&&s++,s<0&&(s=0),a[s].focus()}}},r(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),e}();t(document).on(u.KEYDOWN_DATA_API,f.DATA_TOGGLE,d._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,f.ROLE_MENU,d._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,f.ROLE_LISTBOX,d._dataApiKeydownHandler).on(u.CLICK_DATA_API,d._clearMenus).on(u.CLICK_DATA_API,f.DATA_TOGGLE,d.prototype.toggle).on(u.CLICK_DATA_API,f.FORM_CHILD,function(t){t.stopPropagation()}),t.fn[e]=d._jQueryInterface,t.fn[e].Constructor=d,t.fn[e].noConflict=function(){return t.fn[e]=l,d._jQueryInterface}}(jQuery),function(t){var e="modal",a="bs.modal",s="."+a,l=t.fn[e],u={backdrop:!0,keyboard:!0,focus:!0,show:!0},c={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},f={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,FOCUSIN:"focusin"+s,RESIZE:"resize"+s,CLICK_DISMISS:"click.dismiss"+s,KEYDOWN_DISMISS:"keydown.dismiss"+s,MOUSEUP_DISMISS:"mouseup.dismiss"+s,MOUSEDOWN_DISMISS:"mousedown.dismiss"+s,CLICK_DATA_API:"click"+s+".data-api"},d={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",IN:"in"},p={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".navbar-fixed-top, .navbar-fixed-bottom, .is-fixed"},h=function(){function l(e,i){n(this,l),this._config=this._getConfig(i),this._element=e,this._dialog=t(e).find(p.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return l.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},l.prototype.show=function(e){var n=this,i=t.Event(f.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),t(document.body).addClass(d.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(f.CLICK_DISMISS,p.DATA_DISMISS,t.proxy(this.hide,this)),t(this._dialog).on(f.MOUSEDOWN_DISMISS,function(){t(n._element).one(f.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(t.proxy(this._showElement,this,e)))},l.prototype.hide=function(e){e&&e.preventDefault();var n=t.Event(f.HIDE);t(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),t(document).off(f.FOCUSIN),t(this._element).removeClass(d.IN),t(this._element).off(f.CLICK_DISMISS),t(this._dialog).off(f.MOUSEDOWN_DISMISS),o.supportsTransitionEnd()&&t(this._element).hasClass(d.FADE)?t(this._element).one(o.TRANSITION_END,t.proxy(this._hideModal,this)).emulateTransitionEnd(300):this._hideModal())},l.prototype.dispose=function(){t.removeData(this._element,a),t(window).off(s),t(document).off(s),t(this._element).off(s),t(this._backdrop).off(s),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null},l.prototype._getConfig=function(n){return n=t.extend({},u,n),o.typeCheckConfig(e,n,c),n},l.prototype._showElement=function(e){var n=this,i=o.supportsTransitionEnd()&&t(this._element).hasClass(d.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&o.reflow(this._element),t(this._element).addClass(d.IN),this._config.focus&&this._enforceFocus();var r=t.Event(f.SHOWN,{relatedTarget:e}),a=function(){n._config.focus&&n._element.focus(),t(n._element).trigger(r)};i?t(this._dialog).one(o.TRANSITION_END,a).emulateTransitionEnd(300):a()},l.prototype._enforceFocus=function(){var e=this;t(document).off(f.FOCUSIN).on(f.FOCUSIN,function(n){document===n.target||e._element===n.target||t(e._element).has(n.target).length||e._element.focus()})},l.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(f.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||t(this._element).off(f.KEYDOWN_DISMISS)},l.prototype._setResizeEvent=function(){this._isShown?t(window).on(f.RESIZE,t.proxy(this._handleUpdate,this)):t(window).off(f.RESIZE)},l.prototype._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._showBackdrop(function(){t(document.body).removeClass(d.OPEN),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(f.HIDDEN)})},l.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},l.prototype._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(d.FADE)?d.FADE:"";if(this._isShown&&this._config.backdrop){var r=o.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=d.BACKDROP,i&&t(this._backdrop).addClass(i),t(this._backdrop).appendTo(document.body),t(this._element).on(f.CLICK_DISMISS,function(t){return n._ignoreBackdropClick?void(n._ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide()))}),r&&o.reflow(this._backdrop),t(this._backdrop).addClass(d.IN),!e)return;if(!r)return void e();t(this._backdrop).one(o.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(d.IN);var a=function(){n._removeBackdrop(),e&&e()};o.supportsTransitionEnd()&&t(this._element).hasClass(d.FADE)?t(this._backdrop).one(o.TRANSITION_END,a).emulateTransitionEnd(150):a()}else e&&e()},l.prototype._handleUpdate=function(){this._adjustDialog()},l.prototype._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},l.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},l.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},l.prototype._setScrollbar=function(){var e=parseInt(t(p.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=e+this._scrollbarWidth+"px")},l.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},l.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=d.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},l._jQueryInterface=function(e,n){return this.each(function(){var r=t(this).data(a),o=t.extend({},l.Default,t(this).data(),"object"===(void 0===e?"undefined":i(e))&&e);if(r||(r=new l(this,o),t(this).data(a,r)),"string"==typeof e){if(void 0===r[e])throw new Error('No method named "'+e+'"');r[e](n)}else o.show&&r.show(n)})},r(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return u}}]),l}();t(document).on(f.CLICK_DATA_API,p.DATA_TOGGLE,function(e){var n=this,i=void 0,r=o.getSelectorFromElement(this);r&&(i=t(r)[0]);var s=t(i).data(a)?"toggle":t.extend({},t(i).data(),t(this).data());"A"===this.tagName&&e.preventDefault();var l=t(i).one(f.SHOW,function(e){e.isDefaultPrevented()||l.one(f.HIDDEN,function(){t(n).is(":visible")&&n.focus()})});h._jQueryInterface.call(t(i),s,this)}),t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=l,h._jQueryInterface}}(jQuery),function(t){var e="scrollspy",a="bs.scrollspy",s="."+a,l=t.fn[e],u={offset:10,method:"auto",target:""},c={offset:"number",method:"string",target:"(string|element)"},f={ACTIVATE:"activate"+s,SCROLL:"scroll"+s,LOAD_DATA_API:"load"+s+".data-api"},d={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},p={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},h={OFFSET:"offset",POSITION:"position"},m=function(){function l(e,i){n(this,l),this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(i),this._selector=this._config.target+" "+p.NAV_LINKS+","+this._config.target+" "+p.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(f.SCROLL,t.proxy(this._process,this)),this.refresh(),this._process()}return l.prototype.refresh=function(){var e=this,n=this._scrollElement!==this._scrollElement.window?h.POSITION:h.OFFSET,i="auto"===this._config.method?n:this._config.method,r=i===h.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var n=void 0,a=o.getSelectorFromElement(e);return a&&(n=t(a)[0]),n&&(n.offsetWidth||n.offsetHeight)?[t(n)[i]().top+r,a]:null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},l.prototype.dispose=function(){t.removeData(this._element,a),t(this._scrollElement).off(s),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},l.prototype._getConfig=function(n){if(n=t.extend({},u,n),"string"!=typeof n.target){var i=t(n.target).attr("id");i||(i=o.getUID(e),t(n.target).attr("id",i)),n.target="#"+i}return o.typeCheckConfig(e,n,c),n},l.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.scrollY:this._scrollElement.scrollTop},l.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},l.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._scrollElement.offsetHeight;if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}if(this._activeTarget&&t<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(void 0===this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}},l.prototype._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=t(n.join(","));i.hasClass(d.DROPDOWN_ITEM)?(i.closest(p.DROPDOWN).find(p.DROPDOWN_TOGGLE).addClass(d.ACTIVE),i.addClass(d.ACTIVE)):i.parents(p.LI).find(p.NAV_LINKS).addClass(d.ACTIVE),t(this._scrollElement).trigger(f.ACTIVATE,{relatedTarget:e})},l.prototype._clear=function(){t(this._selector).filter(p.ACTIVE).removeClass(d.ACTIVE)},l._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(a),r="object"===(void 0===e?"undefined":i(e))&&e||null;if(n||(n=new l(this,r),t(this).data(a,n)),"string"==typeof e){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}})},r(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return u}}]),l}();t(window).on(f.LOAD_DATA_API,function(){for(var e=t.makeArray(t(p.DATA_SPY)),n=e.length;n--;){var i=t(e[n]);m._jQueryInterface.call(i,i.data())}}),t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=l,m._jQueryInterface}}(jQuery),function(t){var e="tab",i="bs.tab",a="."+i,s=t.fn[e],l={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK_DATA_API:"click"+a+".data-api"},u={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",FADE:"fade",IN:"in"},c={A:"a",LI:"li",DROPDOWN:".dropdown",UL:"ul:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},f=function(){function e(t){n(this,e),this._element=t}return e.prototype.show=function(){var e=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!t(this._element).hasClass(u.ACTIVE)){var n=void 0,i=void 0,r=t(this._element).closest(c.UL)[0],a=o.getSelectorFromElement(this._element);r&&(i=t.makeArray(t(r).find(c.ACTIVE)),i=i[i.length-1]);var s=t.Event(l.HIDE,{relatedTarget:this._element}),f=t.Event(l.SHOW,{relatedTarget:i});if(i&&t(i).trigger(s),t(this._element).trigger(f),!f.isDefaultPrevented()&&!s.isDefaultPrevented()){a&&(n=t(a)[0]),this._activate(this._element,r);var d=function(){var n=t.Event(l.HIDDEN,{relatedTarget:e._element}),r=t.Event(l.SHOWN,{relatedTarget:i});t(i).trigger(n),t(e._element).trigger(r)};n?this._activate(n,n.parentNode,d):d()}}},e.prototype.dispose=function(){t.removeClass(this._element,i),this._element=null},e.prototype._activate=function(e,n,i){var r=t(n).find(c.ACTIVE_CHILD)[0],a=i&&o.supportsTransitionEnd()&&(r&&t(r).hasClass(u.FADE)||Boolean(t(n).find(c.FADE_CHILD)[0])),s=t.proxy(this._transitionComplete,this,e,r,a,i);r&&a?t(r).one(o.TRANSITION_END,s).emulateTransitionEnd(150):s(),r&&t(r).removeClass(u.IN)},e.prototype._transitionComplete=function(e,n,i,r){if(n){t(n).removeClass(u.ACTIVE);var a=t(n).find(c.DROPDOWN_ACTIVE_CHILD)[0];a&&t(a).removeClass(u.ACTIVE),n.setAttribute("aria-expanded",!1)}if(t(e).addClass(u.ACTIVE),e.setAttribute("aria-expanded",!0),i?(o.reflow(e),t(e).addClass(u.IN)):t(e).removeClass(u.FADE),e.parentNode&&t(e.parentNode).hasClass(u.DROPDOWN_MENU)){var s=t(e).closest(c.DROPDOWN)[0];s&&t(s).find(c.DROPDOWN_TOGGLE).addClass(u.ACTIVE),e.setAttribute("aria-expanded",!0)}r&&r()},e._jQueryInterface=function(n){return this.each(function(){var r=t(this),o=r.data(i);if(o||(o=o=new e(this),r.data(i,o)),"string"==typeof n){if(void 0===o[n])throw new Error('No method named "'+n+'"');o[n]()}})},r(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),e}();t(document).on(l.CLICK_DATA_API,c.DATA_TOGGLE,function(e){e.preventDefault(),f._jQueryInterface.call(t(this),"show")}),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=s,f._jQueryInterface}}(jQuery),function(t){if(void 0===window.Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var e="tooltip",a="bs.tooltip",s="."+a,l=t.fn[e],u={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},c={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},f={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},d={IN:"in",OUT:"out"},p={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,INSERTED:"inserted"+s,CLICK:"click"+s,FOCUSIN:"focusin"+s,FOCUSOUT:"focusout"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s},h={FADE:"fade",IN:"in"},m={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},g={element:!1,enabled:!1},v={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},y=function(){function l(t,e){n(this,l),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return l.prototype.enable=function(){this._isEnabled=!0},l.prototype.disable=function(){this._isEnabled=!1},l.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.prototype.toggle=function(e){if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(h.IN))return void this._leave(null,this);this._enter(null,this)}},l.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},l.prototype.show=function(){var e=this,n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var i=t.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!i)return;var r=this.getTipElement(),a=o.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&t(r).addClass(h.FADE);var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,u=this._getAttachment(s);t(r).data(this.constructor.DATA_KEY,this).appendTo(document.body),t(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:u,element:r,target:this.element,classes:g,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),o.reflow(r),this._tether.position(),t(r).addClass(h.IN);var c=function(){var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===d.OUT&&e._leave(null,e)};if(o.supportsTransitionEnd()&&t(this.tip).hasClass(h.FADE))return void t(this.tip).one(o.TRANSITION_END,c).emulateTransitionEnd(l._TRANSITION_DURATION);c()}},l.prototype.hide=function(e){var n=this,i=this.getTipElement(),r=t.Event(this.constructor.Event.HIDE),a=function(){n._hoverState!==d.IN&&i.parentNode&&i.parentNode.removeChild(i),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),n.cleanupTether(),e&&e()};t(this.element).trigger(r),r.isDefaultPrevented()||(t(i).removeClass(h.IN),o.supportsTransitionEnd()&&t(this.tip).hasClass(h.FADE)?t(i).one(o.TRANSITION_END,a).emulateTransitionEnd(150):a(),this._hoverState="")},l.prototype.isWithContent=function(){return Boolean(this.getTitle())},l.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},l.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(m.TOOLTIP_INNER),this.getTitle()),e.removeClass(h.FADE).removeClass(h.IN),this.cleanupTether()},l.prototype.setElementContent=function(e,n){var r=this.config.html;"object"===(void 0===n?"undefined":i(n))&&(n.nodeType||n.jquery)?r?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[r?"html":"text"](n)},l.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},l.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},l.prototype._getAttachment=function(t){return f[t.toUpperCase()]},l.prototype._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,t.proxy(e.toggle,e));else if(n!==v.MANUAL){var i=n===v.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=n===v.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,t.proxy(e._enter,e)).on(r,e.config.selector,t.proxy(e._leave,e))}}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l.prototype._fixTitle=function(){var t=i(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},l.prototype._enter=function(e,n){var i=this.constructor.DATA_KEY;return n=n||t(e.currentTarget).data(i),n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?v.FOCUS:v.HOVER]=!0),t(n.getTipElement()).hasClass(h.IN)||n._hoverState===d.IN?void(n._hoverState=d.IN):(clearTimeout(n._timeout),n._hoverState=d.IN,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===d.IN&&n.show()},n.config.delay.show)):void n.show())},l.prototype._leave=function(e,n){var i=this.constructor.DATA_KEY;if(n=n||t(e.currentTarget).data(i),n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?v.FOCUS:v.HOVER]=!1),!n._isWithActiveTrigger())return clearTimeout(n._timeout),n._hoverState=d.OUT,n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout(function(){n._hoverState===d.OUT&&n.hide()},n.config.delay.hide)):void n.hide()},l.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},l.prototype._getConfig=function(n){return n=t.extend({},this.constructor.Default,t(this.element).data(),n),n.delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),o.typeCheckConfig(e,n,this.constructor.DefaultType),n},l.prototype._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},l._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(a),r="object"===(void 0===e?"undefined":i(e))?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new l(this,r),t(this).data(a,n)),"string"==typeof e)){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}})},r(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return a}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return s}},{key:"DefaultType",get:function(){return c}}]),l}();return t.fn[e]=y._jQueryInterface,t.fn[e].Constructor=y,t.fn[e].noConflict=function(){return t.fn[e]=l,y._jQueryInterface},y}(jQuery));!function(o){var s="popover",l="bs.popover",u="."+l,c=o.fn[s],f=o.extend({},a.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),d=o.extend({},a.DefaultType,{content:"(string|element|function)"}),p={FADE:"fade",IN:"in"},h={TITLE:".popover-title",CONTENT:".popover-content"},m={HIDE:"hide"+u,HIDDEN:"hidden"+u,SHOW:"show"+u,SHOWN:"shown"+u,INSERTED:"inserted"+u,CLICK:"click"+u,FOCUSIN:"focusin"+u,FOCUSOUT:"focusout"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u},g=function(a){function c(){return n(this,c),t(this,a.apply(this,arguments))}return e(c,a),c.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},c.prototype.getTipElement=function(){return this.tip=this.tip||o(this.config.template)[0]},c.prototype.setContent=function(){var t=o(this.getTipElement());this.setElementContent(t.find(h.TITLE),this.getTitle()),this.setElementContent(t.find(h.CONTENT),this._getContent()),t.removeClass(p.FADE).removeClass(p.IN),this.cleanupTether()},c.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},c._jQueryInterface=function(t){return this.each(function(){var e=o(this).data(l),n="object"===(void 0===t?"undefined":i(t))?t:null;if((e||!/destroy|hide/.test(t))&&(e||(e=new c(this,n),o(this).data(l,e)),"string"==typeof t)){if(void 0===e[t])throw new Error('No method named "'+t+'"');e[t]()}})},r(c,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return f}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return l}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return u}},{key:"DefaultType",get:function(){return d}}]),c}(a);o.fn[s]=g._jQueryInterface,o.fn[s].Constructor=g,o.fn[s].noConflict=function(){return o.fn[s]=c,g._jQueryInterface}}(jQuery)}()},function(t,e,n){"use strict";function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function o(t){return"number"==typeof t}function a(t){return"object"==typeof t&&null!==t}function s(t){return void 0===t}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},i.prototype.emit=function(t){var e,n,i,o,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(n=this._events[t],s(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(a(n))for(o=Array.prototype.slice.call(arguments,1),u=n.slice(),i=u.length,l=0;l<i;l++)u[l].apply(this,o);return!0},i.prototype.addListener=function(t,e){var n;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?a(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,a(this._events[t])&&!this._events[t].warned&&(n=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.trace),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},i.prototype.removeListener=function(t,e){var n,i,o,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],o=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(a(n)){for(s=o;s-->0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},i.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},i.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},i.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},i.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";var i,i;!function(e){t.exports=e()}(function(){return function t(e,n,r){function o(s,l){if(!n[s]){if(!e[s]){var u="function"==typeof i&&i;if(!l&&u)return i(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return o(n||t)},f,f.exports,t,e,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){e.exports=function(t){var e,n,i,r=-1;if(t.lines.length>1&&"flex-start"===t.style.alignContent)for(e=0;i=t.lines[++r];)i.crossStart=e,e+=i.cross;else if(t.lines.length>1&&"flex-end"===t.style.alignContent)for(e=t.flexStyle.crossSpace;i=t.lines[++r];)i.crossStart=e,e+=i.cross;else if(t.lines.length>1&&"center"===t.style.alignContent)for(e=t.flexStyle.crossSpace/2;i=t.lines[++r];)i.crossStart=e,e+=i.cross;else if(t.lines.length>1&&"space-between"===t.style.alignContent)for(n=t.flexStyle.crossSpace/(t.lines.length-1),e=0;i=t.lines[++r];)i.crossStart=e,e+=i.cross+n;else if(t.lines.length>1&&"space-around"===t.style.alignContent)for(n=2*t.flexStyle.crossSpace/(2*t.lines.length),e=n/2;i=t.lines[++r];)i.crossStart=e,e+=i.cross+n;else for(n=t.flexStyle.crossSpace/t.lines.length,e=t.flexStyle.crossInnerBefore;i=t.lines[++r];)i.crossStart=e,i.cross+=n,e+=i.cross}},{}],2:[function(t,e,n){e.exports=function(t){for(var e,n=-1;line=t.lines[++n];)for(e=-1;child=line.children[++e];){var i=child.style.alignSelf;"auto"===i&&(i=t.style.alignItems),"flex-start"===i?child.flexStyle.crossStart=line.crossStart:"flex-end"===i?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===i?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(t,e,n){e.exports=function(t,e){var n="row"===e||"row-reverse"===e,i=t.mainAxis;if(i){n&&"inline"===i||!n&&"block"===i||(t.flexStyle={main:t.flexStyle.cross,cross:t.flexStyle.main,mainOffset:t.flexStyle.crossOffset,crossOffset:t.flexStyle.mainOffset,mainBefore:t.flexStyle.crossBefore,mainAfter:t.flexStyle.crossAfter,crossBefore:t.flexStyle.mainBefore,crossAfter:t.flexStyle.mainAfter,mainInnerBefore:t.flexStyle.crossInnerBefore,mainInnerAfter:t.flexStyle.crossInnerAfter,crossInnerBefore:t.flexStyle.mainInnerBefore,crossInnerAfter:t.flexStyle.mainInnerAfter,mainBorderBefore:t.flexStyle.crossBorderBefore,mainBorderAfter:t.flexStyle.crossBorderAfter,crossBorderBefore:t.flexStyle.mainBorderBefore,crossBorderAfter:t.flexStyle.mainBorderAfter})}else t.flexStyle=n?{main:t.style.width,cross:t.style.height,mainOffset:t.style.offsetWidth,crossOffset:t.style.offsetHeight,mainBefore:t.style.marginLeft,mainAfter:t.style.marginRight,crossBefore:t.style.marginTop,crossAfter:t.style.marginBottom,mainInnerBefore:t.style.paddingLeft,mainInnerAfter:t.style.paddingRight,crossInnerBefore:t.style.paddingTop,crossInnerAfter:t.style.paddingBottom,mainBorderBefore:t.style.borderLeftWidth,mainBorderAfter:t.style.borderRightWidth,crossBorderBefore:t.style.borderTopWidth,crossBorderAfter:t.style.borderBottomWidth}:{main:t.style.height,cross:t.style.width,mainOffset:t.style.offsetHeight,crossOffset:t.style.offsetWidth,mainBefore:t.style.marginTop,mainAfter:t.style.marginBottom,crossBefore:t.style.marginLeft,crossAfter:t.style.marginRight,mainInnerBefore:t.style.paddingTop,mainInnerAfter:t.style.paddingBottom,crossInnerBefore:t.style.paddingLeft,crossInnerAfter:t.style.paddingRight,mainBorderBefore:t.style.borderTopWidth,mainBorderAfter:t.style.borderBottomWidth,crossBorderBefore:t.style.borderLeftWidth,crossBorderAfter:t.style.borderRightWidth},"content-box"===t.style.boxSizing&&("number"==typeof t.flexStyle.main&&(t.flexStyle.main+=t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),"number"==typeof t.flexStyle.cross&&(t.flexStyle.cross+=t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter));t.mainAxis=n?"inline":"block",t.crossAxis=n?"block":"inline","number"==typeof t.style.flexBasis&&(t.flexStyle.main=t.style.flexBasis+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),t.flexStyle.mainOuter=t.flexStyle.main,t.flexStyle.crossOuter=t.flexStyle.cross,"auto"===t.flexStyle.mainOuter&&(t.flexStyle.mainOuter=t.flexStyle.mainOffset),"auto"===t.flexStyle.crossOuter&&(t.flexStyle.crossOuter=t.flexStyle.crossOffset),"number"==typeof t.flexStyle.mainBefore&&(t.flexStyle.mainOuter+=t.flexStyle.mainBefore),"number"==typeof t.flexStyle.mainAfter&&(t.flexStyle.mainOuter+=t.flexStyle.mainAfter),"number"==typeof t.flexStyle.crossBefore&&(t.flexStyle.crossOuter+=t.flexStyle.crossBefore),"number"==typeof t.flexStyle.crossAfter&&(t.flexStyle.crossOuter+=t.flexStyle.crossAfter)}},{}],4:[function(t,e,n){var i=t("../reduce");e.exports=function(t){if(t.mainSpace>0){var e=i(t.children,function(t,e){return t+parseFloat(e.style.flexGrow)},0);e>0&&(t.main=i(t.children,function(n,i){return"auto"===i.flexStyle.main?i.flexStyle.main=i.flexStyle.mainOffset+parseFloat(i.style.flexGrow)/e*t.mainSpace:i.flexStyle.main+=parseFloat(i.style.flexGrow)/e*t.mainSpace,i.flexStyle.mainOuter=i.flexStyle.main+i.flexStyle.mainBefore+i.flexStyle.mainAfter,n+i.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],5:[function(t,e,n){var i=t("../reduce");e.exports=function(t){if(t.mainSpace<0){var e=i(t.children,function(t,e){return t+parseFloat(e.style.flexShrink)},0);e>0&&(t.main=i(t.children,function(n,i){return i.flexStyle.main+=parseFloat(i.style.flexShrink)/e*t.mainSpace,i.flexStyle.mainOuter=i.flexStyle.main+i.flexStyle.mainBefore+i.flexStyle.mainAfter,n+i.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],6:[function(t,e,n){var i=t("../reduce");e.exports=function(t){var e;t.lines=[e={main:0,cross:0,children:[]}];for(var n,r=-1;n=t.children[++r];)"nowrap"===t.style.flexWrap||0===e.children.length||"auto"===t.flexStyle.main||t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter>=e.main+n.flexStyle.mainOuter?(e.main+=n.flexStyle.mainOuter,e.cross=Math.max(e.cross,n.flexStyle.crossOuter)):t.lines.push(e={main:n.flexStyle.mainOuter,cross:n.flexStyle.crossOuter,children:[]}),e.children.push(n);t.flexStyle.mainLines=i(t.lines,function(t,e){return Math.max(t,e.main)},0),t.flexStyle.crossLines=i(t.lines,function(t,e){return t+e.cross},0),"auto"===t.flexStyle.main&&(t.flexStyle.main=Math.max(t.flexStyle.mainOffset,t.flexStyle.mainLines+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter)),"auto"===t.flexStyle.cross&&(t.flexStyle.cross=Math.max(t.flexStyle.crossOffset,t.flexStyle.crossLines+t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter)),t.flexStyle.crossSpace=t.flexStyle.cross-t.flexStyle.crossInnerBefore-t.flexStyle.crossInnerAfter-t.flexStyle.crossBorderBefore-t.flexStyle.crossBorderAfter-t.flexStyle.crossLines,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}},{"../reduce":12}],7:[function(t,e,n){function i(e){for(var n,i=-1;n=e.children[++i];)t("./flex-direction")(n,e.style.flexDirection);t("./flex-direction")(e,e.style.flexDirection),t("./order")(e),t("./flexbox-lines")(e),t("./align-content")(e),i=-1;for(var r;r=e.lines[++i];)r.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-r.main,t("./flex-grow")(r),t("./flex-shrink")(r),t("./margin-main")(r),t("./margin-cross")(r),t("./justify-content")(r,e.style.justifyContent,e);t("./align-items")(e)}e.exports=i},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(t,e,n){e.exports=function(t,e,n){var i,r,o,a=n.flexStyle.mainInnerBefore,s=-1;if("flex-end"===e)for(i=t.mainSpace,i+=a;o=t.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter;else if("center"===e)for(i=t.mainSpace/2,i+=a;o=t.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter;else if("space-between"===e)for(r=t.mainSpace/(t.children.length-1),i=0,i+=a;o=t.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter+r;else if("space-around"===e)for(r=2*t.mainSpace/(2*t.children.length),i=r/2,i+=a;o=t.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter+r;else for(i=0,i+=a;o=t.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter}},{}],9:[function(t,e,n){e.exports=function(t){for(var e,n=-1;e=t.children[++n];){var i=0;"auto"===e.flexStyle.crossBefore&&++i,"auto"===e.flexStyle.crossAfter&&++i;var r=t.cross-e.flexStyle.crossOuter;"auto"===e.flexStyle.crossBefore&&(e.flexStyle.crossBefore=r/i),"auto"===e.flexStyle.crossAfter&&(e.flexStyle.crossAfter=r/i),"auto"===e.flexStyle.cross?e.flexStyle.crossOuter=e.flexStyle.crossOffset+e.flexStyle.crossBefore+e.flexStyle.crossAfter:e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}}},{}],10:[function(t,e,n){e.exports=function(t){for(var e,n=0,i=-1;e=t.children[++i];)"auto"===e.flexStyle.mainBefore&&++n,"auto"===e.flexStyle.mainAfter&&++n;if(n>0){for(i=-1;e=t.children[++i];)"auto"===e.flexStyle.mainBefore&&(e.flexStyle.mainBefore=t.mainSpace/n),"auto"===e.flexStyle.mainAfter&&(e.flexStyle.mainAfter=t.mainSpace/n),"auto"===e.flexStyle.main?e.flexStyle.mainOuter=e.flexStyle.mainOffset+e.flexStyle.mainBefore+e.flexStyle.mainAfter:e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter;t.mainSpace=0}}},{}],11:[function(t,e,n){var i=/^(column|row)-reverse$/;e.exports=function(t){t.children.sort(function(t,e){return t.style.order-e.style.order||t.index-e.index}),i.test(t.style.flexDirection)&&t.children.reverse()}},{}],12:[function(t,e,n){function i(t,e,n){for(var i=t.length,r=-1;++r<i;)r in t&&(n=e(n,t[r],r));return n}e.exports=i},{}],13:[function(t,e,n){function i(t){s(a(t))}var r=t("./read"),o=t("./write"),a=t("./readAll"),s=t("./writeAll");e.exports=i,e.exports.read=r,e.exports.write=o,e.exports.readAll=a,e.exports.writeAll=s},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(t,e,n){function i(t,e){var n=String(t).match(o);if(!n)return t;var i=n[1],a=n[2];return"px"===a?1*i:"cm"===a?.3937*i*96:"in"===a?96*i:"mm"===a?.3937*i*96/10:"pc"===a?12*i*96/72:"pt"===a?96*i/72:"rem"===a?16*i:r(t,e)}function r(t,e){a.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+t+"!important",e.parentNode.insertBefore(a,e.nextSibling);var n=a.offsetWidth;return e.parentNode.removeChild(a),n}e.exports=i;var o=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,a=document.createElement("div")},{}],15:[function(t,e,n){function i(t){var e={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"};if(t instanceof Element){var n=t.hasAttribute("data-style"),i=n?t.getAttribute("data-style"):t.getAttribute("style")||"";n||t.setAttribute("data-style",i),a(e,window.getComputedStyle&&getComputedStyle(t)||{}),r(e,t.currentStyle||{}),o(e,i);for(var s in e)e[s]=l(e[s],t);var u=t.getBoundingClientRect();e.offsetHeight=u.height||t.offsetHeight,e.offsetWidth=u.width||t.offsetWidth}return{element:t,style:e}}function r(t,e){for(var n in t){if(n in e)t[n]=e[n];else{var i=n.replace(/[A-Z]/g,"-$&").toLowerCase();i in e&&(t[n]=e[i])}}"-js-display"in e&&(t.display=e["-js-display"])}function o(t,e){for(var n;n=s.exec(e);){t[n[1].toLowerCase().replace(/-[a-z]/g,function(t){return t.slice(1).toUpperCase()})]=n[2]}}function a(t,e){for(var n in t){n in e&&!/^(alignSelf|height|width)$/.test(n)&&(t[n]=e[n])}}e.exports=i;var s=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,l=t("./getComputedLength")},{"./getComputedLength":14}],16:[function(t,e,n){function i(t){var e=[];return r(t,e),e}function r(t,e){for(var n,i=o(t),s=[],l=-1;n=t.childNodes[++l];){var u=3===n.nodeType&&!/^\s*$/.test(n.nodeValue);if(i&&u){var c=n;n=t.insertBefore(document.createElement("flex-item"),c),n.appendChild(c)}if(n instanceof Element){var f=r(n,e);if(i){var d=n.style;d.display="inline-block",d.position="absolute",f.style=a(n).style,s.push(f)}}}var p={element:t,children:s};return i&&(p.style=a(t).style,e.push(p)),p}function o(t){var e=t instanceof Element,n=e&&t.getAttribute("data-style"),i=e&&t.currentStyle&&t.currentStyle["-js-display"];return s.test(n)||l.test(i)}e.exports=i;var a=t("../read"),s=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,l=/^(inline-)?flex$/i},{"../read":15}],17:[function(t,e,n){function i(t){o(t);var e=t.element.style,n="inline"===t.mainAxis?["main","cross"]:["cross","main"];e.boxSizing="content-box",e.display="block",e.position="relative",e.width=r(t.flexStyle[n[0]]-t.flexStyle[n[0]+"InnerBefore"]-t.flexStyle[n[0]+"InnerAfter"]-t.flexStyle[n[0]+"BorderBefore"]-t.flexStyle[n[0]+"BorderAfter"]),e.height=r(t.flexStyle[n[1]]-t.flexStyle[n[1]+"InnerBefore"]-t.flexStyle[n[1]+"InnerAfter"]-t.flexStyle[n[1]+"BorderBefore"]-t.flexStyle[n[1]+"BorderAfter"]);for(var i,a=-1;i=t.children[++a];){var s=i.element.style,l="inline"===i.mainAxis?["main","cross"]:["cross","main"];s.boxSizing="content-box",s.display="block",s.position="absolute","auto"!==i.flexStyle[l[0]]&&(s.width=r(i.flexStyle[l[0]]-i.flexStyle[l[0]+"InnerBefore"]-i.flexStyle[l[0]+"InnerAfter"]-i.flexStyle[l[0]+"BorderBefore"]-i.flexStyle[l[0]+"BorderAfter"])),"auto"!==i.flexStyle[l[1]]&&(s.height=r(i.flexStyle[l[1]]-i.flexStyle[l[1]+"InnerBefore"]-i.flexStyle[l[1]+"InnerAfter"]-i.flexStyle[l[1]+"BorderBefore"]-i.flexStyle[l[1]+"BorderAfter"])),s.top=r(i.flexStyle[l[1]+"Start"]),s.left=r(i.flexStyle[l[0]+"Start"]),s.marginTop=r(i.flexStyle[l[1]+"Before"]),s.marginRight=r(i.flexStyle[l[0]+"After"]),s.marginBottom=r(i.flexStyle[l[1]+"After"]),s.marginLeft=r(i.flexStyle[l[0]+"Before"])}}function r(t){return"string"==typeof t?t:Math.max(t,0)+"px"}e.exports=i;var o=t("../flexbox")},{"../flexbox":7}],18:[function(t,e,n){function i(t){for(var e,n=-1;e=t[++n];)r(e)}e.exports=i;var r=t("../write")},{"../write":17}]},{},[13])(13)})},function(t,e,n){"use strict";var i,r;!function(o,a){i=a,void 0!==(r="function"==typeof i?i.call(e,n,e,t):i)&&(t.exports=r)}(0,function(t,e,n){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.getBoundingClientRect(),n={};for(var i in e)n[i]=e[i];if(t.ownerDocument!==document){var o=t.ownerDocument.defaultView.frameElement;if(o){var a=r(o);n.top+=a.top,n.bottom+=a.top,n.left+=a.left,n.right+=a.left}}return n}function o(t){var e=getComputedStyle(t)||{},n=e.position,i=[];if("fixed"===n)return[t];for(var r=t;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(t){}if(void 0===o||null===o)return i.push(r),i;var a=o,s=a.overflow,l=a.overflowX;/(auto|scroll)/.test(s+a.overflowY+l)&&("absolute"!==n||["relative","absolute","fixed"].indexOf(o.position)>=0)&&i.push(r)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function a(){C&&document.body.removeChild(C),C=null}function s(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var n=e.documentElement,i=r(t),o=I();return i.top-=o.top,i.left-=o.left,void 0===i.width&&(i.width=document.body.scrollWidth-i.left-i.right),void 0===i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-n.clientTop,i.left=i.left-n.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function l(t){return t.offsetParent||document.documentElement}function u(){if(O)return O;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");c(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;n===i&&(i=e.clientWidth),document.body.removeChild(e);var r=n-i;return O={width:r,height:r}}function c(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function f(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var n=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=h(t).replace(n," ");m(t,i)}}function d(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{f(t,e);var n=h(t)+" "+e;m(t,n)}}function p(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=h(t);return new RegExp("(^| )"+e+"( |$)","gi").test(n)}function h(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function m(t,e){t.setAttribute("class",e)}function g(t,e,n){n.forEach(function(n){-1===e.indexOf(n)&&p(t,n)&&f(t,n)}),e.forEach(function(e){p(t,e)||d(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+n>=e&&e>=t-n}function b(){return"undefined"!=typeof performance&&void 0!==performance.now?performance.now():+new Date}function _(){for(var t={top:0,left:0},e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.forEach(function(e){var n=e.top,i=e.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof i&&(i=parseFloat(i,10)),t.top+=n,t.left+=i}),t}function x(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function w(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),void 0!==e.nodeType&&function(){var t=e,n=s(e),i=n,r=getComputedStyle(e);if(e=[i.left,i.top,n.width+i.left,n.height+i.top],t.ownerDocument!==document){var o=t.ownerDocument.defaultView;e[0]+=o.pageXOffset,e[1]+=o.pageYOffset,e[2]+=o.pageXOffset,e[3]+=o.pageYOffset}Y.forEach(function(t,n){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[n]+=parseFloat(r["border"+t+"Width"]):e[n]-=parseFloat(r["border"+t+"Width"])})}(),e}var S=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),E=void 0;void 0===E&&(E={modules:[]});var C=null,T=function(){var t=0;return function(){return++t}}(),A={},I=function(){var t=C;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",T()),c(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),C=t);var e=t.getAttribute("data-tether-id");return void 0===A[e]&&(A[e]=r(t),D(function(){delete A[e]})),A[e]},O=null,k=[],D=function(t){k.push(t)},N=function(){for(var t=void 0;t=k.pop();)t()},P=function(){function t(){i(this,t)}return S(t,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})}},{key:"once",value:function(t,e,n){this.on(t,e,n,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];for(;e<this.bindings[t].length;){var o=this.bindings[t][e],a=o.handler,s=o.ctx,l=o.once,u=s;void 0===u&&(u=this),a.apply(u,i),l?this.bindings[t].splice(e,1):++e}}}}]),t}();E.Utils={getActualBoundingClientRect:r,getScrollParents:o,getBounds:s,getOffsetParent:l,extend:c,addClass:d,removeClass:f,hasClass:p,updateClasses:g,defer:D,flush:N,uniqueId:T,Evented:P,getScrollBarSize:u,removeUtilElements:a};var L=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),j=function(t,e,n){for(var i=!0;i;){var r=t,o=e,a=n;i=!1,null===r&&(r=Function.prototype);var s=Object.getOwnPropertyDescriptor(r,o);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=o,n=a,i=!0,s=u=void 0}};if(void 0===E)throw new Error("You must include the utils.js file before tether.js");var B=E.Utils,o=B.getScrollParents,s=B.getBounds,l=B.getOffsetParent,c=B.extend,d=B.addClass,f=B.removeClass,g=B.updateClasses,D=B.defer,N=B.flush,u=B.getScrollBarSize,a=B.removeUtilElements,V=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<e.length;++n){var i=e[n];if(void 0!==t.style[i])return i}}(),F=[],R=function(){F.forEach(function(t){t.position(!1)}),N()};!function(){var t=null,e=null,n=null,i=function i(){if(void 0!==e&&e>16)return e=Math.min(e-16,250),void(n=setTimeout(i,250));void 0!==t&&b()-t<10||(null!=n&&(clearTimeout(n),n=null),t=b(),R(),e=b()-t)};"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var M={center:"center",left:"right",right:"left"},H={middle:"middle",top:"bottom",bottom:"top"},W={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t,e){var n=t.left,i=t.top;return"auto"===n&&(n=M[e.left]),"auto"===i&&(i=H[e.top]),{left:n,top:i}},q=function(t){var e=t.left,n=t.top;return void 0!==W[t.left]&&(e=W[t.left]),void 0!==W[t.top]&&(n=W[t.top]),{left:e,top:n}},z=function(t){var e=t.split(" "),n=L(e,2);return{top:n[0],left:n[1]}},$=z,Q=function(t){function e(t){var n=this;i(this,e),j(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),F.push(this),this.history=[],this.setOptions(t,!1),E.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(n)}),this.position()}return v(e,t),S(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=c(i,t);var r=this.options,a=r.element,s=r.target,l=r.targetModifier;if(this.element=a,this.target=s,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),d(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&d(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=$(this.options.targetAttachment),this.attachment=$(this.options.attachment),this.offset=z(this.options.offset),this.targetOffset=z(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=o(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return s(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=s(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,n=this.target;n===document.body?(n=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=s(n);var i=getComputedStyle(n),r=n.scrollWidth>n.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,o=0;r&&(o=15);var a=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-o,e={width:15,height:.975*a*(a/n.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},l=0;a<408&&this.target===document.body&&(l=-11e-5*Math.pow(a,2)-.00727*a+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var u=this.target.scrollTop/(n.scrollHeight-a);return e.top=u*(a-e.height-l)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;f(this.target,this.getClass("enabled")),f(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),F.forEach(function(e,n){e===t&&F.splice(n,1)}),0===F.length&&a()}},{key:"updateAttachClasses",value:function(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var r=this._addAttachClasses;t.top&&r.push(this.getClass("element-attached")+"-"+t.top),t.left&&r.push(this.getClass("element-attached")+"-"+t.left),e.top&&r.push(this.getClass("target-attached")+"-"+e.top),e.left&&r.push(this.getClass("target-attached")+"-"+e.left);var o=[];i.forEach(function(t){o.push(n.getClass("element-attached")+"-"+t),o.push(n.getClass("target-attached")+"-"+t)}),D(function(){void 0!==n._addAttachClasses&&(g(n.element,n._addAttachClasses,o),!1!==n.options.addTargetClasses&&g(n.target,n._addAttachClasses,o),delete n._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var i=this.cache("element-bounds",function(){return s(t.element)}),r=i.width,o=i.height;if(0===r&&0===o&&void 0!==this.lastSize){var a=this.lastSize;r=a.width,o=a.height}else this.lastSize={width:r,height:o};var c=this.cache("target-bounds",function(){return t.getTargetBounds()}),f=c,d=x(q(this.attachment),{width:r,height:o}),p=x(q(n),f),h=x(this.offset,{width:r,height:o}),m=x(this.targetOffset,f);d=_(d,h),p=_(p,m);for(var g=c.left+p.left-d.left,v=c.top+p.top-d.top,y=0;y<E.modules.length;++y){var b=E.modules[y],w=b.position.call(this,{left:g,top:v,targetAttachment:n,targetPos:c,elementPos:i,offset:d,targetOffset:p,manualOffset:h,manualTargetOffset:m,scrollbarSize:A,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(v=w.top,g=w.left)}var S={page:{top:v,left:g},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-o+innerHeight,left:g-pageXOffset,right:pageXOffset-g-r+innerWidth}},C=this.target.ownerDocument,T=C.defaultView,A=void 0;return T.innerHeight>C.documentElement.clientHeight&&(A=this.cache("scrollbar-size",u),S.viewport.bottom-=A.height),T.innerWidth>C.documentElement.clientWidth&&(A=this.cache("scrollbar-size",u),S.viewport.right-=A.width),-1!==["","static"].indexOf(C.body.style.position)&&-1!==["","static"].indexOf(C.body.parentElement.style.position)||(S.page.bottom=C.body.scrollHeight-v-o,S.page.right=C.body.scrollWidth-g-r),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=t.cache("target-offsetparent",function(){return l(t.target)}),n=t.cache("target-offsetparent-bounds",function(){return s(e)}),i=getComputedStyle(e),r=n,o={};if(["Top","Left","Bottom","Right"].forEach(function(t){o[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),n.right=C.body.scrollWidth-n.left-r.width+o.right,n.bottom=C.body.scrollHeight-n.top-r.height+o.bottom,S.page.top>=n.top+o.top&&S.page.bottom>=n.bottom&&S.page.left>=n.left+o.left&&S.page.right>=n.right){var a=e.scrollTop,u=e.scrollLeft;S.offset={top:S.page.top-n.top+a-o.top,left:S.page.left-n.left+u-o.left}}}(),this.move(S),this.history.unshift(S),this.history.length>3&&this.history.pop(),e&&N(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var n={};for(var i in t){n[i]={};for(var r in t[i]){for(var o=!1,a=0;a<this.history.length;++a){var s=this.history[a];if(void 0!==s[i]&&!y(s[i][r],t[i][r])){o=!0;break}}o||(n[i][r]=!0)}}var u={top:"",left:"",right:"",bottom:""},f=function(t,n){if(!1!==(void 0!==e.options.optimizations?e.options.optimizations.gpu:null)){var i=void 0,r=void 0;t.top?(u.top=0,i=n.top):(u.bottom=0,i=-n.bottom),t.left?(u.left=0,r=n.left):(u.right=0,r=-n.right),window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches||(r=Math.round(r),i=Math.round(i))),u[V]="translateX("+r+"px) translateY("+i+"px)","msTransform"!==V&&(u[V]+=" translateZ(0)")}else t.top?u.top=n.top+"px":u.bottom=n.bottom+"px",t.left?u.left=n.left+"px":u.right=n.right+"px"},d=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(u.position="absolute",f(n.page,t.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(u.position="fixed",f(n.viewport,t.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){u.position="absolute";var i=e.cache("target-offsetparent",function(){return l(e.target)});l(e.element)!==i&&D(function(){e.element.parentNode.removeChild(e.element),i.appendChild(e.element)}),f(n.offset,t.offset),d=!0}():(u.position="absolute",f({top:!0,left:!0},t.page)),!d)if(this.options.bodyElement)this.options.bodyElement.appendChild(this.element);else{for(var p=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName;){if("static"!==getComputedStyle(h).position){p=!1;break}h=h.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var m={},g=!1;for(var r in u){var v=u[r];this.element.style[r]!==v&&(g=!0,m[r]=v)}g&&D(function(){c(e.element.style,m),e.trigger("repositioned")})}}}]),e}(P);Q.modules=[],E.position=R;var G=c(Q,E),L=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),B=E.Utils,s=B.getBounds,c=B.extend,g=B.updateClasses,D=B.defer,Y=["left","top","right","bottom"];E.modules.push({position:function(t){var e=this,n=t.top,i=t.left,r=t.targetAttachment;if(!this.options.constraints)return!0;var o=this.cache("element-bounds",function(){return s(e.element)}),a=o.height,l=o.width;if(0===l&&0===a&&void 0!==this.lastSize){var u=this.lastSize;l=u.width,a=u.height}var f=this.cache("target-bounds",function(){return e.getTargetBounds()}),d=f.height,p=f.width,h=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,n=t.pinnedClass;e&&h.push(e),n&&h.push(n)}),h.forEach(function(t){["left","top","right","bottom"].forEach(function(e){h.push(t+"-"+e)})});var m=[],v=c({},r),y=c({},this.attachment);return this.options.constraints.forEach(function(t){var o=t.to,s=t.attachment,u=t.pin;void 0===s&&(s="");var c=void 0,f=void 0;if(s.indexOf(" ")>=0){var h=s.split(" "),g=L(h,2);f=g[0],c=g[1]}else c=f=s;var b=w(e,o);"target"!==f&&"both"!==f||(n<b[1]&&"top"===v.top&&(n+=d,v.top="bottom"),n+a>b[3]&&"bottom"===v.top&&(n-=d,v.top="top")),"together"===f&&("top"===v.top&&("bottom"===y.top&&n<b[1]?(n+=d,v.top="bottom",n+=a,y.top="top"):"top"===y.top&&n+a>b[3]&&n-(a-d)>=b[1]&&(n-=a-d,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&n+a>b[3]?(n-=d,v.top="top",n-=a,y.top="bottom"):"bottom"===y.top&&n<b[1]&&n+(2*a-d)<=b[3]&&(n+=a-d,v.top="top",y.top="top")),"middle"===v.top&&(n+a>b[3]&&"top"===y.top?(n-=a,y.top="bottom"):n<b[1]&&"bottom"===y.top&&(n+=a,y.top="top"))),"target"!==c&&"both"!==c||(i<b[0]&&"left"===v.left&&(i+=p,v.left="right"),i+l>b[2]&&"right"===v.left&&(i-=p,v.left="left")),"together"===c&&(i<b[0]&&"left"===v.left?"right"===y.left?(i+=p,v.left="right",i+=l,y.left="left"):"left"===y.left&&(i+=p,v.left="right",i-=l,y.left="right"):i+l>b[2]&&"right"===v.left?"left"===y.left?(i-=p,v.left="left",i-=l,y.left="right"):"right"===y.left&&(i-=p,v.left="left",i+=l,y.left="left"):"center"===v.left&&(i+l>b[2]&&"left"===y.left?(i-=l,y.left="right"):i<b[0]&&"right"===y.left&&(i+=l,y.left="left"))),"element"!==f&&"both"!==f||(n<b[1]&&"bottom"===y.top&&(n+=a,y.top="top"),n+a>b[3]&&"top"===y.top&&(n-=a,y.top="bottom")),"element"!==c&&"both"!==c||(i<b[0]&&("right"===y.left?(i+=l,y.left="left"):"center"===y.left&&(i+=l/2,y.left="left")),i+l>b[2]&&("left"===y.left?(i-=l,y.left="right"):"center"===y.left&&(i-=l/2,y.left="right"))),"string"==typeof u?u=u.split(",").map(function(t){return t.trim()}):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var _=[],x=[];n<b[1]&&(u.indexOf("top")>=0?(n=b[1],_.push("top")):x.push("top")),n+a>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-a,_.push("bottom")):x.push("bottom")),i<b[0]&&(u.indexOf("left")>=0?(i=b[0],_.push("left")):x.push("left")),i+l>b[2]&&(u.indexOf("right")>=0?(i=b[2]-l,_.push("right")):x.push("right")),_.length&&function(){var t=void 0;t=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),m.push(t),_.forEach(function(e){m.push(t+"-"+e)})}(),x.length&&function(){var t=void 0;t=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),m.push(t),x.forEach(function(e){m.push(t+"-"+e)})}(),(_.indexOf("left")>=0||_.indexOf("right")>=0)&&(y.left=v.left=!1),(_.indexOf("top")>=0||_.indexOf("bottom")>=0)&&(y.top=v.top=!1),v.top===r.top&&v.left===r.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),D(function(){!1!==e.options.addTargetClasses&&g(e.target,m,h),g(e.element,m,h)}),{top:n,left:i}}});var B=E.Utils,s=B.getBounds,g=B.updateClasses,D=B.defer;E.modules.push({position:function(t){var e=this,n=t.top,i=t.left,r=this.cache("element-bounds",function(){return s(e.element)}),o=r.height,a=r.width,l=this.getTargetBounds(),u=n+o,c=i+a,f=[];n<=l.bottom&&u>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==i&&e!==c||f.push(t)}),i<=l.right&&c>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==n&&e!==u||f.push(t)});var d=[],p=[],h=["left","top","right","bottom"];return d.push(this.getClass("abutted")),h.forEach(function(t){d.push(e.getClass("abutted")+"-"+t)}),f.length&&p.push(this.getClass("abutted")),f.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),D(function(){!1!==e.options.addTargetClasses&&g(e.target,p,d),g(e.element,p,d)}),!0}});var L=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return E.modules.push({position:function(t){var e=t.top,n=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:n}));var r=void 0,o=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var a=i,s=L(a,2);r=s[0],o=s[1],r=parseFloat(r,10),o=parseFloat(o,10)}else r=i.top,o=i.left;return e+=r,n+=o,{top:e,left:n}}}}),G})},function(t,e,n){"use strict";var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,n){(function(e){t.exports=e.Tether=n(23)}).call(e,n(24))},function(t,e,n){n(5),t.exports=n(6)}]);/**
|
||
* 2007-2020 PrestaShop.
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
* that is bundled with this package in the file LICENSE.txt.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* https://opensource.org/licenses/AFL-3.0
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to http://www.prestashop.com for more information.
|
||
*
|
||
* @author PrestaShop SA <contact@prestashop.com>
|
||
* @copyright 2007-2020 PrestaShop SA
|
||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
* International Registered Trademark & Property of PrestaShop SA
|
||
*/
|
||
$(document).ready(function(){$('.block_newsletter form').on('submit',function(){var psemailsubscriptionForm=$(this);if(typeof psemailsubscription_subscription==='undefined'){return!0}
|
||
$('.block_newsletter_alert').remove();$.ajax({type:'POST',dataType:'JSON',url:psemailsubscription_subscription,cache:!1,data:$(this).serialize(),success:function(data){if(data.nw_error){psemailsubscriptionForm.prepend('<p class="alert alert-danger block_newsletter_alert">'+data.msg+'</p>')}else{psemailsubscriptionForm.prepend('<p class="alert alert-success block_newsletter_alert">'+data.msg+'</p>')}},error:function(err){console.log(err)}});return!1})});/**
|
||
* @author Amazzing
|
||
* @copyright Amazzing
|
||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)*
|
||
*/
|
||
$(document).ready(function(){var ab_initialClasses={},ab_carousels={},ab_resizeTimer,$currentPresentationItems=$('.presentation-preview.current');if($currentPresentationItems.length){$('.presentation-preview').on('click',function(e){e.preventDefault();$(this).addClass('current').siblings().removeClass('current');var html=$(this).find('.full-content').html();$(this).closest('.block.presentation-view').find('.main-item').html(html)});$currentPresentationItems.click()}
|
||
$('.item-list.grid').each(function(){ab_normalizeHeights($(this))})
|
||
$('.item-list.carousel').each(function(){ab_renderCarousel($(this).closest('.block').data('id'))});$(window).resize(function(){clearTimeout(ab_resizeTimer);ab_resizeTimer=setTimeout(function(){$('.ab.block').find('.carousel.rendered').removeClass('rendered');$('.ab.block').find('.normalized').removeClass('normalized');$('.ab.block').find('.post-item-title, .post-item-content').css('min-height','');for(var id in ab_carousels){ab_renderCarousel(id)}},200)});function ab_renderCarousel(id){var $block=$('.ab.block[data-id="'+id+'"]'),$container=$block.find('.carousel'),settings=$block.data('carousel-settings'),w=$(window).width(),itemsNum=1;if($container.hasClass('rendered')||!settings){return}
|
||
$container.addClass('rendered');if(w>1199){itemsNum=settings.i}else if(w>991){itemsNum=settings.i_1200}else if(w>767){itemsNum=settings.i_992}else if(w>479){itemsNum=settings.i_768}else if(w<480){itemsNum=settings.i_480}
|
||
var contanerWidth=$container.closest('.block').innerWidth(),slideWidth=Math.round(contanerWidth/itemsNum);settings.min_width=100;if(slideWidth<settings.min_width){itemsNum=parseInt(contanerWidth/settings.min_width);slideWidth=parseInt(contanerWidth/itemsNum)}
|
||
var params={pager:settings.p==1?!0:!1,controls:parseInt(settings.n)>0?!0:!1,auto:settings.a==1?!0:!1,moveSlides:1,speed:parseInt(settings.s),maxSlides:itemsNum,minSlides:itemsNum,slideWidth:slideWidth,responsive:!1,swipeThreshold:1,useCSS:!0,oneToOneTouch:!1,infiniteLoop:settings.l==1?!0:!1,nextText:'<i class="icon-chevron-right"></i>',prevText:'<i class="icon-chevron-left"></i>',onSliderLoad:function(){$container.attr('class',ab_initialClasses[id]+' items-num-'+itemsNum).closest('.bx-wrapper').css('max-width','100%');ab_normalizeHeights($container);var $productImageContainer=$container.find('.product-image-container').first();if($productImageContainer.length){$container.closest('.bx-wrapper').find('.bx-prev, .bx-next').css('top',parseInt(($productImageContainer.outerHeight()/2)+5)+'px')}},onSlideBefore:function(){$block.find('.bx-controls-direction').addClass('no-bg')},onSlideAfter:function(){$block.find('.bx-controls-direction').removeClass('no-bg')}};if(id in ab_carousels)
|
||
ab_carousels[id].reloadSlider(params);else{if(settings.n==2&&!isMobile){$block.addClass('n-hover')}
|
||
ab_initialClasses[id]=$container.attr('class');ab_carousels[id]=$container.bxSlider(params)}}});function ab_normalizeHeights($list){if($list.hasClass('normalized')){return}
|
||
if($list.hasClass('post-list')){var thMax=0,chMax=0;$list.append('<div class="first-in-line phantom hidden"></div>');$list.children().each(function(){if($(this).hasClass('first-in-line')){$(this).prevAll().not('.normalized').addClass('normalized').find('.post-item-title').css({'min-height':thMax+'px'}).siblings('.post-item-content').css({'min-height':chMax+'px'});thMax=0;chMax=0;if($(this).hasClass('phantom')){$list.addClass('normalized');$(this).remove()}}
|
||
var th=$(this).find('.post-item-title').outerHeight();thMax=th>thMax?th:thMax;var ch=$(this).find('.post-item-content').outerHeight();chMax=ch>chMax?ch:chMax})}};function p24onResize(){if($(window).width()<=640){$('.pay-method-list').addClass('mobile')}else{$('.pay-method-list').removeClass('mobile')}}
|
||
function p24setMethod(method){$('form#przelewy24Form input[name=p24_method]').val(parseInt(method)>0?parseInt(method):"")}
|
||
function p24RememberCard(action,data){jQuery.ajax({url:action,method:'POST',data:data}).done(function(data){if(data.status==1){}})}
|
||
var formObject={'formAction':'','btnTextSubmit':''};$(document).ready(function(){$('.bank-box').click(function(){var isSelected=!1;var $btn=$('form#przelewy24Form button[type="submit"]');if($(this).hasClass('selected')){isSelected=!0}
|
||
$('.bank-box').removeClass('selected').addClass('inactive');if(isSelected){if(formObject.formAction.length){$("form#przelewy24Form").attr('action',formObject.formAction);$btn.text(formObject.btnTextSubmit);$('.p24-small-text').show()}
|
||
p24setMethod(0);$('.bank-box').removeClass('inactive')}else{if($(this).attr('data-action')){if(!formObject.formAction){formObject.formAction=$("form#przelewy24Form").attr('action')}
|
||
$("form#przelewy24Form").attr('action',$(this).attr('data-action'));$('form input[name="p24_card_customer_id"]').val($(this).attr('data-card-id'));var btnText=$btn.attr('data-text-oneclick');if(!formObject.btnTextSubmit){formObject.btnTextSubmit=$btn.text()}
|
||
$btn.text(btnText);$('.p24-small-text').hide()}else{p24setMethod($(this).attr('data-id'));if(formObject.formAction.length){$("form#przelewy24Form").attr('action',formObject.formAction);$btn.text(formObject.btnTextSubmit);$('.p24-small-text').show()}}
|
||
$(this).addClass('selected').removeClass('inactive')}});$('.p24-more-stuff').click(function(){$(this).fadeOut(100,function(){$('.p24-less-stuff').fadeIn()});$('.pay-method-list-second').slideDown()});$('.p24-less-stuff').click(function(){$(this).fadeOut(100,function(){$('.p24-more-stuff').fadeIn()});$('.pay-method-list-second').slideUp()});$(".p24-payment-return-page input.p24-remember-my-card").change(function(){var action=$(this).attr('data-action');var remember=0;if($(this).is(':checked')){remember=1}
|
||
var data={'remember':remember};p24RememberCard(action,data);if($('#P24_registerCard').length){if($('.p24-remember-my-card').is(':checked')){$('#P24_registerCard').prop('checked',!0)}else{$('#P24_registerCard').prop('checked',!1)}}});if($(".p24-payment-return-page input.p24-remember-my-card:checked")){var action=$("input.p24-remember-my-card:checked").attr('data-action');var data={'remember':1};if(action!=undefined&&action!=""){p24RememberCard(action,data)}}
|
||
p24onResize();if($('#P24FormArea').length){var targetNode=document.getElementById('P24FormArea');var config={attributes:!0,childList:!0};var callback=function(mutation){try{document.getElementById('P24_registerCard').style.display='none';document.getElementById('register-text').style.display='none';document.getElementById("P24_registerCard").checked=document.getElementById("p24-remember-my-card").checked}catch(ex){}};var observer=new MutationObserver(callback);observer.observe(targetNode,config)}});$(window).resize(function(){p24onResize()});function hidePayJsPopup(){$('#P24FormAreaHolder').fadeOut();$('#proceedPaymentLink:not(:visible)').closest('a').fadeIn()}
|
||
function showRegisterCardButton(){$('.p24-register-card-wrapper .p24-add-credit-card').show()}
|
||
function hideRegisterCardButton(){$('.p24-register-card-wrapper .p24-add-credit-card').hide()}
|
||
function showPayJsPopup(){setP24method("");$('#P24FormAreaHolder').appendTo('body');$('#proceedPaymentLink').closest('a').fadeOut();$('#P24FormAreaHolder').fadeIn();if(typeof P24_Transaction!='object'){requestJsAjaxCard()}}
|
||
function hidePayJsPopup(){$('#P24FormAreaHolder').fadeOut();p24setMethod(0);$('.bank-box').removeClass('selected');$('.bank-box').removeClass('inactive');$('#proceedPaymentLink:not(:visible)').closest('a').fadeIn()}
|
||
function setP24method(method){$('form#przelewy24Form input[name=p24_method]').val(parseInt(method)>0?parseInt(method):"")}
|
||
var sessionId=!1;var sign=!1;var payInShopScriptRequested=!1;function requestJsAjaxCard(){p24showLoader();var actionForm=$('.p24-register-card-wrapper').attr('data-action-register-card-form');$.ajax(actionForm,{method:'POST',type:'POST',data:{action:$('.p24-register-card-wrapper').attr('data-card-action'),cartId:$('.p24-register-card-wrapper').attr('data-card-cart-id')},error:function(){payInShopFailure()},success:function(response){p24hideLoader();var data=JSON.parse(response);if(data.error){$('#p24-register-card-form').fadeIn(200).html('<p class="p24-text-error">'+data.error+'</p>')}else{sessionId=data.sessionId;sign=data.p24_sign;var dictionary=$('.p24-register-card-wrapper').attr('data-dictionary');$('#P24FormArea').html("");var p24FormContainer=$("<div></div>").attr('id','P24FormContainer').attr('data-sign',data.p24_sign).attr('data-successCallback',$('.p24-register-card-wrapper').attr('data-successCallback')).attr('data-failureCallback',$('.p24-register-card-wrapper').attr('data-failureCallback')).attr('data-client-id',data.client_id).attr('data-dictionary',dictionary).appendTo('#P24FormArea');setTimeout(function(){setFormCenter();$('#P24FormArea').fadeIn("slow",function(){$('#p24-card-loader').fadeOut()})},200);if(document.createStyleSheet){document.createStyleSheet(data.p24cssURL)}else{$('head').append('<link rel="stylesheet" type="text/css" href="'+data.p24cssURL+'" />')}
|
||
if(!payInShopScriptRequested){$.getScript(data.p24jsURL,function(){P24_Transaction.init();$('#P24FormContainer').removeClass('loading');payInShopScriptRequested=!1;window.setTimeout(function(){$('#P24FormContainer button').on('click',function(){if(P24_Card.validate()){$(this).after('<div class="loading" id="card-loader" style="display: none"></div>');$('#card-loader').fadeIn('slow')}})},1000)})}
|
||
payInShopScriptRequested=!0}}})}
|
||
function setFormCenter(){var p24FormArea=$('#P24FormArea');p24FormArea.css('display','none');p24FormArea.css('visibility','visible')}
|
||
function registerCardInPanelSuccess(orderId){$('#P24FormArea').fadeOut(function(){$('#p24-card-loader').fadeIn()});action=$('.p24-register-card-wrapper').attr('data-action-register-card-confirm');$.ajax(action,{method:'POST',type:'POST',data:{p24_session_id:sessionId,p24_order_id:orderId},error:function(response){registerCardInPanelFailure(response)},success:function(response){p24hideLoader();if(parseInt(response.success)==1){setTimeout(function(){location.reload()},500)}else{registerCardInPanelFailure(response.error)}}})}
|
||
function registerCardInPanelFailure(error){p24hideLoader();console.log(error);$('#P24FormArea').fadeOut(function(){var message=$('.p24-account-card-form').attr('data-translate-error');if(error!=undefined){if(error.errorMessagePl){message=error.errorMessagePl}else if(error.errorMessage){message=error.errorMessage}else{message=error}}
|
||
$('#p24-card-alert').html('<div class="alert alert-danger">'+message+'<button type="button" class="close" data-dismiss="alert">×</button></div>');P24_Transaction=undefined;$('#p24-card-alert').fadeIn()})}
|
||
function payInShopSuccess(orderId,oneclickOrderId){action=$('.p24-register-card-wrapper').attr('data-action-remember_order_id');$.ajax(action,{method:'POST',type:'POST',data:{sessionId,orderId,oneclickOrderId,sign},});setTimeout(function(){href=$('.p24-register-card-wrapper').attr('data-action-payment-success');window.location.href=href},500)}
|
||
function payInShopFailure(){p24hideLoader();setTimeout(function(){href=$('.p24-register-card-wrapper').attr('data-action-payment-failed');window.location.href=href},500)}
|
||
function p24showLoader(){$('.p24-loader').fadeIn(400);$('.p24-loader-bg').fadeIn(300)}
|
||
function p24hideLoader(){$('.p24-loader').fadeOut(300);$('.p24-loader-bg').fadeOut(300)}
|
||
function formSubmit(description){var form=document.getElementById('przelewy24Form');var descriptionInput=$("[name='p24_description']");if(description!=undefined){descriptionInput.val(description)}
|
||
form.submit()}
|
||
function proceedPayment(cartId){$action=$('#submitButton').attr('data-validation-link');$.ajax($action,{method:'POST',type:'POST',data:{action:'makeOrder',cartId:cartId},error:function(){formSubmit()},success:function(response){formSubmit(response.description)}})};var sensbitinpost=function(p,e,t){var d={module:"",text_choose_point:"",text_point_cod:"",text_phone_required:"",loaded:!1,id_interval:!1,use_desintifier:!1,carriers:[],carriers_cod:[],point:"",point_label:"",carrier_selector:".delivery_option_radio",point_required:!1,validate_cod:0,map_is_open:!1,x13opc:!1,onepagecheckout:!1,supercheckout:!1,onepagecheckoutps:!1,wkonepagecheckout:!1,spstepcheckout:!1,steasycheckout:!1,easypay:!1,bestkit_opc:!1,google_key:"AIzaSyDZc6Ajf0PqhUAzbktozQyHFpi5V7TZW_o",use_interval:!1,conf_btn:"button[name=processCarrier]",ps17:!1,ajax_url:"",show_chooser_below_list:!1,easypack_init:!1,map_type:"google",delivery_block:null,validate_fields:", input#cgv, input#cgv2, input#privacy_policy, input#kb_super_policy_1, input#kb_super_policy_2, #conditions_to_approve\\[terms-and-conditions\\], input[required][id^=conditions_to_approve], input[required][id^=agreement], input[name=psgdpr], input[name=required-checkbox-1]"};function u(e){return e.text}function _(e){return e.split("").reverse().join("")}function i(){0<p(".delivery-option.sensbitinpost").length&&p(".delivery-option.sensbitinpost").removeClass("sensbitinpost");var e=p(d.carrier_selector).filter(":checked");if(e.hasClass("wk_selected_shipping")&&void 0!==e.data("idCarrier"))var t=parseInt(e.data("idCarrier"));else t=parseInt(e.val());if(d.use_desintifier&&3<t.toString().length&&t.toString().indexOf(",")<=-1&&(t=parseInt(function(e){e=e.toString();var t=parseInt(e[0]);return _((e=_(e.substr(1))).split("0".repeat(t+1)).join(","))}(t))),-1!==p.inArray(t,d.carriers)){d.point_required=!0;var i="append";if(d.show_chooser_below_list){if(d.onepagecheckoutps)(o=e.closest(".delivery-options")).length||(o=e.closest(".delivery_options_address")),i="append";else if(d.onepagecheckout){var o=p("#carriers_section");i="after"}else if(d.supercheckout)o=p("#shipping-method");else if(d.spstepcheckout)o=p("#shipping_container");else if(d.steasycheckout){o=p("#js-delivery");i="after"}else{o=p(d.ps17?".delivery-options-list .delivery-options":".delivery_options_address");i="append"}o.is("table")&&(i="after")}else if(d.x13opc)o=e.closest(".delivery_option");else if(d.onepagecheckout){(o=e.closest("tr")).length||(o=e.closest(".delivery_option"))}else if(d.onepagecheckoutps){o=e.closest(".delivery-option, .delivery_option");i="after"}else if(d.supercheckout){(o=e.closest("tr")).length<=0&&(o=e.closest("li"))}else if(d.easypay)o=e.closest("tr");else if(d.wkonepagecheckout){i="after",(o=p(d.carrier_selector).closest(".wk-shipping-list")).length<=0&&(o=p(d.carrier_selector).closest("#wk_shipping_section"),i="append")}else if(d.bestkit_opc)o=e.closest("tr");else{(o=e.closest(d.ps17?".delivery-option":".delivery_option")).length||(o=e.closest(d.ps17?".delivery_option":".delivery-option")),o.length||(o=e.closest(".form-group")),o.length||(o=e.closest(".tablecart")),o.length||(o=e.next("label")),i="after"}if(d.validate_cod=-1!==p.inArray(t,d.carriers_cod)?1:0,o.is("tr")&&(i="after"),"after"===i)var n=o.parent().find("."+d.module+"."+d.validate_cod).length;else n=o.find("."+d.module+"."+d.validate_cod).length;if(!n){var s=p("#"+d.module).clone(!0);if(s.removeAttr("id"),s.addClass(d.validate_cod.toString()),d.show_chooser_below_list&&d.ps17?s.css("margin-top","0"):d.ps17&&o.is("label")&&s.css("margin-top","20px").css("margin-left",0).css("margin-right",0),d.show_chooser_below_list||!d.x13opc&&!o.is("tr"))"append"===i?o.append(s):"after"===i&&o.after(s);else{var r=o;o.is("tr")||(o=o.find("tr")),s.css("margin","0");var a=o.find("td").length;o.find("td").css("border","0");var l=p('<tr class="'+d.module+'-tr"><td colspan="'+a+'" style="border:0;padding:0;" class="'+d.module+'-td"></td></tr>');l.find("td").append(s),o.after(l);var c=o.next("."+d.module+"-tr").find("."+d.module+"-td");r.width()<c.width()&&!d.supercheckout?c.css("max-width","0"):d.supercheckout?(o.next(".sensbitinpost-tr").css("display","block"),c.css("display","block"),c.css("width","100%")):d.bestkit_opc&&c.css("max-width","0")}p(s).find("."+d.module+"-point-select").not(".active").addClass("active").select2sensbitinpost({language:"pl",allowClear:!1,closeOnSelect:!0,selectOnClose:!1,width:300,ajax:{url:d.ajax_url,dataType:"json",delay:250,data:function(e){return{ajax:1,action:"searchPoints",q:e.term,is_cod:d.validate_cod,page:e.page||1}},processResults:function(e,t){t.page=t.page||1;var i=p.map(e.items,function(e){return e.id=e.name,e.text=e.label,e});return{results:i,pagination:{more:30*t.page<e.total_count}}},cache:!0},escapeMarkup:function(e){return e},minimumInputLength:1,templateResult:u,templateSelection:u}),d.point.length<=0&&p(d.conf_btn+d.validate_fields).filter(":visible").filter(":checkbox").each(function(){p(this).prop("checked",!1),void 0!==p.uniform&&p.uniform.update(this),"function"!=typeof updatePaymentMethodsDisplay||d.bestkit_opc||updatePaymentMethodsDisplay()})}p("."+d.module).not("."+d.validate_cod).hide(),p("."+d.module+"."+d.validate_cod).show(),d.validate_cod&&d.point_required&&0<d.point.length&&m.updatePoint(d.point,"."+d.module+"-point-select")}else p("."+d.module).hide(),d.point_required=!1;!function(){if(1<=p("#order-summary-content .addresshead").first().length)if(null===d.delivery_block&&(d.delivery_block=p("#order-summary-content .addresshead").first().closest("div").html()),d.point_required&&0<d.point.length){var e=p("#order-summary-content .addresshead").first()[0].outerHTML;e+=d.point_address,p("#order-summary-content .addresshead").first().closest("div").html(e)}else p("#order-summary-content .addresshead").first().closest("div").html(d.delivery_block)}()}function o(e){var t=!1;if(d.point_required&&d.point.length<=0)t=!0,e.preventDefault(),e.stopPropagation(),alert(d.text_choose_point),p("."+d.module+"-map-btn").trigger("click");else if(d.point_required&&p("."+d.module+"-phone-input:visible").length){9!==p("."+d.module+"-phone-input:visible").val().replace(/\D/g,"").length&&(t=!0,e.preventDefault(),e.stopPropagation(),alert(d.text_phone_required))}t?(p("."+d.module).addClass("error"),p(this).is(":checkbox")&&p(this).is(":visible")&&(p(this).prop("checked",!1),void 0!==p.uniform&&p.uniform.update(this)),p("html, body").animate({scrollTop:p("."+d.module+":visible").offset().top-150},500)):p("."+d.module).removeClass("error")}String.prototype.repeat=function(e){return new Array(e+1).join(this)};var m={setOptions:function(e){void 0!==e.point&&(null!==e.point&&e.point||(e.point="")),p.extend(d,e),0<d.point.length&&m.updatePoint(d.point,"."+d.module+"-point-select"),p("input.multi_carrier_poland").length?d.carrier_selector="input.multi_carrier_poland":p(d.carrier_selector).length<=0&&(p("input[name^='delivery_option']").length&&(d.carrier_selector="input[name^='delivery_option']"),p("input[name^='id_carrier']").length&&(d.carrier_selector="input[name^='id_carrier']")),p(d.conf_btn+d.validate_fields).length<=0&&(d.conf_btn="button[name=confirmDeliveryOption]")},debug:function(){console.log(d)},init:function(e){d.loaded||(void 0!==e&&m.setOptions(e),d.loaded=!0,d.id_interval=setInterval(function(){void 0!==p&&(p(function(){if(console.log(d.text_console,"font-size:18px;color:#c00;"),d.hide_map||(p("."+d.module+"-map-container").remove(),p("body").append("<div class='"+d.module+"-map-container'><div id='sensbiteasypack-map'></div></div>"),p("."+d.module+"-map-container").click(function(e){p(e.target).parents("."+d.module+"-map-container").length||(p(this).fadeOut(),d.map_is_open=!1)})),i(),p(document).on("change",d.carrier_selector,function(){i()}),d.use_interval)setInterval(function(){i()},500);p(document).on("change","."+d.module+"-point-select",function(){var e=p(this);m.updatePoint(e.val(),e)}),p(document).on("keyup","."+d.module+"-phone-input",function(){p(this).val(p(this).val().replace(/\D/g,""))}),p(document).on("change","."+d.module+"-phone-input",function(){m.updatePoint(d.point,"."+d.module+"-point-select")}),p(document).on("submit","form[name=carrier_area]",function(e){o(e)}),p(document).on("click touch",d.conf_btn+d.validate_fields,function(e){o(e)})}),clearInterval(d.id_interval))},300))},openMap:function(i,e){if(!d.map_is_open){if(d.map_is_open=!0,!d.easypack_init){d.easypack_init=!0,SensbitInpostEasyPack.init({defaultLocale:"pl",closeTooltip:!0,points:{types:["parcel_locker"]},mapType:d.map_type,searchType:d.map_type,map:{googleKey:d.google_key,initialTypes:["parcel_locker"]},closestLimit:500});var t=SensbitInpostEasyPack.mapWidget("sensbiteasypack-map",function(t){p(i).filter(":visible").each(function(){var e=p(this);e.hasClass(".paczkomat-select")||e.val(t.name),p(i).parents("."+d.module).find("."+d.select2+"-selection__rendered").text([t.name,t.address.line1,t.address.line2].join(", ")),m.updatePoint(t.name,i)}),p("."+d.module+"-map-container").fadeOut(),d.map_is_open=!1});void 0!==e&&3<=e.length&&t.searchPlace(e)}p("."+d.module+"-map-container").fadeIn()}},updatePoint:function(i,o){var e=p("."+d.module+"-phone-input:visible");e.length||(e=p("."+d.module+"-phone-input").eq(0)),p.ajax({url:d.ajax_url,type:"POST",data:{ajax:1,action:"updatePoint",point:i,check_cod:d.validate_cod,phone:e.length?e.val():""},success:function(e){var t;"0"===e?(d.point="",p(o).closest("."+d.module).find("."+d.select2+"-selection__rendered").text(""),t=d.text_point_cod,p.prototype.fancybox?p.fancybox.open([{type:"inline",autoScale:!0,minHeight:30,content:'<p class="fancybox-error">'+t+"</p>"}],{padding:0,helpers:{overlay:{locked:!1}}}):alert(t)):(d.point_address=e,d.point=i,p("."+d.module).removeClass("error"))}})}};return m}($,window,document);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.select2sensbitinpost&&n.fn.select2sensbitinpost.amd)var e=n.fn.select2sensbitinpost.amd;var t,i,c;return e&&e.requirejs||(e?i=e:e={},function(d){function h(e,t){return n.call(e,t)}function r(e,t){var n,s,i,o,r,a,l,c,u,p,d,h=t&&t.split("/"),f=w.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(r=(e=e.split("/")).length-1,w.nodeIdCompat&&A.test(e[r])&&(e[r]=e[r].replace(A,"")),e=h.slice(0,h.length-1).concat(e),u=0;u<e.length;u+=1)if("."===(d=e[u]))e.splice(u,1),u-=1;else if(".."===d){if(1===u&&(".."===e[2]||".."===e[0]))break;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(s=n.slice(0,u).join("/"),h)for(p=h.length;0<p;p-=1)if((i=f[h.slice(0,p).join("/")])&&(i=i[s])){o=i,a=u;break}if(o)break;!l&&g&&g[s]&&(l=g[s],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function f(t,n){return function(){var e=s.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),l.apply(d,e.concat([t,n]))}}function g(t){return function(e){b[t]=e}}function m(e){if(h(_,e)){var t=_[e];delete _[e],$[e]=!0,o.apply(d,t)}if(!h(b,e)&&!h($,e))throw new Error("No "+e);return b[e]}function a(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}var o,l,v,y,b={},_={},w={},$={},n=Object.prototype.hasOwnProperty,s=[].slice,A=/\.js$/;v=function(e,t){var n,s,i=a(e),o=i[0];return e=i[1],o&&(n=m(o=r(o,t))),o?e=n&&n.normalize?n.normalize(e,(s=t,function(e){return r(e,s)})):r(e,t):(o=(i=a(e=r(e,t)))[0],e=i[1],o&&(n=m(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},y={require:function(e){return f(e)},exports:function(e){var t=b[e];return void 0!==t?t:b[e]={}},module:function(e){return{id:e,uri:"",exports:b[e],config:(t=e,function(){return w&&w.config&&w.config[t]||{}})};var t}},o=function(e,t,n,s){var i,o,r,a,l,c,u=[],p=typeof n;if(s=s||e,"undefined"===p||"function"===p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=v(t[l],s)).f))u[l]=y.require(e);else if("exports"===o)u[l]=y.exports(e),c=!0;else if("module"===o)i=u[l]=y.module(e);else if(h(b,o)||h(_,o)||h($,o))u[l]=m(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,f(s,!0),g(o),{}),u[l]=b[o]}r=n?n.apply(b[e],u):void 0,e&&(i&&i.exports!==d&&i.exports!==b[e]?b[e]=i.exports:r===d&&c||(b[e]=r))}else e&&(b[e]=n)},t=i=l=function(e,t,n,s,i){if("string"==typeof e)return y[e]?y[e](t):m(v(e,t).f);if(!e.splice){if((w=e).deps&&l(w.deps,w.callback),!t)return;t.splice?(e=t,t=n,n=null):e=d}return t=t||function(){},"function"==typeof n&&(n=s,s=i),s?o(d,e,t,n):setTimeout(function(){o(d,e,t,n)},4),l},l.config=function(e){return l(e)},t._defined=b,(c=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),h(b,e)||h(_,e)||(_[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=i,e.define=c),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2sensbitinpost/utils",["jquery"],function(o){function u(e){var t=e.prototype,n=[];for(var s in t){"function"==typeof t[s]&&"constructor"!==s&&n.push(s)}return n}var e={Extend:function(e,t){function n(){this.constructor=e}var s={}.hasOwnProperty;for(var i in t)s.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(s,i){function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}var e=u(i),t=u(s);i.displayName=s.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var r=t[n];o.prototype[r]=s.prototype[r]}for(var a=function(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o}},t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,s=e.length;n<s;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),s=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in s||(s[o]={}),i==n.length-1&&(s[o]=e[t]),s=s[o]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=o(t),s=t.style.overflowX,i=t.style.overflowY;return(s!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===s||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},e.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e}),e.define("select2sensbitinpost/results",["jquery","./utils"],function(d,e){function s(e,t,n){this.$element=e,this.data=n,this.options=t,s.__super__.constructor.call(this)}return e.Extend(s,e.Observable),s.prototype.render=function(){var e=d('<ul class="select2sensbitinpost-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=d('<li role="treeitem" aria-live="assertive" class="select2sensbitinpost-results__option"></li>'),s=this.options.get("translations").get(e.message);n.append(t(s(e.args))),n[0].className+=" select2sensbitinpost-results__message",this.$results.append(n)},s.prototype.hideMessages=function(){this.$results.find(".select2sensbitinpost-results__message").remove()},s.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var s=e.results[n],i=this.option(s);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},s.prototype.position=function(e,t){t.find(".select2sensbitinpost-results").append(e)},s.prototype.sort=function(e){return this.options.get("sorter")(e)},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2sensbitinpost-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=d.map(e,function(e){return e.id.toString()});t.$results.find(".select2sensbitinpost-results__option[aria-selected]").each(function(){var e=d(this),t=d.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<d.inArray(n,s)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},s.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(e){var t=document.createElement("li");t.className="select2sensbitinpost-results__option";var n={role:"treeitem","aria-selected":"false"};for(var s in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var i=n[s];t.setAttribute(s,i)}if(e.children){var o=d(t),r=document.createElement("strong");r.className="select2sensbitinpost-results__group",d(r),this.template(e,r);for(var a=[],l=0;l<e.children.length;l++){var c=e.children[l],u=this.option(c);a.push(u)}var p=d("<ul></ul>",{class:"select2sensbitinpost-results__options select2sensbitinpost-results__options--nested"});p.append(a),o.append(r),o.append(p)}else this.template(e,t);return d.data(t,"data",e),t},s.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var s=n-1;0===e.length&&(s=0);var i=t.eq(s);i.trigger("mouseenter");var o=l.$results.offset().top,r=i.offset().top,a=l.$results.scrollTop()+(r-o);0===s?l.$results.scrollTop(0):r-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var s=t.eq(n);s.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=s.offset().top+s.outerHeight(!1),r=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(r)}}),t.on("results:focus",function(e){e.element.addClass("select2sensbitinpost-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),d.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,s=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();s?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2sensbitinpost-results__option[aria-selected]",function(e){var t=d(this),n=t.data("data");return"true"===t.attr("aria-selected")?void(l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})):void l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2sensbitinpost-results__option[aria-selected]",function(e){var t=d(this).data("data");l.getHighlightedResults().removeClass("select2sensbitinpost-results__option--highlighted"),l.trigger("results:focus",{data:t,element:d(this)})})},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2sensbitinpost-results__option--highlighted")},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,s=e.offset().top,i=this.$results.scrollTop()+(s-n),o=s-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},s.prototype.template=function(e,t){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=s(i):d(t).append(i)},s}),e.define("select2sensbitinpost/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2sensbitinpost/selection/base",["jquery","../utils","../keys"],function(n,e,i){function s(e,t){this.$element=e,this.options=t,s.__super__.constructor.call(this)}return e.Extend(s,e.Observable),s.prototype.render=function(){var e=n('<span class="select2sensbitinpost-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},s.prototype.bind=function(e,t){var n=this,s=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},s.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},s.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2sensbitinpost."+e.id,function(e){var t=n(e.target).closest(".select2sensbitinpost");n(".select2sensbitinpost.select2sensbitinpost-container--open").each(function(){var e=n(this);this!=t[0]&&e.data("element").select2sensbitinpost("close")})})},s.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2sensbitinpost."+e.id)},s.prototype.position=function(e,t){t.find(".selection").append(e)},s.prototype.destroy=function(){this._detachCloseHandler(this.container)},s.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},s}),e.define("select2sensbitinpost/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,s){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2sensbitinpost-selection--single"),e.html('<span class="select2sensbitinpost-selection__rendered"></span><span class="select2sensbitinpost-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2sensbitinpost-selection__rendered").attr("id",s),this.$selection.attr("aria-labelledby",s),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(e){n.update(e.data)})},i.prototype.clear=function(){this.$selection.find(".select2sensbitinpost-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2sensbitinpost-selection__rendered"),s=this.display(t,n);n.empty().append(s),n.prop("title",t.title||t.text)}else this.clear()},i}),e.define("select2sensbitinpost/selection/multiple",["jquery","./base","../utils"],function(s,e,a){function i(e,t){i.__super__.constructor.apply(this,arguments)}return a.Extend(i,e),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2sensbitinpost-selection--multiple"),e.html('<ul class="select2sensbitinpost-selection__rendered"></ul>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2sensbitinpost-selection__choice__remove",function(e){if(!n.options.get("disabled")){var t=s(this).parent().data("data");n.trigger("unselect",{originalEvent:e,data:t})}})},i.prototype.clear=function(){this.$selection.find(".select2sensbitinpost-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return s('<li class="select2sensbitinpost-selection__choice"><span class="select2sensbitinpost-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var s=e[n],i=this.selectionContainer(),o=this.display(s,i);i.append(o),i.prop("title",s.title||s.text),i.data("data",s),t.push(i)}var r=this.$selection.find(".select2sensbitinpost-selection__rendered");a.appendMany(r,t)}},i}),e.define("select2sensbitinpost/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2sensbitinpost-selection__placeholder").removeClass("select2sensbitinpost-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var s=this.createPlaceholder(this.placeholder);this.$selection.find(".select2sensbitinpost-selection__rendered").append(s)},t}),e.define("select2sensbitinpost/selection/allowClear",["jquery","../keys"],function(s,i){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2sensbitinpost-selection__clear",function(e){s._handleClear(e)}),t.on("keypress",function(e){s._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2sensbitinpost-selection__clear");if(0!==n.length){t.stopPropagation();for(var s=n.data("data"),i=0;i<s.length;i++){var o={data:s[i]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||(t.which==i.DELETE||t.which==i.BACKSPACE)&&this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2sensbitinpost-selection__placeholder").length||0===t.length)){var n=s('<span class="select2sensbitinpost-selection__clear">×</span>');n.data("data",t),this.$selection.find(".select2sensbitinpost-selection__rendered").prepend(n)}},e}),e.define("select2sensbitinpost/selection/search",["jquery","../utils","../keys"],function(s,e,r){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=s('<li class="select2sensbitinpost-search select2sensbitinpost-search--inline"><input class="select2sensbitinpost-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("open",function(){s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){s.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2sensbitinpost-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2sensbitinpost-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2sensbitinpost-search--inline",function(e){if(e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===r.BACKSPACE&&""===s.$search.val()){var t=s.$searchContainer.prev(".select2sensbitinpost-selection__choice");if(0<t.length){var n=t.data("data");s.searchRemoveChoice(n),e.preventDefault()}}});var i=document.documentMode,o=i&&i<=11;this.$selection.on("input.searchcheck",".select2sensbitinpost-search--inline",function(e){return o?void s.$selection.off("input.search input.searchcheck"):void s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2sensbitinpost-search--inline",function(e){if(o&&"input"===e.type)s.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=r.SHIFT&&t!=r.CTRL&&t!=r.ALT&&t!=r.TAB&&s.handleSearch(e)}})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2sensbitinpost-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2sensbitinpost-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},t}),e.define("select2sensbitinpost/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var s=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==r.inArray(e,i)){t=t||{};var n=r.Event("select2sensbitinpost:"+e,{params:t});s.$element.trigger(n),-1!==r.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2sensbitinpost/translation",["jquery","require"],function(t,n){function s(e){this.dict=e||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(e){return this.dict[e]},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},s._cache={},s.loadPath=function(e){if(!(e in s._cache)){var t=n(e);s._cache[e]=t}return new s(s._cache[e])},s}),e.define("select2sensbitinpost/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("select2sensbitinpost/data/base",["../utils"],function(s){function n(e,t){n.__super__.constructor.call(this)}return s.Extend(n,s.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return(n+=s.generateChars(4))+(null!=t.id?"-"+t.id.toString():"-"+s.generateChars(4))},n}),e.define("select2sensbitinpost/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],s=this;this.$element.find(":selected").each(function(){var e=a(this),t=s.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,a(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var s=i[n].id;-1===a.inArray(s,t)&&t.push(s)}o.$element.val(t),o.$element.trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple"))return i.selected=!1,a(i.element).is("option")?(i.element.selected=!1,void this.$element.trigger("change")):void this.current(function(e){for(var t=[],n=0;n<e.length;n++){var s=e[n].id;s!==i.id&&-1===a.inArray(s,t)&&t.push(s)}o.$element.val(t),o.$element.trigger("change")})},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})},n.prototype.query=function(s,e){var i=[],o=this;this.$element.children().each(function(){var e=a(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(s,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=a(t),s=this._normalizeItem(e);return s.element=t,a.data(t,"data",s),n},n.prototype.item=function(e){var t={};if(null!=(t=a.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),s=[],i=0;i<n.length;i++){var o=a(n[i]),r=this.item(o);s.push(r)}t.children=s}return(t=this._normalizeItem(t)).element=e[0],a.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){a.isPlainObject(e)||(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2sensbitinpost/data/array",["./select","../utils","jquery"],function(e,f,g){function s(e,t){var n=t.get("data")||[];s.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return f.Extend(s,e),s.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),s.__super__.select.call(this,n)},s.prototype.convertToOptions=function(e){function t(e){return function(){return g(this).val()==e.id}}for(var n=this,s=this.$element.find("option"),i=s.map(function(){return n.item(g(this)).id}).get(),o=[],r=0;r<e.length;r++){var a=this._normalizeItem(e[r]);if(0<=g.inArray(a.id,i)){var l=s.filter(t(a)),c=this.item(l),u=g.extend(!0,{},a,c),p=this.option(u);l.replaceWith(p)}else{var d=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(d,h)}o.push(d)}}return o},s}),e.define("select2sensbitinpost/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var s=o.ajax(e);return s.then(t),s.fail(n),s}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,s){function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),s(t)},function(){e.status&&"0"===e.status||i.trigger("results:message",{message:"errorLoading"})});i._request=e}var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2sensbitinpost/data/tags",["jquery"],function(u){function e(e,t,n){var s=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(s))for(var r=0;r<s.length;r++){var a=s[r],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var p=this;return this._removeOldTags(),null==c.term||null!=c.page?void e.call(this,c,u):void e.call(this,c,function e(t,n){for(var s=t.results,i=0;i<s.length;i++){var o=s[i],r=null!=o.children&&!e({results:o.children},!0);if(o.text===c.term||r)return!n&&(t.data=s,void u(t))}if(n)return!0;var a=p.createTag(c);if(null!=a){var l=p.option(a);l.attr("data-select2sensbitinpost-tag",!0),p.addOptions([l]),p.insertTag(s,a)}t.results=s,u(t)})},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){(this._lastTag,this.$element.find("option[data-select2sensbitinpost-tag]")).each(function(){this.selected||u(this).remove()})},e}),e.define("select2sensbitinpost/data/tokenizer",["jquery"],function(p){function e(e,t,n){var s=n.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2sensbitinpost-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var s=this.tokenizer(t,this.options,function(e){var t,n=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return p(this).val()===n.id}).length){var s=i.option(n);s.attr("data-select2sensbitinpost-tag",!0),i._removeOldTags(),i.addOptions([s])}t=n,i.trigger("select",{data:t})});s.term!==t.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.focus()),t.term=s.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,s){for(var i=n.get("tokenSeparators")||[],o=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<o.length;){var l=o[r];if(-1!==p.inArray(l,i)){var c=o.substr(0,r),u=a(p.extend({},t,{term:c}));null!=u?(s(u),o=o.substr(r+1)||"",r=0):r++}else r++}return{term:o}},e}),e.define("select2sensbitinpost/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2sensbitinpost/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2sensbitinpost/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,s,i){var o=this;this.current(function(e){var t=null!=e?e.length:0;return 0<o.maximumSelectionLength&&t>=o.maximumSelectionLength?void o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):void n.call(o,s,i)})},e}),e.define("select2sensbitinpost/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2sensbitinpost-dropdown"><span class="select2sensbitinpost-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2sensbitinpost/dropdown/search",["jquery","../utils"],function(i,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=i('<span class="select2sensbitinpost-search select2sensbitinpost-search--dropdown"><input class="select2sensbitinpost-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){i(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.focus(),window.setTimeout(function(){s.$search.focus()},0)}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.val("")}),t.on("focus",function(){t.isOpen()&&s.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer.removeClass("select2sensbitinpost-search--hide"):s.$searchContainer.addClass("select2sensbitinpost-search--hide"))})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2sensbitinpost/dropdown/hidePlaceholder",[],function(){function e(e,t,n,s){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,s)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),s=t.length-1;0<=s;s--){var i=t[s];this.placeholder.id===i.id&&n.splice(s,1)}return n},e}),e.define("select2sensbitinpost/dropdown/infiniteScroll",["jquery"],function(i){function e(e,t,n,s){this.lastParams={},e.call(this,t,n,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("query",function(e){s.lastParams=e,s.loading=!0}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",function(){var e=i.contains(document.documentElement,s.$loadingMore[0]);if(!s.loading&&e){var t=s.$results.offset().top+s.$results.outerHeight(!1);s.$loadingMore.offset().top+s.$loadingMore.outerHeight(!1)<=t+50&&s.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=i.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=i('<li class="select2sensbitinpost-results__option select2sensbitinpost-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2sensbitinpost/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this,i=!1;e.call(this,t,n),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),i||(i=!0,t.on("results:all",function(){s._positionDropdown(),s._resizeDropdown()}),t.on("results:append",function(){s._positionDropdown(),s._resizeDropdown()}))}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2sensbitinpost"),t.addClass("select2sensbitinpost-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,s="scroll.select2sensbitinpost."+t.id,i="resize.select2sensbitinpost."+t.id,o="orientationchange.select2sensbitinpost."+t.id,r=this.$container.parents().filter(a.hasScroll);r.each(function(){f(this).data("select2sensbitinpost-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),r.on(s,function(e){var t=f(this).data("select2sensbitinpost-scroll-position");f(this).scrollTop(t.y)}),f(window).on(s+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2sensbitinpost."+t.id,s="resize.select2sensbitinpost."+t.id,i="orientationchange.select2sensbitinpost."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+s+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2sensbitinpost-dropdown--above"),n=this.$dropdown.hasClass("select2sensbitinpost-dropdown--below"),s=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-r,u=l>i.bottom+r,p={left:i.left,top:o.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var h=d.offset();p.top-=h.top,p.left-=h.left,t||n||(s="below"),u||!c||t?!c&&u&&t&&(s="below"):s="above",("above"==s||t&&"below"!==s)&&(p.top=o.top-h.top-r),null!=s&&(this.$dropdown.removeClass("select2sensbitinpost-dropdown--below select2sensbitinpost-dropdown--above").addClass("select2sensbitinpost-dropdown--"+s),this.$container.removeClass("select2sensbitinpost-container--below select2sensbitinpost-container--above").addClass("select2sensbitinpost-container--"+s)),this.$dropdownContainer.css(p)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2sensbitinpost/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,s){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,s)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,s=0;s<t.length;s++){var i=t[s];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2sensbitinpost/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("close",function(e){s._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var s=this.getHighlightedResults();if(!(s.length<1)){var i=s.data("data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2sensbitinpost/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(e){s._selectTriggered(e)}),t.on("unselect",function(e){s._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2sensbitinpost/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("select2sensbitinpost/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(f,g,m,v,y,b,_,w,$,A,x,t,E,C,O,S,T,D,q,L,j,k,P,I,z,R,M,U,e){function n(){this.reset()}return n.prototype.apply=function(t){if(null==(t=f.extend(!0,{},this.defaults,t)).dataAdapter){if(null!=t.ajax?t.dataAdapter=O:null!=t.data?t.dataAdapter=C:t.dataAdapter=E,0<t.minimumInputLength&&(t.dataAdapter=A.Decorate(t.dataAdapter,D)),0<t.maximumInputLength&&(t.dataAdapter=A.Decorate(t.dataAdapter,q)),0<t.maximumSelectionLength&&(t.dataAdapter=A.Decorate(t.dataAdapter,L)),t.tags&&(t.dataAdapter=A.Decorate(t.dataAdapter,S)),(null!=t.tokenSeparators||null!=t.tokenizer)&&(t.dataAdapter=A.Decorate(t.dataAdapter,T)),null!=t.query){var e=g(t.amdBase+"compat/query");t.dataAdapter=A.Decorate(t.dataAdapter,e)}if(null!=t.initSelection){var n=g(t.amdBase+"compat/initSelection");t.dataAdapter=A.Decorate(t.dataAdapter,n)}}if(null==t.resultsAdapter&&(t.resultsAdapter=m,null!=t.ajax&&(t.resultsAdapter=A.Decorate(t.resultsAdapter,I)),null!=t.placeholder&&(t.resultsAdapter=A.Decorate(t.resultsAdapter,P)),t.selectOnClose&&(t.resultsAdapter=A.Decorate(t.resultsAdapter,M))),null==t.dropdownAdapter){if(t.multiple)t.dropdownAdapter=j;else{var s=A.Decorate(j,k);t.dropdownAdapter=s}if(0!==t.minimumResultsForSearch&&(t.dropdownAdapter=A.Decorate(t.dropdownAdapter,R)),t.closeOnSelect&&(t.dropdownAdapter=A.Decorate(t.dropdownAdapter,U)),null!=t.dropdownCssClass||null!=t.dropdownCss||null!=t.adaptDropdownCssClass){var i=g(t.amdBase+"compat/dropdownCss");t.dropdownAdapter=A.Decorate(t.dropdownAdapter,i)}t.dropdownAdapter=A.Decorate(t.dropdownAdapter,z)}if(null==t.selectionAdapter){if(t.multiple?t.selectionAdapter=y:t.selectionAdapter=v,null!=t.placeholder&&(t.selectionAdapter=A.Decorate(t.selectionAdapter,b)),t.allowClear&&(t.selectionAdapter=A.Decorate(t.selectionAdapter,_)),t.multiple&&(t.selectionAdapter=A.Decorate(t.selectionAdapter,w)),null!=t.containerCssClass||null!=t.containerCss||null!=t.adaptContainerCssClass){var o=g(t.amdBase+"compat/containerCss");t.selectionAdapter=A.Decorate(t.selectionAdapter,o)}t.selectionAdapter=A.Decorate(t.selectionAdapter,$)}if("string"==typeof t.language)if(0<t.language.indexOf("-")){var r=t.language.split("-")[0];t.language=[t.language,r]}else t.language=[t.language];if(f.isArray(t.language)){var a=new x;t.language.push("en");for(var l=t.language,c=0;c<l.length;c++){var u=l[c],p={};try{p=x.loadPath(u)}catch(e){try{u=this.defaults.amdLanguageBase+u,p=x.loadPath(u)}catch(e){t.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+u+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(p)}t.translations=a}else{var d=x.loadPath(this.defaults.amdLanguageBase+"en"),h=new x(t.language);h.extend(d),t.translations=h}return t},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:A.escapeMarkup,language:e,matcher:function e(t,n){if(""===f.trim(t.term))return n;if(n.children&&0<n.children.length){for(var s=f.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&s.children.splice(i,1);return 0<s.children.length?s:e(t,s)}var o=a(n.text).toUpperCase(),r=a(t.term).toUpperCase();return-1<o.indexOf(r)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.set=function(e,t){var n={};n[f.camelCase(e)]=t;var s=A._convertData(n);f.extend(this.defaults,s)},new n}),e.define("select2sensbitinpost/options",["require","jquery","./defaults","./utils"],function(s,o,i,r){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=i.apply(this.options),t&&t.is("input")){var n=s(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2sensbitinpost"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2sensbitinpostTags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2sensbitinpost-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2sensbitinpostTags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n;n=o.fn.jquery&&"1."==o.fn.jquery.substr(0,2)&&e[0].dataset?o.extend(!0,{},e[0].dataset,e.data()):e.data();var s=o.extend(!0,{},n);for(var i in s=r._convertData(s))-1<o.inArray(i,t)||(o.isPlainObject(this.options[i])?o.extend(this.options[i],s[i]):this.options[i]=s[i]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2sensbitinpost/core",["jquery","./options","./utils","./keys"],function(i,c,n,s){var u=function(e,t){null!=e.data("select2sensbitinpost")&&e.data("select2sensbitinpost").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),u.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var r=this.options.get("dropdownAdapter");this.dropdown=new r(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2sensbitinpost-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2sensbitinpost",this)};return n.Extend(u,n.Observable),u.prototype._generateId=function(e){return"select2sensbitinpost-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},u.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},u.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var s=this._resolveWidth(e,"style");return null!=s?s:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return t;var o=e.attr("style");if("string"!=typeof o)return null;for(var r=o.split(";"),a=0,l=r.length;a<l;a+=1){var c=r[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2sensbitinpost",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2sensbitinpost",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){i.each(e,t._syncA),i.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},u.prototype._registerSelectionEvents=function(){var n=this,s=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.inArray(e,s)&&n.trigger(e,t)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2sensbitinpost-container--open")}),this.on("close",function(){n.$container.removeClass("select2sensbitinpost-container--open")}),this.on("enable",function(){n.$container.removeClass("select2sensbitinpost-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2sensbitinpost-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2sensbitinpost-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===s.ESC||t===s.TAB||t===s.UP&&e.altKey?(n.close(),e.preventDefault()):t===s.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._syncSubtree=function(e,t){var n=!1,s=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})})}},u.prototype.trigger=function(e,t){var n=u.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in s){var i=s[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.trigger("query",{})},u.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},u.prototype.isOpen=function(){return this.$container.hasClass("select2sensbitinpost-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2sensbitinpost-container--focus")},u.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2sensbitinpost-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2sensbitinpost("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2sensbitinpost("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},u.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2sensbitinpost("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];i.isArray(t)&&(t=i.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},u.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2sensbitinpost"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2sensbitinpost-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2sensbitinpost"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},u.prototype.render=function(){var e=i('<span class="select2sensbitinpost select2sensbitinpost-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2sensbitinpost-container--"+this.options.get("theme")),e.data("element",this.$element),e},u}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2sensbitinpost",["jquery","jquery-mousewheel","./select2sensbitinpost/core","./select2sensbitinpost/defaults"],function(i,e,o,t){if(null==i.fn.select2sensbitinpost){var r=["open","close","destroy"];i.fn.select2sensbitinpost=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=i(this).data("select2sensbitinpost");null==e&&window.console&&console.error&&console.error("The select2sensbitinpost('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,s)}),-1<i.inArray(t,r)?this:n}}return null==i.fn.select2sensbitinpost.defaults&&(i.fn.select2sensbitinpost.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2sensbitinpost");return n.fn.select2sensbitinpost.amd=e,t}),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2sensbitinpost&&jQuery.fn.select2sensbitinpost.amd)var e=jQuery.fn.select2sensbitinpost.amd;e.define("select2sensbitinpost/i18n/pl",[],function(){var n=["znak","znaki","znaków"],t=["element","elementy","elementów"],s=function(e,t){return 1===e?t[0]:1<e&&e<=4?t[1]:5<=e?t[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Usuń "+t+" "+s(t,n)},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Wprowadź miasto, ulicę lub nazwę paczkomatu. Min. "+t+" "+s(t,n)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(e){return"Możesz zaznaczyć tylko "+e.maximum+" "+s(e.maximum,t)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"}}}),e.define,e.require}();/*! For license information please see sdk-for-javascript.js.LICENSE.txt */
|
||
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=152)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.portalCreator=e.Fragment=e.default=void 0;var i=n(174);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e,n){var o=(0,i.isSVG)(t)?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t),a=(0,i.createFragmentFrom)(n);return o.appendChild(a),Object.keys(e||{}).forEach((function(t){"style"===t?Object.assign(o.style,e[t]):"ref"===t&&"function"==typeof e.ref?e.ref(o,e):"className"===t?o.setAttribute("class",e[t]):"xlinkHref"===t?o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e[t]):"dangerouslySetInnerHTML"===t?o.innerHTML=e[t].__html:o.setAttribute(t,e[t])})),o}function r(t,e,n){var o=Object.assign({},t.defaultProps||{},e,{children:n}),a=t.prototype.render?new t(o).render:t,r=a(o);switch(r){case"FRAGMENT":return(0,i.createFragmentFrom)(n);case"PORTAL":return a.target.appendChild((0,i.createFragmentFrom)(n)),document.createComment("Portal Used");default:return r}}e.default=function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return"function"==typeof t?r(t,e,i):"string"==typeof t?a(t,e,i):console.error("jsx-render does not handle ".concat("undefined"==typeof tag?"undefined":o(tag)))},e.Fragment=function(){return"FRAGMENT"},e.portalCreator=function(t){function e(){return"PORTAL"}return e.target=document.body,t&&t.nodeType===Node.ELEMENT_NODE&&(e.target=t),e}},function(t,e,n){"use strict";var i=n(4),o=n.n(i),a=n(33),r=n(103),s={pl:{map:"Mapa",list:"Lista",search_by_city_or_address:"Szukaj po mieście, adresie i nazwie paczkomatu",search_by_city_or_address_only:"Szukaj po mieście i adresie",search:"Szukaj",select_point:"Wybierz punkt...",parcel_locker:"Paczkomat",parcel_locker_group:"Typy paczkomatów",parcel_locker_only:"Paczkomat",laundry_locker:"Pralniomat",avizo_locker:"Awizomaty24",pok:"PaczkoPunkt",pop:"PaczkoPunkt",allegro_courier:"PaczkoPunkt",nfk:"Oddział NFK",avizo:"Punkt awizo",office:"Lokalizacje biur",plan_route:"Zaplanuj trasę",details:"Szczegóły",select:"Wybierz",locationDescription:"Położenie",openingHours:"Godziny otwarcia",double_apm_info:"W pobliżu są też inne Paczkomaty:",double_apm_info_details:"W pobliżu są też inne Paczkomaty",pok_name:"PaczkoPunkt",pok_name_short:"PaczkoPunkt",parcel_locker_superpop:"PaczkoPunkt",parcel_locker_superpop_short:"PaczkoPunkt",allegro_courier_name:"PaczkoPunkt",parcel_locker_name:"Paczkomat",avizo_name:"Punkt Awizo",pok_description:"PaczkoPunkt",avizo_description:"Punkt odbioru przesyłki listowej lub kurierskiej",parcel_locker_description:"Maszyna do nadawania i odbioru przesyłek 24/7",avizo_locker_description:"Maszyna do odbioru przesyłek awizowanych 24/7",air_on_airport:"Maszyna na lotnisku",air_outside_airport:"Maszyna poza lotniskiem",air_on_airport_description:"Maszyna znajdująca się na terenie lotniska",air_outside_airport_description:"Maszyna znajdująca się poza terenem lotniska",nfk_description:"Siedziba główna (magazyn) InPost w danym mieście lub regionie",pop_description:"Placówka, w której można nadać lub odebrać przesyłkę paczkomatową",office_description:"Centrala i oddziały firmy",allegro_courier_description:"PaczkoPunkt",of:"z",points_loaded:"punktów załadowanych.",loading:"Ładowanie...",zoom_in_to_see_points:"Przybliż, aby wyświetlić punkty",phone_short:"tel. ",pay_by_link:"Formy płatności",is_next:'Brak możliwości nadania bez etykiety "Wygodnie wprost z Paczkomatu"',show_filters:"Chcę zrealizować usługę...",MON:"Poniedziałek",TUE:"Wtorek",WED:"Środa",THU:"Czwartek",FRI:"Piątek",SAT:"Sobota",SUN:"Niedziela",show_on_map:"Pokaż na mapie",more:"więcej",next:"Następna",prev:"Poprzednia",no_points:"Brak punktów dla tej lokalizacji",parcel_247:"Dostępny: 24/7",pop_247:"Otwarty: 24/7",pop_247_details:"Otwarty",parcel_247_details:"Dostępny",no_247_info:"Sprawdź dostępność lokalizacji w niedziele i święta",payment_filter:"Płatność kartą"},"pl-PL":{map:"Mapa",list:"Lista",search_by_city_or_address:"Szukaj po mieście, adresie i nazwie paczkomatu",search_by_city_or_address_only:"Szukaj po mieście i adresie",search:"Szukaj",select_point:"Wybierz punkt...",parcel_locker:"Paczkomat",laundry_locker:"Pralniomat",avizo_locker:"Awizomaty24",pok:"PaczkoPunkt",pop:"PaczkoPunkt",allegro_courier:"PaczkoPunkt",nfk:"Oddział NFK",avizo:"Punkt awizo",office:"Lokalizacje biur",plan_route:"Zaplanuj trasę",details:"Szczegóły",select:"Wybierz",locationDescription:"Położenie",double_apm_info:"W pobliżu są też inne Paczkomaty:",double_apm_info_details:"W pobliżu są też inne Paczkomaty",openingHours:"Godziny otwarcia",pok_name_short:"PaczkoPunkt",pop_name:"PaczkoPunkt",parcel_locker_superpop:"PaczkoPunkt",parcel_locker_superpop_short:"PaczkoPunkt",allegro_courier_name:"PaczkoPunkt",parcel_locker_name:"Paczkomat",avizo_name:"Punkt Awizo",avizo_description:"Punkt odbioru przesyłki listowej lub kurierskiej",parcel_locker_description:"Maszyna do nadawania i odbioru przesyłek 24/7",avizo_locker_description:"Maszyna do odbioru przesyłek awizowanych 24/7",air_on_airport:"Maszyna na lotnisku",air_outside_airport:"Maszyna poza lotniskiem",air_on_airport_description:"Maszyna znajdująca się na terenie lotniska",air_outside_airport_description:"Maszyna znajdująca się poza terenem lotniska",nfk_description:"Siedziba główna (magazyn) InPost w danym mieście lub regionie",pop_description:"Placówka, w której można nadać lub odebrać przesyłkę paczkomatową",office_description:"Centrala i oddziały firmy",allegro_courier_description:"PaczkoPunkt",of:"z",points_loaded:"punktów załadowanych.",loading:"Ładowanie...",zoom_in_to_see_points:"Przybliż, aby wyświetlić punkty",phone_short:"tel. ",pay_by_link:"Formy płatności",is_next:'Brak możliwości nadania bez etykiety "Wygodnie wprost z Paczkomatu"',show_filters:"Chcę zrealizować usługę...",MON:"Poniedziałek",TUE:"Wtorek",WED:"Środa",THU:"Czwartek",FRI:"Piątek",SAT:"Sobota",SUN:"Niedziela",show_on_map:"Pokaż na mapie",more:"więcej",next:"Następna",prev:"Poprzednia",no_points:"Brak punktów dla tej lokalizacji",parcel_247:"Dostępny: 24/7",pop_247:"Otwarty: 24/7",pop_247_details:"Otwarty",parcel_247_details:"Dostępny",no_247_info:"Sprawdź dostępność lokalizacji w niedziele i święta",payment_filter:"Płatność kartą"},uk:{map:"Map",list:"List",search_by_city_or_address:"Type your city, address or machine name",search_by_city_or_address_only:"Type your city or address",search:"Search",select_point:"Select point...",parcel_locker:"Parcel Locker",laundry_locker:"Laundry Locker",avizo_locker:"Avizo Locker",pop:"Parcel Point",allegro_courier:"POP",nfk:"Oddział NFK",avizo:"Avizo point",office:"Office location",plan_route:"Plan your route",details:"Details",select:"Select",parcel_locker_name:"InPost Locker 24/7",locationDescription:"Location description",apmDoubled:"Doubled APM",openingHours:"Opening hours",pop_name:"Parcel Point",parcel_locker_superpop:"Parcel Point",avizo_name:"Avizo Point",pok_name:"Parcel Point",parcel_locker_superpop_short:"Parcel Point",pok_name_short:"POP",pop_description:"<strong>InPost PUDO</strong> location, where you can collect or send your parcel",avizo_description:"Point where you can collect your Parcel or Letter for which we left attempted delivery notice",parcel_locker_description:"Parcel Locker where you can collect or send your parcels 24/7",avizo_locker_description:"Parcel Locker where you can collect your parcels 24/7",air_on_airport:"Airport Locker",air_outside_airport:"Outside Airport Locker",air_on_airport_description:"Machine within airport area",air_outside_airport_description:"Machine outside of airport area",double_apm_info:"There are also other Parcel Locker nearby:",double_apm_info_details:"There are also other Parcel Locker nearby",nfk_description:"Main InPost Hub in city or region",office_description:"InPost HQ",allegro_courier_description:"Punkty Nadania Allegro Kurier InPost",of:"z",points_loaded:"locations loaded",show_filters:"I want to use service...",loading:"Loading...",zoom_in_to_see_points:"Zoom in to view points",phone_short:"tel ",pay_by_link:"Payment options",is_next:"Only parcel collection and pre-labeled parcel lodgement available at this location",MON:"Monday",TUE:"Tuesday",WED:"Wednesday",THU:"Thursday",FRI:"Friday",SAT:"Saturday",SUN:"Sunday",show_on_map:"Show on map",more:"more",no_points:"There are no points at this location",parcel_247:"Available: 24/7",pop_247:"Open: 24/7",pop_247_details:"Open",parcel_247_details:"Available",no_247_info:"Check location availability on Sundays and holidays",payment_filter:"Card payment"},it:{map:"Map",list:"List",search_by_city_or_address:"Type your city, address or machine name",search_by_city_or_address_only:"Type your city or address",search:"Search",select_point:"Select point...",parcel_locker:"Parcel Locker",laundry_locker:"Laundry Locker",avizo_locker:"Avizo Locker",pop:"Parcel Point",allegro_courier:"POP",nfk:"Oddział NFK",avizo:"Avizo point",office:"Office location",plan_route:"Plan your route",details:"Details",select:"Select",parcel_locker_name:"InPost Locker 24/7",locationDescription:"Location description",apmDoubled:"Doubled APM",openingHours:"Opening hours",pop_name:"Parcel Point",parcel_locker_superpop:"Parcel Point",avizo_name:"Avizo Point",pok_name:"Parcel Point",parcel_locker_superpop_short:"Parcel Point",pok_name_short:"POP",pop_description:"<strong>InPost PUDO</strong> location, where you can collect or send your parcel",avizo_description:"Point where you can collect your Parcel or Letter for which we left attempted delivery notice",parcel_locker_description:"Parcel Locker where you can collect or send your parcels 24/7",avizo_locker_description:"Parcel Locker where you can collect your parcels 24/7",air_on_airport:"Airport Locker",air_outside_airport:"Outside Airport Locker",air_on_airport_description:"Machine within airport area",air_outside_airport_description:"Machine outside of airport area",nfk_description:"Main InPost Hub in city or region",office_description:"InPost HQ",allegro_courier_description:"Punkty Nadania Allegro Kurier InPost",of:"z",points_loaded:"locations loaded",show_filters:"I want to use service...",loading:"Loading...",double_apm_info:"Ci sono anche altri armadietti per pacchi nelle vicinanze:",double_apm_info_details:"Ci sono anche altri armadietti per pacchi nelle vicinanze",zoom_in_to_see_points:"Zoom in to view points",phone_short:"tel ",pay_by_link:"Payment options",is_next:"Only parcel collection and pre-labeled parcel lodgement available at this location",MON:"Monday",TUE:"Tuesday",WED:"Wednesday",THU:"Thursday",FRI:"Friday",SAT:"Saturday",SUN:"Sunday",show_on_map:"Show on map",more:"more",no_points:"There are no points at this location",parcel_247:"Available: 24/7",pop_247:"Open: 24/7",pop_247_details:"Open",parcel_247_details:"Available",no_247_info:"Check location availability on Sundays and holidays",payment_filter:"Pagamento con carta"},fr:{map:"Carte",list:"Liste",search_by_city_or_address:"Saisissez votre ville, adresse ou casier à colis",search_by_city_or_address_only:"Saisissez votre ville ou adresse",search:"Rechercher",parcel_locker:"Consigne Abricolis",laundry_locker:"Casier de blanchisserie",avizo_locker:"Casier Avizo",pop:"Point de retrait InPost",allegro_courier:"POP",nfk:"Nouvelle Agence Courrier",avizo:"Point Avizo",office:"Bureau",plan_route:"Itinéraire",details:"Détails",select:"Selectionner",parcel_locker_name:"InPost Consigne Abricolis",locationDescription:"Où se situe la consigne?",apmDoubled:"Doubled APM",openingHours:"Heures d'ouverture",pop_name:"Point de service à la clientèle",parcel_locker_superpop:"Point de service à la clientèle",double_apm_info:"Il y a aussi d'autres casiers à colis à proximité:",double_apm_info_details:"Il y a aussi d'autres casiers à colis à proximité",avizo_name:"Point Avizo",avizo_description:"Point de réception de lettres et de colis après l'avisage",parcel_locker_description:"Abricolis InPost 24h/24 et 7j/7",avizo_locker_description:"Abricolis InPost 24h/24 et 7j/7",air_on_airport:"Distributeur de Colis Aéroport",air_outside_airport:"Distributeur de Colis en dehors Aéroport",air_on_airport_description:"Machine dans zone d'aéroport",air_outside_airport_description:"Machine à l'extérieur de zone d'aéroport",nfk_description:"Agence principale d'InPost",office_description:"Siège sociale d'InPost",allegro_courier_description:"Punkty Nadania Allegro Kurier InPost",of:"",pok_name:"Point de service client",pok_name_short:"POP",points_loaded:"Emplacement chargés",loading:"Chargement...",zoom_in_to_see_points:"Zoom avant pour les points de vue",phone_short:"tél ",pay_by_link:"Modes de paiement ",is_next:"Uniquement réception de colis et envoi de colis pré-étiquetés",show_filters:"Je veux mettre en place un service...",MON:"lundi",TUE:"mardi",WED:"mercredi",THU:"jeudi",FRI:"vendredi",SAT:"samedi",SUN:"dimanche",show_on_map:"Show on map",more:"more",no_points:"Il n'y a aucun point à cet endroit",parcel_247:"Disponible: 24/7",pop_247:"Ouvert: 24/7",pop_247_details:"Ouvert",parcel_247_details:"Disponible",no_247_info:"Vérifiez la disponibilité de l'emplacement le dimanche et les jours fériés",payment_filter:"Paiement par carte"}},l=n(3),c=document.documentElement.style,u="ActiveXObject"in window,f=(u&&document.addEventListener,"msLaunchUri"in navigator&&document,_("webkit"),_("android")),h=_("android 2")||_("android 3"),p=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),d=(f&&_("Google")&&p<537&&window,window.opera,_("chrome")),m=(_("gecko"),!d&&_("safari"),_("phantom"),navigator.platform.indexOf("Win"),"WebKitCSSMatrix"in window&&new window.WebKitCSSMatrix,window.L_DISABLE_3D,"undefined"!=typeof orientation||_("mobile"),!window.PointerEvent&&window.MSPointerEvent),g=!(!window.PointerEvent&&!m);function _(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!(!window.L_NO_TOUCH&&(g||"ontouchstart"in window||window.DocumentTouch&&(document,window.DocumentTouch)),window.devicePixelRatio||(window.screen.deviceXDPI,window.screen.logicalXDPI),document.createElement("canvas").getContext,!(!document.createElementNS||!("svg",document.createElementNS("http://www.w3.org/2000/svg","svg")).createSVGRect))&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;e.style.behavior="url(#default#VML)",e&&e.adj}catch(t){return!1}}(),n.d(e,"k",(function(){return b})),n.d(e,"j",(function(){return k})),n.d(e,"m",(function(){return P})),n.d(e,"l",(function(){return x})),n.d(e,"c",(function(){return L})),n.d(e,"d",(function(){return C})),n.d(e,"b",(function(){return S})),n.d(e,"a",(function(){return M})),n.d(e,"n",(function(){return T})),n.d(e,"i",(function(){return E})),n.d(e,"e",(function(){return z})),n.d(e,"g",(function(){return A})),n.d(e,"f",(function(){return I})),n.d(e,"h",(function(){return B}));var v={},w=null;v=n(55).leafletMap,n(60).googleMap,w=n(180).Loader,Array.prototype.find||(Array.prototype.find=function(t){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),i=n.length>>>0,o=arguments[1],a=0;a<i;a++)if(e=n[a],t.call(o,e,a,n))return e}),Array.prototype.indexOf=function(t){var e=this.length,n=Number(arguments[1])||0;for((n=n<0?Math.ceil(n):Math.floor(n))<0&&(n+=e);n<e;n++)if(n in this&&this[n]===t)return n;return-1},Array.prototype.filter=function(t){var e=this.length;if("function"!=typeof t)throw new TypeError;for(var n=new Array,i=arguments[1],o=0;o<e;o++)if(o in this){var a=this[o];t.call(i,a,o,this)&&n.push(a)}return n};var b=function(t){return function(e){e.addEventListener("click",t)}},k=function(t){return function(e){e.addEventListener("change",t)}},P=function(t){return function(e){e.addEventListener("load",t)}},x=function(t){return function(e){e.addEventListener("keyup",t)}},L=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},C={checkArguments:function(t,e,n){if(n.length!=e)throw t+" function requires "+e+" arguments ("+n.length+" given)."},serialize:function(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)){var o=e?e+"["+i+"]":i,a=t[i];"object"==y(a)?a instanceof Array?n.push(encodeURIComponent(o)+"="+encodeURIComponent(a.join(","))):n.push(this.serialize(a,o)):n.push(encodeURIComponent(o)+"="+encodeURIComponent(a))}return n.join("&")},merge:function(t,e){var n=this,i=Array.isArray(e),o=i&&[]||{};return i?(t=t||[],e.forEach((function(e,i){void 0===o[i]?o[i]=e:"object"===y(e)?o[i]=n.merge(t[i],e):-1===t.indexOf(e)&&o.push(e)}))):(t&&"object"===y(t)&&Object.keys(t).forEach((function(e){o[e]=t[e]})),Object.keys(e).forEach((function(i){"object"===y(e[i])&&e[i]&&t[i]?o[i]=n.merge(t[i],e[i]):o[i]=e[i]}))),o},in:function(t,e){return e.includes(t)},findObjectByPropertyName:function(t,e){var n;return t.forEach((function(t){Object.keys(t).forEach((function(i){i===e&&(n=t[i])}))})),n},intersection:function(t,e){for(var n=[],i=0;i<t.length;i++)for(var o=0;o<e.length;o++)if(t[i]==e[o]){n.push(t[i]);break}return n},contains:function(t,e,n){for(var i=0;t.length>i;i++)if(C.in(t[i],e)){n();break}},all:function(t,e){for(var n=!0,i=0;i<t.length;i++)-1===e.indexOf(t[i])&&(n=!1);return n},asyncLoad:function(t,e,n){if(document.body&&(r=t,!document.querySelector('script[src="'+r+'"]'))){var i=e||"text/javascript",a=document.createElement("script");n&&(a.id=n),a.async="async",a.defer="defer",a.type=i,a.src=t,document.body.appendChild(a)}else o()((function(){C.asyncLoad(t,e,n)}),250);var r},asyncLoadCss:function(t,e,n){if(document.body&&(r=t,!document.querySelector('link[href="'+r+'"]'))){var i=e||"text/css",a=document.createElement("link");n&&(a.id=n),a.rel="stylesheet",a.type=i,a.href=t,document.body.appendChild(a)}else o()((function(){C.asyncLoadCss(t,e,n)}),250);var r},loadWebFonts:function(){window.WebFontConfig={google:{families:["Open+Sans:600,400:latin"]}}},calculateDistance:function(t,e){var n=this.deg2rad(t[0]-e[0]),i=this.deg2rad(t[1]-e[1]),o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(this.deg2rad(t[0]))*Math.cos(this.deg2rad(e[0]))*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*6371},deg2rad:function(t){return t*(Math.PI/180)},haveSameValues:function(t,e){var n=!0;return e.forEach((function(e){t.includes(e)||(n=!1)})),t.forEach((function(t){e.includes(t)||(n=!1)})),n},diffOfArrays:function(t,e){return Array.prototype.diff=function(t){return this.filter((function(e){return t.indexOf(e)<0}))},t.diff(e)},dateDiffInDays:function(t,e){var n=t.getTime(),i=e.getTime()-n;return Math.round(i/864e5)},getMarkerConditionByDays:function(t,e){return window.SensbitInpostEasyPackConfig.points.markerConditions.sort((function(t,e){return t.params.days-e.params.days})).find((function(n){return n.params.days>=C.dateDiffInDays(new Date(t[e]),new Date)}))},pointType:function(t,e){var n=a.SensbitInpostEasyPackConfig.points.subtypes;if(n.length>0&&void 0!==n[0])for(var i=0;i<n.length;i++){var o=n[i];if(t.type.includes(o))return T(o+"_short")}return C.in("allegro_courier",t.type)&&"allegro_courier"===e[e.length-1]?T("allegro_courier_name"):C.in("pok",t.type)||C.in("pop",t.type)?T("pok_name_short"):C.in("avizo",t.type)?T("avizo_name"):C.in("parcel_locker",t.type)?T("parcel_locker_name"):""},sortCurrentPointsByDistance:function(t,e){if(t.length>0)return t.sort((function(t,n){var i=A()?v.map.getCenter().lat:e.getCenter().lat(),o=A()?v.map.getCenter().lng:e.getCenter().lng();return C.calculateDistance([i,o],[t.location.latitude,t.location.longitude])-C.calculateDistance([i,o],[n.location.latitude,n.location.longitude])}))},uniqueElementInArray:function(t,e,n){return n.indexOf(t)===e},pointName:function(t,e){var n=a.SensbitInpostEasyPackConfig.points.subtypes;if(n.length>0&&void 0!==n[0])for(var i=0;i<n.length;i++){var o=n[i];if(C.in(o,t.type))return T(o)}return C.in("allegro_courier",t.type)&&"allegro_courier"===e[e.length-1]?T("allegro_courier_name"):C.in("pok",t.type)||C.in("pop",t.type)?T("pok_name"):C.in("avizo",t.type)?T("avizo_name"):C.in("parcel_locker",t.type)?T("parcel_locker_name")+" "+t.name:t.name},openingHours:function(t){if(null!==t)return t.split(",").join(", ").replace("PT","PT ").replace("SB","SB ").replace("NIEDZIŚW","NIEDZIŚW ")},assetUrl:function(t){return a.SensbitInpostEasyPackConfig.assetsServer&&-1===t.indexOf("http")?a.SensbitInpostEasyPackConfig.assetsServer+t:t},routeLink:function(t,e){return"https://www.google.com/maps/dir/"+(null===t?"":t[0]+","+t[1])+"/"+e.latitude+","+e.longitude},hasCustomMapAndListInRow:function(){return window.SensbitInpostEasyPackConfig.customMapAndListInRow.enabled},getPaginationPerPage:function(){return window.SensbitInpostEasyPackConfig.customMapAndListInRow.itemsPerPage}},O=function(t,e){for(var n=0;n<t.length;n++){var i=t[n];e[i]=C.assetUrl(e[i])}},S=function(t,e){if(window.SensbitInpostEasyPackUserConfig=t,window.SensbitInpostEasyPackConfig=a.SensbitInpostEasyPackConfig,void 0===window.SensbitInpostEasyPackConfig.region&&(window.SensbitInpostEasyPackConfig.region=t.defaultLocale),!e){var n=t.instance||t.defaultLocale||window.SensbitInpostEasyPackConfig.defaultLocale;window.SensbitInpostEasyPackConfig=C.merge(window.SensbitInpostEasyPackConfig,r.instanceConfig[n]||{})}window.SensbitInpostEasyPackConfig=C.merge(window.SensbitInpostEasyPackConfig,t),Array.isArray(window.SensbitInpostEasyPackConfig.points.fields)&&(window.SensbitInpostEasyPackConfig.points.fields=l.typesHelpers.getUniqueValues(window.SensbitInpostEasyPackConfig.points.fields.concat(["name","type","location","address","functions"]))),L("names"),O(["infoboxLibraryUrl","markersUrl","iconsUrl","loadingIcon"],window.SensbitInpostEasyPackConfig),O(["typeSelectedIcon","typeSelectedRadio","closeIcon","selectIcon","detailsIcon","pointerIcon","tooltipPointerIcon","mapIcon","listIcon","pointIcon","pointIconDark"],window.SensbitInpostEasyPackConfig.map);for(var i=0;i<window.SensbitInpostEasyPackConfig.map.clusterer.styles.length;i++)O(["url"],window.SensbitInpostEasyPackConfig.map.clusterer.styles[i])},M=function t(e,n,i){C.checkArguments("ajax()",3,arguments);var o=new t.client({async:!0});return o.open(n,e),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&i(JSON.parse(o.responseText))},o.send(null),o};M.client=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("Microsoft.XMLHTTP");throw"Ajax not supported."};var T=function(t){return s[window.SensbitInpostEasyPackConfig.locale||SensbitInpostEasyPack.locale][t]||t},E=function(){switch(window.SensbitInpostEasyPack.googleMapsApi&&window.SensbitInpostEasyPack.googleMapsApi.initialized||(window.SensbitInpostEasyPack.googleMapsApi={}),window.SensbitInpostEasyPack.leafletMapsApi&&window.SensbitInpostEasyPack.leafletMapsApi.initialized||(window.SensbitInpostEasyPack.leafletMapsApi={}),window.SensbitInpostEasyPackConfig.mapType){case"google":N();break;case"osm":default:j()}},j=function(){SensbitInpostEasyPack.googleMapsApi.ready=!0,I()&&(SensbitInpostEasyPack.googleMapsApi.ready=!1,N()),window.SensbitInpostEasyPack.leafletMapsApi&&window.SensbitInpostEasyPack.leafletMapsApi.initialized||(window.SensbitInpostEasyPack.leafletMapsApi.initialized=!0,SensbitInpostEasyPack.leafletMapsApi.ready=!0)},z=function(){return window.SensbitInpostEasyPackConfig&&"google"===window.SensbitInpostEasyPackConfig.mapType},A=function(){return window.SensbitInpostEasyPackConfig&&"osm"===window.SensbitInpostEasyPackConfig.mapType},I=function(){return window.SensbitInpostEasyPackConfig&&"google"===window.SensbitInpostEasyPackConfig.searchType},B=function(){return window.SensbitInpostEasyPackConfig&&"osm"===window.SensbitInpostEasyPackConfig.searchType},N=function(){window.SensbitInpostEasyPack.googleMapsApi&&window.SensbitInpostEasyPack.googleMapsApi.initialized||(window.SensbitInpostEasyPack.googleMapsApi.initialized=!0,window.SensbitInpostEasyPack.googleMapsApi.initialize=function(){C.asyncLoad(window.SensbitInpostEasyPackConfig.infoboxLibraryUrl),SensbitInpostEasyPack.googleMapsApi.ready=!0},new w(window.SensbitInpostEasyPackConfig.map.googleKey,{libraries:["places"]}).load().then((function(t){window.SensbitInpostEasyPack.googleMapsApi.initialize()})))}},function(t,e,n){var i=n(5),o=n(12),a=n(21),r=n(18),s=n(24),l=function(t,e,n){var c,u,f,h,p=t&l.F,d=t&l.G,m=t&l.S,g=t&l.P,_=t&l.B,y=d?i:m?i[e]||(i[e]={}):(i[e]||{}).prototype,v=d?o:o[e]||(o[e]={}),w=v.prototype||(v.prototype={});for(c in d&&(n=e),n)f=((u=!p&&y&&void 0!==y[c])?y:n)[c],h=_&&u?s(f,i):g&&"function"==typeof f?s(Function.call,f):f,y&&r(y,c,f,t&l.U),v[c]!=f&&a(v,c,h),g&&w[c]!=f&&(w[c]=f)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){"use strict";n.r(e),n.d(e,"typesHelpers",(function(){return o}));var i=n(1),o={getExtendedCollection:function(){return SensbitInpostEasyPackConfig.extendedTypes||[]},isArrayContaintsPropWithSearchValue:function(t,e,n,i,o){if(void 0===t)return!1;if(!t.length)return!1;var a=this,r=!1;return t.forEach((function(t){Object.keys(t).forEach((function(s,l){s===e&&t[s][n]===i&&!1===r&&(r=!0),l===Object.keys(t).length-1&&t[s][o]&&!1===r&&(r=a.isArrayContaintsPropWithSearchValue(t[s][o],e,n,i,o))}))})),r},seachInArrayOfObjectsKeyWithCondition:function(t,e,n,i){var o=[];if(void 0===t)return o;if(!t.length)return o;var a=this;return t.forEach((function(t){Object.keys(t).forEach((function(r,s){t[r][e]===n&&o.push(r),s===Object.keys(t).length-1&&t[r][i]&&(o=o.concat(a.seachInArrayOfObjectsKeyWithCondition(t[r][i],e,n,i)))}))})),o},findParentObjectsByChildType:function(t,e){var n;return t.forEach((function(t){Object.keys(t).forEach((function(i){t[i].childs&&t[i].childs.filter((function(o){o===e&&(n=t[i])}))}))})),n},isParent:function(t,e){var n=!1;return!!e&&(e.forEach((function(e){void 0!==e&&Object.keys(e).forEach((function(i){e[i].childs&&t===i&&(n=!0)}))})),n)},getUniqueValues:function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e},removeDuplicates:function(t,e){return Array.from(t.reduce((function(t,n){return t.set(n[e],n)}),new Map).values())},getStringFromObjectProperties:function(t,e){var n={};return t.forEach((function(t){Array.isArray(e[t])&&(e[t]=e[t].sort()),n[t]=e[t]})),JSON.stringify(n)},getSpecifiedObjectProperties:function(t,e){var n={};return t.forEach((function(t){n[t]=e[t]})),n},getAllAdditionalTypes:function(t){var e=[];if(void 0===t)return e;if(!t.length)return e;var n=this;return t.forEach((function(t){Object.keys(t).forEach((function(i,o){t[i].additional&&(e=e.concat(t[i].additional)),o===Object.keys(t).length-1&&t[i].childs&&(e=e.concat(n.seachInArrayOfObjectsKeyWithCondition(t[i].childs,"additional","childs")))}))})),n.getUniqueValues(e)},any:function(t,e){return t.some((function(t){return e.some((function(e){return t===e}))}))},getObjectForType:function(t,e){var n=this,i=null;return e.forEach((function(e){Object.keys(e).forEach((function(o){o===t&&(i=e[o]),void 0!==e[o].childs&&null===i&&n.getObjectForType(t,e[o].childs)}))})),i},isAllChildSelected:function(t,e,n){if(void 0===n||void 0===n.childs)return!1;var o=!0,a=this;return n.childs.some((function(e,i){void 0===e[t]&&n.childs.length===i-1&&n.childs.unshift(JSON.parse('{"'+a.getNameForType(t)+'": { "enabled": "true"}}'))})),n.childs.forEach((function(t){Object.keys(t).forEach((function(t){i.d.in(a.getNameForType(t),e)||(o=!1)}))})),o},in:function(t,e){for(var n=[],i=0;i<e.length;i++)n[i]=(e[i]||"").replace("_only","");return n.indexOf(t.valueOf())>=0},isNoOneChildSelected:function(t,e,n){if(void 0===n||void 0===n.childs)return!1;var o=!0,a=this;return n.childs.some((function(e,i){void 0===e[t]&&n.childs.length===i-1&&n.childs.unshift(JSON.parse('{"'+a.getNameForType(t)+'": { "enabled": "true"}}'))})),n.childs.forEach((function(t){Object.keys(t).forEach((function(t){i.d.in(a.getNameForType(t),e)&&(o=!1)}))})),o},getAllChildsForGroup:function(t,e){var n=this,i=[];return e.forEach((function(e){void 0!==e&&Object.keys(e).forEach((function(o,a){e[o].childs&&n.getRealNameForType(t)===o&&e[o].childs.forEach((function(t){i=i.concat(Object.keys(t).map((function(t){return n.getNameForType(t)})))}))}))})),i},getParentIfAvailable:function(t,e){var n=null,i=this;return e.forEach((function(e){Object.keys(e).forEach((function(o){i.getNameForType(o)===t&&(n=o),void 0!==e[o].childs&&null===n&&e[o].childs.forEach((function(e){i.in(t,Object.keys(e))&&(n=o)}))}))})),n},isOnlyAdditionTypes:function(t,e){var n=this,o=!0;return t.some((function(t){i.d.in(t,n.getAllAdditionalTypes(e))||(o=!1)})),o},getNameForType:function(t){switch(t){case"parcel_locker":return"parcel_locker_only";default:return t}},getRealNameForType:function(t){switch(t){case"parcel_locker_only":return"parcel_locker";default:return t}},sortByPriorities:function(t){var e=this;return t.sort((function(t,n){return e.getPriorityForTypes(t)>e.getPriorityForTypes(n)?-1:e.getPriorityForTypes(t)<e.getPriorityForTypes(n)?1:0}))},getPriorityForTypes:function(t){switch(t){case"parcel_locker":return 1;case"pop":return 2;case"pok":return 3;case"parcel_locker_superpop":return 9;default:return 0}}}},function(t,e,n){var i=n(153),o=n(154),a=n(115),r=o((function(t,e,n){return i(t,a(e)||0,n)}));t.exports=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(8);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var i=n(62)("wks"),o=n(37),a=n(5).Symbol,r="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=r&&a[t]||(r?a:o)("Symbol."+t))}).store=i},function(t,e,n){"use strict";n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return p})),n.d(e,"e",(function(){return d})),n.d(e,"d",(function(){return m}));var i=n(4),o=n.n(i),a=n(47),r=n(1),s=n(3),l=n(16);function c(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e,n){Object(a.b)(t,(function(t){e(t)}),null,n)}function h(t,e,n,i,o,a){n.relative_point=t,n.max_distance=e,n.limit=n.limit||window.SensbitInpostEasyPackConfig.map.closestLimit,window.SensbitInpostEasyPackConfig.points.showPoints.length>0&&(delete n.max_distance,n.name=window.SensbitInpostEasyPackConfig.points.showPoints.join(",")),new g(n,o||{},i,a).closest()}function p(t,e,n,i,o,a){n.relative_point=t,n.per_page=window.SensbitInpostEasyPackConfig.map.preloadLimit,new g(n,a||{},i,o).allAsync()}function d(t,e,n){if(t.location_date&&window.SensbitInpostEasyPackConfig.points.markerConditions.length>0){var i=r.d.getMarkerConditionByDays(t,"location_date");if(i&&i.icon_name)return window.SensbitInpostEasyPackConfig.markersUrl+i.icon_name+".png?"+window.SensbitInpostEasyPack.version}return window.SensbitInpostEasyPackConfig.markersUrl+_(t,e).replace("_only","")+".png?"+window.SensbitInpostEasyPack.version}var m=function(t,e,n){if(t&&t.location_date&&window.SensbitInpostEasyPackConfig.points.markerConditions.length>0){var i=r.d.getMarkerConditionByDays(t,"location_date");if(i&&i.icon_name)return window.SensbitInpostEasyPackConfig.iconsUrl+i.icon_name+".png?"+window.SensbitInpostEasyPack.version}return window.SensbitInpostEasyPackConfig.iconsUrl+_(t,e).replace("_only","")+".png?"+window.SensbitInpostEasyPack.version};function g(t,e,n,i){this.callback=n,this.abortCallback=i,this.mapObj=e;var o=t.optimized?[window.SensbitInpostEasyPackConfig.points.fields[1],window.SensbitInpostEasyPackConfig.points.fields[2]]:window.SensbitInpostEasyPackConfig.points.fields;return this.params={fields:o,status:["Operating"]},t.functions&&0===t.functions.length&&delete t.functions,!0===window.SensbitInpostEasyPackConfig.showOverLoadedLockers&&this.params.status.push("Overloaded"),window.SensbitInpostEasyPackConfig.showNonOperatingLockers&&this.params.status.push("NonOperating"),this.params=r.d.merge(this.params,t),this.params.status=c(new Set(this.params.status)),this}function _(t,e){if(t.type.length>1){if(t.type=s.typesHelpers.sortByPriorities(t.type),e&&e.length>0&&void 0!==e[0]){e=s.typesHelpers.sortByPriorities(e);for(var n=0;n<t.type.length;n++){var i=t.type[n].replace("_only","");if(s.typesHelpers.in(i,e))return i}return t.type[0]}return t.type[0]}return t.type[0]}g.prototype={closest:function(){var t=this;Object(a.c)(t.params,(function(e){t.callback(e.items)}))},allAsync:function(){var t=this,e=1,n=0;t.allPoints=[],t.params.type=s.typesHelpers.getUniqueValues(t.params.type);var i=window.SensbitInpostEasyPackConfig.apiEndpoint,f="points_"+i,h="last_modified_"+i,p="requests_data_"+i,d=[];function m(){for(var i=function(i){if(e>n)return{v:void 0};t.params.page=e,Object(a.c)(t.params,(function(o){var a;(a=t.allPoints).push.apply(a,c(o.items)),t.callback(o),d.push(o.page),d.length===n&&l.localStorageHelpers.putCompressed(f,t.allPoints.filter((function(t){return!(t.status&&"Removed"===t.status)}))),i===window.SensbitInpostEasyPackConfig.map.requestLimit&&n>=e&&m()}),t.abortCallback),e++},o=0;o<window.SensbitInpostEasyPackConfig.map.requestLimit;o++){var r=i(o);if("object"===u(r))return r.v}}t.params.page=e,window.SensbitInpostEasyPackConfig.points.functions.length>0&&(t.params=r.d.merge(this.params,{functions:window.SensbitInpostEasyPackConfig.points.functions}));var g=l.localStorageHelpers.getDecompressed(p),_=window.SensbitInpostEasyPackConfig.points.showPoints&&window.SensbitInpostEasyPackConfig.points.showPoints.length>0,y=!1,v=["functions","status","fields","type"],w=s.typesHelpers.getStringFromObjectProperties(v,t.params);if(""!==g){var b=s.typesHelpers.getStringFromObjectProperties(v,g);(y=b!==w)&&(l.localStorageHelpers.remove(f),l.localStorageHelpers.putCompressed(p,s.typesHelpers.getSpecifiedObjectProperties(v,t.params)))}else l.localStorageHelpers.putCompressed(p,s.typesHelpers.getSpecifiedObjectProperties(v,t.params));window.SensbitInpostEasyPackConfig.filters&&delete t.params.functions;var k=l.localStorageHelpers.getDecompressed(f),P=0;null!==k&&k.length>0&&(y||(t.params.updated_from=new Date(l.localStorageHelpers.get(h)).toISOString(),t.params.updated_to=(new Date).toISOString(),t.params.per_page=10,t.params.fields+=",status",delete t.params.status),P=1e3,_||t.callback({items:r.d.sortCurrentPointsByDistance(k,t.mapObj).slice(0,100),count:100})),window.SensbitInpostEasyPackConfig.points.showPoints.length>0&&(delete t.params.updated_from,delete t.params.updated_to,t.params.per_page=window.SensbitInpostEasyPackConfig.map.preloadLimit,t.params.name=window.SensbitInpostEasyPackConfig.points.showPoints.join(",")),o()((function(){Object(a.c)(t.params,(function(i){var a;if(i.status&&404===i.status&&"invalid_date"===i.key)return l.localStorageHelpers.remove(h),l.localStorageHelpers.remove(f),delete t.params.updated_from,delete t.params.updated_to,t.params.per_page=window.SensbitInpostEasyPackConfig.map.preloadLimit,t.params.status=["Operating"],!0===window.SensbitInpostEasyPackConfig.showOverLoadedLockers&&t.params.status.push("Overloaded"),window.SensbitInpostEasyPackConfig.showNonOperatingLockers&&t.params.status.push("NonOperating"),o()((function(){t.allAsync()}),20),!1;var r=0;if(null!==k&&(r=k.length),(a=t.allPoints).push.apply(a,c(i.items)),d.push(i.page),k&&r>0&&!_){if(null!==l.localStorageHelpers.get(h)){var u=i.items.length>0,p=[].concat(c(k),c(i.items)).reverse(),g=u?s.typesHelpers.removeDuplicates(p,"name"):p;t.allPoints=g.filter((function(t){return!(t.status&&"Removed"===t.status)})),u&&i.total_pages<2&&l.localStorageHelpers.putCompressed(f,t.allPoints),l.localStorageHelpers.put(h,(new Date).toISOString())}var v=window.SensbitInpostEasyPackConfig.map.chunkLimit,w=t.allPoints.slice(0,v),b=w.length,P=t.allPoints.length;y?P=i.count:P<P+i.count-i.items.length&&(P+=i.count-i.items.length),t.callback({items:w,count:P});for(var x=1;x<Math.ceil(P/v);x++)var L=o()((function(){var e=b,n=b+v,i=t.allPoints.slice(e,n);t.callback({items:i,count:P}),(b+=i.length)===P&&clearTimeout(L)}),x*window.SensbitInpostEasyPackConfig.map.timeOutPerChunkFromCache)}else _||(l.localStorageHelpers.remove(f),l.localStorageHelpers.put(h,(new Date).toISOString()),l.localStorageHelpers.putCompressed(f,i.items)),t.callback(i);void 0===(n=i.total_pages)&&(n=0),e++,n>0&&m()}),t.abortCallback)}),P)}}},function(t,e,n){var i=n(26),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(6)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(7),o=n(118),a=n(34),r=Object.defineProperty;e.f=n(13)?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){!function(t){"use strict";var e=Object.freeze;function n(t){var e,n,i,o;for(n=1,i=arguments.length;n<i;n++)for(e in o=arguments[n])t[e]=o[e];return t}Object.freeze=function(t){return t};var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function o(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var a=0;function r(t){return t._leaflet_id=t._leaflet_id||++a,t._leaflet_id}function s(t,e,n){var i,o,a,r;return r=function(){i=!1,o&&(a.apply(n,o),o=!1)},a=function(){i?o=arguments:(t.apply(n,arguments),setTimeout(r,e),i=!0)}}function l(t,e,n){var i=e[1],o=e[0],a=i-o;return t===i&&n?t:((t-o)%a+a)%a+o}function c(){return!1}function u(t,e){return e=void 0===e?6:e,+(Math.round(t+"e+"+e)+"e-"+e)}function f(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return f(t).split(/\s+/)}function p(t,e){for(var n in t.hasOwnProperty("options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function d(t,e,n){var i=[];for(var o in t)i.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var m=/\{ *([\w_-]+) *\}/g;function g(t,e){return t.replace(m,(function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i}))}var _=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var v="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function w(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var b=0;function k(t){var e=+new Date,n=Math.max(0,16-(e-b));return b=e+n,window.setTimeout(t,n)}var P=window.requestAnimationFrame||w("RequestAnimationFrame")||k,x=window.cancelAnimationFrame||w("CancelAnimationFrame")||w("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,n){if(!n||P!==k)return P.call(window,o(t,e));t.call(e)}function O(t){t&&x.call(window,t)}var S=(Object.freeze||Object)({freeze:e,extend:n,create:i,bind:o,lastId:a,stamp:r,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:f,splitWords:h,setOptions:p,getParamString:d,template:g,isArray:_,indexOf:y,emptyImageUrl:v,requestFn:P,cancelFn:x,requestAnimFrame:C,cancelAnimFrame:O});function M(){}M.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=e.__super__=this.prototype,a=i(o);for(var r in a.constructor=e,e.prototype=a,this)this.hasOwnProperty(r)&&"prototype"!==r&&"__super__"!==r&&(e[r]=this[r]);return t.statics&&(n(e,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=_(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),n.apply(null,[a].concat(t.includes)),delete t.includes),a.options&&(t.options=n(i(a.options),t.options)),n(a,t),a._initHooks=[],a.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=a._initHooks.length;t<e;t++)a._initHooks[t].call(this)}},e},M.include=function(t){return n(this.prototype,t),this},M.mergeOptions=function(t){return n(this.prototype.options,t),this},M.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var T={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var o=0,a=(t=h(t)).length;o<a;o++)this._on(t[o],e,n);return this},off:function(t,e,n){if(t)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else for(var o=0,a=(t=h(t)).length;o<a;o++)this._off(t[o],e,n);else delete this._events;return this},_on:function(t,e,n){this._events=this._events||{};var i=this._events[t];i||(i=[],this._events[t]=i),n===this&&(n=void 0);for(var o={fn:e,ctx:n},a=i,r=0,s=a.length;r<s;r++)if(a[r].fn===e&&a[r].ctx===n)return;a.push(o)},_off:function(t,e,n){var i,o,a;if(this._events&&(i=this._events[t]))if(e){if(n===this&&(n=void 0),i)for(o=0,a=i.length;o<a;o++){var r=i[o];if(r.ctx===n&&r.fn===e)return r.fn=c,this._firingCount&&(this._events[t]=i=i.slice()),void i.splice(o,1)}}else{for(o=0,a=i.length;o<a;o++)i[o].fn=c;delete this._events[t]}},fire:function(t,e,i){if(!this.listens(t,i))return this;var o=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var a=this._events[t];if(a){this._firingCount=this._firingCount+1||1;for(var r=0,s=a.length;r<s;r++){var l=a[r];l.fn.call(l.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length)return!0;if(e)for(var i in this._eventParents)if(this._eventParents[i].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==typeof t){for(var i in t)this.once(i,t[i],e);return this}var a=o((function(){this.off(t,e,n).off(t,a,n)}),this);return this.on(t,e,n).on(t,a,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[r(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[r(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};T.addEventListener=T.on,T.removeEventListener=T.clearAllEventListeners=T.off,T.addOneTimeEventListener=T.once,T.fireEvent=T.fire,T.hasEventListeners=T.listens;var E=M.extend(T);function j(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var z=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function A(t,e,n){return t instanceof j?t:_(t)?new j(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new j(t.x,t.y):new j(t,e,n)}function I(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function B(t,e){return!t||t instanceof I?t:new I(t,e)}function N(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function F(t,e){return t instanceof N?t:new N(t,e)}function D(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function Z(t,e,n){return t instanceof D?t:_(t)&&"object"!=typeof t[0]?3===t.length?new D(t[0],t[1],t[2]):2===t.length?new D(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new D(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new D(t,e,n)}j.prototype={clone:function(){return new j(this.x,this.y)},add:function(t){return this.clone()._add(A(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(A(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new j(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new j(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(t){var e=(t=A(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=A(t)).x===this.x&&t.y===this.y},contains:function(t){return t=A(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},I.prototype={extend:function(t){return t=A(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new j((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new j(this.min.x,this.max.y)},getTopRight:function(){return new j(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof j?A(t):B(t))instanceof I?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=B(t);var e=this.min,n=this.max,i=t.min,o=t.max,a=o.x>=e.x&&i.x<=n.x,r=o.y>=e.y&&i.y<=n.y;return a&&r},overlaps:function(t){t=B(t);var e=this.min,n=this.max,i=t.min,o=t.max,a=o.x>e.x&&i.x<n.x,r=o.y>e.y&&i.y<n.y;return a&&r},isValid:function(){return!(!this.min||!this.max)}},N.prototype={extend:function(t){var e,n,i=this._southWest,o=this._northEast;if(t instanceof D)e=t,n=t;else{if(!(t instanceof N))return t?this.extend(Z(t)||F(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||o?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new D(e.lat,e.lng),this._northEast=new D(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new N(new D(e.lat-i,e.lng-o),new D(n.lat+i,n.lng+o))},getCenter:function(){return new D((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new D(this.getNorth(),this.getWest())},getSouthEast:function(){return new D(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof D||"lat"in t?Z(t):F(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof N?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=F(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),a=o.lat>=e.lat&&i.lat<=n.lat,r=o.lng>=e.lng&&i.lng<=n.lng;return a&&r},overlaps:function(t){t=F(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),a=o.lat>e.lat&&i.lat<n.lat,r=o.lng>e.lng&&i.lng<n.lng;return a&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=F(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},D.prototype={equals:function(t,e){return!!t&&(t=Z(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return q.distance(this,Z(t))},wrap:function(){return q.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new D(this.lat,this.lng,this.alt)}};var R,H={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new I(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new D(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,o=e.lng-n.lng;if(0===i&&0===o)return t;var a=t.getSouthWest(),r=t.getNorthEast();return new N(new D(a.lat-i,a.lng-o),new D(r.lat-i,r.lng-o))}},q=n({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,o=e.lat*n,a=Math.sin((e.lat-t.lat)*n/2),r=Math.sin((e.lng-t.lng)*n/2),s=a*a+Math.cos(i)*Math.cos(o)*r*r,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),U=6378137,G={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=Math.sin(i*e);return new j(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new D((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(R=U*Math.PI,new I([-R,-R],[R,R]))};function W(t,e,n,i){if(_(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function V(t,e,n,i){return new W(t,e,n,i)}W.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new j((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var K=n({},q,{code:"EPSG:3857",projection:G,transformation:function(){var t=.5/(Math.PI*G.R);return V(t,.5,-t,.5)}()}),Y=n({},K,{code:"EPSG:900913"});function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){var n,i,o,a,r,s,l="";for(n=0,o=t.length;n<o;n++){for(i=0,a=(r=t[n]).length;i<a;i++)l+=(i?"L":"M")+(s=r[i]).x+" "+s.y;l+=e?St?"z":"x":""}return l||"M0 0"}var $=document.documentElement.style,Q="ActiveXObject"in window,tt=Q&&!document.addEventListener,et="msLaunchUri"in navigator&&!("documentMode"in document),nt=Tt("webkit"),it=Tt("android"),ot=Tt("android 2")||Tt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),rt=it&&Tt("Google")&&at<537&&!("AudioNode"in window),st=!!window.opera,lt=Tt("chrome"),ct=Tt("gecko")&&!nt&&!st&&!Q,ut=!lt&&Tt("safari"),ft=Tt("phantom"),ht="OTransition"in $,pt=0===navigator.platform.indexOf("Win"),dt=Q&&"transition"in $,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,gt="MozPerspective"in $,_t=!window.L_DISABLE_3D&&(dt||mt||gt)&&!ht&&!ft,yt="undefined"!=typeof orientation||Tt("mobile"),vt=yt&&nt,wt=yt&&mt,bt=!window.PointerEvent&&window.MSPointerEvent,kt=!(!window.PointerEvent&&!bt),Pt=!window.L_NO_TOUCH&&(kt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),xt=yt&&st,Lt=yt&&ct,Ct=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ot=!!document.createElement("canvas").getContext,St=!(!document.createElementNS||!X("svg").createSVGRect),Mt=!St&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function Tt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Et=(Object.freeze||Object)({ie:Q,ielt9:tt,edge:et,webkit:nt,android:it,android23:ot,androidStock:rt,opera:st,chrome:lt,gecko:ct,safari:ut,phantom:ft,opera12:ht,win:pt,ie3d:dt,webkit3d:mt,gecko3d:gt,any3d:_t,mobile:yt,mobileWebkit:vt,mobileWebkit3d:wt,msPointer:bt,pointer:kt,touch:Pt,mobileOpera:xt,mobileGecko:Lt,retina:Ct,canvas:Ot,svg:St,vml:Mt}),jt=bt?"MSPointerDown":"pointerdown",zt=bt?"MSPointerMove":"pointermove",At=bt?"MSPointerUp":"pointerup",It=bt?"MSPointerCancel":"pointercancel",Bt=["INPUT","SELECT","OPTION"],Nt={},Ft=!1,Dt=0;function Zt(t,e,n,i){return"touchstart"===e?function(t,e,n){var i=o((function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(Bt.indexOf(t.target.tagName)<0))return;Ne(t)}Ut(t,e)}));t["_leaflet_touchstart"+n]=i,t.addEventListener(jt,i,!1),Ft||(document.documentElement.addEventListener(jt,Rt,!0),document.documentElement.addEventListener(zt,Ht,!0),document.documentElement.addEventListener(At,qt,!0),document.documentElement.addEventListener(It,qt,!0),Ft=!0)}(t,n,i):"touchmove"===e?function(t,e,n){var i=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&Ut(t,e)};t["_leaflet_touchmove"+n]=i,t.addEventListener(zt,i,!1)}(t,n,i):"touchend"===e&&function(t,e,n){var i=function(t){Ut(t,e)};t["_leaflet_touchend"+n]=i,t.addEventListener(At,i,!1),t.addEventListener(It,i,!1)}(t,n,i),this}function Rt(t){Nt[t.pointerId]=t,Dt++}function Ht(t){Nt[t.pointerId]&&(Nt[t.pointerId]=t)}function qt(t){delete Nt[t.pointerId],Dt--}function Ut(t,e){for(var n in t.touches=[],Nt)t.touches.push(Nt[n]);t.changedTouches=[t],e(t)}var Gt=bt?"MSPointerDown":kt?"pointerdown":"touchstart",Wt=bt?"MSPointerUp":kt?"pointerup":"touchend",Vt="_leaflet_";function Kt(t,e,n){var i,o,a=!1;function r(t){var e;if(kt){if(!et||"mouse"===t.pointerType)return;e=Dt}else e=t.touches.length;if(!(e>1)){var n=Date.now(),r=n-(i||n);o=t.touches?t.touches[0]:t,a=r>0&&r<=250,i=n}}function s(t){if(a&&!o.cancelBubble){if(kt){if(!et||"mouse"===t.pointerType)return;var n,r,s={};for(r in o)n=o[r],s[r]=n&&n.bind?n.bind(o):n;o=s}o.type="dblclick",o.button=0,e(o),i=null}}return t[Vt+Gt+n]=r,t[Vt+Wt+n]=s,t[Vt+"dblclick"+n]=e,t.addEventListener(Gt,r,!1),t.addEventListener(Wt,s,!1),t.addEventListener("dblclick",e,!1),this}function Yt(t,e){var n=t[Vt+Gt+e],i=t[Vt+Wt+e],o=t[Vt+"dblclick"+e];return t.removeEventListener(Gt,n,!1),t.removeEventListener(Wt,i,!1),et||t.removeEventListener("dblclick",o,!1),this}var Xt,Jt,$t,Qt,te,ee=_e(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ne=_e(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ie="webkitTransition"===ne||"OTransition"===ne?ne+"End":"transitionend";function oe(t){return"string"==typeof t?document.getElementById(t):t}function ae(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function re(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function se(t){var e=t.parentNode;e&&e.removeChild(t)}function le(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ce(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ue(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function fe(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=me(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function he(t,e){if(void 0!==t.classList)for(var n=h(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!fe(t,e)){var a=me(t);de(t,(a?a+" ":"")+e)}}function pe(t,e){void 0!==t.classList?t.classList.remove(e):de(t,f((" "+me(t)+" ").replace(" "+e+" "," ")))}function de(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function me(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function ge(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}(t,e)}function _e(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ye(t,e,n){var i=e||new j(0,0);t.style[ee]=(dt?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function ve(t,e){t._leaflet_pos=e,_t?ye(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function we(t){return t._leaflet_pos||new j(0,0)}if("onselectstart"in document)Xt=function(){Me(window,"selectstart",Ne)},Jt=function(){Ee(window,"selectstart",Ne)};else{var be=_e(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Xt=function(){if(be){var t=document.documentElement.style;$t=t[be],t[be]="none"}},Jt=function(){be&&(document.documentElement.style[be]=$t,$t=void 0)}}function ke(){Me(window,"dragstart",Ne)}function Pe(){Ee(window,"dragstart",Ne)}function xe(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Le(),Qt=t,te=t.style.outline,t.style.outline="none",Me(window,"keydown",Le))}function Le(){Qt&&(Qt.style.outline=te,Qt=void 0,te=void 0,Ee(window,"keydown",Le))}function Ce(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Oe(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Se=(Object.freeze||Object)({TRANSFORM:ee,TRANSITION:ne,TRANSITION_END:ie,get:oe,getStyle:ae,create:re,remove:se,empty:le,toFront:ce,toBack:ue,hasClass:fe,addClass:he,removeClass:pe,setClass:de,getClass:me,setOpacity:ge,testProp:_e,setTransform:ye,setPosition:ve,getPosition:we,disableTextSelection:Xt,enableTextSelection:Jt,disableImageDrag:ke,enableImageDrag:Pe,preventOutline:xe,restoreOutline:Le,getSizedParentNode:Ce,getScale:Oe});function Me(t,e,n,i){if("object"==typeof e)for(var o in e)je(t,o,e[o],n);else for(var a=0,r=(e=h(e)).length;a<r;a++)je(t,e[a],n,i);return this}var Te="_leaflet_events";function Ee(t,e,n,i){if("object"==typeof e)for(var o in e)ze(t,o,e[o],n);else if(e)for(var a=0,r=(e=h(e)).length;a<r;a++)ze(t,e[a],n,i);else{for(var s in t[Te])ze(t,s,t[Te][s]);delete t[Te]}return this}function je(t,e,n,i){var o=e+r(n)+(i?"_"+r(i):"");if(t[Te]&&t[Te][o])return this;var a=function(e){return n.call(i||t,e||window.event)},s=a;kt&&0===e.indexOf("touch")?Zt(t,e,a,o):!Pt||"dblclick"!==e||!Kt||kt&<?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",a,!1):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,We(t,e)&&s(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",a,!1)):("click"===e&&it&&(a=function(t){!function(t,e){var n=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,i=He&&n-He;i&&i>100&&i<500||t.target._simulatedClick&&!t._simulated?Fe(t):(He=n,e(t))}(t,s)}),t.addEventListener(e,a,!1)):"attachEvent"in t&&t.attachEvent("on"+e,a):Kt(t,a,o),t[Te]=t[Te]||{},t[Te][o]=a}function ze(t,e,n,i){var o=e+r(n)+(i?"_"+r(i):""),a=t[Te]&&t[Te][o];if(!a)return this;kt&&0===e.indexOf("touch")?function(t,e,n){var i=t["_leaflet_"+e+n];"touchstart"===e?t.removeEventListener(jt,i,!1):"touchmove"===e?t.removeEventListener(zt,i,!1):"touchend"===e&&(t.removeEventListener(At,i,!1),t.removeEventListener(It,i,!1))}(t,e,o):!Pt||"dblclick"!==e||!Yt||kt&<?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",a,!1):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a):Yt(t,o),t[Te][o]=null}function Ae(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Ge(t),this}function Ie(t){return je(t,"mousewheel",Ae),this}function Be(t){return Me(t,"mousedown touchstart dblclick",Ae),je(t,"click",Ue),this}function Ne(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Fe(t){return Ne(t),Ae(t),this}function De(t,e){if(!e)return new j(t.clientX,t.clientY);var n=Oe(e),i=n.boundingClientRect;return new j((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Ze=pt&<?2*window.devicePixelRatio:ct?window.devicePixelRatio:1;function Re(t){return et?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ze:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var He,qe={};function Ue(t){qe[t.type]=!0}function Ge(t){var e=qe[t.type];return qe[t.type]=!1,e}function We(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Ve=(Object.freeze||Object)({on:Me,off:Ee,stopPropagation:Ae,disableScrollPropagation:Ie,disableClickPropagation:Be,preventDefault:Ne,stop:Fe,getMousePosition:De,getWheelDelta:Re,fakeStop:Ue,skipped:Ge,isExternalTarget:We,addListener:Me,removeListener:Ee}),Ke=E.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=we(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),ve(this._el,n),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ye=E.extend({options:{crs:K,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(Z(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ne&&_t&&!xt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Me(this._proxy,ie,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,i){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(Z(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=n({animate:i.animate},i.zoom),i.pan=n({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(_t?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(_t?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),a=(t instanceof j?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),r=this.containerPointToLatLng(o.add(a));return this.setView(r,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():F(t);var n=A(e.paddingTopLeft||e.padding||[0,0]),i=A(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var a=i.subtract(n).divideBy(2),r=this.project(t.getSouthWest(),o),s=this.project(t.getNorthEast(),o);return{center:this.unproject(r.add(s).divideBy(2).add(a),o),zoom:o}},fitBounds:function(t,e){if(!(t=F(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=A(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Ke,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){he(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!_t)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),o=this.project(t),a=this.getSize(),r=this._zoom;t=Z(t),e=void 0===e?r:e;var s=Math.max(a.x,a.y),l=s*this.getZoomScale(r,e),c=o.distanceTo(i)||1,u=1.42,f=u*u;function h(t){var e=(l*l-s*s+(t?-1:1)*f*f*c*c)/(2*(t?l:s)*f*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function d(t){return(Math.exp(t)+Math.exp(-t))/2}var m=h(0);function g(t){return s*(d(m)*function(t){return p(t)/d(t)}(m+u*t)-p(m))/f}var _=Date.now(),y=(h(1)-m)/u,v=n.duration?1e3*n.duration:1e3*y*.8;return this._moveStart(!0,n.noMoveStart),function n(){var a=(Date.now()-_)/v,l=function(t){return 1-Math.pow(1-t,1.5)}(a)*y;a<=1?(this._flyToFrame=C(n,this),this._move(this.unproject(i.add(o.subtract(i).multiplyBy(g(l)/c)),r),this.getScaleZoom(s/function(t){return s*(d(m)/d(m+u*t))}(l),r),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return(t=F(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,F(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=A((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=A(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),a=this.project(o),r=this.project(t),s=this.getPixelBounds(),l=s.getSize().divideBy(2),c=B([s.min.add(n),s.max.subtract(i)]);if(!c.contains(r)){this._enforcingBounds=!0;var u=a.subtract(r),f=A(r.x+u.x,r.y+u.y);(r.x<c.min.x||r.x>c.max.x)&&(f.x=a.x-u.x,u.x>0?f.x+=l.x-n.x:f.x-=l.x-i.x),(r.y<c.min.y||r.y>c.max.y)&&(f.y=a.y-u.y,u.y>0?f.y+=l.y-n.y:f.y-=l.y-i.y),this.panTo(this.unproject(f),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),a=e.divideBy(2).round(),r=i.divideBy(2).round(),s=a.subtract(r);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),i=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=new D(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var o=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(o,i.maxZoom):o)}var a={latlng:e,bounds:n,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(a[r]=t.coords[r]);this.fire("locationfound",a)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),se(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)se(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=re("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=F(t),n=A(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),a=this.getMaxZoom(),r=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),c=B(this.project(s,i),this.project(r,i)).getSize(),u=_t?this.options.zoomSnap:1,f=l.x/c.x,h=l.y/c.y,p=e?Math.max(f,h):Math.min(f,h);return i=this.getScaleZoom(p,i),u&&(i=Math.round(i/(u/100))*(u/100),i=e?Math.ceil(i/u)*u:Math.floor(i/u)*u),Math.max(o,Math.min(a,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new j(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new I(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(Z(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(A(t),e)},layerPointToLatLng:function(t){var e=A(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(Z(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Z(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(Z(t),Z(e))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(t)))},mouseEventToContainerPoint:function(t){return De(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=oe(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Me(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&_t,he(t,"leaflet-container"+(Pt?" leaflet-touch":"")+(Ct?" leaflet-retina":"")+(tt?" leaflet-oldie":"")+(ut?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ae(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ve(this._mapPane,new j(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(he(t.markerPane,"leaflet-zoom-hide"),he(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){ve(this._mapPane,new j(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,!1)._move(t,e)._moveEnd(i),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ve(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var e=t?Ee:Me;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),_t&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],o="mouseout"===e||"mouseover"===e,a=t.target||t.srcElement,s=!1;a;){if((n=this._targets[r(a)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(o&&!We(a,t))break;if(i.push(n),o)break}if(a===this._container)break;a=a.parentNode}return i.length||s||o||!We(a,t)||(i=[this]),i},_handleDOMEvent:function(t){if(this._loaded&&!Ge(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||xe(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if("click"===t.type){var o=n({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}if(!t._stopped&&(i=(i||[]).concat(this._findEventTargets(t,e))).length){var a=i[0];"contextmenu"===e&&a.listens(e,!0)&&Ne(t);var r={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=a.getLatLng&&(!a._radius||a._radius<=10);r.containerPoint=s?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=s?a.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var l=0;l<i.length;l++)if(i[l].fire(e,r,!0),r.originalEvent._stopped||!1===i[l].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return we(this._mapPane)||new j(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return B([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),o=this.getSize().divideBy(2),a=new I(i.subtract(o),i.add(o)),r=this._getBoundsOffset(a,n,e);return r.round().equals([0,0])?t:this.unproject(i.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new I(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=B(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=i.min.subtract(t.min),a=i.max.subtract(t.max);return new j(this._rebound(o.x,-a.x),this._rebound(o.y,-a.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=_t?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){pe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=re("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ee,n=this._proxy.style[e];ye(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",(function(){var t=this.getCenter(),e=this.getZoom();ye(this._proxy,this.project(t,e),this.getZoomScale(e,1))}),this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){se(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o)||(C((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,he(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&pe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),C((function(){this._moveEnd(!0)}),this))}});var Xe=M.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return he(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(se(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Je=function(t){return new Xe(t)};Ye.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=re("div",e+"control-container",this._container);function i(i,o){var a=e+i+" "+e+o;t[i+o]=re("div",a,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)se(this._controlCorners[t]);se(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var $e=Xe.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Xe.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(r(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){he(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(he(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):pe(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return pe(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=re("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Be(e),Ie(e);var i=this._section=re("section",t+"-list");n&&(this._map.on("click",this.collapse,this),it||Me(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=re("a",t+"-toggle",e);o.href="#",o.title="Layers",Pt?(Me(o,"click",Fe),Me(o,"click",this.expand,this)):Me(o,"focus",this.expand,this),n||this.expand(),this._baseLayersList=re("div",t+"-base",i),this._separator=re("div",t+"-separator",i),this._overlaysList=re("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&r(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;le(this._baseLayersList),le(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,o=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,o+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+r(this),i),this._layerControlInputs.push(e),e.layerId=r(t.layer),Me(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(e),a.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var a=n.length-1;a>=0;a--)t=n[a],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(a=0;a<o.length;a++)this._map.hasLayer(o[a])&&this._map.removeLayer(o[a]);for(a=0;a<i.length;a++)this._map.hasLayer(i[a])||this._map.addLayer(i[a]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Qe=Xe.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=re("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,o){var a=re("a",n,i);return a.innerHTML=t,a.href="#",a.title=e,a.setAttribute("role","button"),a.setAttribute("aria-label",e),Be(a),Me(a,"click",Fe),Me(a,"click",o,this),Me(a,"click",this._refocusOnMap,this),a},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";pe(this._zoomInButton,e),pe(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&he(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&he(this._zoomInButton,e)}});Ye.mergeOptions({zoomControl:!0}),Ye.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Qe,this.addControl(this.zoomControl))}));var tn=Xe.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=re("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=re("div",e,n)),t.imperial&&(this._iScale=re("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),en=Xe.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=re("div","leaflet-control-attribution"),Be(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ye.mergeOptions({attributionControl:!0}),Ye.addInitHook((function(){this.options.attributionControl&&(new en).addTo(this)}));Xe.Layers=$e,Xe.Zoom=Qe,Xe.Scale=tn,Xe.Attribution=en,Je.layers=function(t,e,n){return new $e(t,e,n)},Je.zoom=function(t){return new Qe(t)},Je.scale=function(t){return new tn(t)},Je.attribution=function(t){return new en(t)};var nn=M.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});nn.addTo=function(t,e){return t.addHandler(e,this),this};var on,an={Events:T},rn=Pt?"touchstart mousedown":"mousedown",sn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},ln={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},cn=E.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){p(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Me(this._dragStartTarget,rn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(cn._dragging===this&&this.finishDrag(),Ee(this._dragStartTarget,rn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!fe(this._element,"leaflet-zoom-anim")&&!(cn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(cn._dragging=this,this._preventOutline&&xe(this._element),ke(),Xt(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Ce(this._element);this._startPoint=new j(e.clientX,e.clientY),this._parentScale=Oe(n),Me(document,ln[t.type],this._onMove,this),Me(document,sn[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new j(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ne(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=we(this._element).subtract(n),he(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),he(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,O(this._animRequest),this._lastEvent=t,this._animRequest=C(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ve(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in pe(document.body,"leaflet-dragging"),this._lastTarget&&(pe(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ln)Ee(document,ln[t],this._onMove,this),Ee(document,sn[t],this._onUp,this);Pe(),Jt(),this._moved&&this._moving&&(O(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,cn._dragging=!1}});function un(t,e){if(!e||!t.length)return t.slice();var n=e*e;return function(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,function t(e,n,i,o,a){var r,s,l,c=0;for(s=o+1;s<=a-1;s++)(l=gn(e[s],e[o],e[a],!0))>c&&(r=s,c=l);c>i&&(n[r]=1,t(e,n,i,o,r),t(e,n,i,r,a))}(t,i,e,0,n-1);var o,a=[];for(o=0;o<n;o++)i[o]&&a.push(t[o]);return a}(t=function(t,e){for(var n=[t[0]],i=1,o=0,a=t.length;i<a;i++)mn(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<a-1&&n.push(t[a-1]),n}(t,n),n)}function fn(t,e,n){return Math.sqrt(gn(t,e,n,!0))}function hn(t,e,n,i,o){var a,r,s,l=i?on:dn(t,n),c=dn(e,n);for(on=c;;){if(!(l|c))return[t,e];if(l&c)return!1;s=dn(r=pn(t,e,a=l||c,n,o),n),a===l?(t=r,l=s):(e=r,c=s)}}function pn(t,e,n,i,o){var a,r,s=e.x-t.x,l=e.y-t.y,c=i.min,u=i.max;return 8&n?(a=t.x+s*(u.y-t.y)/l,r=u.y):4&n?(a=t.x+s*(c.y-t.y)/l,r=c.y):2&n?(a=u.x,r=t.y+l*(u.x-t.x)/s):1&n&&(a=c.x,r=t.y+l*(c.x-t.x)/s),new j(a,r,o)}function dn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function mn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function gn(t,e,n,i){var o,a=e.x,r=e.y,s=n.x-a,l=n.y-r,c=s*s+l*l;return c>0&&((o=((t.x-a)*s+(t.y-r)*l)/c)>1?(a=n.x,r=n.y):o>0&&(a+=s*o,r+=l*o)),s=t.x-a,l=t.y-r,i?s*s+l*l:new j(a,r)}function _n(t){return!_(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function yn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_n(t)}var vn=(Object.freeze||Object)({simplify:un,pointToSegmentDistance:fn,closestPointOnSegment:function(t,e,n){return gn(t,e,n)},clipSegment:hn,_getEdgeIntersection:pn,_getBitCode:dn,_sqClosestPointOnSegment:gn,isFlat:_n,_flat:yn});function wn(t,e,n){var i,o,a,r,s,l,c,u,f,h=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=dn(t[o],e);for(r=0;r<4;r++){for(u=h[r],i=[],o=0,a=(c=t.length)-1;o<c;a=o++)s=t[o],l=t[a],s._code&u?l._code&u||((f=pn(l,s,u,e,n))._code=dn(f,e),i.push(f)):(l._code&u&&((f=pn(l,s,u,e,n))._code=dn(f,e),i.push(f)),i.push(s));t=i}return t}var bn=(Object.freeze||Object)({clipPolygon:wn}),kn={project:function(t){return new j(t.lng,t.lat)},unproject:function(t){return new D(t.y,t.x)},bounds:new I([-180,-90],[180,90])},Pn={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,o=this.R_MINOR/n,a=Math.sqrt(1-o*o),r=a*Math.sin(i),s=Math.tan(Math.PI/4-i/2)/Math.pow((1-r)/(1+r),a/2);return i=-n*Math.log(Math.max(s,1e-10)),new j(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,a=Math.sqrt(1-o*o),r=Math.exp(-t.y/i),s=Math.PI/2-2*Math.atan(r),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=a*Math.sin(s),e=Math.pow((1-e)/(1+e),a/2),s+=c=Math.PI/2-2*Math.atan(r*e)-s;return new D(s*n,t.x*n/i)}},xn=(Object.freeze||Object)({LonLat:kn,Mercator:Pn,SphericalMercator:G}),Ln=n({},q,{code:"EPSG:3395",projection:Pn,transformation:function(){var t=.5/(Math.PI*Pn.R);return V(t,.5,-t,.5)}()}),Cn=n({},q,{code:"EPSG:4326",projection:kn,transformation:V(1/180,1,-1/180,.5)}),On=n({},H,{projection:kn,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});H.Earth=q,H.EPSG3395=Ln,H.EPSG3857=K,H.EPSG900913=Y,H.EPSG4326=Cn,H.Simple=On;var Sn=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ye.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&r(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?_(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[r(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=r(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var o=this._zoomBoundLayers[i].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Mn=Sn.extend({initialize:function(t,e){var n,i;if(p(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return r(t)}}),Tn=Mn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Mn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Mn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new N;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),En=M.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var o=A(i),a=A("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),a&&(t.style.marginLeft=-a.x+"px",t.style.marginTop=-a.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Ct&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var jn=En.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return jn.imagePath||(jn.imagePath=this._detectIconPath()),(this.options.imagePath||jn.imagePath)+En.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=re("div","leaflet-default-icon-path",document.body),e=ae(t,"background-image")||ae(t,"backgroundImage");return document.body.removeChild(t),null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),zn=nn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new cn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),he(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&pe(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,a=we(e._icon),r=n.getPixelBounds(),s=n.getPixelOrigin(),l=B(r.min._subtract(s).add(o),r.max._subtract(s).subtract(o));if(!l.contains(a)){var c=A((Math.max(l.max.x,a.x)-l.max.x)/(r.max.x-l.max.x)-(Math.min(l.min.x,a.x)-l.min.x)/(r.min.x-l.min.x),(Math.max(l.max.y,a.y)-l.max.y)/(r.max.y-l.max.y)-(Math.min(l.min.y,a.y)-l.min.y)/(r.min.y-l.min.y)).multiplyBy(i);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),ve(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=we(e._icon),o=e._map.layerPointToLatLng(i);n&&ve(n,i),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),An=Sn.extend({options:{icon:new jn,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=Z(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=Z(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),he(n,e),t.keyboard&&(n.tabIndex="0"),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),a=!1;o!==this._shadow&&(this._removeShadow(),a=!0),o&&(he(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&a&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),se(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&se(this._shadow),this._shadow=null},_setPos:function(t){ve(this._icon,t),this._shadow&&ve(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(he(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),zn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new zn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ge(this._icon,t),this._shadow&&ge(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var In=Sn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t.hasOwnProperty("weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),Bn=In.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=Z(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=Z(t),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return In.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new I(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Nn=Bn.extend({initialize:function(t,e,i){if("number"==typeof e&&(e=n({},i,{radius:e})),p(this,e),this._latlng=Z(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new N(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:In.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===q.distance){var o=Math.PI/180,a=this._mRadius/q.R/o,r=n.project([e+a,t]),s=n.project([e-a,t]),l=r.add(s).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(a*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(u)||0===u)&&(u=a/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,t-u]).x,this._radiusY=l.y-r.y}else{var f=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(f).x}this._updateBounds()}});var Fn=In.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,o=null,a=gn,r=0,s=this._parts.length;r<s;r++)for(var l=this._parts[r],c=1,u=l.length;c<u;c++){var f=a(t,e=l[c-1],n=l[c],!0);f<i&&(i=f,o=a(t,e,n))}return o&&(o.distance=Math.sqrt(i)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,o,a,r,s=this._rings[0],l=s.length;if(!l)return null;for(t=0,e=0;t<l-1;t++)e+=s[t].distanceTo(s[t+1])/2;if(0===e)return this._map.layerPointToLatLng(s[0]);for(t=0,i=0;t<l-1;t++)if(o=s[t],a=s[t+1],(i+=n=o.distanceTo(a))>e)return r=(i-e)/n,this._map.layerPointToLatLng([a.x-r*(a.x-o.x),a.y-r*(a.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=Z(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new N,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return _n(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=_n(t),i=0,o=t.length;i<o;i++)n?(e[i]=Z(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new j(t,t);this._pxBounds=new I([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var i,o,a=t[0]instanceof D,r=t.length;if(a){for(o=[],i=0;i<r;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<r;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,i,o,a,r,s,l=this._parts;for(e=0,i=0,o=this._rings.length;e<o;e++)for(n=0,a=(s=this._rings[e]).length;n<a-1;n++)(r=hn(s[n],s[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(r[0]),r[1]===s[n+1]&&n!==a-2||(l[i].push(r[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=un(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,o,a,r,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,a=this._parts.length;n<a;n++)for(i=0,o=(r=(s=this._parts[n]).length)-1;i<r;o=i++)if((e||0!==i)&&fn(t,s[o],s[i])<=l)return!0;return!1}});Fn._flat=yn;var Dn=Fn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,o,a,r,s,l,c=this._rings[0],u=c.length;if(!u)return null;for(a=r=s=0,t=0,e=u-1;t<u;e=t++)n=c[t],i=c[e],o=n.y*i.x-i.y*n.x,r+=(n.x+i.x)*o,s+=(n.y+i.y)*o,a+=3*o;return l=0===a?c[0]:[r/a,s/a],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=Fn.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof D&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Fn.prototype._setLatLngs.call(this,t),_n(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _n(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new j(e,e);if(t=new I(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,o=0,a=this._rings.length;o<a;o++)(i=wn(this._rings[o],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,o,a,r,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,s=this._parts.length;o<s;o++)for(a=0,r=(l=(e=this._parts[o]).length)-1;a<l;r=a++)n=e[a],i=e[r],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c||Fn.prototype._containsPoint.call(this,t,!0)}});var Zn=Tn.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=_(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((i=o[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var a=this.options;if(a.filter&&!a.filter(t))return this;var r=Rn(t,a);return r?(r.feature=Vn(t),r.defaultOptions=r.options,this.resetStyle(r),a.onEachFeature&&a.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Rn(t,e){var n,i,o,a,r="Feature"===t.type?t.geometry:t,s=r?r.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||Hn;if(!s&&!r)return null;switch(r.type){case"Point":return n=u(s),c?c(t,n):new An(n);case"MultiPoint":for(o=0,a=s.length;o<a;o++)n=u(s[o]),l.push(c?c(t,n):new An(n));return new Tn(l);case"LineString":case"MultiLineString":return i=qn(s,"LineString"===r.type?0:1,u),new Fn(i,e);case"Polygon":case"MultiPolygon":return i=qn(s,"Polygon"===r.type?1:2,u),new Dn(i,e);case"GeometryCollection":for(o=0,a=r.geometries.length;o<a;o++){var f=Rn({geometry:r.geometries[o],type:"Feature",properties:t.properties},e);f&&l.push(f)}return new Tn(l);default:throw new Error("Invalid GeoJSON object.")}}function Hn(t){return new D(t[1],t[0],t[2])}function qn(t,e,n){for(var i,o=[],a=0,r=t.length;a<r;a++)i=e?qn(t[a],e-1,n):(n||Hn)(t[a]),o.push(i);return o}function Un(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function Gn(t,e,n,i){for(var o=[],a=0,r=t.length;a<r;a++)o.push(e?Gn(t[a],e-1,n,i):Un(t[a],i));return!e&&n&&o.push(o[0]),o}function Wn(t,e){return t.feature?n({},t.feature,{geometry:e}):Vn(e)}function Vn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Kn={toGeoJSON:function(t){return Wn(this,{type:"Point",coordinates:Un(this.getLatLng(),t)})}};function Yn(t,e){return new Zn(t,e)}An.include(Kn),Nn.include(Kn),Bn.include(Kn),Fn.include({toGeoJSON:function(t){var e=!_n(this._latlngs);return Wn(this,{type:(e?"Multi":"")+"LineString",coordinates:Gn(this._latlngs,e?1:0,!1,t)})}}),Dn.include({toGeoJSON:function(t){var e=!_n(this._latlngs),n=e&&!_n(this._latlngs[0]),i=Gn(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),Wn(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Mn.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),Wn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var a=Vn(o);"FeatureCollection"===a.type?i.push.apply(i,a.features):i.push(a)}}})),n?Wn(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Xn=Yn,Jn=Sn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=F(e),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(he(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){se(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ce(this._image),this},bringToBack:function(){return this._map&&ue(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=F(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:re("img");he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),this.options.className&&he(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ye(this._image,n,e)},_reset:function(){var t=this._image,e=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();ve(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ge(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),$n=Jn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:re("video");if(he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=o(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],a=0;a<n.length;a++)i.push(n[a].src);this._url=n.length>0?i:[e.src]}else{_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var r=0;r<this._url.length;r++){var s=re("source");s.src=this._url[r],e.appendChild(s)}}}});var Qn=Jn.extend({_initImage:function(){var t=this._image=this._url;he(t,"leaflet-image-layer"),this._zoomAnimated&&he(t,"leaflet-zoom-animated"),t.onselectstart=c,t.onmousemove=c}});var ti=Sn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){p(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ge(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ge(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(ge(this._container,0),this._removeTimeout=setTimeout(o(se,void 0,this._container),200)):se(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=Z(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ce(this._container),this},bringToBack:function(){return this._map&&ue(this._container),this},_prepareOpen:function(t,e,n){if(e instanceof Sn||(n=e,e=t),e instanceof Tn)for(var i in t._layers){e=t._layers[i];break}if(!n)if(e.getCenter)n=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");n=e.getLatLng()}return this._source=e,this.update(),n},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=A(this.options.offset),n=this._getAnchor();this._zoomAnimated?ve(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}}),ei=ti.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){ti.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof In||this._source.on("preclick",Ae))},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof In||this._source.off("preclick",Ae))},getEvents:function(){var t=ti.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=re("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=re("div",t+"-content-wrapper",e);if(this._contentNode=re("div",t+"-content",n),Be(n),Ie(this._contentNode),Me(n,"contextmenu",Ae),this._tipContainer=re("div",t+"-tip-container",e),this._tip=re("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=re("a",t+"-close-button",e);i.href="#close",i.innerHTML="×",Me(i,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,o=this.options.maxHeight,a="leaflet-popup-scrolled";o&&i>o?(e.height=o+"px",he(t,a)):pe(t,a),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();ve(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(ae(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new j(this._containerLeft,-n-this._containerBottom);o._add(we(this._container));var a=t.layerPointToContainerPoint(o),r=A(this.options.autoPanPadding),s=A(this.options.autoPanPaddingTopLeft||r),l=A(this.options.autoPanPaddingBottomRight||r),c=t.getSize(),u=0,f=0;a.x+i+l.x>c.x&&(u=a.x+i-c.x+l.x),a.x-u-s.x<0&&(u=a.x-s.x),a.y+n+l.y>c.y&&(f=a.y+n-c.y+l.y),a.y-f-s.y<0&&(f=a.y-s.y),(u||f)&&t.fire("autopanstart").panBy([u,f])}},_onCloseButtonClick:function(t){this._close(),Fe(t)},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ye.mergeOptions({closePopupOnClick:!0}),Ye.include({openPopup:function(t,e,n){return t instanceof ei||(t=new ei(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Sn.include({bindPopup:function(t,e){return t instanceof ei?(p(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new ei(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Fe(t),e instanceof In?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ni=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){ti.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=ti.prototype.getEvents.call(this);return Pt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=re("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,n=this._container,i=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),a=this.options.direction,r=n.offsetWidth,s=n.offsetHeight,l=A(this.options.offset),c=this._getAnchor();"top"===a?t=t.add(A(-r/2+l.x,-s+l.y+c.y,!0)):"bottom"===a?t=t.subtract(A(r/2-l.x,-l.y,!0)):"center"===a?t=t.subtract(A(r/2+l.x,s/2-c.y+l.y,!0)):"right"===a||"auto"===a&&o.x<i.x?(a="right",t=t.add(A(l.x+c.x,c.y-s/2+l.y,!0))):(a="left",t=t.subtract(A(r+c.x-l.x,s/2-c.y-l.y,!0))),pe(n,"leaflet-tooltip-right"),pe(n,"leaflet-tooltip-left"),pe(n,"leaflet-tooltip-top"),pe(n,"leaflet-tooltip-bottom"),he(n,"leaflet-tooltip-"+a),ve(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ge(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ye.include({openTooltip:function(t,e,n){return t instanceof ni||(t=new ni(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Sn.include({bindTooltip:function(t,e){return t instanceof ni?(p(t,e),this._tooltip=t,t._source=this):(this._tooltip&&!e||(this._tooltip=new ni(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),Pt&&(n.click=this._openTooltip)),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(he(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(pe(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var ii=En.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(le(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=A(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});En.Default=jn;var oi=Sn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),se(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ce(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ue(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof j?t:new j(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),o=0,a=n.length;o<a;o++)e=n[o].style.zIndex,n[o]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!tt){ge(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var o=this._tiles[i];if(o.current&&o.loaded){var a=Math.min(1,(t-o.loaded)/200);ge(o.el,a),a<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(O(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=re("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(se(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],o=this._map;return i||((i=this._levels[t]={}).el=re("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,o.getCenter(),o.getZoom()),i.el.offsetWidth,this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)se(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var o=Math.floor(t/2),a=Math.floor(e/2),r=n-1,s=new j(+o,+a);s.z=+r;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),r>i&&this._retainParent(o,a,r,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var a=2*e;a<2*e+2;a++){var r=new j(o,a);r.z=n+1;var s=this._tileCoordsToKey(r),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(o,a,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var o=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var a=this.options.updateWhenZooming&&o!==this._tileZoom;i&&!a||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),o=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();_t?ye(t.el,o,i):ve(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),o=e.project(t,this._tileZoom).floor(),a=e.getSize().divideBy(2*i);return new I(o.subtract(a),o.add(a))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(i),a=o.getCenter(),r=[],s=this.options.keepBuffer,l=new I(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new j(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var f=o.min.y;f<=o.max.y;f++)for(var h=o.min.x;h<=o.max.x;h++){var p=new j(h,f);if(p.z=this._tileZoom,this._isValidTile(p)){var d=this._tiles[this._tileCoordsToKey(p)];d?d.current=!0:r.push(p)}}if(r.sort((function(t,e){return t.distanceTo(a)-e.distanceTo(a)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<r.length;h++)this._addTile(r[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n);return[e.unproject(i,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new N(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new j(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(se(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){he(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,tt&&this.options.opacity<1&&ge(t,this.options.opacity),it&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),a=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(a),this.createTile.length<2&&C(o(this._tileReady,this,t,null,a)),ve(a,n),this._tiles[i]={el:a,coords:t,current:!0},e.appendChild(a),this.fire("tileloadstart",{tile:a,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(ge(n.el,0),O(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(he(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),tt||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new j(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new I(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var ai=oi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Ct&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),it||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Me(n,"load",o(this._tileOnLoad,this,e,n)),Me(n,"error",o(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Ct?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return g(this._url,n(e,this.options))},_tileOnLoad:function(t,e){tt?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,e.complete||(e.src=v,se(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return rt||e.el.setAttribute("src",v),oi.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==v))return oi.prototype._tileReady.call(this,t,e,n)}});function ri(t,e){return new ai(t,e)}var si=ai.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=n({},this.defaultWmsParams);for(var o in e)o in this.options||(i[o]=e[o]);var a=(e=p(this,e)).detectRetina&&Ct?2:1,r=this.getTileSize();i.width=r.x*a,i.height=r.y*a,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ai.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=B(n.project(e[0]),n.project(e[1])),o=i.min,a=i.max,r=(this._wmsVersion>=1.3&&this._crs===Cn?[o.y,o.x,a.y,a.x]:[o.x,o.y,a.x,a.y]).join(","),s=ai.prototype.getTileUrl.call(this,t);return s+d(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});ai.WMS=si,ri.wms=function(t,e){return new si(t,e)};var li=Sn.extend({options:{padding:.1,tolerance:0},initialize:function(t){p(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&he(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=we(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),r=this._map.project(t,e).subtract(a),s=o.multiplyBy(-n).add(i).add(o).subtract(r);_t?ye(this._container,s,n):ve(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new I(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ci=li.extend({getEvents:function(){var t=li.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){li.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Me(t,"mousemove",s(this._onMouseMove,32,this),this),Me(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Me(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,se(this._container),Ee(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){li.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=Ct?2:1;ve(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Ct&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){li.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,o,a,r=t._parts,s=r.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(i=0,o=r[n].length;i<o;i++)a=r[n][i],l[i?"lineTo":"moveTo"](a.x,a.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(e.x,e.y/o,i,0,2*Math.PI,!1),1!==o&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&!this._map._draggableMoved(e)&&(n=e);n&&(Ue(t),this._fireEvent([n],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(pe(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,e){for(var n,i,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(he(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function ui(t){return Ot?new ci(t):null}var fi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),hi={_initContainer:function(){this._container=re("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(li.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=fi("shape");he(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=fi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;se(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e||(e=t._stroke=fi("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=_(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=fi("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ce(t._container)},_bringToBack:function(t){ue(t._container)}},pi=Mt?fi:X,di=li.extend({getEvents:function(){var t=li.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=pi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){se(this._container),Ee(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){li.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),ve(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=pi("path");t.options.className&&he(e,t.options.className),t.options.interactive&&he(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){se(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ce(t._path)},_bringToBack:function(t){ue(t._path)}});function mi(t){return St||Mt?new di(t):null}Mt&&di.include(hi),Ye.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ui(t)||mi(t)}});var gi=Dn.extend({initialize:function(t,e){Dn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=F(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});di.create=pi,di.pointsToPath=J,Zn.geometryToLayer=Rn,Zn.coordsToLatLng=Hn,Zn.coordsToLatLngs=qn,Zn.latLngToCoords=Un,Zn.latLngsToCoords=Gn,Zn.getFeature=Wn,Zn.asFeature=Vn,Ye.mergeOptions({boxZoom:!0});var _i=nn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Me(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ee(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){se(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Xt(),ke(),this._startPoint=this._map.mouseEventToContainerPoint(t),Me(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=re("div","leaflet-zoom-box",this._container),he(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new I(this._point,this._startPoint),n=e.getSize();ve(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(se(this._box),pe(this._container,"leaflet-crosshair")),Jt(),Pe(),Ee(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ye.addInitHook("addHandler","boxZoom",_i),Ye.mergeOptions({doubleClickZoom:!0});var yi=nn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Ye.addInitHook("addHandler","doubleClickZoom",yi),Ye.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var vi=nn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new cn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}he(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){pe(this._map._container,"leaflet-grab"),pe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=F(this._map.options.maxBounds);this._offsetLimit=B(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,a=(i+e+n)%t-e-n,r=Math.abs(o+n)<Math.abs(a+n)?o:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,r=n.easeLinearity,s=o.multiplyBy(r/a),l=s.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),f=c/(n.inertiaDeceleration*r),h=u.multiplyBy(-f/2).round();h.x||h.y?(h=e._limitOffset(h,e.options.maxBounds),C((function(){e.panBy(h,{duration:f,easeLinearity:r,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});Ye.addInitHook("addHandler","dragging",vi),Ye.mergeOptions({keyboard:!0,keyboardPanDelta:80});var wi=nn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Me(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ee(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){Me(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ee(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys)i._panAnim&&i._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=A(e).multiplyBy(3)),i.panBy(e),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds));else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}Fe(t)}}});Ye.addInitHook("addHandler","keyboard",wi),Ye.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var bi=nn.extend({addHooks:function(){Me(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ee(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Re(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),i),Fe(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,a=n?Math.ceil(o/n)*n:o,r=t._limitZoom(e+(this._delta>0?a:-a))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});Ye.addInitHook("addHandler","scrollWheelZoom",bi),Ye.mergeOptions({tap:!0,tapTolerance:15});var ki=nn.extend({addHooks:function(){Me(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ee(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ne(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new j(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&he(n,"leaflet-active"),this._holdTimeout=setTimeout(o((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Me(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Ee(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&pe(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new j(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});Pt&&!kt&&Ye.addInitHook("addHandler","tap",ki),Ye.mergeOptions({touchZoom:Pt&&!ot,bounceAtZoomLimits:!0});var Pi=nn.extend({addHooks:function(){he(this._map._container,"leaflet-touch-zoom"),Me(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){pe(this._map._container,"leaflet-touch-zoom"),Ee(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Me(document,"touchmove",this._onTouchMove,this),Me(document,"touchend",this._onTouchEnd,this),Ne(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),a=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(a,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&a<1||this._zoom>e.getMaxZoom()&&a>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===a)return}else{var r=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===a&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=C(s,this,!0),Ne(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,O(this._animRequest),Ee(document,"touchmove",this._onTouchMove),Ee(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ye.addInitHook("addHandler","touchZoom",Pi),Ye.BoxZoom=_i,Ye.DoubleClickZoom=yi,Ye.Drag=vi,Ye.Keyboard=wi,Ye.ScrollWheelZoom=bi,Ye.Tap=ki,Ye.TouchZoom=Pi,Object.freeze=e,t.version="1.5.1+build.2e3e0ffb",t.Control=Xe,t.control=Je,t.Browser=Et,t.Evented=E,t.Mixin=an,t.Util=S,t.Class=M,t.Handler=nn,t.extend=n,t.bind=o,t.stamp=r,t.setOptions=p,t.DomEvent=Ve,t.DomUtil=Se,t.PosAnimation=Ke,t.Draggable=cn,t.LineUtil=vn,t.PolyUtil=bn,t.Point=j,t.point=A,t.Bounds=I,t.bounds=B,t.Transformation=W,t.transformation=V,t.Projection=xn,t.LatLng=D,t.latLng=Z,t.LatLngBounds=N,t.latLngBounds=F,t.CRS=H,t.GeoJSON=Zn,t.geoJSON=Yn,t.geoJson=Xn,t.Layer=Sn,t.LayerGroup=Mn,t.layerGroup=function(t,e){return new Mn(t,e)},t.FeatureGroup=Tn,t.featureGroup=function(t){return new Tn(t)},t.ImageOverlay=Jn,t.imageOverlay=function(t,e,n){return new Jn(t,e,n)},t.VideoOverlay=$n,t.videoOverlay=function(t,e,n){return new $n(t,e,n)},t.SVGOverlay=Qn,t.svgOverlay=function(t,e,n){return new Qn(t,e,n)},t.DivOverlay=ti,t.Popup=ei,t.popup=function(t,e){return new ei(t,e)},t.Tooltip=ni,t.tooltip=function(t,e){return new ni(t,e)},t.Icon=En,t.icon=function(t){return new En(t)},t.DivIcon=ii,t.divIcon=function(t){return new ii(t)},t.Marker=An,t.marker=function(t,e){return new An(t,e)},t.TileLayer=ai,t.tileLayer=ri,t.GridLayer=oi,t.gridLayer=function(t){return new oi(t)},t.SVG=di,t.svg=mi,t.Renderer=li,t.Canvas=ci,t.canvas=ui,t.Path=In,t.CircleMarker=Bn,t.circleMarker=function(t,e){return new Bn(t,e)},t.Circle=Nn,t.circle=function(t,e,n){return new Nn(t,e,n)},t.Polyline=Fn,t.polyline=function(t,e){return new Fn(t,e)},t.Polygon=Dn,t.polygon=function(t,e){return new Dn(t,e)},t.Rectangle=gi,t.rectangle=function(t,e){return new gi(t,e)},t.Map=Ye,t.map=function(t,e){return new Ye(t,e)};var xi=window.L;t.noConflict=function(){return window.L=xi,this},window.L=t}(e)},function(t,e,n){"use strict";n.r(e),n.d(e,"localStorageHelpers",(function(){return a}));var i=n(4),o=n.n(i),a={get:function(t){if("pl"===SensbitInpostEasyPackConfig.instance)return window.localStorage.getItem(t)},getDecompressed:function(t){return null},put:function(t,e){"pl"===SensbitInpostEasyPackConfig.instance&&o()((function(){window.localStorage.setItem(t,e)}),0)},putCompressed:function(t,e){SensbitInpostEasyPackConfig.instance},remove:function(t){"pl"===SensbitInpostEasyPackConfig.instance&&window.localStorage.removeItem(t)}}},function(t,e,n){var i=n(31);t.exports=function(t){return Object(i(t))}},function(t,e,n){var i=n(5),o=n(21),a=n(20),r=n(37)("src"),s=n(187),l="toString",c=(""+s).split(l);n(12).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(l&&(a(n,r)||o(n,r,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[r]||s.call(this)}))},function(t,e,n){var i=n(2),o=n(6),a=n(31),r=/"/g,s=function(t,e,n,i){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(i).replace(r,""")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),i(i.P+i.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(14),o=n(36);t.exports=n(13)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(56),o=n(31);t.exports=function(t){return i(o(t))}},function(t,e,n){"use strict";var i=n(6);t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var i=n(25);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(57),o=n(36),a=n(22),r=n(34),s=n(20),l=n(118),c=Object.getOwnPropertyDescriptor;e.f=n(13)?c:function(t,e){if(t=a(t),e=r(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(2),o=n(12),a=n(6);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],r={};r[t]=e(n),i(i.S+i.F*a((function(){n(1)})),"Object",r)}},function(t,e,n){var i=n(24),o=n(56),a=n(17),r=n(11),s=n(134);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,f=6==t,h=5==t||f,p=e||s;return function(e,s,d){for(var m,g,_=a(e),y=o(_),v=i(s,d,3),w=r(y.length),b=0,k=n?p(e,w):l?p(e,0):void 0;w>b;b++)if((h||b in y)&&(g=v(m=y[b],b,_),t))if(n)k[b]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return b;case 2:k.push(m)}else if(u)return!1;return f?-1:c||u?u:k}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(13)){var i=n(38),o=n(5),a=n(6),r=n(2),s=n(73),l=n(99),c=n(24),u=n(52),f=n(36),h=n(21),p=n(53),d=n(26),m=n(11),g=n(145),_=n(40),y=n(34),v=n(20),w=n(58),b=n(8),k=n(17),P=n(91),x=n(41),L=n(43),C=n(42).f,O=n(93),S=n(37),M=n(9),T=n(29),E=n(63),j=n(59),z=n(95),A=n(50),I=n(66),B=n(51),N=n(94),F=n(136),D=n(14),Z=n(27),R=D.f,H=Z.f,q=o.RangeError,U=o.TypeError,G=o.Uint8Array,W="ArrayBuffer",V="SharedArrayBuffer",K="BYTES_PER_ELEMENT",Y=Array.prototype,X=l.ArrayBuffer,J=l.DataView,$=T(0),Q=T(2),tt=T(3),et=T(4),nt=T(5),it=T(6),ot=E(!0),at=E(!1),rt=z.values,st=z.keys,lt=z.entries,ct=Y.lastIndexOf,ut=Y.reduce,ft=Y.reduceRight,ht=Y.join,pt=Y.sort,dt=Y.slice,mt=Y.toString,gt=Y.toLocaleString,_t=M("iterator"),yt=M("toStringTag"),vt=S("typed_constructor"),wt=S("def_constructor"),bt=s.CONSTR,kt=s.TYPED,Pt=s.VIEW,xt="Wrong length!",Lt=T(1,(function(t,e){return Tt(j(t,t[wt]),e)})),Ct=a((function(){return 1===new G(new Uint16Array([1]).buffer)[0]})),Ot=!!G&&!!G.prototype.set&&a((function(){new G(1).set({})})),St=function(t,e){var n=d(t);if(n<0||n%e)throw q("Wrong offset!");return n},Mt=function(t){if(b(t)&&kt in t)return t;throw U(t+" is not a typed array!")},Tt=function(t,e){if(!b(t)||!(vt in t))throw U("It is not a typed array constructor!");return new t(e)},Et=function(t,e){return jt(j(t,t[wt]),e)},jt=function(t,e){for(var n=0,i=e.length,o=Tt(t,i);i>n;)o[n]=e[n++];return o},zt=function(t,e,n){R(t,e,{get:function(){return this._d[n]}})},At=function(t){var e,n,i,o,a,r,s=k(t),l=arguments.length,u=l>1?arguments[1]:void 0,f=void 0!==u,h=O(s);if(null!=h&&!P(h)){for(r=h.call(s),i=[],e=0;!(a=r.next()).done;e++)i.push(a.value);s=i}for(f&&l>2&&(u=c(u,arguments[2],2)),e=0,n=m(s.length),o=Tt(this,n);n>e;e++)o[e]=f?u(s[e],e):s[e];return o},It=function(){for(var t=0,e=arguments.length,n=Tt(this,e);e>t;)n[t]=arguments[t++];return n},Bt=!!G&&a((function(){gt.call(new G(1))})),Nt=function(){return gt.apply(Bt?dt.call(Mt(this)):Mt(this),arguments)},Ft={copyWithin:function(t,e){return F.call(Mt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return et(Mt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Mt(this),arguments)},filter:function(t){return Et(this,Q(Mt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(Mt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){$(Mt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(Mt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Mt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(Mt(this),arguments)},lastIndexOf:function(t){return ct.apply(Mt(this),arguments)},map:function(t){return Lt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ut.apply(Mt(this),arguments)},reduceRight:function(t){return ft.apply(Mt(this),arguments)},reverse:function(){for(var t,e=this,n=Mt(e).length,i=Math.floor(n/2),o=0;o<i;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return tt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Mt(this),t)},subarray:function(t,e){var n=Mt(this),i=n.length,o=_(t,i);return new(j(n,n[wt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===e?i:_(e,i))-o))}},Dt=function(t,e){return Et(this,dt.call(Mt(this),t,e))},Zt=function(t){Mt(this);var e=St(arguments[1],1),n=this.length,i=k(t),o=m(i.length),a=0;if(o+e>n)throw q(xt);for(;a<o;)this[e+a]=i[a++]},Rt={entries:function(){return lt.call(Mt(this))},keys:function(){return st.call(Mt(this))},values:function(){return rt.call(Mt(this))}},Ht=function(t,e){return b(t)&&t[kt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},qt=function(t,e){return Ht(t,e=y(e,!0))?f(2,t[e]):H(t,e)},Ut=function(t,e,n){return!(Ht(t,e=y(e,!0))&&b(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?R(t,e,n):(t[e]=n.value,t)};bt||(Z.f=qt,D.f=Ut),r(r.S+r.F*!bt,"Object",{getOwnPropertyDescriptor:qt,defineProperty:Ut}),a((function(){mt.call({})}))&&(mt=gt=function(){return ht.call(this)});var Gt=p({},Ft);p(Gt,Rt),h(Gt,_t,Rt.values),p(Gt,{slice:Dt,set:Zt,constructor:function(){},toString:mt,toLocaleString:Nt}),zt(Gt,"buffer","b"),zt(Gt,"byteOffset","o"),zt(Gt,"byteLength","l"),zt(Gt,"length","e"),R(Gt,yt,{get:function(){return this[kt]}}),t.exports=function(t,e,n,l){var c=t+((l=!!l)?"Clamped":"")+"Array",f="get"+t,p="set"+t,d=o[c],_=d||{},y=d&&L(d),v=!d||!s.ABV,k={},P=d&&d.prototype,O=function(t,n){R(t,n,{get:function(){return function(t,n){var i=t._d;return i.v[f](n*e+i.o,Ct)}(this,n)},set:function(t){return function(t,n,i){var o=t._d;l&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),o.v[p](n*e+o.o,i,Ct)}(this,n,t)},enumerable:!0})};v?(d=n((function(t,n,i,o){u(t,d,c,"_d");var a,r,s,l,f=0,p=0;if(b(n)){if(!(n instanceof X||(l=w(n))==W||l==V))return kt in n?jt(d,n):At.call(d,n);a=n,p=St(i,e);var _=n.byteLength;if(void 0===o){if(_%e)throw q(xt);if((r=_-p)<0)throw q(xt)}else if((r=m(o)*e)+p>_)throw q(xt);s=r/e}else s=g(n),a=new X(r=s*e);for(h(t,"_d",{b:a,o:p,l:r,e:s,v:new J(a)});f<s;)O(t,f++)})),P=d.prototype=x(Gt),h(P,"constructor",d)):a((function(){d(1)}))&&a((function(){new d(-1)}))&&I((function(t){new d,new d(null),new d(1.5),new d(t)}),!0)||(d=n((function(t,n,i,o){var a;return u(t,d,c),b(n)?n instanceof X||(a=w(n))==W||a==V?void 0!==o?new _(n,St(i,e),o):void 0!==i?new _(n,St(i,e)):new _(n):kt in n?jt(d,n):At.call(d,n):new _(g(n))})),$(y!==Function.prototype?C(_).concat(C(y)):C(_),(function(t){t in d||h(d,t,_[t])})),d.prototype=P,i||(P.constructor=d));var S=P[_t],M=!!S&&("values"==S.name||null==S.name),T=Rt.values;h(d,vt,!0),h(P,kt,c),h(P,Pt,!0),h(P,wt,d),(l?new d(1)[yt]==c:yt in P)||R(P,yt,{get:function(){return c}}),k[c]=d,r(r.G+r.W+r.F*(d!=_),k),r(r.S,c,{BYTES_PER_ELEMENT:e}),r(r.S+r.F*a((function(){_.of.call(d,1)})),c,{from:At,of:It}),K in P||h(P,K,e),r(r.P,c,Ft),B(c),r(r.P+r.F*Ot,c,{set:Zt}),r(r.P+r.F*!M,c,Rt),i||P.toString==mt||(P.toString=mt),r(r.P+r.F*a((function(){new d(1).slice()})),c,{slice:Dt}),r(r.P+r.F*(a((function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()}))||!a((function(){P.toLocaleString.call([1,2])}))),c,{toLocaleString:Nt}),A[c]=M?S:T,i||M||h(P,_t,T)}}else t.exports=function(){}},function(t,e,n){"use strict";n.r(e),n.d(e,"SensbitInpostEasyPackConfig",(function(){return i}));var i={apiEndpoint:"https://api-pl-points.easypack24.net/v1",locales:["pl"],defaultLocale:"pl",descriptionInWindow:!1,hideSelect:!1,paymentFilter:{visible:!1,defaultEnabled:!1,showOnlyWithPayment:!1},addressFormat:"{street} {building_number} <br/> {post_code} {city}",assetsServer:"https://geowidget.easypack24.net",infoboxLibraryUrl:"/js/lib/infobox.min.js",markersUrl:"/images/desktop/markers/",iconsUrl:"/images/desktop/icons/",loadingIcon:"/images/desktop/icons/ajax-loader.gif",mobileSize:768,closeTooltip:!0,langSelection:!1,formatOpenHours:!1,filters:!1,closeFullScreenModeOnPointSelect:!0,mobileFiltersAsCheckbox:!0,points:{types:["parcel_locker","pop"],subtypes:["parcel_locker_superpop"],allowedToolTips:["pok","pop"],functions:[],showPoints:[],markerConditions:[{icon_name:"nowy_granatowy",params:{days:60}}],fields:["name","type","location","address","address_details","functions","location_date","opening_hours","location_247","apm_doubled","image_url"]},defaultParams:[{source:"geov4_pl"}],showOverLoadedLockers:!1,showNonOperatingLockers:!0,searchPointsResultLimit:5,customDetailsCallback:!1,customMapAndListInRow:{enabled:!1,itemsPerPage:8},listItemFormat:["<b>{name}</b>","<strong>{address_details.street}</strong> {address_details.building_number}"],display:{showTypesFilters:!0,showSearchBar:!0},mapType:"osm",searchType:"osm",searchApiUrl:"https://osm.inpost.pl/nominatim/search",searchApiKey:"",map:{googleKey:"",gestureHandling:"greedy",clusterer:{gridSize:140,fontSize:"10px",fontFamily:"Montserrat",maxZoom:16,minimumClusterSize:10,styles:[{url:"/images/desktop/map-elements/cluster.png?4.12.8",height:61,textColor:"#ffcb04",width:61},{url:"/images/desktop/map-elements/cluster.png?4.12.8",height:61,width:61,textColor:"#ffcb04"},{url:"/images/desktop/map-elements/cluster.png?4.12.8",height:61,textColor:"#ffcb04",width:61}]},leafletClusterer:{chunkedLoading:!0,disableClusteringAtZoom:15,spiderfyOnMaxZoom:!1,removeOutsideVisibleBounds:!0,animate:!0},useGeolocation:!0,initialZoom:13,detailsMinZoom:15,autocompleteZoom:14,autocompleteMinSearchPoint:6,visiblePointsMinZoom:13,defaultLocation:[52.229807,21.011595],distanceMultiplier:1e3,chunkLimit:1e4,closestLimit:200,preloadLimit:1e3,timeOutPerChunkFromCache:300,limitPointsOnList:100,requestLimit:4,defaultDistance:2e3,initialTypes:["pop","parcel_locker"],reloadDelay:250,country:"pl",typeSelectedIcon:"/images/desktop/icons/selected.png?4.12.8",typeSelectedRadio:"/images/mobile/radio.png?4.12.8",closeIcon:"/images/desktop/icons/close.png?4.12.8",pointIcon:"/images/desktop/icons/point.png?4.12.8",pointIconDark:"/images/desktop/icons/point-dark.png?4.12.8",detailsIcon:"/images/desktop/icons/info.png?4.12.8",selectIcon:"/images/desktop/icons/select.png?4.12.8",pointerIcon:"/images/desktop/icons/pointer.png?4.12.8",filtersIcon:"/images/desktop/icons/filters.png?4.12.8",tooltipPointerIcon:"/images/desktop/icons/half-pointer.png?4.12.8",photosUrl:"/uploads/{locale}/images/",mapIcon:"/images/mobile/map.png?4.12.8",listIcon:"/images/mobile/list.png?4.12.8"},osm:{tiles:"https://osm.inpost.pl/osm_tiles/{z}/{x}/{y}.png"}}},function(t,e,n){var i=n(8);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(37)("meta"),o=n(8),a=n(20),r=n(14).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(6)((function(){return l(Object.preventExtensions({}))})),u=function(t){r(t,i,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[i].i},getWeak:function(t,e){if(!a(t,i)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[i].w},onFreeze:function(t){return c&&f.NEED&&l(t)&&!a(t,i)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var i=n(120),o=n(78);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e,n){var i=n(26),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=i(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var i=n(7),o=n(121),a=n(78),r=n(77)("IE_PROTO"),s=function(){},l=function(){var t,e=n(75)("iframe"),i=a.length;for(e.style.display="none",n(79).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[a[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[r]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var i=n(120),o=n(78).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},function(t,e,n){var i=n(20),o=n(17),a=n(77)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},function(t,e,n){var i=n(9)("unscopables"),o=Array.prototype;null==o[i]&&n(21)(o,i,{}),t.exports=function(t){o[i][t]=!0}},function(t,e,n){var i=n(8);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var i=n(4),o=n.n(i),a=n(0),r=n.n(a),s=n(1),l=n(371),c=n.n(l),u=function(t,e,n){return this.params=e,this.marker=t,this.map=e.map,this.params.style.sheet.insertRule(".".concat(c.a["easypack-widget"]," .").concat(c.a["details-actions"]," .").concat(c.a.action," a { background: url(").concat(window.SensbitInpostEasyPackConfig.map.pointIconDark,") no-repeat; }"),0),this.params.style.sheet.insertRule(".".concat(c.a["easypack-widget"],".").concat(c.a.mobile," .").concat(c.a["details-actions"]," .").concat(c.a.action," a { background: url(").concat(window.SensbitInpostEasyPackConfig.map.mapIcon,") no-repeat; }"),0),this.response=n,this.planRoute=Object(s.n)("plan_route"),this};u.prototype={render:function(){if(this.pointData=this.response,window.SensbitInpostEasyPackConfig.customDetailsCallback)window.SensbitInpostEasyPackConfig.customDetailsCallback(this.pointData);else{var t=this;this.content=r()("div",{className:c.a["details-content"]},r()("div",{className:c.a["close-button"],dangerouslySetInnerHTML:{__html:"✕"},ref:Object(s.k)((function(){void 0!==t.params.pointDetails&&null!==t.params.pointDetails&&(t.params.placeholder.removeChild(t.params.pointDetails.element),t.params.pointDetails=null,t.params.setPointDetails(null),window.SensbitInpostEasyPackConfig.closeTooltip&&t.params.closeInfoBox())}))})),this.wrapper=r()("div",{className:c.a["details-wrapper"]},this.content),this.element=r()("div",{className:c.a["point-details"]},this.wrapper);var e,n=t.params.initialLocation?t.params.initialLocation:window.SensbitInpostEasyPackConfig.defaultLocation;if(this.routeLink=r()("a",{className:c.a["route-link"],target:"_new",href:s.d.routeLink(n,this.marker.point.location)},Object(s.n)("plan_route")),this.planRoute=r()("div",{className:"".concat(c.a.action," ").concat(c.a["plan-route"])},this.routeLink),this.actions=r()("div",{className:c.a["details-actions"]},this.planRoute),this.params.isMobile&&this.wrapper.appendChild(this.actions),this.title=r()("h1",null,s.d.pointName(this.marker.point,this.params.widget.currentTypes)),this.pointBox=r()("div",{className:c.a["point-box"]},this.title),this.address=r()("p",{className:c.a.address,dangerouslySetInnerHTML:{__html:(e="",window.SensbitInpostEasyPackConfig.descriptionInWindow&&(e+=t.response.location_description+"<br>"),e+=window.SensbitInpostEasyPackConfig.addressFormat.replace(/{(.*?)}/g,(function(e,n){var i=e.replace("{","").replace("}",""),o=null===t.response.address_details[i]?"":t.response.address_details[i];return void 0===o&&(o=t.marker.point[i]),o})))}}),this.pointBox.appendChild(this.address),void 0!==t.response.name&&null!==t.response.name&&s.d.in("pok",t.response.type)&&this.pointBox.appendChild(r()("p",{className:c.a.name},t.response.name)),this.params.isMobile||this.pointBox.appendChild(this.actions),this.content.appendChild(this.pointBox),this.description=r()("div",{id:"descriptionContainer",className:c.a.description}),this.content.appendChild(this.description),window.SensbitInpostEasyPackConfig.map.photosUrl=window.SensbitInpostEasyPackConfig.map.photosUrl.replace("{locale}",window.SensbitInpostEasyPackConfig.defaultLocale),t.response&&t.response.image_url?this.photoUrl=t.response.image_url:this.photoUrl=window.SensbitInpostEasyPackConfig.assetsServer+window.SensbitInpostEasyPackConfig.map.photosUrl+this.marker.point.name+".jpg",this.photo=r()("img",{src:this.photoUrl,ref:Object(s.m)((function(){t.photoElement=r()("div",{className:c.a["description-photo"]},t.photo),t.content.insertBefore(t.photoElement,t.description)}))}),0===this.params.placeholder.getElementsByClassName(c.a["point-details"]).length||void 0===this.params.pointDetails||null===this.params.pointDetails)this.params.placeholder.appendChild(this.element),this.params.pointDetails&&(this.params.pointDetails.element=this.element);else{var i=document.getElementById(this.params.placeholder.id).querySelector("."+this.params.pointDetails.element.className);i.parentNode.removeChild(i),document.getElementById(this.params.placeholder.id).appendChild(this.element)}this.params.pointDetails=this,this.params.setPointDetails(this),this.fetchDetails()}},fetchDetails:function(){var e=this;this.marker.point.dynamic?(e.pointData=this.marker.point,e.renderDetails()):void 0===e.pointData?t.points.find(this.marker.point.name,(function(t){e.pointData=t,e.renderDetails()})):e.renderDetails()},renderDetails:function(){var t=this;if(null!==t.description){var e=t.pointData.location_description;this.locationDescriptionTerm=r()("div",{className:c.a.term},Object(s.n)("locationDescription")),this.locationDescriptionDefinition=r()("div",{className:c.a.definition},e),this.locationDescription=r()("div",{className:c.a.item},this.locationDescriptionTerm,this.locationDescriptionDefinition),null!==t.pointData.is_next&&t.pointData.is_next&&"fr"===SensbitInpostEasyPackConfig.region||this.description.appendChild(this.locationDescription),this.renderOpeningHours();var n=t.pointData.payment_point_descr;void 0===SensbitInpostEasyPack.config.languages&&(SensbitInpostEasyPack.config.languages=["pl"]),2!==SensbitInpostEasyPack.config.languages.length&&null!=n&&(this.payByLink=document.createElement("div"),this.payByLink.className=c.a.item,this.payByLinkTerm=document.createElement("div"),this.payByLinkTerm.className=c.a.term,this.payByLinkTerm.innerHTML=Object(s.n)("pay_by_link"),this.payByLinkDefinition=document.createElement("div"),this.payByLinkDefinition.className=c.a.definition,this.payByLinkDefinition.innerHTML=n,this.payByLink.appendChild(this.payByLinkTerm),this.payByLink.appendChild(this.payByLinkDefinition),this.description.appendChild(this.payByLink));var i=t.pointData.apm_doubled;this.apmDoubledTerm=r()("div",{className:c.a.term},Object(s.n)("double_apm_info_details")),this.apmDoubledDefinition=i?r()("div",{className:c.a.definition},i.split(";").join(", ")):r()("div",null),null!=i&&(this.apmDoubled=r()("div",{className:c.a.item},this.apmDoubledTerm,this.apmDoubledDefinition),this.description.appendChild(this.apmDoubled));var a=t.pointData.is_next;null!=a&&!1!==a&&"fr"!==SensbitInpostEasyPackConfig.region&&(this.isNext=r()("div",{className:c.a.item+" font-small"},r()("i",{className:"fa fa-info-circle"}),Object(s.n)("is_next")),this.description.appendChild(this.isNext))}else o()((function(){t.renderDetails()}),100)},renderOpeningHours:function(){var t=this,e=t.pointData.opening_hours;if(null!=e){if(void 0===this.openingHours&&(this.openingHours=document.createElement("div"),this.openingHours.setAttribute("id","openingHoursElement"),this.openingHours.className=c.a.item),void 0===this.openingHoursTerm&&(this.openingHoursTerm=document.createElement("div"),this.openingHoursTerm.className=c.a.term,this.openingHoursTerm.innerHTML=Object(s.n)("openingHours")),void 0===this.openingHoursDefinition&&(this.openingHoursDefinition=document.createElement("div"),this.openingHoursDefinition.className=c.a.definition,this.openingHoursDefinition.innerHTML=null),SensbitInpostEasyPackConfig.formatOpenHours){var n=[],i=[],o=e.match(/(\|.*?\;)/g);o.filter((function(t,e,n){return n.indexOf(t)===e})).forEach((function(t){i.push(t.replace(";","").replace("|",""))})),e.match(/(;|[a-z]|[A-Z])(.*?)(\|)/g).forEach((function(t,e){var i=Object(s.n)(t.replace("|","").replace(";",""));(0===e||o[e].match(/(\|)(.*?)(\;)/g)[0]!==o[e-1].match(/(\|)(.*?)(\;)/g)[0]||o[e].match(/(\|)(.*?)(\;)/g)[0]!==o[e+1].match(/(\|)(.*?)(\;)/g)[0])&&n.push(i)}));var a=[];n.forEach((function(t,e){0!==e&&e%2==1?void 0!==a[e-1]?a[e-1]+="-"+t:a[e-1]=t:a.push(t)})),e="",a.forEach((function(t,n){e+=t+": "+i[n].replace("-|-","-")+"<br />"}))}this.openingHoursDefinition.innerHTML=s.d.openingHours(e),this.openingHours.appendChild(this.openingHoursTerm),this.openingHours.appendChild(this.openingHoursDefinition),1==!t.pointData.location_247&&this.description.appendChild(this.openingHours)}this.description.appendChild(void 0===t.pointData.location_247||!0!==t.pointData.location_247||!t.pointData.type.includes("parcel_locker")||t.pointData.type.includes("pop")||t.pointData.type.includes("parcel_locker_superpop")?r()("p",null):r()("div",{className:c.a.item},r()("div",{className:c.a.term},Object(s.n)("parcel_247_details")),r()("div",{className:c.a.definition},"24/7"))),this.description.appendChild(void 0!==t.pointData.location_247&&!0===t.pointData.location_247&&t.pointData.type.includes("pop")?r()("div",{className:c.a.item},r()("div",{className:c.a.term},Object(s.n)("pop_247_details")),r()("div",{className:c.a.definition},"24/7")):r()("p",null)),void 0!==t.pointData.location_247&&!1===t.pointData.location_247&&this.description.appendChild(r()("p",{className:c.a.item+" font-small"},r()("i",{className:"fa fa-info-circle"}),Object(s.n)("no_247_info")))},rerender:function(){this.routeLink.innerHTML=Object(s.n)("plan_route"),this.title.innerHTML=s.d.pointName(this.marker.point,this.params.widget.currentTypes),void 0!==this.locationDescriptionTerm&&(this.locationDescriptionDefinition.innerHTML=this.pointData.location_description,this.locationDescriptionDefinition.innerHTML.length>0&&(this.locationDescriptionTerm.innerHTML=Object(s.n)("locationDescription"))),void 0!==this.pointData.opening_hours&&null!==this.pointData.opening_hours&&(this.openingHoursTerm.innerHTML=Object(s.n)("openingHours")),void 0!==this.pointData.payment_point_descr&&null!==this.pointData.payment_point_descr&&void 0!==this.payByLinkTerm&&(this.payByLinkTerm.innerHTML=Object(s.n)("pay_by_link")),"fr"!==SensbitInpostEasyPackConfig.region&&void 0!==this.pointData.is_next&&null!==this.pointData.is_next&&!1!==this.pointData.is_next&&void 0!==this.isNextTerm&&(this.isNextTerm.innerHTML=Object(s.n)("is_next")),this.renderOpeningHours()}}}).call(this,n(177)(t))},function(t,e,n){"use strict";var i=n(1),o=n(3),a="URLSearchParams"in self,r="Symbol"in self&&"iterator"in Symbol,s="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),l="FormData"in self,c="ArrayBuffer"in self;if(c)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(t){return t&&u.indexOf(Object.prototype.toString.call(t))>-1};function h(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function p(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function m(t){this.map={},t instanceof m?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function g(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function _(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function y(t){var e=new FileReader,n=_(e);return e.readAsArrayBuffer(t),n}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:l&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:a&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():c&&s&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=g(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,n,i=g(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,n=_(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),i=0;i<e.length;i++)n[i]=String.fromCharCode(e[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(t,e){t=h(t),e=p(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},m.prototype.delete=function(t){delete this.map[h(t)]},m.prototype.get=function(t){return t=h(t),this.has(t)?this.map[t]:null},m.prototype.has=function(t){return this.map.hasOwnProperty(h(t))},m.prototype.set=function(t,e){this.map[h(t)]=p(e)},m.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},m.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),d(t)},m.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),d(t)},m.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),d(t)},r&&(m.prototype[Symbol.iterator]=m.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function k(t,e){var n,i,o=(e=e||{}).body;if(t instanceof k){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new m(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new m(e.headers)),this.method=(i=(n=e.method||this.method||"GET").toUpperCase(),b.indexOf(i)>-1?i:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function P(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(o))}})),e}function x(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new m(e.headers),this.url=e.url||"",this._initBody(t)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},w.call(k.prototype),w.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var L=[301,302,303,307,308];x.redirect=function(t,e){if(-1===L.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})};var C=self.DOMException;try{new C}catch(t){(C=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),C.prototype.constructor=C}function O(t,e){return new Promise((function(n,i){var o=new k(t,e);if(o.signal&&o.signal.aborted)return i(new C("Aborted","AbortError"));var a=new XMLHttpRequest;function r(){a.abort()}a.onload=function(){var t,e,i={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new m,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),i=n.shift().trim();if(i){var o=n.join(":").trim();e.append(i,o)}})),e)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new x(o,i))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new C("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&s&&(a.responseType="blob"),o.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",r),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",r)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){M(t,e,n[e])}))}return t}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}O.polyfill=!0,self.fetch||(self.fetch=O,self.Headers=m,self.Request=k,self.Response=x),n.d(e,"b",(function(){return z})),n.d(e,"c",(function(){return A})),n.d(e,"a",(function(){return I}));var T="/points";function E(t,e){var n=window.SensbitInpostEasyPackConfig.apiEndpoint,o=window.SensbitInpostEasyPackConfig.defaultLocale.split("-")[0],a=(n=n.replace("{locale}",o))+t;return e&&(a+="?"+i.d.serialize(e)),a}function j(t,e,n,a,r){i.d.checkArguments("module.api.request()",5,arguments),n&&n.type&&(n.type=o.typesHelpers.getUniqueValues(n.type||[])),!window.SensbitInpostEasyPackConfig.paymentFilter||!0!==window.SensbitInpostEasyPackConfig.paymentFilter.showOnlyWithPayment&&!0!==window.SensbitInpostEasyPackConfig.paymentFilter.defaultEnabled||(n.payment_available="true",n.payment_type="2"),window.SensbitInpostEasyPackConfig.defaultParams.length>0&&window.SensbitInpostEasyPackConfig.defaultParams.forEach((function(t){n=S({},n,{},t)})),AbortController&&(window.abortController=new AbortController);var s=AbortController?window.abortController.signal:null,l={method:e,compress:!0,signal:s};t.includes("functions")&&(s=null,delete l.signal);var c=O(E(t,n),l).then((function(t){t.json().then((function(t){a(t)})).catch((function(t){return t}))})).catch((function(t){return t}));c.onabort=function(){void 0!==r&&r(n.type[0])},window.pendingRequests.push(c)}function z(t,e,n,i){window.SensbitInpostEasyPackConfig.defaultParams.length>0&&window.SensbitInpostEasyPackConfig.defaultParams.forEach((function(t){i=S({},i,{},t)})),i.status=["Operating"],!0===window.SensbitInpostEasyPackConfig.showOverLoadedLockers&&i.status.push("Overloaded"),window.SensbitInpostEasyPackConfig.showNonOperatingLockers&&i.status.push("NonOperating"),!window.SensbitInpostEasyPackConfig.paymentFilter||!0!==window.SensbitInpostEasyPackConfig.paymentFilter.showOnlyWithPayment&&!0!==window.SensbitInpostEasyPackConfig.paymentFilter.defaultEnabled&&!0!==window.SensbitInpostEasyPackConfig.paymentFilter.state||(i.payment_available="true",i.payment_type="2"),i.filters&&0===i.filters.length&&delete i.filters,i.name=t,window.requestPath="/point",j(T,"get",i,(function(t){e(t.items[0]||null),window.requestPath=null}),(function(t){window.requestPath=null,n(t)}))}function A(t,e,n){j(T,"get",t,(function(t){e(t),window.requestPath=null}),(function(t){window.requestPath=null,n(t)}))}function I(t,e,n){j("/functions","get",t,(function(t){e(t),window.requestPath=null}),(function(t){window.requestPath=null,n(t)}))}window.pendingRequests=[]},function(t,e,n){var i=n(14).f,o=n(20),a=n(9)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){var i=n(2),o=n(31),a=n(6),r=n(81),s="["+r+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a((function(){return!!r[t]()||"
"!="
"[t]()})),l=o[t]=s?e(f):r[t];n&&(o[n]=l),i(i.P+i.F*s,"String",o)},f=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var i=n(5),o=n(14),a=n(13),r=n(9)("species");t.exports=function(t){var e=i[t];a&&e&&!e[r]&&o.f(e,r,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var i=n(18);t.exports=function(t,e,n){for(var o in e)i(t,o,e[o],n);return t}},function(t,e,n){var i=n(61),o=n(176),a=n(115),r=Math.max,s=Math.min;t.exports=function(t,e,n){var l,c,u,f,h,p,d=0,m=!1,g=!1,_=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=l,i=c;return l=c=void 0,d=e,f=t.apply(i,n)}function v(t){return d=t,h=setTimeout(b,e),m?y(t):f}function w(t){var n=t-p;return void 0===p||n>=e||n<0||g&&t-d>=u}function b(){var t=o();if(w(t))return k(t);h=setTimeout(b,function(t){var n=e-(t-p);return g?s(n,u-(t-d)):n}(t))}function k(t){return h=void 0,_&&l?y(t):(l=c=void 0,f)}function P(){var t=o(),n=w(t);if(l=arguments,c=this,p=t,n){if(void 0===h)return v(p);if(g)return h=setTimeout(b,e),y(p)}return void 0===h&&(h=setTimeout(b,e)),f}return e=a(e)||0,i(n)&&(m=!!n.leading,u=(g="maxWait"in n)?r(a(n.maxWait)||0,e):u,_="trailing"in n?!!n.trailing:_),P.cancel=function(){void 0!==h&&clearTimeout(h),d=0,l=p=c=h=void 0},P.flush=function(){return void 0===h?f:k(o())},P}},function(t,e,n){"use strict";n.r(e),n.d(e,"leafletMap",(function(){return v}));var i=n(4),o=n.n(i),a=n(54),r=n.n(a),s=n(0),l=n.n(s),c=n(1),u=n(46),f=n(10),h=n(371),p=n.n(h),d=n(3),m=n(15),g=n.n(m),_=n(151);function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(178),n(179);var v={element:null,map:null,pointCallback:{},initialLocation:!1,currentFilters:[],module:null,markers:null,markerGroup:null,markers_pop:null,markers_pop_parcel_locker:null,markers_parcel_locker:null,listObj:null,points:[],tmpPoints:[],mapPoints:[],processNewPoints:null,params:null,firstPointsInit:!1,location:[],types:[],addLeafletCluster:function(){v.firstPointsInit=!1,v.initLeafletCluster()},initLeafletCluster:function(){v.tmpPoints=[],v.markerGroup=new _.MarkerClusterGroup(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){y(t,e,n[e])}))}return t}({},window.SensbitInpostEasyPackConfig.map.leafletClusterer||{chunkedLoading:!0,disableClusteringAtZoom:15,spiderfyOnMaxZoom:!1,removeOutsideVisibleBounds:!0,animate:!0})),v.markers=new m.layerGroup,v.markers_pop=new m.layerGroup,v.markers_pop_parcel_locker=new m.layerGroup,v.markers_parcel_locker=new m.layerGroup,v.markerGroup.addLayer(v.markers),v.types.indexOf("pop")>-1&&v.markerGroup.addLayer(v.markers_pop),v.types.indexOf("parcel_locker_superpop")>-1&&v.markerGroup.addLayer(v.markers_pop_parcel_locker),(v.types.indexOf("parcel_locker")>-1||v.types.indexOf("parcel_locker_only")>-1)&&v.markerGroup.addLayer(v.markers_parcel_locker),v.map.addLayer(v.markerGroup)},clearLayers:function(){v.markerGroup&&(v.markerGroup.removeLayer(v.markers),v.markerGroup.removeLayer(v.markers_pop),v.markerGroup.removeLayer(v.markers_pop_parcel_locker),v.markerGroup.removeLayer(v.markers_parcel_locker),v.map.removeLayer(v.markerGroup),v.initLeafletCluster(),v.mapPoints=[],v.tmpPoints=[],v.points=[])},addLeafletPoints:function(t,e,n,i,o){v.markerGroup.getLayers().length>0&&v.markerGroup.getLayers().filter((function(e){return!t.items.filter((function(t){return t.name===e.options.alt})).length>0})).forEach((function(t){v.markers.removeLayer(t),v.markers_pop.removeLayer(t),v.markers_pop_parcel_locker.removeLayer(t),v.markers_parcel_locker.removeLayer(t),v.markerGroup.removeLayer(t),v.map.removeLayer(t)})),v.map&&(window.SensbitInpostEasyPackConfig.points.showPoints.length>0&&0===v.tmpPoints.length&&(t.items.length>0&&v.map.fitBounds(new m.LatLngBounds(t.items.map((function(t){return[t.location.latitude,t.location.longitude]})))),v.map.getZoom()<window.SensbitInpostEasyPackConfig.map.visiblePointsMinZoom&&v.map.setZoom(window.SensbitInpostEasyPackConfig.map.visiblePointsMinZoom)),t.items.filter((function(t){return!v.tmpPoints.filter((function(e){return e.name===t.name})).length>0})).forEach((function(t){v.firstPointsInit=!0,v.points.push(t),v.tmpPoints.push(t),v.addPointsByType(t,o)})),v.filterPointsByTypes(this.types),v.tmpPoints=t.items),v.points.length>=e&&v.markers&&(v.currentFilters.length?v.sortPointsByFilters(v.currentFilters):v.firstPointsInit||(v.firstPointsInit=!0,v.addExistingPoints(o)))},addExistingPoints:function(t){v.points.forEach((function(e){v.addPointsByType(e,t)}))},sortPointsByFilters:function(t){for(var e=function(e){var n=!0;if(t.length)for(var i=0;i<t.length;i++)if(-1===v.points[e].functions.indexOf(t[i])){n=!1;break}n&&!v.tmpPoints.filter((function(t){return t.name===v.points[e].name})).length>0&&(v.tmpPoints.push(v.points[e]),v.addPointsByType(v.points[e],t))},n=0;n<v.points.length;n++)e(n);v.filterPointsByTypes(v.types)},addPointsByType:function(t,e){var n={point:t};function i(){return new m.marker([t.location.latitude,t.location.longitude],{icon:Object(m.icon)({iconUrl:Object(f.e)(t,e),iconSize:[30,49]}),alt:t.name}).bindPopup((function(){return v.generatePopup(t)}),n).on("popupclose",(function(){v.generatedPopUp=null})).on("click",v.onMarkerClick)}t.type.indexOf("pop")>-1&&!(t.type.indexOf("parcel_locker")>-1)&&(v.mapPoints.push(i()),this.markers_pop.addLayer(v.mapPoints[v.mapPoints.length-1])),t.type.indexOf("parcel_locker")>-1&&!(t.type.indexOf("pop")>-1)&&(v.mapPoints.push(i()),this.markers_parcel_locker.addLayer(v.mapPoints[v.mapPoints.length-1])),t.type.indexOf("parcel_locker")>-1&&t.type.indexOf("pop")>-1&&(v.mapPoints.push(i()),this.markers_pop_parcel_locker.addLayer(v.mapPoints[v.mapPoints.length-1])),t.type.indexOf("parcel_locker")>-1||t.type.indexOf("pop")>-1||(v.mapPoints.push(i()),this.markers.addLayer(v.mapPoints[v.mapPoints.length-1]))},onMarkerClick:function(t){document.getElementsByClassName("details-content").length&&Object(f.c)(t.target.options.alt,(function(t){new u.a({point:t},v.params,t).render()}))},filterPointsByTypes:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.length&&t.indexOf("pop")>-1?v.markerGroup.addLayer(v.markers_pop):v.markerGroup.removeLayer(v.markers_pop),t.length&&t.indexOf("parcel_locker")>-1||t.indexOf("parcel_locker_only")>-1?v.markerGroup.addLayer(v.markers_parcel_locker):v.markerGroup.removeLayer(v.markers_parcel_locker),t.indexOf("parcel_locker")>-1||t.indexOf("pop")>-1||t.indexOf("parcel_locker_superpop")>-1?v.markerGroup.addLayer(v.markers_pop_parcel_locker):v.markerGroup.removeLayer(v.markers_pop_parcel_locker),t.indexOf("parcel_locker")>-1||t.indexOf("pop")>-1?v.markerGroup.removeLayer(v.markers):v.markerGroup.addLayer(v.markers),v.listObj.clear(),v.processNewPoints(v.points,!0,v.types[0])},addMarkers:function(t){},setMapView:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;switch(e){case!0:v.map.setView(new g.a.LatLng(t.latitude,t.longitude),n);break;case!1:"none"===document.getElementById("map-leaflet").style.display&&v.map.setView(new g.a.LatLng(t.latitude,t.longitude),n)}},close:function(){document.getElementById("widget-modal")&&null!==document.getElementById("widget-modal").parentNode&&(document.getElementById("widget-modal").parentNode.style.display="none")},popUpRenderingMethod:function(t){var e,n=v.initialLocation?v.initialLocation:null,i=window.SensbitInpostEasyPackConfig.points.showPoints&&window.SensbitInpostEasyPackConfig.points.showPoints.length>0,o=window.SensbitInpostEasyPackConfig.hideSelect;return l()("div",{className:"popup-container"},l()("div",{className:"point-wrapper"},l()("h1",null,Object(c.n)("pok"===t.type[0].toLowerCase()||"pop"===t.type[0].toLowerCase()?"parcel_locker_superpop":t.type[0].toLowerCase())),l()("p",null,t.name),l()("p",{className:"mobile-details-content address",dangerouslySetInnerHTML:{__html:(e="",window.SensbitInpostEasyPackConfig.descriptionInWindow&&(e+=t.location_description+"<br />"),e+=window.SensbitInpostEasyPackConfig.addressFormat.replace(/{(.*?)}/g,(function(e,n){return t.address_details[n]||t[n]||""})))}}),t.opening_hours&&1==!t.location_247?l()("p",{style:{paddingTop:"10px"},className:"".concat(p.a["opening-hours-label"])},Object(c.n)("openingHours")+":"):l()("p",null),t.opening_hours&&1==!t.location_247?l()("p",{className:"mobile-details-content"},t.opening_hours):l()("p",null),void 0!==t.location_247&&!1===t.location_247?l()("p",{className:"mobile-details-content address"},Object(c.n)("no_247_info")):l()("p",null),void 0===t.location_247||!0!==t.location_247||!t.type.includes("parcel_locker")||t.type.includes("pop")||t.type.includes("parcel_locker_superpop")?l()("p",null):l()("p",{className:"mobile-details-content address"},Object(c.n)("parcel_247")),void 0!==t.location_247&&!0===t.location_247&&t.type.includes("pop")?l()("p",{className:"mobile-details-content address"},Object(c.n)("pop_247")):l()("p",null),t.apm_doubled&&t.apm_doubled.length>0?l()("div",{className:"apm_doubled"},l()("p",{className:""},Object(c.n)("double_apm_info")),l()("span",null,t.apm_doubled&&t.apm_doubled.split(";").join(", "))):l()("p",null)),l()("div",{className:"links"},l()("a",{className:"route-link",target:"_new",href:c.d.routeLink(n,t.location)},Object(c.n)("plan_route")),l()("a",{className:"details-link",ref:Object(c.k)((function(e){Object(f.c)(t.name,(function(e){v.params.initialLocation=v.initialLocation,new u.a({point:t},v.params,e).render()}))}))},Object(c.n)("details")),i||o?"":l()("a",{className:"select-link",ref:Object(c.k)((function(e){e.preventDefault(),v.pointCallback(t)}))},Object(c.n)("select"))))},generatePopup:function(t){return v.generatedPopUp=t,this.popUpRenderingMethod(t)},reRenderPopup:function(){if(v.generatedPopUp){var t=!0,e=!1,n=void 0;try{for(var i,o=v.markerGroup.getLayers()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(a.options.alt===v.generatedPopUp.name){if(v.getBounds().contains(a.getLatLng())){a.openPopup();break}v.generatedPopUp=null;break}}}catch(t){e=!0,n=t}finally{try{t||null==o.return||o.return()}finally{if(e)throw n}}}},getCenter:function(){return v.map.getCenter()},setCenter:function(t){v.map.setCenter(t)},getCenterLat:function(){return v.getCenter().lat},getCenterLng:function(){return v.getCenter().lng},getBounds:function(){return v.map.getBounds()},getZoom:function(){return v.map.getZoom()},setZoom:function(t){v.map.setZoom(t)},clearMarkers:function(){v.clearLayers()},calculateBoundsDistance:function(){var t;void 0!==v.map.getBounds()&&(t=[v.map.getBounds().getNorthEast().lat,v.map.getBounds().getNorthEast().lng]);var e=window.SensbitInpostEasyPackConfig.map.distanceMultiplier;return t?(void 0!==v.map.getBounds()&&(v.location=v.getCenterMapLocation()),c.d.calculateDistance(v.getCenterMapLocation(),[t[0],t[1]])*e):c.d.calculateDistance(v.getCenterMapLocation(),[0,0])*e},offsetCenter:function(t,e,n,i,a,r){window.SensbitInpostEasyPackConfig.map.detailsMinZoom,v.setMapView({latitude:t.lat(),longitude:t.lng()},!0,15),document.getElementsByClassName("map-wrapper").length>0&&!document.getElementsByClassName("map-wrapper").item(0).getAttribute("data-active")&&a(),o()((function(){var t=!0,e=!1,n=void 0;try{for(var i,o=v.markerGroup.getLayers()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(a.options.alt===r.point.name){a.openPopup();break}}}catch(t){e=!0,n=t}finally{try{t||null==o.return||o.return()}finally{if(e)throw n}}}),300)},getWindowSize:function(){return{height:0,width:0}},getCenterMapLocation:function(){return[v.getBounds().getCenter().lat,v.getBounds().getCenter().lng]},createMarker:function(t){var e=new g.a.LatLng(t.location.latitude,t.location.longitude),n=Object(f.e)(t,v.types);return{position:e,point:t,icon:n,options:{size:[50,59]},map:v.map,getPosition:function(){return{lat:function(){return e.lat},lng:function(){return e.lng}}}}},visibleOnMap:function(t){return!!(t&&t.location&&t.location.latitude&&t.location.longitude)&&v.getBounds().contains(new m.LatLng(t.location.latitude,t.location.longitude))},setCenterFromArray:function(t){v.setMapView({latitude:t[0],longitude:t[1]},!0)},handleOsmSearchPlace:function(t){v.setMapView({latitude:t[0].lat,longitude:t[0].lon},!0,window.SensbitInpostEasyPackConfig.map.detailsMinZoom)},handleGoogleSearchPlace:function(t){v.setMapView({latitude:t[0].geometry.location.lat(),longitude:t[0].geometry.location.lng()},!0,window.SensbitInpostEasyPackConfig.map.maxZoom)},handleSearchLockerPoint:function(t){v.setMapView({latitude:t.location.latitude,longitude:t.location.longitude},!0,15);var e=0,n=setInterval((function(){e++,v.markerGroup.getLayers().find((function(e){return e.options.alt===t.name}))?(v.markerGroup.getLayers().find((function(e){return e.options.alt===t.name})).openPopup(),clearInterval(n)):e>=100&&clearInterval(n)}),100)},trackBounds:function(){v.map.on("moveend",r()((function(){var t=v.module;if(v.module.mapReady){var e=v.getCenter();v.location=t.currentLocation=[e.lat,e.lng],v.getZoom()>=window.SensbitInpostEasyPackConfig.map.visiblePointsMinZoom?(t.listObj.waitingList(),t.statusBarObj&&t.statusBarObj.clear(),t.listObj.loading(!0),t.loadClosestPoints(v.types,!0,t.filtersObj.currentFilters)):(t.loader(!1),self.statusBarObj.showInfoAboutZoom(),t.listObj.clear(),v.clearMarkers())}}),400))},renderMap:function(t,e,n){var i=v.module,o={zoom:window.SensbitInpostEasyPackConfig.map.initialZoom,mapType:window.SensbitInpostEasyPackConfig.mapType,center:{lat:v.location[0],lng:v.location[1]},maxZoom:8,minZoom:window.innerWidth<=768?6:7,closePopupOnClick:!1,gestureHandling:window.SensbitInpostEasyPackConfig.map.gestureHandling},a=l()("div",{className:p.a["map-list-row"]},l()("div",{id:p.a["map-list-flex"],className:c.d.hasCustomMapAndListInRow()?p.a["map-list-in-row"]:p.a["map-list-flex"]},l()("div",{className:p.a["map-widget"],id:"map-leaflet",style:{display:"flex"}}))),r=l()("div",{id:"loader",className:"".concat(p.a["loading-icon-wrapper"]," ").concat(p.a["loader-wrapper"]," ").concat(p.a.hidden)},l()("div",{className:"ball-spin-fade-loader ball-spin-fade-loader-mp"},l()("div",null),l()("div",null),l()("div",null),l()("div",null),l()("div",null),l()("div",null),l()("div",null),l()("div",null)));if(window.SensbitInpostEasyPackConfig.display.showTypesFilters&&i.renderTypesFilter(),i.addTypeClickEvent(),i.placeholderObj&&i.placeholderObj.removeChild&&null!==e.parentNode&&i.placeholderObj===e.parentNode&&i.placeholderObj.removeChild(e),window.SensbitInpostEasyPackConfig.paymentFilter&&window.SensbitInpostEasyPackConfig.paymentFilter.visible){var s=l()("div",{className:"payment-wrapper"},self.renderPaymentFilter());i.placeholderObj.appendChild(s)}i.placeholderObj.appendChild(a),v.loader=i.loader,v.element=document.getElementById("map-leaflet"),i.placeholderObj.mapLoader=r,i.loader(!0),document.getElementById("widget-modal")&&document.getElementById("widget-modal").children[0].classList.remove(p.a.hidden);var u=function(t){return null!==t&&null===t.offsetParent};v.map=Object(m.map)("map-leaflet",{preferCanvas:!1,minZoom:o.minZoom,closePopupOnClick:!1,maxZoom:18}).setView([i.initialLocation[0],i.initialLocation[1]],o.zoom),Object(m.tileLayer)("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(v.map),v.addLeafletCluster({}),Object(m.tileLayer)(window.SensbitInpostEasyPackConfig.osm.tiles,{maxZoom:18}).addTo(v.map),v.element.appendChild(r),v.map.addControl(new g.a.Control.Fullscreen({})),g.a.control.locate({icon:"fas fa-map-marker-alt"}).addTo(v.map),v.map.on("locationfound",(function(t){})),i.renderFilters(),window.SensbitInpostEasyPackConfig.display.showSearchBar&&i.renderSearch(),i.renderList(),c.d.hasCustomMapAndListInRow()||i.renderViewChooser(),i.renderStatusBar(),i.renderLanguageBar(i,i.placeholderId),i.allTypes=d.typesHelpers.seachInArrayOfObjectsKeyWithCondition(d.typesHelpers.getExtendedCollection(),"enabled",!0,"childs"),i.allTypes=i.allTypes.concat(d.typesHelpers.getAllAdditionalTypes(d.typesHelpers.getExtendedCollection())),v.trackBounds(),v.map.fire("moveend"),v.map.invalidateSize(),v.map.whenReady((function(t){i.mapReady=!0,i.mapIdle=!0,i.mapRendered=!0})),window.SensbitInpostEasyPack.once=!0,setInterval((function(){!u(document.getElementById(i.placeholderId))&&window.SensbitInpostEasyPack.once?setTimeout((function(){v.map.invalidateSize(),window.SensbitInpostEasyPack.once=!1;var t=v.getCenter();v.location=i.currentLocation=[t.lat,t.lng]}),300):u(document.getElementById(i.placeholderId))&&(window.SensbitInpostEasyPack.once=!0)}),100),i.loader(!1),i.statusBarObj.hide(),n&&n(i),setTimeout((function(){document.getElementById("map-leaflet").onkeydown=function(t){54===t.keyCode&&t.stopPropagation()}}),1e3)},updateMarkerIcon:function(t,e){return t.icon=e,t},rerender:function(){},initialize:function(t){}}},function(t,e,n){var i=n(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(30),o=n(9)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var i=n(7),o=n(25),a=n(9)("species");t.exports=function(t,e){var n,r=i(t).constructor;return void 0===r||null==(n=i(r)[a])?e:o(n)}},function(t,e,n){"use strict";n.r(e);var i=n(4),o=n.n(i),a=n(54),r=n.n(a),s=n(0),l=n.n(s);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,n){this.extend(u,google.maps.OverlayView),this.map_=t,this.markers_=[],this.clusters_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1;var i=n||{};this.gridSize_=i.gridSize||60,this.minClusterSize_=i.minimumClusterSize||2,this.maxZoom_=i.maxZoom||null,this.styles_=i.styles||[],this.imagePath_=i.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=i.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,null!=i.zoomOnClick&&(this.zoomOnClick_=i.zoomOnClick),this.averageCenter_=!1,null!=i.averageCenter&&(this.averageCenter_=i.averageCenter),this.setupStyles_(),this.setMap(t),this.prevZoom_=this.map_.getZoom();var o=this;google.maps.event.addListener(this.map_,"zoom_changed",(function(){var t=o.map_.getZoom();o.prevZoom_!=t&&(o.resetViewport(),o.prevZoom_=t)})),google.maps.event.addListener(this.map_,"idle",(function(){o.redraw()})),e&&e.length&&this.addMarkers(e,!1)}function f(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinClusterSize(),this.averageCenter_=t.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new h(this,t.getStyles(),t.getGridSize())}function h(t,e,n){t.getMarkerClusterer().extend(h,google.maps.OverlayView),this.styles_=e,this.padding_=n||0,this.cluster_=t,this.center_=null,this.map_=t.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}u.prototype.MARKER_CLUSTER_IMAGE_PATH_="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m",u.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",u.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},u.prototype.onAdd=function(){this.setReady_(!0)},u.prototype.draw=function(){},u.prototype.setupStyles_=function(){if(!this.styles_.length)for(var t,e=0;t=this.sizes[e];e++)this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},u.prototype.fitMapToMarkers=function(){for(var t,e=this.getMarkers(),n=new google.maps.LatLngBounds,i=0;t=e[i];i++)n.extend(t.getPosition());this.map_.fitBounds(n)},u.prototype.setStyles=function(t){this.styles_=t},u.prototype.getStyles=function(){return this.styles_},u.prototype.isZoomOnClick=function(){return this.zoomOnClick_},u.prototype.isAverageCenter=function(){return this.averageCenter_},u.prototype.getMarkers=function(){return this.markers_},u.prototype.getTotalMarkers=function(){return this.markers_.length},u.prototype.setMaxZoom=function(t){this.maxZoom_=t},u.prototype.getMaxZoom=function(){return this.maxZoom_},u.prototype.calculator_=function(t,e){for(var n=0,i=t.length,o=i;0!==o;)o=parseInt(o/10,10),n++;return{text:i,index:n=Math.min(n,e)}},u.prototype.setCalculator=function(t){this.calculator_=t},u.prototype.getCalculator=function(){return this.calculator_},u.prototype.addMarkers=function(t,e){for(var n,i=0;n=t[i];i++)this.pushMarkerTo_(n);e||this.redraw()},u.prototype.pushMarkerTo_=function(t){if(t.isAdded=!1,t.draggable){var e=this;google.maps.event.addListener(t,"dragend",(function(){t.isAdded=!1,e.repaint()}))}this.markers_.push(t)},u.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw()},u.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var n,i=0;n=this.markers_[i];i++)if(n==t){e=i;break}return-1!=e&&(t.setMap(null),this.markers_.splice(e,1),!0)},u.prototype.removeMarker=function(t,e){var n=this.removeMarker_(t);return!(e||!n||(this.resetViewport(),this.redraw(),0))},u.prototype.removeMarkers=function(t,e){for(var n,i=!1,o=0;n=t[o];o++){var a=this.removeMarker_(n);i=i||a}if(!e&&i)return this.resetViewport(),this.redraw(),!0},u.prototype.setReady_=function(t){this.ready_||(this.ready_=t,this.createClusters_())},u.prototype.getTotalClusters=function(){return this.clusters_.length},u.prototype.getMap=function(){return this.map_},u.prototype.setMap=function(t){this.map_=t},u.prototype.getGridSize=function(){return this.gridSize_},u.prototype.setGridSize=function(t){this.gridSize_=t},u.prototype.getMinClusterSize=function(){return this.minClusterSize_},u.prototype.setMinClusterSize=function(t){this.minClusterSize_=t},u.prototype.getExtendedBounds=function(t){var e=this.getProjection(),n=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),i=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),o=e.fromLatLngToDivPixel(n);o.x+=this.gridSize_,o.y-=this.gridSize_;var a=e.fromLatLngToDivPixel(i);a.x-=this.gridSize_,a.y+=this.gridSize_;var r=e.fromDivPixelToLatLng(o),s=e.fromDivPixelToLatLng(a);return t.extend(r),t.extend(s),t},u.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},u.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[]},u.prototype.resetViewport=function(t){for(var e,n=0;e=this.clusters_[n];n++)e.remove();var i;for(n=0;i=this.markers_[n];n++)i.isAdded=!1,t&&i.setMap(null);this.clusters_=[]},u.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout((function(){for(var e,n=0;e=t[n];n++)e.remove()}),0)},u.prototype.redraw=function(){this.createClusters_()},u.prototype.distanceBetweenPoints_=function(t,e){if(!t||!e)return 0;var n=(e.lat()-t.lat())*Math.PI/180,i=(e.lng()-t.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*6371},u.prototype.addToClosestCluster_=function(t){for(var e,n=4e4,i=null,o=(t.getPosition(),0);e=this.clusters_[o];o++){var a=e.getCenter();if(a){var r=this.distanceBetweenPoints_(a,t.getPosition());r<n&&(n=r,i=e)}}i&&i.isMarkerInClusterBounds(t)?i.addMarker(t):((e=new f(this)).addMarker(t),this.clusters_.push(e))},u.prototype.createClusters_=function(){if(this.ready_)for(var t,e=new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),this.map_.getBounds().getNorthEast()),n=this.getExtendedBounds(e),i=0;t=this.markers_[i];i++)!t.isAdded&&this.isMarkerInBounds_(t,n)&&this.addToClosestCluster_(t)},f.prototype.isMarkerAlreadyAdded=function(t){if(this.markers_.indexOf)return-1!=this.markers_.indexOf(t);for(var e,n=0;e=this.markers_[n];n++)if(e==t)return!0;return!1},f.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,n=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,i=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(n,i),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var o=this.markers_.length;if(o<this.minClusterSize_&&t.getMap()!=this.map_&&t.setMap(this.map_),this.map_.getZoom()<=this.markerClusterer_.maxZoom_){if(o==this.minClusterSize_)for(var a=0;a<o;a++)this.markers_[a].setMap(null);o>=this.minClusterSize_&&t.setMap(null)}return this.updateIcon(),!0},f.prototype.getMarkerClusterer=function(){return this.markerClusterer_},f.prototype.getBounds=function(){for(var t,e=new google.maps.LatLngBounds(this.center_,this.center_),n=this.getMarkers(),i=0;t=n[i];i++)e.extend(t.getPosition());return e},f.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},f.prototype.getSize=function(){return this.markers_.length},f.prototype.getMarkers=function(){return this.markers_},f.prototype.getCenter=function(){return this.center_},f.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},f.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},f.prototype.getMap=function(){return this.map_},f.prototype.updateIcon=function(){var t=this.map_.getZoom(),e=this.markerClusterer_.getMaxZoom();if(e&&t>e)for(var n=0;this.markers_[n];n++);else if(this.markers_.length<this.minClusterSize_)this.clusterIcon_.hide();else{var i=this.markerClusterer_.getStyles().length,o=this.markerClusterer_.getCalculator()(this.markers_,i);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.setSums(o),this.clusterIcon_.show()}},h.prototype.triggerClusterClick=function(){var t=this.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"clusterclick",this.cluster_),t.isZoomOnClick()&&(this.map_.fitBounds(this.cluster_.getBounds()),this.map_.setZoom(this.map_.getZoom()+1))},h.prototype.onAdd=function(){if(this.div_=document.createElement("DIV"),this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(t),this.div_.innerHTML=this.sums_.text}this.getPanes().overlayMouseTarget.appendChild(this.div_);var e=this;google.maps.event.addDomListener(this.div_,"click",(function(){e.triggerClusterClick()}))},h.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=parseInt(this.width_/2,10),e.y-=parseInt(this.height_/2,10),e},h.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},h.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},h.prototype.show=function(){if(this.div_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(t),this.div_.style.display=""}this.visible_=!0},h.prototype.remove=function(){this.setMap(null)},h.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),this.div_.parentNode.removeChild(this.div_),this.div_=null)},h.prototype.setSums=function(t){this.sums_=t,this.text_=t.text,this.index_=t.index,this.div_&&(this.div_.innerHTML=t.text),this.useStyle()},h.prototype.useStyle=function(){var t=Math.max(0,this.sums_.index-1);t=Math.min(this.styles_.length-1,t);var e=this.styles_[t];this.url_=e.url,this.height_=e.height,this.width_=e.width,this.textColor_=e.textColor,this.anchor_=e.anchor,this.textSize_=e.textSize,this.backgroundPosition_=e.backgroundPosition},h.prototype.setCenter=function(t){this.center_=t},h.prototype.createCss=function(t){var e=[];e.push("background-image:url("+this.url_+");");var n=this.backgroundPosition_?this.backgroundPosition_:"0 0";e.push("background-position:"+n+";"),"object"===c(this.anchor_)?("number"==typeof this.anchor_[0]&&this.anchor_[0]>0&&this.anchor_[0]<this.height_?e.push("height:"+(this.height_-this.anchor_[0])+"px; padding-top:"+this.anchor_[0]+"px;"):e.push("height:"+this.height_+"px; line-height:"+this.height_+"px;"),"number"==typeof this.anchor_[1]&&this.anchor_[1]>0&&this.anchor_[1]<this.width_?e.push("width:"+(this.width_-this.anchor_[1])+"px; padding-left:"+this.anchor_[1]+"px;"):e.push("width:"+this.width_+"px; text-align:center;")):e.push("height:"+this.height_+"px; line-height:"+this.height_+"px; width:"+this.width_+"px; text-align:center;");var i=this.textColor_?this.textColor_:"black",o=this.textSize_?this.textSize_:11;return e.push("cursor:pointer; top:"+t.y+"px; left:"+t.x+"px; color:"+i+"; position:absolute; font-size:"+o+"px; font-family:Arial,sans-serif; font-weight:bold"),e.join("")},window.MarkerClusterer=u,u.prototype.addMarker=u.prototype.addMarker,u.prototype.addMarkers=u.prototype.addMarkers,u.prototype.clearMarkers=u.prototype.clearMarkers,u.prototype.fitMapToMarkers=u.prototype.fitMapToMarkers,u.prototype.getCalculator=u.prototype.getCalculator,u.prototype.getGridSize=u.prototype.getGridSize,u.prototype.getExtendedBounds=u.prototype.getExtendedBounds,u.prototype.getMap=u.prototype.getMap,u.prototype.getMarkers=u.prototype.getMarkers,u.prototype.getMaxZoom=u.prototype.getMaxZoom,u.prototype.getStyles=u.prototype.getStyles,u.prototype.getTotalClusters=u.prototype.getTotalClusters,u.prototype.getTotalMarkers=u.prototype.getTotalMarkers,u.prototype.redraw=u.prototype.redraw,u.prototype.removeMarker=u.prototype.removeMarker,u.prototype.removeMarkers=u.prototype.removeMarkers,u.prototype.resetViewport=u.prototype.resetViewport,u.prototype.repaint=u.prototype.repaint,u.prototype.setCalculator=u.prototype.setCalculator,u.prototype.setGridSize=u.prototype.setGridSize,u.prototype.setMaxZoom=u.prototype.setMaxZoom,u.prototype.onAdd=u.prototype.onAdd,u.prototype.draw=u.prototype.draw,f.prototype.getCenter=f.prototype.getCenter,f.prototype.getSize=f.prototype.getSize,f.prototype.getMarkers=f.prototype.getMarkers,h.prototype.onAdd=h.prototype.onAdd,h.prototype.draw=h.prototype.draw,h.prototype.onRemove=h.prototype.onRemove;var p=n(1),d=n(10),m=n(371),g=n.n(m);n.d(e,"googleMap",(function(){return _}));var _={clusterManager:null,map:null,location:[],isMobile:!1,types:[],module:null,currentFilters:[],placeholderObj:null,initialize:function(t){var e=window.SensbitInpostEasyPackConfig.map.defaultLocation,n={zoom:window.SensbitInpostEasyPackConfig.map.initialZoom,mapType:window.SensbitInpostEasyPackConfig.mapType,center:{lat:e[0],lng:e[1]},streetViewControl:!1,fullscreenControl:!1,minZoom:window.innerWidth<=768?6:7,gestureHandling:window.SensbitInpostEasyPackConfig.map.gestureHandling};return _.map=new google.maps.Map(t,n),_.map},addMarkerCluster:function(t){_.clusterManager=new u(t,[],window.SensbitInpostEasyPackConfig.map.clusterer)},addMarkers:function(t){_.clusterManager.addMarkers(t)},clearMarkers:function(){_.clusterManager.clearMarkers()},removeMarkers:function(t){_.clusterManager.removeMarkers(t)},getBounds:function(){return _.map.getBounds()},getZoom:function(){return _.map.getZoom()},setZoom:function(t){_.map.setZoom(t)},setCenter:function(t){_.map.setCenter(t)},getCenter:function(){return _.map.getCenter()},getCenterLat:function(){return _.getCenter().lat()},getCenterLng:function(){return _.getCenter().lng()},calculateBoundsDistance:function(){var t;_.map.getBounds()&&(t=[_.getBounds().getNorthEast().lat(),_.getBounds().getNorthEast().lng()]);var e=window.SensbitInpostEasyPackConfig.map.distanceMultiplier;return t?(void 0!==_.getCenter()&&(_.location=_.getCenterMapLocation()),p.d.calculateDistance(_.getCenterMapLocation(),[t[0],t[1]])*e):p.d.calculateDistance(_.getCenterMapLocation(),[0,0])*e},createMarker:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=new google.maps.LatLng(t.location.latitude,t.location.longitude),i={url:Object(d.e)(t,_.types),size:new google.maps.Size(30,49),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(15,49),scaledSize:new google.maps.Size(30,49)},o=new google.maps.Marker({position:n,point:t,icon:i,map:_.map});return google.maps.event.addListener(o,"click",e(o)),_.generatedPopUp=t,o},reRenderPopup:function(){},offsetCenter:function(t,e,n,i,a){var r=window.SensbitInpostEasyPackConfig.map.detailsMinZoom;_.map.getZoom()<r&&_.setZoom(r),i.open(),document.getElementsByClassName("map-wrapper").length>0&&!document.getElementsByClassName("map-wrapper").item(0).getAttribute("data-active")&&a();var s=Math.pow(2,_.map.getZoom()),l=_.map.getProjection().fromLatLngToPoint(t),c=new google.maps.Point(e/s||0,n/s||0),u=new google.maps.Point(l.x-c.x,l.y+c.y),f=_.map.getProjection().fromPointToLatLng(u);o()((function(){_.map.panTo(f)}),50)},getWindowSize:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?new google.maps.Size(-145,-16):new google.maps.Size(-170,-16)},setCenterFromArray:function(t){_.map.setCenter(new google.maps.LatLng(t[0],t[1]))},getCenterMapLocation:function(){return[_.getCenter().lat(),_.getCenter().lng()]},visibleOnMap:function(t){return _.getBounds().contains(new google.maps.LatLng(t.location.latitude,t.location.longitude))},handleOsmSearchPlace:function(t){_.setCenter(new google.maps.LatLng(t[0].lat,t[0].lon))},handleGoogleSearchPlace:function(t){_.map.setCenter(new google.maps.LatLng(t[0].geometry.location.lat(),t[0].geometry.location.lng()))},handleSearchLockerPoint:function(t){var e=new google.maps.LatLng(t.location.latitude,t.location.longitude);o()((function(){_.setCenter(e);var n=0,i=setInterval((function(){n++;var e=_.clusterManager.getMarkers();e.find((function(e){return e.point.name===t.name}))?(clearInterval(i),new google.maps.event.trigger(e.find((function(e){return e.point.name===t.name})),"click")):n>=100&&clearInterval(i)}),300)}),300)},trackBounds:function(){google.maps.event.addListener(_.map,"bounds_changed",r()((function(){var t=_.getCenter(),e=_.module;t&&(e.currentLocation=_.location=[t.lat(),t.lng()]),e.statusBarObj&&e.statusBarObj.clear(),_.getZoom()>=window.SensbitInpostEasyPackConfig.map.visiblePointsMinZoom?(e.listObj.waitingList(),_.isFilter?e.loadClosestPoints([],!0,self.filtersObj.currentFilters):e.loadClosestPoints()):(e.statusBarObj.showInfoAboutZoom(),e.listObj.clear(),e.loader(!1),_.clearMarkers())}),400))},renderMap:function(t,e,n){var i=_.module;if(!i.mapRendered){var o=l()("div",{className:g.a["map-list-row"]},l()("div",{id:g.a["map-list-flex"],className:p.d.hasCustomMapAndListInRow()?g.a["map-list-in-row"]:g.a["map-list-flex"]},l()("div",{className:g.a["map-widget"],id:"map",style:{display:"block"}}))),a=l()("div",{id:"loader",className:"".concat(g.a["loading-icon-wrapper"]," ").concat(g.a["loader-wrapper"]," ").concat(g.a.hidden)},l()("div",{className:"ball-spin-fade-loader ball-spin-fade-loader-mp"},l()("div",null),l()("div",null),l()("div",null),l()("div",null),l()("div",null),l()("div",null),l()("div",null),l()("div",null)));if(window.SensbitInpostEasyPackConfig.display.showTypesFilters&&i.renderTypesFilter(),i.addTypeClickEvent(),document.getElementsByClassName("loading-icon-wrapper").length>0&&i.placeholderObj.removeChild(e),window.SensbitInpostEasyPackConfig.paymentFilter&&window.SensbitInpostEasyPackConfig.paymentFilter.visible){var r=l()("div",{className:"payment-wrapper"},self.renderPaymentFilter());i.placeholderObj.appendChild(r)}i.placeholderObj.appendChild(o),_.mapElement=document.getElementById("map"),_.initialize(_.mapElement),i.mapObj=_.map,i.mapElement=_.mapElement,i.mapElement.appendChild(a),t.mapLoader=a,i.loader(!0),_.addMarkerCluster(_.map),window.addEventListener("orientationchange",(function(){google.maps.event.trigger(_.map,"resize")})),document.getElementById("widget-modal")&&document.getElementById("widget-modal").children[0].classList.remove(g.a.hidden),i.renderFilters(),window.SensbitInpostEasyPackConfig.display.showSearchBar&&i.renderSearch(),i.renderList(),p.d.hasCustomMapAndListInRow()||i.renderViewChooser(),i.renderStatusBar(),i.renderLanguageBar(i,i.placeholderId),google.maps.event.addListener(_.map,"idle",(function(){i.mapIdle=!0})),google.maps.event.addListener(_.map,"zoom_changed",(function(){i.clearDetails(),i.closeInfoBox()})),google.maps.event.trigger(_.map,"resize"),_.trackBounds(),i.mapRendered=!0,n&&n(i)}},updateMarkerIcon:function(t,e){return t.setIcon(e),t}}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var i=n(12),o=n(5),a="__core-js_shared__",r=o[a]||(o[a]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(38)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var i=n(22),o=n(11),a=n(40);t.exports=function(t){return function(e,n,r){var s,l=i(e),c=o(l.length),u=a(r,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(30);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(9)("iterator"),o=!1;try{var a=[7][i]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],r=a[i]();r.next=function(){return{done:n=!0}},a[i]=function(){return r},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var i=n(7);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var i=n(58),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(138);var i=n(18),o=n(21),a=n(6),r=n(31),s=n(9),l=n(96),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=s(t),p=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),d=p?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!e})):void 0;if(!p||!d||"replace"===t&&!u||"split"===t&&!f){var m=/./[h],g=n(r,h,""[t],(function(t,e,n,i,o){return e.exec===l?p&&!o?{done:!0,value:m.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),_=g[0],y=g[1];i(String.prototype,t,_),o(RegExp.prototype,h,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,n){var i=n(24),o=n(133),a=n(91),r=n(7),s=n(11),l=n(93),c={},u={};(e=t.exports=function(t,e,n,f,h){var p,d,m,g,_=h?function(){return t}:l(t),y=i(n,f,e?2:1),v=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(a(_)){for(p=s(t.length);p>v;v++)if((g=e?y(r(d=t[v])[0],d[1]):y(t[v]))===c||g===u)return g}else for(m=_.call(t);!(d=m.next()).done;)if((g=o(m,y,d.value,e))===c||g===u)return g}).BREAK=c,e.RETURN=u},function(t,e,n){var i=n(5).navigator;t.exports=i&&i.userAgent||""},function(t,e,n){"use strict";var i=n(5),o=n(2),a=n(18),r=n(53),s=n(35),l=n(70),c=n(52),u=n(8),f=n(6),h=n(66),p=n(48),d=n(82);t.exports=function(t,e,n,m,g,_){var y=i[t],v=y,w=g?"set":"add",b=v&&v.prototype,k={},P=function(t){var e=b[t];a(b,t,"delete"==t||"has"==t?function(t){return!(_&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return _&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof v&&(_||b.forEach&&!f((function(){(new v).entries().next()})))){var x=new v,L=x[w](_?{}:-0,1)!=x,C=f((function(){x.has(1)})),O=h((function(t){new v(t)})),S=!_&&f((function(){for(var t=new v,e=5;e--;)t[w](e,e);return!t.has(-0)}));O||((v=e((function(e,n){c(e,v,t);var i=d(new y,e,v);return null!=n&&l(n,g,i[w],i),i}))).prototype=b,b.constructor=v),(C||S)&&(P("delete"),P("has"),g&&P("get")),(S||L)&&P(w),_&&b.clear&&delete b.clear}else v=m.getConstructor(e,t,g,w),r(v.prototype,n),s.NEED=!0;return p(v,t),k[t]=v,o(o.G+o.W+o.F*(v!=y),k),_||m.setStrong(v,t,g),v}},function(t,e,n){for(var i,o=n(5),a=n(21),r=n(37),s=r("typed_array"),l=r("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,f=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(i=o[h[f++]])?(a(i.prototype,s,!0),a(i.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){var i=n(164),o="object"==typeof self&&self&&self.Object===Object&&self,a=i||o||Function("return this")();t.exports=a},function(t,e,n){var i=n(8),o=n(5).document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(9)},function(t,e,n){var i=n(62)("keys"),o=n(37);t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(5).document;t.exports=i&&i.documentElement},function(t,e,n){var i=n(8),o=n(7),a=function(t,e){if(o(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=n(24)(Function.call,n(27).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var i=n(8),o=n(80).set;t.exports=function(t,e,n){var a,r=e.constructor;return r!==n&&"function"==typeof r&&(a=r.prototype)!==n.prototype&&i(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var i=n(26),o=n(31);t.exports=function(t){var e=String(o(this)),n="",a=i(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var i=n(26),o=n(31);t.exports=function(t){return function(e,n){var a,r,s=String(o(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(r=s.charCodeAt(l+1))<56320||r>57343?t?s.charAt(l):a:t?s.slice(l,l+2):r-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var i=n(38),o=n(2),a=n(18),r=n(21),s=n(50),l=n(132),c=n(48),u=n(43),f=n(9)("iterator"),h=!([].keys&&"next"in[].keys()),p="keys",d="values",m=function(){return this};t.exports=function(t,e,n,g,_,y,v){l(n,e,g);var w,b,k,P=function(t){if(!h&&t in O)return O[t];switch(t){case p:case d:return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",L=_==d,C=!1,O=t.prototype,S=O[f]||O["@@iterator"]||_&&O[_],M=S||P(_),T=_?L?P("entries"):M:void 0,E="Array"==e&&O.entries||S;if(E&&(k=u(E.call(new t)))!==Object.prototype&&k.next&&(c(k,x,!0),i||"function"==typeof k[f]||r(k,f,m)),L&&S&&S.name!==d&&(C=!0,M=function(){return S.call(this)}),i&&!v||!h&&!C&&O[f]||r(O,f,M),s[e]=M,s[x]=m,_)if(w={values:L?M:P(d),keys:y?M:P(p),entries:T},v)for(b in w)b in O||a(O,b,w[b]);else o(o.P+o.F*(h||C),e,w);return w}},function(t,e,n){var i=n(89),o=n(31);t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var i=n(8),o=n(30),a=n(9)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var i=n(9)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var i=n(50),o=n(9)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,n){"use strict";var i=n(14),o=n(36);t.exports=function(t,e,n){e in t?i.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var i=n(58),o=n(9)("iterator"),a=n(50);t.exports=n(12).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[i(t)]}},function(t,e,n){"use strict";var i=n(17),o=n(40),a=n(11);t.exports=function(t){for(var e=i(this),n=a(e.length),r=arguments.length,s=o(r>1?arguments[1]:void 0,n),l=r>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var i=n(44),o=n(137),a=n(50),r=n(22);t.exports=n(87)(Array,"Array",(function(t,e){this._t=r(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e,n){"use strict";var i,o,a=n(67),r=RegExp.prototype.exec,s=String.prototype.replace,l=r,c=(i=/a/,o=/b*/g,r.call(i,"a"),r.call(o,"a"),0!==i.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,i,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),c&&(e=l.lastIndex),i=r.call(l,t),c&&i&&(l.lastIndex=l.global?i.index+i[0].length:e),u&&i&&i.length>1&&s.call(i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i}),t.exports=l},function(t,e,n){"use strict";var i=n(86)(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},function(t,e,n){var i,o,a,r=n(24),s=n(126),l=n(79),c=n(75),u=n(5),f=u.process,h=u.setImmediate,p=u.clearImmediate,d=u.MessageChannel,m=u.Dispatch,g=0,_={},y=function(){var t=+this;if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},v=function(t){y.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++g]=function(){s("function"==typeof t?t:Function(t),e)},i(g),g},p=function(t){delete _[t]},"process"==n(30)(f)?i=function(t){f.nextTick(r(y,t,1))}:m&&m.now?i=function(t){m.now(r(y,t,1))}:d?(a=(o=new d).port2,o.port1.onmessage=v,i=r(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",v,!1)):i="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(r(y,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){"use strict";var i=n(5),o=n(13),a=n(38),r=n(73),s=n(21),l=n(53),c=n(6),u=n(52),f=n(26),h=n(11),p=n(145),d=n(42).f,m=n(14).f,g=n(94),_=n(48),y="ArrayBuffer",v="DataView",w="Wrong index!",b=i.ArrayBuffer,k=i.DataView,P=i.Math,x=i.RangeError,L=i.Infinity,C=b,O=P.abs,S=P.pow,M=P.floor,T=P.log,E=P.LN2,j="buffer",z="byteLength",A="byteOffset",I=o?"_b":j,B=o?"_l":z,N=o?"_o":A;function F(t,e,n){var i,o,a,r=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?S(2,-24)-S(2,-77):0,f=0,h=t<0||0===t&&1/t<0?1:0;for((t=O(t))!=t||t===L?(o=t!=t?1:0,i=l):(i=M(T(t)/E),t*(a=S(2,-i))<1&&(i--,a*=2),(t+=i+c>=1?u/a:u*S(2,1-c))*a>=2&&(i++,a/=2),i+c>=l?(o=0,i=l):i+c>=1?(o=(t*a-1)*S(2,e),i+=c):(o=t*S(2,c-1)*S(2,e),i=0));e>=8;r[f++]=255&o,o/=256,e-=8);for(i=i<<e|o,s+=e;s>0;r[f++]=255&i,i/=256,s-=8);return r[--f]|=128*h,r}function D(t,e,n){var i,o=8*n-e-1,a=(1<<o)-1,r=a>>1,s=o-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=e;s>0;i=256*i+t[l],l--,s-=8);if(0===u)u=1-r;else{if(u===a)return i?NaN:c?-L:L;i+=S(2,e),u-=r}return(c?-1:1)*i*S(2,u-e)}function Z(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function H(t){return[255&t,t>>8&255]}function q(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function U(t){return F(t,52,8)}function G(t){return F(t,23,4)}function W(t,e,n){m(t.prototype,e,{get:function(){return this[n]}})}function V(t,e,n,i){var o=p(+n);if(o+e>t[B])throw x(w);var a=t[I]._b,r=o+t[N],s=a.slice(r,r+e);return i?s:s.reverse()}function K(t,e,n,i,o,a){var r=p(+n);if(r+e>t[B])throw x(w);for(var s=t[I]._b,l=r+t[N],c=i(+o),u=0;u<e;u++)s[l+u]=c[a?u:e-u-1]}if(r.ABV){if(!c((function(){b(1)}))||!c((function(){new b(-1)}))||c((function(){return new b,new b(1.5),new b(NaN),b.name!=y}))){for(var Y,X=(b=function(t){return u(this,b),new C(p(t))}).prototype=C.prototype,J=d(C),$=0;J.length>$;)(Y=J[$++])in b||s(b,Y,C[Y]);a||(X.constructor=b)}var Q=new k(new b(2)),tt=k.prototype.setInt8;Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||l(k.prototype,{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else b=function(t){u(this,b,y);var e=p(t);this._b=g.call(new Array(e),0),this[B]=e},k=function(t,e,n){u(this,k,v),u(t,b,v);var i=t[B],o=f(e);if(o<0||o>i)throw x("Wrong offset!");if(o+(n=void 0===n?i-o:h(n))>i)throw x("Wrong length!");this[I]=t,this[N]=o,this[B]=n},o&&(W(b,z,"_l"),W(k,j,"_b"),W(k,z,"_l"),W(k,A,"_o")),l(k.prototype,{getInt8:function(t){return V(this,1,t)[0]<<24>>24},getUint8:function(t){return V(this,1,t)[0]},getInt16:function(t){var e=V(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=V(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return Z(V(this,4,t,arguments[1]))},getUint32:function(t){return Z(V(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return D(V(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return D(V(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){K(this,1,t,R,e)},setUint8:function(t,e){K(this,1,t,R,e)},setInt16:function(t,e){K(this,2,t,H,e,arguments[2])},setUint16:function(t,e){K(this,2,t,H,e,arguments[2])},setInt32:function(t,e){K(this,4,t,q,e,arguments[2])},setUint32:function(t,e){K(this,4,t,q,e,arguments[2])},setFloat32:function(t,e){K(this,4,t,G,e,arguments[2])},setFloat64:function(t,e){K(this,8,t,U,e,arguments[2])}});_(b,y),_(k,v),s(k.prototype,r.VIEW,!0),e.ArrayBuffer=b,e.DataView=k},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(150)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";n.r(e),n.d(e,"instanceConfig",(function(){return i}));var i={pl:{apiEndpoint:"https://api-pl-points.easypack24.net/v1",instance:"pl",extendedTypes:[{parcel_locker:{enabled:!0,additional:"parcel_locker_superpop"},pop:{enabled:!0,additional:"parcel_locker_superpop"}}],listItemFormat:["<b>{name}</b>","{address_details.street} {address_details.building_number}"],map:{searchCountry:"Polska"},defaultParams:[{source:"geov4_pl"}]},fr:{apiEndpoint:"https://api-fr-points.easypack24.net/v1",addressFormat:"{building_number} {street}, {post_code} {city}",instance:"fr",defaultParams:[{source:"geov4_fr"}],listItemFormat:["<b>{name}</b>","{address_details.street} {address_details.building_number}, {address_details.post_code} {address_details.city} "],mapType:"google",searchType:"google",map:{searchCountry:"France",googleKey:"AIzaSyBLB2vfXScQHyB7ME_wMAwuXUBZJuavyB4"}},uk:{apiEndpoint:"https://api-uk-points.easypack24.net/v1",instance:"uk",listItemFormat:["<b>{name}</b>","{address_details.street} {address_details.building_number}"],mapType:"google",searchType:"google",map:{searchCountry:"United Kingdom",googleKey:"AIzaSyBLB2vfXScQHyB7ME_wMAwuXUBZJuavyB4",visiblePointsMinZoom:12},defaultParams:[{source:"geov4_uk"}],points:{fields:["name","type","location","address","address_details","functions","location_date","opening_hours","services"]}},ca:{apiEndpoint:"https://api-ca-points.easypack24.net/v1",instance:"ca",listItemFormat:["<b>{name}</b>","{address_details.street} {address_details.building_number}"],defaultParams:[{source:"geov4_ca"}],mapType:"google",searchType:"google",map:{searchCountry:"Canada"}},it:{apiEndpoint:"https://api-it-points.easypack24.net/v1",instance:"it",listItemFormat:["<b>{name}</b>","{address_details.street} {address_details.building_number}"],mapType:"google",searchType:"google",map:{searchCountry:"Italy",googleKey:"AIzaSyBLB2vfXScQHyB7ME_wMAwuXUBZJuavyB4",defaultLocation:[41.898386,12.516985]},defaultParams:[{source:"geov4_it"}],points:{types:["parcel_locker"],fields:["name","type","location","address","address_details","functions","location_date","opening_hours","services"]}}}},function(t,e,n){"use strict";n.r(e),e.default="4.12.8"},function(t,e,n){"use strict";n.r(e),n.d(e,"listWidget",(function(){return c}));var i=n(0),o=n.n(i),a=n(10),r=n(1),s=n(371),l=n.n(s),c=function(t){this.params=t,this.points=[],this.build()},u="point-list";c.prototype={build:function(){return this.listElement=o()("div",{className:l.a["list-widget"]},o()("div",{className:l.a["list-wrapper"]},o()("div",{className:l.a["scroll-box"],id:"scroll-box"},o()("div",{className:l.a.viewport},o()("div",{className:l.a.overview},o()("ul",{id:u}))))))},loading:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?this.listElement.classList.add(l.a["loading-content"]):this.listElement.classList.remove(l.a["loading-content"])},addPoint:function(t,e,n,i){if(!(this.points.length>window.SensbitInpostEasyPackConfig.map.limitPointsOnList||this.points.indexOf(t.name)>=0)){0===this.points.length&&(document.getElementById(u).innerHTML=""),this.points.push(t.name);var s=t.dynamic?t.icon:Object(a.d)(t,i||this.params.currentTypes),c=this,f=window.SensbitInpostEasyPackConfig.listItemFormat[0].replace(/{(.*?)}/g,(function(e,n){return"name"===n?r.d.pointName(t,c.params.currentTypes):n.split(".").reduce((function(t,e){return t[e]}),t)})),h=t.address_details?window.SensbitInpostEasyPackConfig.listItemFormat.filter((function(t,e){return e>0})).map((function(e){return e.replace(/{(.*?)}/g,(function(e,n){return"name"===n?r.d.pointName(t,c.params.currentTypes):null===n.split(".").reduce((function(t,e){return t[e]}),t)?"":n.split(".").reduce((function(t,e){return t[e]}),t)}))+"<br>"})).join(""):t.address.line1+" ",p=o()("li",null,o()("a",{className:l.a["list-point-link"],href:"#".concat(t.name),ref:Object(r.k)((function(t){t.preventDefault(),e()}))},o()("div",{className:l.a["image-wrapper"]},o()((function(){return o()("img",{src:s})}),null)),o()("div",{className:l.a["data-wrapper"]},o()((function(){return o()("div",{className:l.a.title,dangerouslySetInnerHTML:{__html:f}})}),null),o()((function(){return o()("div",{className:l.a.address,dangerouslySetInnerHTML:{__html:h}})}),null))));document.getElementById(u)&&document.getElementById(u).appendChild(p)}},render:function(t){t.appendChild(this.build())},waitingList:function(){if(document.getElementById("point-list")&&(document.getElementById("point-list").style.pointerEvents="none"),document.getElementsByClassName("list-point-link").length)for(var t=document.getElementsByClassName("list-point-link"),e=0;e<t.length;e++)t.item(e).style.cursor="wait"},createNoPointMessage:function(){return this.params.mapController.getZoom()<window.SensbitInpostEasyPackConfig.map.visiblePointsMinZoom?o()("li",null):o()("li",{className:"empty_list"},o()("span",null,Object(r.n)("no_points")))},clear:function(){document.getElementById(u)&&(document.getElementById(u).innerHTML="",this.points=[],document.getElementById(u).appendChild(this.createNoPointMessage()))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"paginatedListWidget",(function(){return c}));var i=n(0),o=n.n(i),a=n(1),r=n(10),s=n(371),l=n.n(s),c=function(t){this.params=t,this.points=[]};c.prototype={build:function(){return this.list=o()("ul",null),this.paginationList=o()("ul",null),this.paginatedList=o()("div",{className:l.a["list-widget"]},o()("div",{className:l.a["list-wrapper"],id:"point-list"},this.list),a.d.hasCustomMapAndListInRow()&&o()("div",{className:l.a["pagination-wrapper"]},this.paginationList)),this.paginatedList},addPoint:function(t,e,n,i){if(!(this.points.length>window.SensbitInpostEasyPackConfig.map.limitPointsOnList||this.points.indexOf(t.name)>=0)){this.points.push(t.name);var s=t.dynamic?t.icon:Object(r.d)(t,i||this.params.currentTypes),c=o()("li",null,o()("div",{className:l.a.row},o()("div",{style:{width:"40px","min-width":"40px","min-height":"49px"}},o()("img",{src:s})),o()("div",{className:l.a["col-point-type"]},a.d.pointType(t,this.params.currentTypes)),o()("div",{className:l.a["col-point-type-name"],dangerouslySetInnerHTML:{__html:a.d.pointType(t,this.params.currentTypes)+"<br/>"+t.name}}),o()("div",{className:l.a["col-city"]},null===t.address_details.city?"":t.address_details.city),o()("div",{className:"".concat(l.a["col-sm"]," ").concat(l.a["col-street"])},this.getAddress(t,["street","building_number"]).replace(",","").replace("<br/>","")),o()("div",{className:"".concat(l.a["col-sm"]," ").concat(l.a["col-address"]),dangerouslySetInnerHTML:{__html:this.getAddress(t,["street","building_number","post_code","city"])}}),o()("div",{className:l.a["col-name"]},t.name),o()("div",{className:l.a["col-actions"]},o()("div",{className:l.a.actions},o()("a",{href:"#".concat(t.name),className:l.a["details-show-on-map"],ref:Object(a.k)(e)},Object(a.n)("show_on_map")),window.SensbitInpostEasyPackConfig.customDetailsCallback&&o()("a",{className:l.a["details-show-more"],href:"#".concat(t.name),ref:Object(a.k)((function(){return window.SensbitInpostEasyPackConfig.customDetailsCallback(t)}))},Object(a.n)("more")+" ➝")))));this.list.appendChild(c)}},getAddress:function(t,e){return window.SensbitInpostEasyPackConfig.addressFormat.replace(/{(.*?)}/g,(function(n,i){if(-1!==e.indexOf(i)){var o,a=n.replace("{","").replace("}","");return void 0!==t.address_details&&(o=null===t.address_details[a]?"":t.address_details[a]),void 0===o&&(o=t[a]),o||""}return""}))},paginate:function(t,e){var n=this.list.getElementsByTagName("li");Math.ceil(n.length/e)<t||0===t?this.clearPagination():(Object.keys(n).forEach((function(i,o){o<e*(t-1)||o>=e*t?n[i].setAttribute("class",l.a.hidden):n[i].setAttribute("class","")})),this.renderPagination(t,e,n))},loading:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?this.paginatedList.classList.add("loading"):this.paginatedList.classList.remove("loading")},renderPagination:function(t,e,n){this.clearPagination();var r=this;if(t=parseInt(t),n.length/e>1){var s=Math.ceil(n.length/e),c=function(n){return o()("li",{className:n.index===t?l.a.current:l.a.pagingItem,ref:Object(a.k)((function(){return r.paginate(n.index,e)}))},n.index)},u=function(){return o()("li",{className:l.a.pagingSeparator},"...")},f=new Array(s).fill(1);this.paginationList.appendChild(o()(i.Fragment,null,o()((function(){return o()("li",{className:"".concat(l.a.pagingPrev," ").concat(1===t?l.a.disabled:""),ref:Object(a.k)((function(){1<t&&r.paginate(t-1,e)}))},Object(a.n)("prev"))}),null),o()((function(){return s<5?f.map((function(t,e){return o()(c,{index:e+1})})):f.map((function(e,n){var a=n+1;return function(e){return e>t-2&&e<t+2||t<=4&&e<=4||e>=s-4&&t>=s-4}(a)?o()(c,{index:n+1}):1===a?o()(i.Fragment,null,o()(c,{index:a}),o()(u,null)):a===s?o()(i.Fragment,null,o()(u,null),o()(c,{index:a})):void 0}))}),null),o()((function(){return o()("li",{className:"".concat(l.a.pagingNext," ").concat(s===t?l.a.disabled:""),ref:Object(a.k)((function(){s!==t&&r.paginate(t+1,e)}))},Object(a.n)("next"))}),null)))}},createNoPointMessage:function(){return o()("li",{className:"empty_list"},o()("span",null,Object(a.n)("no_points")))},waitingList:function(){if(document.getElementById("point-list")&&(document.getElementById("point-list").style.pointerEvents="none"),document.querySelectorAll(".list-wrapper ul li").length)for(var t=document.querySelectorAll(".list-wrapper ul li"),e=0;e<t.length;e++)t.item(e).style.cursor="wait"},render:function(t){t.appendChild(this.build())},clear:function(){this.list.innerHTML="",this.points=[]},clearPagination:function(){this.paginationList.innerHTML="",this.points=[],this.paginatedList.appendChild(this.createNoPointMessage())}}},function(t,e,n){"use strict";n.r(e),n.d(e,"viewChooser",(function(){return l}));var i=n(1),o=n(0),a=n.n(o),r=n(371),s=n.n(r),l=function(t){this.params=t,this.params.style.sheet.insertRule(".".concat(s.a["easypack-widget"]," .").concat(s.a["view-chooser"]," .").concat(s.a["map-btn"]," { background: url(").concat(window.SensbitInpostEasyPackConfig.map.mapIcon,") no-repeat left; }"),0),this.params.style.sheet.insertRule(".".concat(s.a["easypack-widget"]," .").concat(s.a["view-chooser"]," .").concat(s.a["list-btn"]," { background: url(").concat(window.SensbitInpostEasyPackConfig.map.listIcon,") no-repeat left; }"),0),this.build()};l.prototype={build:function(){var t=this;this.mapButton=a()("div",{className:"".concat(s.a.btn," ").concat(s.a["map-btn"])},Object(i.n)("map")),this.mapWrapper=a()("div",{className:s.a["map-wrapper"],"data-active":!0,ref:Object(i.k)((function(){switch(t.listWrapper.setAttribute("data-active","false"),this.setAttribute("data-active","true"),window.SensbitInpostEasyPackConfig.mapType){case"google":t.params.mapElement.style.display="block";break;default:t.params.leafletMap.style.visibility="visible"}t.params.list.listElement.style.display="none"}))},this.mapButton),this.listButton=a()("div",{className:"".concat(s.a.btn," ").concat(s.a["list-btn"])},Object(i.n)("list")),this.listWrapper=a()("div",{className:s.a["list-wrapper"],ref:Object(i.k)((function(){switch(t.mapWrapper.setAttribute("data-active","false"),t.listWrapper.setAttribute("data-active","true"),window.SensbitInpostEasyPackConfig.mapType){case"google":t.params.mapElement.style.display="none";break;default:t.params.leafletMap.style.visibility="hidden"}document.querySelector(".list-widget").style.visibility="visible",t.params.list.listElement.style.display="flex"}))},this.listButton),this.wrapper=a()("div",{className:s.a["view-chooser"]},this.mapWrapper,this.listWrapper)},resetState:function(){switch(this.listWrapper.dataset.active="false",this.mapWrapper.dataset.active="true",window.SensbitInpostEasyPackConfig.mapType){case"google":this.params.mapElement.style.display="block";break;default:this.params.leafletMap.style.visibility="visible"}document.innerWidth<=768&&(this.params.list.listElement.style.display="none")},render:function(t){t.appendChild(this.wrapper)},rerender:function(){this.mapButton.innerHTML=Object(i.n)("map"),this.listButton.innerHTML=Object(i.n)("list")}}},function(t,e,n){"use strict";n.r(e),n.d(e,"statusBar",(function(){return l}));var i=n(1),o=n(0),a=n.n(o),r=n(371),s=n.n(r),l=function(t){this.widget=t,this.build()};l.prototype={build:function(){this.statusElement=a()("div",{className:"status-bar"},a()("span",{className:s.a["current-status"]},Object(i.n)("loading")),a()("div",{className:"loader-inner ball-spin-fade-loader ball-spin-fade-loader-mp hidden"},a()("div",null),a()("div",null),a()("div",null),a()("div",null),a()("div",null),a()("div",null),a()("div",null),a()("div",null)))},render:function(t){t.appendChild(this.statusElement)},clear:function(){this.statusElement.className="".concat(s.a["status-bar"]),this.statusElement.childNodes[0].innerHTML=Object(i.n)("loading"),this.statusElement.childNodes[1].classList.remove("hidden")},hide:function(){this.statusElement.className="".concat(s.a["status-bar--hidden"]," ")},showInfoAboutZoom:function(){this.statusElement.className="".concat(s.a["status-bar"]),this.statusElement.childNodes[0].innerHTML=Object(i.n)("zoom_in_to_see_points"),this.statusElement.childNodes[1].classList.add("hidden")},showInfoAboutNoPoints:function(){this.statusElement.className="".concat(s.a["status-bar"]," ").concat(s.a["no-points"]),this.statusElement.childNodes[0].innerHTML=Object(i.n)("no_points"),this.statusElement.childNodes[1].classList.add("hidden")},update:function(t,e){0!==t&&t<=e&&(this.statusElement.className=s.a["status-bar"],this.statusElement.childNodes[0].innerHTML=t+" "+Object(i.n)("of")+" "+e+" "+Object(i.n)("points_loaded"))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"languageBar",(function(){return l}));var i=n(0),o=n.n(i),a=n(1),r=n(371),s=n.n(r),l=function(t,e,n){this.widget=t,this.module=e,this.placeholder=n,this.build()};l.prototype={build:function(){var t=this,e=[];if(void 0!==window.SensbitInpostEasyPackUserConfig.languages)for(var n=0,i=window.SensbitInpostEasyPackUserConfig.languages.length;n<i;n++)e.push(window.SensbitInpostEasyPackUserConfig.languages[n]);else for(var r in window.SensbitInpostEasyPackLocales)window.SensbitInpostEasyPackLocales.hasOwnProperty(r)&&"pl-PL"!==r&&e.push(r);return o()("div",{className:s.a["language-bar"]},o()("span",{className:s.a["current-status"]},o()("select",{id:"langeSelect",ref:Object(a.j)((function(){window.SensbitInpostEasyPackConfig.defaultLocale=this.value,window.SensbitInpostEasyPackConfig.locale=this.value,window.SensbitInpostEasyPackUserConfig.locale=this.value,t.module.init(window.SensbitInpostEasyPackUserConfig,!0),t.widget.refreshPoints(),document.getElementsByClassName("info-box-wrapper").length>0&&t.widget.infoWindow.rerender(),t.widget.searchObj&&t.widget.searchObj.rerender(),t.widget.typesFilterObj&&t.widget.typesFilterObj.rerender(),t.widget.viewChooserObj.rerender(),null!==t.widget.detailsObj&&t.widget.detailsObj.rerender(),t.module.mapController.reRenderPopup()}))},o()((function(){return e.map((function(t){return o()("option",{value:t},t.toUpperCase())}))}),null))))},render:function(t){t.appendChild(this.build())}}},function(t,e,n){"use strict";n.r(e),n.d(e,"infoWindow",(function(){return f}));var i=n(4),o=n.n(i),a=n(0),r=n.n(a),s=n(1),l=n(46),c=n(371),u=n.n(c),f=function(t,e,n,i,o,a,r){this.params=e,this.marker=t,this.map=e.map,this.popUpCallback=o,this.placeholder=e.placeholder,this.placeholderId=e.placeholderId,this.style=e.style,this.closeInfoBox=e.closeInfoBox,this.setPointDetails=e.setPointDetails,this.initialLocation=e.initialLocation,this.pointDetails=e.pointDetails,this.infoBoxObj=null,this.widget=a,this.response=i,this.isMobile=r,this.prepareContent(i);var l={content:this.windowElement,disableAutoPan:!1,maxWidth:160,boxStyle:{width:"200px"},pixelOffset:Object(s.e)()?new google.maps.Size(-170,-16):{height:0,width:0},zIndex:null,closeBoxMargin:"0px",closeBoxURL:SensbitInpostEasyPackConfig.map.closeIcon,infoBoxClearance:Object(s.e)()?new google.maps.Size(1,1):{height:0,width:0},isHidden:!1,pane:"floatPane",enableEventPropagation:!1,alignBottom:!0,boxClass:u.a["info-box-wrapper"]};return this.options=s.d.merge(l,n),this};f.prototype={open:function(){var t=this;t.widget.infoWindow=this,void 0!==this.params.infoBox&&this.params.infoBox.close(),this.infoBoxObj=new InfoBox(this.options),this.params.setInfoBox(this.infoBoxObj),this.infoBoxObj.open(this.map,this.marker),this.infoBoxObj.addListener("closeclick",(function(e){t.params.clearDetails(),t.params.setPointDetails(null)})),o()((function(){document.querySelector("div."+u.a["info-box-wrapper"]).querySelector("img").addEventListener("touchstart",(function(){t.close()}))}),250)},close:function(){this.infoBoxObj.close(),document.getElementById("widget-modal")&&null!==document.getElementById("widget-modal").parentNode&&(document.getElementById("widget-modal").parentNode.style.display="none")},prepareContent:function(t){var e,n=this,i=this.initialLocation?this.initialLocation:window.SensbitInpostEasyPackConfig.defaultLocation,o=window.SensbitInpostEasyPackConfig.points.showPoints&&window.SensbitInpostEasyPackConfig.points.showPoints.length>0,a=window.SensbitInpostEasyPackConfig.hideSelect;this.windowElement=null,this.windowElement=r()("div",{className:u.a["info-window"]},r()("div",{className:u.a.content},r()("div",{className:"point-wrapper"},r()("h1",null,Object(s.n)("pok"===t.type[0].toLowerCase()||"pop"===t.type[0].toLowerCase()?"parcel_locker_superpop":t.type[0].toLowerCase())),r()("p",null,t.name),r()("p",{className:"mobile-details-content address",dangerouslySetInnerHTML:{__html:(e="",window.SensbitInpostEasyPackConfig.descriptionInWindow&&t.location_description&&(e+=t.location_description+"<br />"),e+=window.SensbitInpostEasyPackConfig.addressFormat.replace(/{(.*?)}/g,(function(e,n){return t.address_details[n]||t[n]||""})))}}),t.opening_hours&&1==!t.location_247?r()("p",{className:"".concat(u.a["opening-hours-label"]),style:{paddingTop:"10px"}},Object(s.n)("openingHours")+":"):r()("p",null),t.opening_hours&&1==!t.location_247?r()("p",{className:"mobile-details-content"}," ",t.opening_hours):r()("p",null),void 0===t.location_247||!0!==t.location_247||!t.type.includes("parcel_locker")||t.type.includes("pop")||t.type.includes("parcel_locker_superpop")?r()("p",null):r()("p",{className:"mobile-details-content address"},Object(s.n)("parcel_247")),void 0!==t.location_247&&!0===t.location_247&&t.type.includes("pop")?r()("p",{className:"mobile-details-content address"},Object(s.n)("pop_247")):r()("p",null),void 0!==t.location_247&&!1===t.location_247?r()("p",{className:"mobile-details-content address"},Object(s.n)("no_247_info")):r()("p",null)),t.apm_doubled&&t.apm_doubled.length>0?r()("div",{className:"apm_doubled"},r()("p",{className:""},Object(s.n)("double_apm_info")),r()("span",null,t.apm_doubled&&t.apm_doubled.split(";").join(", "))):r()("p",null),r()("div",{className:"links"},r()("a",{className:"route-link",target:"_new",href:s.d.routeLink(i,t.location)},Object(s.n)("plan_route")),r()("a",{className:"details-link",ref:Object(s.k)((function(e){e.preventDefault(),n.pointDetails=new l.a(n.marker,{setPointDetails:n.setPointDetails,pointDetails:n.pointDetails,closeInfoBox:n.closeInfoBox,style:n.style,map:n.map,placeholder:n.placeholder,initialLocation:n.initialLocation,isMobile:n.params.isMobile,widget:n.widget},t),n.widget.detailsObj=n.pointDetails,n.pointDetails.render()}))},Object(s.n)("details")),o||a?r()("a",{className:"d-none"}):r()("a",{className:"select-link",ref:Object(s.k)((function(e){e.preventDefault(),n.popUpCallback(t),n.close()}))},Object(s.n)("select")))))},rerender:function(){this.close(),this.prepareContent(this.response),this.options.content=this.windowElement,this.open()}}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var i=n(113),o=n(165),a=n(166),r=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?o(t):a(t)}},function(t,e,n){var i=n(74).Symbol;t.exports=i},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(61),o=n(172),a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):r.test(t)?NaN:+t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));class i{constructor(t=null,e={}){if(this.apiKey=t,this.options=e,"undefined"==typeof window)throw new Error("google-maps is supported only in browser environment")}load(){return void 0!==this.api?Promise.resolve(this.api):void 0!==this.loader?this.loader:(window[i.CALLBACK_NAME]=()=>{if(this.api=window.google,void 0===this.resolve)throw new Error("Should not happen");this.resolve(this.api)},window.gm_authFailure=()=>{if(void 0===this.reject)throw new Error("Should not happen");this.reject(new Error("google-maps: authentication error"))},this.loader=new Promise((t,e)=>{this.resolve=t,this.reject=e;const n=document.createElement("script");n.src=this.createUrl(),n.async=!0,n.onerror=t=>e(t),document.head.appendChild(n)}))}createUrl(){const t=["callback="+i.CALLBACK_NAME];this.apiKey&&t.push("key="+this.apiKey);for(let e in this.options)if(this.options.hasOwnProperty(e)){let n=this.options[e];"version"===e&&(e="v"),"libraries"===e&&(n=n.join(",")),t.push(`${e}=${n}`)}return"https://maps.googleapis.com/maps/api/js?"+t.join("&")}}i.CALLBACK_NAME="_dk_google_maps_loader_cb"},function(t,e){},function(t,e,n){t.exports=!n(13)&&!n(6)((function(){return 7!=Object.defineProperty(n(75)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(5),o=n(12),a=n(38),r=n(76),s=n(14).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:r.f(t)})}},function(t,e,n){var i=n(20),o=n(22),a=n(63)(!1),r=n(77)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=r&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var i=n(14),o=n(7),a=n(39);t.exports=n(13)?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),s=r.length,l=0;s>l;)i.f(t,n=r[l++],e[n]);return t}},function(t,e,n){var i=n(22),o=n(42).f,a={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return r&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return r.slice()}}(t):o(i(t))}},function(t,e,n){"use strict";var i=n(13),o=n(39),a=n(64),r=n(57),s=n(17),l=n(56),c=Object.assign;t.exports=!c||n(6)((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,f=a.f,h=r.f;c>u;)for(var p,d=l(arguments[u++]),m=f?o(d).concat(f(d)):o(d),g=m.length,_=0;g>_;)p=m[_++],i&&!h.call(d,p)||(n[p]=d[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var i=n(25),o=n(8),a=n(126),r=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var i=[],o=0;o<e;o++)i[o]="a["+o+"]";s[e]=Function("F,a","return new F("+i.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=r.call(arguments,1),s=function(){var i=n.concat(r.call(arguments));return this instanceof s?l(e,i.length,i):a(e,i,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var i=n(5).parseInt,o=n(49).trim,a=n(81),r=/^[-+]?0[xX]/;t.exports=8!==i(a+"08")||22!==i(a+"0x16")?function(t,e){var n=o(String(t),3);return i(n,e>>>0||(r.test(n)?16:10))}:i},function(t,e,n){var i=n(5).parseFloat,o=n(49).trim;t.exports=1/i(n(81)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},function(t,e,n){var i=n(30);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=i(t))throw TypeError(e);return+t}},function(t,e,n){var i=n(8),o=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var i=n(41),o=n(36),a=n(48),r={};n(21)(r,n(9)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(r,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var i=n(7);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&i(a.call(t)),e}}},function(t,e,n){var i=n(277);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){var i=n(25),o=n(17),a=n(56),r=n(11);t.exports=function(t,e,n,s,l){i(e);var c=o(t),u=a(c),f=r(c.length),h=l?f-1:0,p=l?-1:1;if(n<2)for(;;){if(h in u){s=u[h],h+=p;break}if(h+=p,l?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;l?h>=0:f>h;h+=p)h in u&&(s=e(s,u[h],h,c));return s}},function(t,e,n){"use strict";var i=n(17),o=n(40),a=n(11);t.exports=[].copyWithin||function(t,e){var n=i(this),r=a(n.length),s=o(t,r),l=o(e,r),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?r:o(c,r))-l,r-s),f=1;for(l<s&&s<l+u&&(f=-1,l+=u-1,s+=u-1);u-->0;)l in n?n[s]=n[l]:delete n[s],s+=f,l+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var i=n(96);n(2)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(t,e,n){n(13)&&"g"!=/./g.flags&&n(14).f(RegExp.prototype,"flags",{configurable:!0,get:n(67)})},function(t,e,n){"use strict";var i,o,a,r,s=n(38),l=n(5),c=n(24),u=n(58),f=n(2),h=n(8),p=n(25),d=n(52),m=n(70),g=n(59),_=n(98).set,y=n(297)(),v=n(141),w=n(298),b=n(71),k=n(142),P="Promise",x=l.TypeError,L=l.process,C=L&&L.versions,O=C&&C.v8||"",S=l.Promise,M="process"==u(L),T=function(){},E=o=v.f,j=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(9)("species")]=function(t){t(T,T)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==O.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),z=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var i=t._v,o=1==t._s,a=0,r=function(e){var n,a,r,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(o||(2==t._h&&N(t),t._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),r=!0)),n===e.promise?c(x("Promise-chain cycle")):(a=z(n))?a.call(n,l,c):l(n)):c(i)}catch(t){u&&!r&&u.exit(),c(t)}};n.length>a;)r(n[a++]);t._c=[],t._n=!1,e&&!t._h&&I(t)}))}},I=function(t){_.call(l,(function(){var e,n,i,o=t._v,a=B(t);if(a&&(e=w((function(){M?L.emit("unhandledRejection",o,t):(n=l.onunhandledrejection)?n({promise:t,reason:o}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",o)})),t._h=M||B(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){_.call(l,(function(){var e;M?L.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=z(t))?y((function(){var i={_w:n,_d:!1};try{e.call(t,c(D,i,1),c(F,i,1))}catch(t){F.call(i,t)}})):(n._v=t,n._s=1,A(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};j||(S=function(t){d(this,S,P,"_h"),p(t),i.call(this);try{t(c(D,this,1),c(F,this,1))}catch(t){F.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(53)(S.prototype,{then:function(t,e){var n=E(g(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=M?L.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=c(D,t,1),this.reject=c(F,t,1)},v.f=E=function(t){return t===S||t===r?new a(t):o(t)}),f(f.G+f.W+f.F*!j,{Promise:S}),n(48)(S,P),n(51)(P),r=n(12).Promise,f(f.S+f.F*!j,P,{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!j),P,{resolve:function(t){return k(s&&this===r?S:this,t)}}),f(f.S+f.F*!(j&&n(66)((function(t){S.all(t).catch(T)}))),P,{all:function(t){var e=this,n=E(e),i=n.resolve,o=n.reject,a=w((function(){var n=[],a=0,r=1;m(t,!1,(function(t){var s=a++,l=!1;n.push(void 0),r++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--r||i(n))}),o)})),--r||i(n)}));return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=E(e),i=n.reject,o=w((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return o.e&&i(o.v),n.promise}})},function(t,e,n){"use strict";var i=n(25);function o(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var i=n(7),o=n(8),a=n(141);t.exports=function(t,e){if(i(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var i=n(14).f,o=n(41),a=n(53),r=n(24),s=n(52),l=n(70),c=n(87),u=n(137),f=n(51),h=n(13),p=n(35).fastKey,d=n(45),m=h?"_s":"size",g=function(t,e){var n,i=p(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,i){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[m]=0,null!=i&&l(i,n,t[c],t)}));return a(u.prototype,{clear:function(){for(var t=d(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=d(this,e),i=g(n,t);if(i){var o=i.n,a=i.p;delete n._i[i.i],i.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==i&&(n._f=o),n._l==i&&(n._l=a),n[m]--}return!!i},forEach:function(t){d(this,e);for(var n,i=r(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(d(this,e),t)}}),h&&i(u.prototype,"size",{get:function(){return d(this,e)[m]}}),u},def:function(t,e,n){var i,o,a=g(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=a),i&&(i.n=a),t[m]++,"F"!==o&&(t._i[o]=a)),t},getEntry:g,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=d(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?u(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,u(1))}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var i=n(53),o=n(35).getWeak,a=n(7),r=n(8),s=n(52),l=n(70),c=n(29),u=n(20),f=n(45),h=c(5),p=c(6),d=0,m=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},_=function(t,e){return h(t.a,(function(t){return t[0]===e}))};g.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var n=_(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t((function(t,i){s(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=i&&l(i,n,t[a],t)}));return i(c.prototype,{delete:function(t){if(!r(t))return!1;var n=o(t);return!0===n?m(f(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!r(t))return!1;var n=o(t);return!0===n?m(f(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var i=o(a(e),!0);return!0===i?m(t).set(e,n):i[t._i]=n,t},ufstore:m}},function(t,e,n){var i=n(26),o=n(11);t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var i=n(42),o=n(64),a=n(7),r=n(5).Reflect;t.exports=r&&r.ownKeys||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var i=n(11),o=n(83),a=n(31);t.exports=function(t,e,n,r){var s=String(a(t)),l=s.length,c=void 0===n?" ":String(n),u=i(e);if(u<=l||""==c)return s;var f=u-l,h=o.call(c,Math.ceil(f/c.length));return h.length>f&&(h=h.slice(0,f)),r?h+s:s+h}},function(t,e,n){var i=n(13),o=n(39),a=n(22),r=n(57).f;t.exports=function(t){return function(e){for(var n,s=a(e),l=o(s),c=l.length,u=0,f=[];c>u;)n=l[u++],i&&!r.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){!function(t){"use strict";var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,n=this._zoom;if(t.__parent)for(;e.__parent._zoom>=n;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t}),this):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t}),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var n,i=this._featureGroup,o=this._nonPointGroup,a=this.options.chunkedLoading,r=this.options.chunkInterval,s=this.options.chunkProgress,l=t.length,c=0,u=!0;if(this._map){var f=(new Date).getTime(),h=L.bind((function(){for(var p=(new Date).getTime();c<l&&!(a&&c%200==0&&(new Date).getTime()-p>r);c++)if((n=t[c])instanceof L.LayerGroup)u&&(t=t.slice(),u=!1),this._extractNonGroupLayers(n,t),l=t.length;else if(n.getLatLng){if(!this.hasLayer(n)&&(this._addLayer(n,this._maxZoom),e||this.fire("layeradd",{layer:n}),n.__parent&&2===n.__parent.getChildCount())){var d=n.__parent.getAllChildMarkers(),m=d[0]===n?d[1]:d[0];i.removeLayer(m)}}else o.addLayer(n),e||this.fire("layeradd",{layer:n});s&&s(c,l,(new Date).getTime()-f),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(h,this.options.chunkDelay)}),this);h()}else for(var p=this._needsClustering;c<l;c++)(n=t[c])instanceof L.LayerGroup?(u&&(t=t.slice(),u=!1),this._extractNonGroupLayers(n,t),l=t.length):n.getLatLng?this.hasLayer(n)||p.push(n):o.addLayer(n);return this},removeLayers:function(t){var e,n,i=t.length,o=this._featureGroup,a=this._nonPointGroup,r=!0;if(!this._map){for(e=0;e<i;e++)(n=t[e])instanceof L.LayerGroup?(r&&(t=t.slice(),r=!1),this._extractNonGroupLayers(n,t),i=t.length):(this._arraySplice(this._needsClustering,n),a.removeLayer(n),this.hasLayer(n)&&this._needsRemoving.push({layer:n,latlng:n._latlng}),this.fire("layerremove",{layer:n}));return this}if(this._unspiderfy){this._unspiderfy();var s=t.slice(),l=i;for(e=0;e<l;e++)(n=s[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(n,s),l=s.length):this._unspiderfyLayer(n)}for(e=0;e<i;e++)(n=t[e])instanceof L.LayerGroup?(r&&(t=t.slice(),r=!1),this._extractNonGroupLayers(n,t),i=t.length):n.__parent?(this._removeLayer(n,!0,!0),this.fire("layerremove",{layer:n}),o.hasLayer(n)&&(o.removeLayer(n),n.clusterShow&&n.clusterShow())):(a.removeLayer(n),this.fire("layerremove",{layer:n}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;e>=0;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var n,i,o,a=this._needsClustering.slice(),r=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(a),i=a.length-1;i>=0;i--){for(n=!0,o=r.length-1;o>=0;o--)if(r[o].layer===a[i]){n=!1;break}n&&t.call(e,a[i])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(n){L.stamp(n)===t&&(e=n)})),e},hasLayer:function(t){if(!t)return!1;var e,n=this._needsClustering;for(e=n.length-1;e>=0;e--)if(n[e]===t)return!0;for(e=(n=this._needsRemoving).length-1;e>=0;e--)if(n[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){"function"!=typeof e&&(e=function(){});var n=function(){!t._icon&&!t.__parent._icon||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,this),t._icon?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",n,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",n,this),this.on("animationend",n,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,n,i;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,n=this._needsRemoving.length;e<n;e++)(i=this._needsRemoving[e]).newlatlng=i.layer._latlng,i.layer._latlng=i.latlng;for(e=0,n=this._needsRemoving.length;e<n;e++)i=this._needsRemoving[e],this._removeLayer(i.layer,!0),i.layer._latlng=i.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),n=this._needsClustering,this._needsClustering=[],this.addLayers(n,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var n=t.length-1;n>=0;n--)if(t[n]===e)return t.splice(n,1),!0},_removeFromGridUnclustered:function(t,e){for(var n=this._map,i=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());e>=o&&i[e].removeObject(t,n.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,n){t._latlng=e,this.removeLayer(t),t._latlng=n,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,n){var i=this._gridClusters,o=this._gridUnclustered,a=this._featureGroup,r=this._map,s=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,u=c._markers;for(this._arraySplice(u,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<s));)e&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],i[c._zoom].removeObject(c,r.project(c._cLatLng,c._zoom)),o[c._zoom].addObject(l,r.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(a.removeLayer(c),n||a.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,n){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,n)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),n=" marker-cluster-";return n+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+n,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,n=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick;(e||i)&&this.on("clusterclick",this._zoomOrSpiderfy,this),n&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){for(var e=t.layer,n=e;1===n._childClusters.length;)n=n._childClusters[0];n._zoom===this._maxZoom&&n._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,i=this._map;(t||n)&&this.off("clusterclick",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),i.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),n=this.options.maxClusterRadius,i=n;"function"!=typeof n&&(i=function(){return n}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var o=t;o>=e;o--)this._gridClusters[o]=new L.DistanceGrid(i(o)),this._gridUnclustered[o]=new L.DistanceGrid(i(o));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var n,i,o=this._gridClusters,a=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);e>=r;e--){n=this._map.project(t.getLatLng(),e);var s=o[e].getNearObject(n);if(s)return s._addChild(t),void(t.__parent=s);if(s=a[e].getNearObject(n)){var l=s.__parent;l&&this._removeLayer(s,!1);var c=new this._markerCluster(this,e,s,t);o[e].addObject(c,this._map.project(c._cLatLng,e)),s.__parent=c,t.__parent=c;var u=c;for(i=e-1;i>l._zoom;i--)u=new this._markerCluster(this,i,u),o[i].addObject(u,this._map.project(s.getLatLng(),i));return l._addChild(u),void this._removeFromGridUnclustered(s,e)}a[e].addObject(t,n)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var n=e.getAllChildMarkers();this._featureGroup.removeLayer(n[0]),this._featureGroup.removeLayer(n[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var n,i=t.getLayers(),o=0;for(e=e||[];o<i.length;o++)(n=i[o])instanceof L.LayerGroup?this._extractNonGroupLayers(n,e):e.push(n);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var n,i=this._getExpandedVisibleBounds(),o=this._featureGroup,a=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(i,t,a,(function(a){var r,s=a._latlng,l=a._markers;for(i.contains(s)||(s=null),a._isSingleParent()&&t+1===e?(o.removeLayer(a),a._recursivelyAddChildrenToMap(null,e,i)):(a.clusterHide(),a._recursivelyAddChildrenToMap(s,e,i)),n=l.length-1;n>=0;n--)r=l[n],i.contains(r._latlng)||o.removeLayer(r)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(i,e),o.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(i,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(i,t,a,(function(t){o.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var n=this,i=this._featureGroup;i.addLayer(t),e!==t&&(e._childCount>2?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){i.removeLayer(t),t.clusterShow(),n._animationEnd()}))):(this._forceLayout(),n._animationStart(),n._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,n){var i=this._getExpandedVisibleBounds(),o=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(i,o,e+1,n);var a=this;this._forceLayout(),t._recursivelyBecomeVisible(i,n),this._enqueue((function(){if(1===t._childCount){var r=t._markers[0];this._ignoreMove=!0,r.setLatLng(r.getLatLng()),this._ignoreMove=!1,r.clusterShow&&r.clusterShow()}else t._recursively(i,n,o,(function(t){t._recursivelyRemoveChildrenFromMap(i,o,e+1)}));a._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var n=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,n,i){L.Marker.prototype.initialize.call(this,n?n._cLatLng||n.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,n&&this._addChild(n),i&&this._addChild(i)},getAllChildMarkers:function(t,e){t=t||[];for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n].getAllChildMarkers(t);for(var i=this._markers.length-1;i>=0;i--)e&&this._markers[i].__dragStart||t.push(this._markers[i]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,n=this._childClusters.slice(),i=this._group._map,o=i.getBoundsZoom(this._bounds),a=this._zoom+1,r=i.getZoom();n.length>0&&o>a;){a++;var s=[];for(e=0;e<n.length;e++)s=s.concat(n[e]._childClusters);n=s}o>a?this._group._map.setView(this._latlng,a):o<=r?this._group._map.setView(this._latlng,r+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,n,i,o=this._markers,a=this._childClusters,r=0,s=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<o.length;t++)n=o[t]._latlng,this._bounds.extend(n),r+=n.lat,s+=n.lng;for(t=0;t<a.length;t++)(e=a[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),n=e._wLatLng,i=e._childCount,r+=n.lat*i,s+=n.lng*i;this._latlng=this._wLatLng=new L.LatLng(r/l,s/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,n){this._recursively(t,this._group._map.getMinZoom(),n-1,(function(t){var n,i,o=t._markers;for(n=o.length-1;n>=0;n--)(i=o[n])._icon&&(i._setPos(e),i.clusterHide())}),(function(t){var n,i,o=t._childClusters;for(n=o.length-1;n>=0;n--)(i=o[n])._icon&&(i._setPos(e),i.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,n,i){this._recursively(t,i,e,(function(o){o._recursivelyAnimateChildrenIn(t,o._group._map.latLngToLayerPoint(o.getLatLng()).round(),n),o._isSingleParent()&&n-1===i?(o.clusterShow(),o._recursivelyRemoveChildrenFromMap(t,e,n)):o.clusterHide(),o._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,n){this._recursively(n,this._group._map.getMinZoom()-1,e,(function(i){if(e!==i._zoom)for(var o=i._markers.length-1;o>=0;o--){var a=i._markers[o];n.contains(a._latlng)&&(t&&(a._backupLatlng=a.getLatLng(),a.setLatLng(t),a.clusterHide&&a.clusterHide()),i._group._featureGroup.addLayer(a))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var n=this._markers[e];n._backupLatlng&&(n.setLatLng(n._backupLatlng),delete n._backupLatlng)}if(t-1===this._zoom)for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i]._restorePosition();else for(var o=this._childClusters.length-1;o>=0;o--)this._childClusters[o]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,n,i){var o,a;this._recursively(t,e-1,n-1,(function(t){for(a=t._markers.length-1;a>=0;a--)o=t._markers[a],i&&i.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}),(function(t){for(a=t._childClusters.length-1;a>=0;a--)o=t._childClusters[a],i&&i.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}))},_recursively:function(t,e,n,i,o){var a,r,s=this._childClusters,l=this._zoom;if(e<=l&&(i&&i(this),o&&l===n&&o(this)),l<e||l<n)for(a=s.length-1;a>=0;a--)(r=s[a])._boundsNeedUpdate&&r._recalculateBounds(),t.intersects(r._bounds)&&r._recursively(t,e,n,i,o)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var n=this._getCoord(e.x),i=this._getCoord(e.y),o=this._grid,a=o[i]=o[i]||{},r=a[n]=a[n]||[],s=L.Util.stamp(t);this._objectPoint[s]=e,r.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var n,i,o=this._getCoord(e.x),a=this._getCoord(e.y),r=this._grid,s=r[a]=r[a]||{},l=s[o]=s[o]||[];for(delete this._objectPoint[L.Util.stamp(t)],n=0,i=l.length;n<i;n++)if(l[n]===t)return l.splice(n,1),1===i&&delete s[o],!0},eachObject:function(t,e){var n,i,o,a,r,s,l=this._grid;for(n in l)for(i in r=l[n])for(o=0,a=(s=r[i]).length;o<a;o++)t.call(e,s[o])&&(o--,a--)},getNearObject:function(t){var e,n,i,o,a,r,s,l,c=this._getCoord(t.x),u=this._getCoord(t.y),f=this._objectPoint,h=this._sqCellSize,p=null;for(e=u-1;e<=u+1;e++)if(o=this._grid[e])for(n=c-1;n<=c+1;n++)if(a=o[n])for(i=0,r=a.length;i<r;i++)s=a[i],((l=this._sqDist(f[L.Util.stamp(s)],t))<h||l<=h&&null===p)&&(h=l,p=s);return p},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}},L.QuickHull={getDistant:function(t,e){var n=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+n*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var n,i,o,a=0,r=null,s=[];for(n=e.length-1;n>=0;n--)i=e[n],(o=this.getDistant(i,t))>0&&(s.push(i),o>a&&(a=o,r=i));return{maxPoint:r,newPoints:s}},buildConvexHull:function(t,e){var n=[],i=this.findMostDistantPointFromBaseLine(t,e);return i.maxPoint?n=(n=n.concat(this.buildConvexHull([t[0],i.maxPoint],i.newPoints))).concat(this.buildConvexHull([i.maxPoint,t[1]],i.newPoints)):[t[0]]},getConvexHull:function(t){var e,n=!1,i=!1,o=!1,a=!1,r=null,s=null,l=null,c=null,u=null,f=null;for(e=t.length-1;e>=0;e--){var h=t[e];(!1===n||h.lat>n)&&(r=h,n=h.lat),(!1===i||h.lat<i)&&(s=h,i=h.lat),(!1===o||h.lng>o)&&(l=h,o=h.lng),(!1===a||h.lng<a)&&(c=h,a=h.lng)}return i!==n?(f=s,u=r):(f=c,u=l),[].concat(this.buildConvexHull([f,u],t),this.buildConvexHull([u,f],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,n=this.getAllChildMarkers(),i=[];for(e=n.length-1;e>=0;e--)t=n[e].getLatLng(),i.push(t);return L.QuickHull.getConvexHull(i)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),n=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,n):(n.y+=10,t=this._generatePointsCircle(e.length,n)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var n,i,o=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,a=this._2PI/t,r=[];for(o=Math.max(o,35),r.length=t,n=0;n<t;n++)i=this._circleStartAngle+n*a,r[n]=new L.Point(e.x+o*Math.cos(i),e.y+o*Math.sin(i))._round();return r},_generatePointsSpiral:function(t,e){var n,i=this._group.options.spiderfyDistanceMultiplier,o=i*this._spiralLengthStart,a=i*this._spiralFootSeparation,r=i*this._spiralLengthFactor*this._2PI,s=0,l=[];for(l.length=t,n=t;n>=0;n--)n<t&&(l[n]=new L.Point(e.x+o*Math.cos(s),e.y+o*Math.sin(s))._round()),o+=r/(s+=a/o+5e-4*n);return l},_noanimationUnspiderfy:function(){var t,e,n=this._group,i=n._map,o=n._featureGroup,a=this.getAllChildMarkers(null,!0);for(n._ignoreMove=!0,this.setOpacity(1),e=a.length-1;e>=0;e--)t=a[e],o.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(i.removeLayer(t._spiderLeg),delete t._spiderLeg);n.fire("unspiderfied",{cluster:this,markers:a}),n._ignoreMove=!1,n._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var n,i,o,a,r=this._group,s=r._map,l=r._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(r._ignoreMove=!0,n=0;n<t.length;n++)a=s.layerPointToLatLng(e[n]),i=t[n],o=new L.Polyline([this._latlng,a],c),s.addLayer(o),i._spiderLeg=o,i._preSpiderfyLatlng=i._latlng,i.setLatLng(a),i.setZIndexOffset&&i.setZIndexOffset(1e6),l.addLayer(i);this.setOpacity(.3),r._ignoreMove=!1,r.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var n,i,o,a,r,s,l=this,c=this._group,u=c._map,f=c._featureGroup,h=this._latlng,p=u.latLngToLayerPoint(h),d=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),d?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,n=0;n<t.length;n++)i=t[n],s=u.layerPointToLatLng(e[n]),o=new L.Polyline([h,s],m),u.addLayer(o),i._spiderLeg=o,d&&(r=(a=o._path).getTotalLength()+.1,a.style.strokeDasharray=r,a.style.strokeDashoffset=r),i.setZIndexOffset&&i.setZIndexOffset(1e6),i.clusterHide&&i.clusterHide(),f.addLayer(i),i._setPos&&i._setPos(p);for(c._forceLayout(),c._animationStart(),n=t.length-1;n>=0;n--)s=u.layerPointToLatLng(e[n]),(i=t[n])._preSpiderfyLatlng=i._latlng,i.setLatLng(s),i.clusterShow&&i.clusterShow(),d&&((a=(o=i._spiderLeg)._path).style.strokeDashoffset=0,o.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var e,n,i,o,a,r,s=this,l=this._group,c=l._map,u=l._featureGroup,f=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),h=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),n=h.length-1;n>=0;n--)(e=h[n])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,r=!0,e._setPos&&(e._setPos(f),r=!1),e.clusterHide&&(e.clusterHide(),r=!1),r&&u.removeLayer(e),p&&(a=(o=(i=e._spiderLeg)._path).getTotalLength()+.1,o.style.strokeDashoffset=a,i.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(n=h.length-1;n>=0;n--)(e=h[n])._spiderLeg&&t++;for(n=h.length-1;n>=0;n--)(e=h[n])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),t>1&&u.removeLayer(e),c.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:s,markers:h})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,n;for(e in t)for(n=t[e].__parent;n;)n._iconNeedsUpdate=!0,n=n.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,n;for(e in t)n=t[e],this.hasLayer(n)&&n.setIcon(this._overrideMarkerIcon(n))}}),L.Marker.include({refreshIconOptions:function(t,e){var n=this.options.icon;return L.setOptions(n,t),this.setIcon(n),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=n}(e)},function(t,e,n){n(370),t.exports=n(371)},function(t,e){t.exports=function(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)}},function(t,e,n){var i=n(111),o=n(155),a=n(157);t.exports=function(t,e){return a(o(t,e,i),t+"")}},function(t,e,n){var i=n(156),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var a=arguments,r=-1,s=o(a.length-e,0),l=Array(s);++r<s;)l[r]=a[e+r];r=-1;for(var c=Array(e+1);++r<e;)c[r]=a[r];return c[e]=n(l),i(t,this,c)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var i=n(158),o=n(171)(i);t.exports=o},function(t,e,n){var i=n(159),o=n(160),a=n(111),r=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:a;t.exports=r},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var i=n(161),o=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var i=n(162),o=n(170);t.exports=function(t,e){var n=o(t,e);return i(n)?n:void 0}},function(t,e,n){var i=n(163),o=n(167),a=n(61),r=n(169),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,h=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(i(t)?h:s).test(r(t))}},function(t,e,n){var i=n(112),o=n(61);t.exports=function(t){if(!o(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(114))},function(t,e,n){var i=n(113),o=Object.prototype,a=o.hasOwnProperty,r=o.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var o=r.call(t);return i&&(e?t[s]=n:delete t[s]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var i,o=n(168),a=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!a&&a in t}},function(t,e,n){var i=n(74)["__core-js_shared__"];t.exports=i},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,i=0;return function(){var o=n(),a=16-(o-i);if(i=o,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(112),o=n(173);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==i(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSVG=function(t){var e=new RegExp("^".concat(t,"$"),"i");return["path","svg","use","g"].some((function(t){return e.test(t)}))},e.createFragmentFrom=function(t){var e=document.createDocumentFragment();return t.forEach((function t(n){if(n instanceof HTMLElement||n instanceof SVGElement||n instanceof Comment||n instanceof DocumentFragment)e.appendChild(n);else if("string"==typeof n||"number"==typeof n){var i=document.createTextNode(n);e.appendChild(i)}else n instanceof Array&&n.forEach(t)})),e}},function(t,e,n){"use strict";n.r(e);var i=n(1);window.SensbitInpostEasyPack={},window.SensbitInpostEasyPack.googleMapsApi={},window.SensbitInpostEasyPack.googleMapsApi.initialize=function(){window.SensbitInpostEasyPack.googleMapsApi.ready=!0,i.d.asyncLoad(window.SensbitInpostEasyPackConfig.infoboxLibraryUrl)},window.SensbitInpostEasyPack.googleMapsApi.initializeDropdown=function(){SensbitInpostEasyPack.googleMapsApi.ready=!0,window.SensbitInpostEasyPack.dropdownWidgetObj.afterLoad()}},function(t,e,n){var i=n(74);t.exports=function(){return i.Date.now()}},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);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}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e){L.Control.Fullscreen=L.Control.extend({options:{position:"topleft",title:{false:"View Fullscreen",true:"Exit Fullscreen"}},onAdd:function(t){var e=L.DomUtil.create("div","leaflet-control-fullscreen leaflet-bar leaflet-control");return this.link=L.DomUtil.create("a","leaflet-control-fullscreen-button leaflet-bar-part",e),this.link.href="#",this._map=t,this._map.on("fullscreenchange",this._toggleTitle,this),this._toggleTitle(),L.DomEvent.on(this.link,"click",this._click,this),e},_click:function(t){L.DomEvent.stopPropagation(t),L.DomEvent.preventDefault(t),this._map.toggleFullscreen(this.options)},_toggleTitle:function(){this.link.title=this.options.title[this._map.isFullscreen()]}}),L.Map.include({isFullscreen:function(){return this._isFullscreen||!1},toggleFullscreen:function(t){var e=this.getContainer();this.isFullscreen()?t&&t.pseudoFullscreen?this._disablePseudoFullscreen(e):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this._disablePseudoFullscreen(e):t&&t.pseudoFullscreen?this._enablePseudoFullscreen(e):e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen?e.msRequestFullscreen():this._enablePseudoFullscreen(e)},_enablePseudoFullscreen:function(t){L.DomUtil.addClass(t,"leaflet-pseudo-fullscreen"),this._setFullscreen(!0),this.fire("fullscreenchange")},_disablePseudoFullscreen:function(t){L.DomUtil.removeClass(t,"leaflet-pseudo-fullscreen"),this._setFullscreen(!1),this.fire("fullscreenchange")},_setFullscreen:function(t){this._isFullscreen=t;var e=this.getContainer();t?L.DomUtil.addClass(e,"leaflet-fullscreen-on"):L.DomUtil.removeClass(e,"leaflet-fullscreen-on"),this.invalidateSize()},_onFullscreenChange:function(t){var e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;e!==this.getContainer()||this._isFullscreen?e!==this.getContainer()&&this._isFullscreen&&(this._setFullscreen(!1),this.fire("fullscreenchange")):(this._setFullscreen(!0),this.fire("fullscreenchange"))}}),L.Map.mergeOptions({fullscreenControl:!1}),L.Map.addInitHook((function(){var t;if(this.options.fullscreenControl&&(this.fullscreenControl=new L.Control.Fullscreen(this.options.fullscreenControl),this.addControl(this.fullscreenControl)),"onfullscreenchange"in document?t="fullscreenchange":"onmozfullscreenchange"in document?t="mozfullscreenchange":"onwebkitfullscreenchange"in document?t="webkitfullscreenchange":"onmsfullscreenchange"in document&&(t="MSFullscreenChange"),t){var e=L.bind(this._onFullscreenChange,this);this.whenReady((function(){L.DomEvent.on(document,t,e)})),this.on("unload",(function(){L.DomEvent.off(document,t,e)}))}})),L.control.fullscreen=function(t){return new L.Control.Fullscreen(t)}},function(t,e,n){var i,o,a;!function(r,s){o=[n(15)],void 0===(a="function"==typeof(i=r)?i.apply(e,o):i)||(t.exports=a),void 0!==s&&s.L&&(s.L.Control.Locate=r(L))}((function(t){var e=function(e,n,i){(i=i.split(" ")).forEach((function(i){t.DomUtil[e].call(this,n,i)}))},n=function(t,n){e("addClass",t,n)},i=function(t,n){e("removeClass",t,n)},o=t.Marker.extend({initialize:function(e,n){t.Util.setOptions(this,n),this._latlng=e,this.createIcon()},createIcon:function(){var e=this.options,n="";void 0!==e.color&&(n+="stroke:"+e.color+";"),void 0!==e.weight&&(n+="stroke-width:"+e.weight+";"),void 0!==e.fillColor&&(n+="fill:"+e.fillColor+";"),void 0!==e.fillOpacity&&(n+="fill-opacity:"+e.fillOpacity+";"),void 0!==e.opacity&&(n+="opacity:"+e.opacity+";");var i=this._getIconSVG(e,n);this._locationIcon=t.divIcon({className:i.className,html:i.svg,iconSize:[i.w,i.h]}),this.setIcon(this._locationIcon)},_getIconSVG:function(t,e){var n=t.radius,i=n+t.weight,o=2*i;return{className:"leaflet-control-locate-location",svg:'<svg xmlns="http://www.w3.org/2000/svg" width="'+o+'" height="'+o+'" version="1.1" viewBox="-'+i+" -"+i+" "+o+" "+o+'"><circle r="'+n+'" style="'+e+'" /></svg>',w:o,h:o}},setStyle:function(e){t.Util.setOptions(this,e),this.createIcon()}}),a=o.extend({initialize:function(e,n,i){t.Util.setOptions(this,i),this._latlng=e,this._heading=n,this.createIcon()},setHeading:function(t){this._heading=t},_getIconSVG:function(t,e){var n=t.radius,i=t.width+t.weight,o=2*(n+t.depth+t.weight),a="M0,0 l"+t.width/2+","+t.depth+" l-"+i+",0 z";return{className:"leaflet-control-locate-heading",svg:'<svg xmlns="http://www.w3.org/2000/svg" width="'+i+'" height="'+o+'" version="1.1" viewBox="-'+i/2+" 0 "+i+" "+o+'" style="transform: rotate('+this._heading+'deg)"><path d="'+a+'" style="'+e+'" /></svg>',w:i,h:o}}}),r=t.Control.extend({options:{position:"topleft",layer:void 0,setView:"untilPanOrZoom",keepCurrentZoomLevel:!1,getLocationBounds:function(t){return t.bounds},flyTo:!1,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:!1,cacheLocation:!0,drawCircle:!0,drawMarker:!0,showCompass:!0,markerClass:o,compassClass:a,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"fa fa-map-marker",iconLoading:"fa fa-spinner fa-spin",iconElementTag:"span",circlePadding:[0,0],metric:!0,createButtonCallback:function(e,n){var i=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",e);return i.title=n.strings.title,{link:i,icon:t.DomUtil.create(n.iconElementTag,n.icon,i)}},onLocationError:function(t,e){alert(t.message)},onLocationOutsideMapBounds:function(t){t.stop(),alert(t.options.strings.outsideMapBoundsMsg)},showPopup:!0,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:1/0,watch:!0,setView:!1}},initialize:function(e){for(var n in e)"object"==typeof this.options[n]?t.extend(this.options[n],e[n]):this.options[n]=e[n];this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle),this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle),this.options.followCompassStyle=t.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd:function(e){var n=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._layer=this.options.layer||new t.LayerGroup,this._layer.addTo(e),this._event=void 0,this._compassHeading=null,this._prevBounds=null;var i=this.options.createButtonCallback(n,this.options);return this._link=i.link,this._icon=i.icon,t.DomEvent.on(this._link,"click",t.DomEvent.stopPropagation).on(this._link,"click",t.DomEvent.preventDefault).on(this._link,"click",this._onClick,this).on(this._link,"dblclick",t.DomEvent.stopPropagation),this._resetVariables(),this._map.on("unload",this._unload,this),n},_onClick:function(){this._justClicked=!0;var t=this._isFollowing();if(this._userPanned=!1,this._userZoomed=!1,this._active&&!this._event)this.stop();else if(this._active&&void 0!==this._event){var e=this.options.clickBehavior,n=e.outOfView;switch(this._map.getBounds().contains(this._event.latlng)&&(n=t?e.inView:e.inViewNotFollowing),e[n]&&(n=e[n]),n){case"setView":this.setView();break;case"stop":this.stop(),this.options.returnToPrevBounds&&(this.options.flyTo?this._map.flyToBounds:this._map.fitBounds).bind(this._map)(this._prevBounds)}}else this.options.returnToPrevBounds&&(this._prevBounds=this._map.getBounds()),this.start();this._updateContainerStyle()},start:function(){this._activate(),this._event&&(this._drawMarker(this._map),this.options.setView&&this.setView()),this._updateContainerStyle()},stop:function(){this._deactivate(),this._cleanClasses(),this._resetVariables(),this._removeMarker()},stopFollowing:function(){this._userPanned=!0,this._updateContainerStyle(),this._drawMarker()},_activate:function(){if(!this._active&&(this._map.locate(this.options.locateOptions),this._active=!0,this._map.on("locationfound",this._onLocationFound,this),this._map.on("locationerror",this._onLocationError,this),this._map.on("dragstart",this._onDrag,this),this._map.on("zoomstart",this._onZoom,this),this._map.on("zoomend",this._onZoomEnd,this),this.options.showCompass)){var e="ondeviceorientationabsolute"in window;if(e||"ondeviceorientation"in window){var n=this,i=function(){t.DomEvent.on(window,e?"deviceorientationabsolute":"deviceorientation",n._onDeviceOrientation,n)};DeviceOrientationEvent&&"function"==typeof DeviceOrientationEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((function(t){"granted"===t&&i()})):i()}}},_deactivate:function(){this._map.stopLocate(),this._active=!1,this.options.cacheLocation||(this._event=void 0),this._map.off("locationfound",this._onLocationFound,this),this._map.off("locationerror",this._onLocationError,this),this._map.off("dragstart",this._onDrag,this),this._map.off("zoomstart",this._onZoom,this),this._map.off("zoomend",this._onZoomEnd,this),this.options.showCompass&&(this._compassHeading=null,"ondeviceorientationabsolute"in window?t.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this):"ondeviceorientation"in window&&t.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this))},setView:function(){if(this._drawMarker(),this._isOutsideMapBounds())this._event=void 0,this.options.onLocationOutsideMapBounds(this);else if(this.options.keepCurrentZoomLevel)(e=this.options.flyTo?this._map.flyTo:this._map.panTo).bind(this._map)([this._event.latitude,this._event.longitude]);else{var e=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=!0,e.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.locateOptions.maxZoom}),t.Util.requestAnimFrame((function(){this._ignoreEvent=!1}),this)}},_drawCompass:function(){if(this._event){var t=this._event.latlng;if(this.options.showCompass&&t&&null!==this._compassHeading){var e=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;this._compass?(this._compass.setLatLng(t),this._compass.setHeading(this._compassHeading),this._compass.setStyle&&this._compass.setStyle(e)):this._compass=new this.options.compassClass(t,this._compassHeading,e).addTo(this._layer)}!this._compass||this.options.showCompass&&null!==this._compassHeading||(this._compass.removeFrom(this._layer),this._compass=null)}},_drawMarker:function(){void 0===this._event.accuracy&&(this._event.accuracy=0);var e,n,i=this._event.accuracy,o=this._event.latlng;if(this.options.drawCircle){var a=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;this._circle?this._circle.setLatLng(o).setRadius(i).setStyle(a):this._circle=t.circle(o,i,a).addTo(this._layer)}if(this.options.metric?(e=i.toFixed(0),n=this.options.strings.metersUnit):(e=(3.2808399*i).toFixed(0),n=this.options.strings.feetUnit),this.options.drawMarker){var r=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;this._marker?(this._marker.setLatLng(o),this._marker.setStyle&&this._marker.setStyle(r)):this._marker=new this.options.markerClass(o,r).addTo(this._layer)}this._drawCompass();var s=this.options.strings.popup;function l(){return"string"==typeof s?t.Util.template(s,{distance:e,unit:n}):"function"==typeof s?s({distance:e,unit:n}):s}this.options.showPopup&&s&&this._marker&&this._marker.bindPopup(l())._popup.setLatLng(o),this.options.showPopup&&s&&this._compass&&this._compass.bindPopup(l())._popup.setLatLng(o)},_removeMarker:function(){this._layer.clearLayers(),this._marker=void 0,this._circle=void 0},_unload:function(){this.stop(),this._map.off("unload",this._unload,this)},_setCompassHeading:function(e){!isNaN(parseFloat(e))&&isFinite(e)?(e=Math.round(e),this._compassHeading=e,t.Util.requestAnimFrame(this._drawCompass,this)):this._compassHeading=null},_onCompassNeedsCalibration:function(){this._setCompassHeading()},_onDeviceOrientation:function(t){this._active&&(t.webkitCompassHeading?this._setCompassHeading(t.webkitCompassHeading):t.absolute&&t.alpha&&this._setCompassHeading(360-t.alpha))},_onLocationError:function(t){3==t.code&&this.options.locateOptions.watch||(this.stop(),this.options.onLocationError(t,this))},_onLocationFound:function(t){if((!this._event||this._event.latlng.lat!==t.latlng.lat||this._event.latlng.lng!==t.latlng.lng||this._event.accuracy!==t.accuracy)&&this._active){switch(this._event=t,this._drawMarker(),this._updateContainerStyle(),this.options.setView){case"once":this._justClicked&&this.setView();break;case"untilPan":this._userPanned||this.setView();break;case"untilPanOrZoom":this._userPanned||this._userZoomed||this.setView();break;case"always":this.setView()}this._justClicked=!1}},_onDrag:function(){this._event&&!this._ignoreEvent&&(this._userPanned=!0,this._updateContainerStyle(),this._drawMarker())},_onZoom:function(){this._event&&!this._ignoreEvent&&(this._userZoomed=!0,this._updateContainerStyle(),this._drawMarker())},_onZoomEnd:function(){this._event&&this._drawCompass(),this._event&&!this._ignoreEvent&&this._marker&&!this._map.getBounds().pad(-.3).contains(this._marker.getLatLng())&&(this._userPanned=!0,this._updateContainerStyle(),this._drawMarker())},_isFollowing:function(){return!!this._active&&("always"===this.options.setView||("untilPan"===this.options.setView?!this._userPanned:"untilPanOrZoom"===this.options.setView?!this._userPanned&&!this._userZoomed:void 0))},_isOutsideMapBounds:function(){return void 0!==this._event&&this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle:function(){this._container&&(this._active&&!this._event?this._setClasses("requesting"):this._isFollowing()?this._setClasses("following"):this._active?this._setClasses("active"):this._cleanClasses())},_setClasses:function(t){"requesting"==t?(i(this._container,"active following"),n(this._container,"requesting"),i(this._icon,this.options.icon),n(this._icon,this.options.iconLoading)):"active"==t?(i(this._container,"requesting following"),n(this._container,"active"),i(this._icon,this.options.iconLoading),n(this._icon,this.options.icon)):"following"==t&&(i(this._container,"requesting"),n(this._container,"active following"),i(this._icon,this.options.iconLoading),n(this._icon,this.options.icon))},_cleanClasses:function(){t.DomUtil.removeClass(this._container,"requesting"),t.DomUtil.removeClass(this._container,"active"),t.DomUtil.removeClass(this._container,"following"),i(this._icon,this.options.iconLoading),n(this._icon,this.options.icon)},_resetVariables:function(){this._active=!1,this._justClicked=!1,this._userPanned=!1,this._userZoomed=!1}});return t.control.locate=function(e){return new t.Control.Locate(e)},r}),window)},function(t,e,n){"use strict";n.r(e);var i=n(116);n.d(e,"Loader",(function(){return i.a}));var o=n(117);for(var a in o)["Loader","default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a)},function(t,e,n){"use strict";n(182).polyfill()},function(t,e,n){"use strict";function i(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var a=Object.keys(Object(o)),r=0,s=a.length;r<s;r++){var l=a[r],c=Object.getOwnPropertyDescriptor(o,l);void 0!==c&&c.enumerable&&(n[l]=o[l])}}return n}t.exports={assign:i,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:i})}}},function(t,e,n){"use strict";n(184);var i,o=(i=n(356))&&i.__esModule?i:{default:i};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(t,e,n){"use strict";n(185),n(328),n(330),n(333),n(335),n(337),n(339),n(341),n(343),n(345),n(347),n(349),n(351),n(355)},function(t,e,n){n(186),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(267),n(268),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(95),n(291),n(138),n(292),n(139),n(293),n(294),n(295),n(296),n(140),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),t.exports=n(12)},function(t,e,n){"use strict";var i=n(5),o=n(20),a=n(13),r=n(2),s=n(18),l=n(35).KEY,c=n(6),u=n(62),f=n(48),h=n(37),p=n(9),d=n(76),m=n(119),g=n(188),_=n(65),y=n(7),v=n(8),w=n(17),b=n(22),k=n(34),P=n(36),x=n(41),L=n(122),C=n(27),O=n(64),S=n(14),M=n(39),T=C.f,E=S.f,j=L.f,z=i.Symbol,A=i.JSON,I=A&&A.stringify,B=p("_hidden"),N=p("toPrimitive"),F={}.propertyIsEnumerable,D=u("symbol-registry"),Z=u("symbols"),R=u("op-symbols"),H=Object.prototype,q="function"==typeof z&&!!O.f,U=i.QObject,G=!U||!U.prototype||!U.prototype.findChild,W=a&&c((function(){return 7!=x(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=T(H,e);i&&delete H[e],E(t,e,n),i&&t!==H&&E(H,e,i)}:E,V=function(t){var e=Z[t]=x(z.prototype);return e._k=t,e},K=q&&"symbol"==typeof z.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof z},Y=function(t,e,n){return t===H&&Y(R,e,n),y(t),e=k(e,!0),y(n),o(Z,e)?(n.enumerable?(o(t,B)&&t[B][e]&&(t[B][e]=!1),n=x(n,{enumerable:P(0,!1)})):(o(t,B)||E(t,B,P(1,{})),t[B][e]=!0),W(t,e,n)):E(t,e,n)},X=function(t,e){y(t);for(var n,i=g(e=b(e)),o=0,a=i.length;a>o;)Y(t,n=i[o++],e[n]);return t},J=function(t){var e=F.call(this,t=k(t,!0));return!(this===H&&o(Z,t)&&!o(R,t))&&(!(e||!o(this,t)||!o(Z,t)||o(this,B)&&this[B][t])||e)},$=function(t,e){if(t=b(t),e=k(e,!0),t!==H||!o(Z,e)||o(R,e)){var n=T(t,e);return!n||!o(Z,e)||o(t,B)&&t[B][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=j(b(t)),i=[],a=0;n.length>a;)o(Z,e=n[a++])||e==B||e==l||i.push(e);return i},tt=function(t){for(var e,n=t===H,i=j(n?R:b(t)),a=[],r=0;i.length>r;)!o(Z,e=i[r++])||n&&!o(H,e)||a.push(Z[e]);return a};q||(s((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(R,n),o(this,B)&&o(this[B],t)&&(this[B][t]=!1),W(this,t,P(1,n))};return a&&G&&W(H,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",(function(){return this._k})),C.f=$,S.f=Y,n(42).f=L.f=Q,n(57).f=J,O.f=tt,a&&!n(38)&&s(H,"propertyIsEnumerable",J,!0),d.f=function(t){return V(p(t))}),r(r.G+r.W+r.F*!q,{Symbol:z});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var it=M(p.store),ot=0;it.length>ot;)m(it[ot++]);r(r.S+r.F*!q,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=z(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),r(r.S+r.F*!q,"Object",{create:function(t,e){return void 0===e?x(t):X(x(t),e)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var at=c((function(){O.f(1)}));r(r.S+r.F*at,"Object",{getOwnPropertySymbols:function(t){return O.f(w(t))}}),A&&r(r.S+r.F*(!q||c((function(){var t=z();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e=i[1],(v(e)||void 0!==t)&&!K(t))return _(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),i[1]=e,I.apply(A,i)}}),z.prototype[N]||n(21)(z.prototype,N,z.prototype.valueOf),f(z,"Symbol"),f(Math,"Math",!0),f(i.JSON,"JSON",!0)},function(t,e,n){t.exports=n(62)("native-function-to-string",Function.toString)},function(t,e,n){var i=n(39),o=n(64),a=n(57);t.exports=function(t){var e=i(t),n=o.f;if(n)for(var r,s=n(t),l=a.f,c=0;s.length>c;)l.call(t,r=s[c++])&&e.push(r);return e}},function(t,e,n){var i=n(2);i(i.S,"Object",{create:n(41)})},function(t,e,n){var i=n(2);i(i.S+i.F*!n(13),"Object",{defineProperty:n(14).f})},function(t,e,n){var i=n(2);i(i.S+i.F*!n(13),"Object",{defineProperties:n(121)})},function(t,e,n){var i=n(22),o=n(27).f;n(28)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(i(t),e)}}))},function(t,e,n){var i=n(17),o=n(43);n(28)("getPrototypeOf",(function(){return function(t){return o(i(t))}}))},function(t,e,n){var i=n(17),o=n(39);n(28)("keys",(function(){return function(t){return o(i(t))}}))},function(t,e,n){n(28)("getOwnPropertyNames",(function(){return n(122).f}))},function(t,e,n){var i=n(8),o=n(35).onFreeze;n(28)("freeze",(function(t){return function(e){return t&&i(e)?t(o(e)):e}}))},function(t,e,n){var i=n(8),o=n(35).onFreeze;n(28)("seal",(function(t){return function(e){return t&&i(e)?t(o(e)):e}}))},function(t,e,n){var i=n(8),o=n(35).onFreeze;n(28)("preventExtensions",(function(t){return function(e){return t&&i(e)?t(o(e)):e}}))},function(t,e,n){var i=n(8);n(28)("isFrozen",(function(t){return function(e){return!i(e)||!!t&&t(e)}}))},function(t,e,n){var i=n(8);n(28)("isSealed",(function(t){return function(e){return!i(e)||!!t&&t(e)}}))},function(t,e,n){var i=n(8);n(28)("isExtensible",(function(t){return function(e){return!!i(e)&&(!t||t(e))}}))},function(t,e,n){var i=n(2);i(i.S+i.F,"Object",{assign:n(123)})},function(t,e,n){var i=n(2);i(i.S,"Object",{is:n(124)})},function(t,e,n){var i=n(2);i(i.S,"Object",{setPrototypeOf:n(80).set})},function(t,e,n){"use strict";var i=n(58),o={};o[n(9)("toStringTag")]="z",o+""!="[object z]"&&n(18)(Object.prototype,"toString",(function(){return"[object "+i(this)+"]"}),!0)},function(t,e,n){var i=n(2);i(i.P,"Function",{bind:n(125)})},function(t,e,n){var i=n(14).f,o=Function.prototype,a=/^\s*function ([^ (]*)/,r="name";r in o||n(13)&&i(o,r,{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var i=n(8),o=n(43),a=n(9)("hasInstance"),r=Function.prototype;a in r||n(14).f(r,a,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var i=n(2),o=n(127);i(i.G+i.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var i=n(2),o=n(128);i(i.G+i.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var i=n(5),o=n(20),a=n(30),r=n(82),s=n(34),l=n(6),c=n(42).f,u=n(27).f,f=n(14).f,h=n(49).trim,p="Number",d=i.Number,m=d,g=d.prototype,_=a(n(41)(g))==p,y="trim"in String.prototype,v=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,i,o,a=(e=y?e.trim():h(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+e}for(var r,l=e.slice(2),c=0,u=l.length;c<u;c++)if((r=l.charCodeAt(c))<48||r>o)return NaN;return parseInt(l,i)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(_?l((function(){g.valueOf.call(n)})):a(n)!=p)?r(new m(v(e)),n,d):v(e)};for(var w,b=n(13)?c(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;b.length>k;k++)o(m,w=b[k])&&!o(d,w)&&f(d,w,u(m,w));d.prototype=g,g.constructor=d,n(18)(i,p,d)}},function(t,e,n){"use strict";var i=n(2),o=n(26),a=n(129),r=n(83),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",f="0",h=function(t,e){for(var n=-1,i=e;++n<6;)i+=t*c[n],c[n]=i%1e7,i=l(i/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+r.call(f,7-n.length)+n}return e},m=function(t,e,n){return 0===e?n:e%2==1?m(t,e-1,n*t):m(t*t,e/2,n)};i(i.P+i.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(6)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,i,s,l=a(this,u),c=o(t),g="",_=f;if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(g="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*m(2,69,1))-69)<0?l*m(2,-e,1):l/m(2,e,1),n*=4503599627370496,(e=52-e)>0){for(h(0,n),i=c;i>=7;)h(1e7,0),i-=7;for(h(m(10,i,1),0),i=e-1;i>=23;)p(1<<23),i-=23;p(1<<i),h(1,1),p(2),_=d()}else h(0,n),h(1<<-e,0),_=d()+r.call(f,c);return c>0?g+((s=_.length)<=c?"0."+r.call(f,c-s)+_:_.slice(0,s-c)+"."+_.slice(s-c)):g+_}})},function(t,e,n){"use strict";var i=n(2),o=n(6),a=n(129),r=1..toPrecision;i(i.P+i.F*(o((function(){return"1"!==r.call(1,void 0)}))||!o((function(){r.call({})}))),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?r.call(e):r.call(e,t)}})},function(t,e,n){var i=n(2);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var i=n(2),o=n(5).isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var i=n(2);i(i.S,"Number",{isInteger:n(130)})},function(t,e,n){var i=n(2);i(i.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var i=n(2),o=n(130),a=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var i=n(2);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var i=n(2);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var i=n(2),o=n(128);i(i.S+i.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var i=n(2),o=n(127);i(i.S+i.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var i=n(2),o=n(131),a=Math.sqrt,r=Math.acosh;i(i.S+i.F*!(r&&710==Math.floor(r(Number.MAX_VALUE))&&r(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var i=n(2),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var i=n(2),o=Math.atanh;i(i.S+i.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var i=n(2),o=n(84);i(i.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var i=n(2);i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var i=n(2),o=Math.exp;i(i.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var i=n(2),o=n(85);i(i.S+i.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var i=n(2);i(i.S,"Math",{fround:n(231)})},function(t,e,n){var i=n(84),o=Math.pow,a=o(2,-52),r=o(2,-23),s=o(2,127)*(2-r),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=i(t);return o<l?c*(o/l/r+1/a-1/a)*l*r:(n=(e=(1+r/a)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var i=n(2),o=Math.abs;i(i.S,"Math",{hypot:function(t,e){for(var n,i,a=0,r=0,s=arguments.length,l=0;r<s;)l<(n=o(arguments[r++]))?(a=a*(i=l/n)*i+1,l=n):a+=n>0?(i=n/l)*i:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var i=n(2),o=Math.imul;i(i.S+i.F*n(6)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=65535,i=+t,o=+e,a=n&i,r=n&o;return 0|a*r+((n&i>>>16)*r+a*(n&o>>>16)<<16>>>0)}})},function(t,e,n){var i=n(2);i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var i=n(2);i(i.S,"Math",{log1p:n(131)})},function(t,e,n){var i=n(2);i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var i=n(2);i(i.S,"Math",{sign:n(84)})},function(t,e,n){var i=n(2),o=n(85),a=Math.exp;i(i.S+i.F*n(6)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var i=n(2),o=n(85),a=Math.exp;i(i.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var i=n(2);i(i.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var i=n(2),o=n(40),a=String.fromCharCode,r=String.fromCodePoint;i(i.S+i.F*(!!r&&1!=r.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;i>r;){if(e=+arguments[r++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var i=n(2),o=n(22),a=n(11);i(i.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),i=arguments.length,r=[],s=0;n>s;)r.push(String(e[s++])),s<i&&r.push(String(arguments[s]));return r.join("")}})},function(t,e,n){"use strict";n(49)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var i=n(86)(!0);n(87)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var i=n(2),o=n(86)(!1);i(i.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var i=n(2),o=n(11),a=n(88),r="endsWith",s="".endsWith;i(i.P+i.F*n(90)(r),"String",{endsWith:function(t){var e=a(this,t,r),n=arguments.length>1?arguments[1]:void 0,i=o(e.length),l=void 0===n?i:Math.min(o(n),i),c=String(t);return s?s.call(e,c,l):e.slice(l-c.length,l)===c}})},function(t,e,n){"use strict";var i=n(2),o=n(88),a="includes";i(i.P+i.F*n(90)(a),"String",{includes:function(t){return!!~o(this,t,a).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var i=n(2);i(i.P,"String",{repeat:n(83)})},function(t,e,n){"use strict";var i=n(2),o=n(11),a=n(88),r="startsWith",s="".startsWith;i(i.P+i.F*n(90)(r),"String",{startsWith:function(t){var e=a(this,t,r),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return s?s.call(e,i,n):e.slice(n,n+i.length)===i}})},function(t,e,n){"use strict";n(19)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(19)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(19)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(19)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(19)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(19)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(19)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(19)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(19)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(19)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(19)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(19)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(19)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var i=n(2);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var i=n(2),o=n(17),a=n(34);i(i.P+i.F*n(6)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var i=n(2),o=n(266);i(i.P+i.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var i=n(6),o=Date.prototype.getTime,a=Date.prototype.toISOString,r=function(t){return t>9?t:"0"+t};t.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!i((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),i=e<0?"-":e>9999?"+":"";return i+("00000"+Math.abs(e)).slice(i?-6:-4)+"-"+r(t.getUTCMonth()+1)+"-"+r(t.getUTCDate())+"T"+r(t.getUTCHours())+":"+r(t.getUTCMinutes())+":"+r(t.getUTCSeconds())+"."+(n>99?n:"0"+r(n))+"Z"}:a},function(t,e,n){var i=Date.prototype,o="Invalid Date",a=i.toString,r=i.getTime;new Date(NaN)+""!=o&&n(18)(i,"toString",(function(){var t=r.call(this);return t==t?a.call(this):o}))},function(t,e,n){var i=n(9)("toPrimitive"),o=Date.prototype;i in o||n(21)(o,i,n(269))},function(t,e,n){"use strict";var i=n(7),o=n(34),a="number";t.exports=function(t){if("string"!==t&&t!==a&&"default"!==t)throw TypeError("Incorrect hint");return o(i(this),t!=a)}},function(t,e,n){var i=n(2);i(i.S,"Array",{isArray:n(65)})},function(t,e,n){"use strict";var i=n(24),o=n(2),a=n(17),r=n(133),s=n(91),l=n(11),c=n(92),u=n(93);o(o.S+o.F*!n(66)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,h=a(t),p="function"==typeof this?this:Array,d=arguments.length,m=d>1?arguments[1]:void 0,g=void 0!==m,_=0,y=u(h);if(g&&(m=i(m,d>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(e=l(h.length));e>_;_++)c(n,_,g?m(h[_],_):h[_]);else for(f=y.call(h),n=new p;!(o=f.next()).done;_++)c(n,_,g?r(f,m,[o.value,_],!0):o.value);return n.length=_,n}})},function(t,e,n){"use strict";var i=n(2),o=n(92);i(i.S+i.F*n(6)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var i=n(2),o=n(22),a=[].join;i(i.P+i.F*(n(56)!=Object||!n(23)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var i=n(2),o=n(79),a=n(30),r=n(40),s=n(11),l=[].slice;i(i.P+i.F*n(6)((function(){o&&l.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),i=a(this);if(e=void 0===e?n:e,"Array"==i)return l.call(this,t,e);for(var o=r(t,n),c=r(e,n),u=s(c-o),f=new Array(u),h=0;h<u;h++)f[h]="String"==i?this.charAt(o+h):this[o+h];return f}})},function(t,e,n){"use strict";var i=n(2),o=n(25),a=n(17),r=n(6),s=[].sort,l=[1,2,3];i(i.P+i.F*(r((function(){l.sort(void 0)}))||!r((function(){l.sort(null)}))||!n(23)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var i=n(2),o=n(29)(0),a=n(23)([].forEach,!0);i(i.P+i.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var i=n(8),o=n(65),a=n(9)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),i(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var i=n(2),o=n(29)(1);i(i.P+i.F*!n(23)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(2),o=n(29)(2);i(i.P+i.F*!n(23)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(2),o=n(29)(3);i(i.P+i.F*!n(23)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(2),o=n(29)(4);i(i.P+i.F*!n(23)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(2),o=n(135);i(i.P+i.F*!n(23)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var i=n(2),o=n(135);i(i.P+i.F*!n(23)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var i=n(2),o=n(63)(!1),a=[].indexOf,r=!!a&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(r||!n(23)(a)),"Array",{indexOf:function(t){return r?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(2),o=n(22),a=n(26),r=n(11),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(l||!n(23)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=o(this),n=r(e.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,a(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1}})},function(t,e,n){var i=n(2);i(i.P,"Array",{copyWithin:n(136)}),n(44)("copyWithin")},function(t,e,n){var i=n(2);i(i.P,"Array",{fill:n(94)}),n(44)("fill")},function(t,e,n){"use strict";var i=n(2),o=n(29)(5),a="find",r=!0;a in[]&&Array(1).find((function(){r=!1})),i(i.P+i.F*r,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(44)(a)},function(t,e,n){"use strict";var i=n(2),o=n(29)(6),a="findIndex",r=!0;a in[]&&Array(1)[a]((function(){r=!1})),i(i.P+i.F*r,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(44)(a)},function(t,e,n){n(51)("Array")},function(t,e,n){var i=n(5),o=n(82),a=n(14).f,r=n(42).f,s=n(89),l=n(67),c=i.RegExp,u=c,f=c.prototype,h=/a/g,p=/a/g,d=new c(h)!==h;if(n(13)&&(!d||n(6)((function(){return p[n(9)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")})))){c=function(t,e){var n=this instanceof c,i=s(t),a=void 0===e;return!n&&i&&t.constructor===c&&a?t:o(d?new u(i&&!a?t.source:t,e):u((i=t instanceof c)?t.source:t,i&&a?l.call(t):e),n?this:f,c)};for(var m=function(t){t in c||a(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},g=r(u),_=0;g.length>_;)m(g[_++]);f.constructor=c,c.prototype=f,n(18)(i,"RegExp",c)}n(51)("RegExp")},function(t,e,n){"use strict";n(139);var i=n(7),o=n(67),a=n(13),r="toString",s=/./.toString,l=function(t){n(18)(RegExp.prototype,r,t,!0)};n(6)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?l((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):s.name!=r&&l((function(){return s.call(this)}))},function(t,e,n){"use strict";var i=n(7),o=n(11),a=n(97),r=n(68);n(69)("match",1,(function(t,e,n,s){return[function(n){var i=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=i(t),c=String(this);if(!l.global)return r(l,c);var u=l.unicode;l.lastIndex=0;for(var f,h=[],p=0;null!==(f=r(l,c));){var d=String(f[0]);h[p]=d,""===d&&(l.lastIndex=a(c,o(l.lastIndex),u)),p++}return 0===p?null:h}]}))},function(t,e,n){"use strict";var i=n(7),o=n(17),a=n(11),r=n(26),s=n(97),l=n(68),c=Math.max,u=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(69)("replace",2,(function(t,e,n,d){return[function(i,o){var a=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,a,o):n.call(String(a),i,o)},function(t,e){var o=d(n,t,this,e);if(o.done)return o.value;var f=i(t),h=String(this),p="function"==typeof e;p||(e=String(e));var g=f.global;if(g){var _=f.unicode;f.lastIndex=0}for(var y=[];;){var v=l(f,h);if(null===v)break;if(y.push(v),!g)break;""===String(v[0])&&(f.lastIndex=s(h,a(f.lastIndex),_))}for(var w,b="",k=0,P=0;P<y.length;P++){v=y[P];for(var x=String(v[0]),L=c(u(r(v.index),h.length),0),C=[],O=1;O<v.length;O++)C.push(void 0===(w=v[O])?w:String(w));var S=v.groups;if(p){var M=[x].concat(C,L,h);void 0!==S&&M.push(S);var T=String(e.apply(void 0,M))}else T=m(x,h,L,C,S,e);L>=k&&(b+=h.slice(k,L)+T,k=L+x.length)}return b+h.slice(k)}];function m(t,e,i,a,r,s){var l=i+t.length,c=a.length,u=p;return void 0!==r&&(r=o(r),u=h),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=r[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var h=f(u/10);return 0===h?n:h<=c?void 0===a[h-1]?o.charAt(1):a[h-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var i=n(7),o=n(124),a=n(68);n(69)("search",1,(function(t,e,n,r){return[function(n){var i=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=r(n,t,this);if(e.done)return e.value;var s=i(t),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=a(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var i=n(89),o=n(7),a=n(59),r=n(97),s=n(11),l=n(68),c=n(96),u=n(6),f=Math.min,h=[].push,p=4294967295,d=!u((function(){RegExp(p,"y")}));n(69)("split",2,(function(t,e,n,u){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(o,t,e);for(var a,r,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?p:e>>>0,m=new RegExp(t.source,u+"g");(a=c.call(m,o))&&!((r=m.lastIndex)>f&&(l.push(o.slice(f,a.index)),a.length>1&&a.index<o.length&&h.apply(l,a.slice(1)),s=a[0].length,f=r,l.length>=d));)m.lastIndex===a.index&&m.lastIndex++;return f===o.length?!s&&m.test("")||l.push(""):l.push(o.slice(f)),l.length>d?l.slice(0,d):l}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,i):m.call(String(o),n,i)},function(t,e){var i=u(m,t,this,e,m!==n);if(i.done)return i.value;var c=o(t),h=String(this),g=a(c,RegExp),_=c.unicode,y=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),v=new g(d?c:"^(?:"+c.source+")",y),w=void 0===e?p:e>>>0;if(0===w)return[];if(0===h.length)return null===l(v,h)?[h]:[];for(var b=0,k=0,P=[];k<h.length;){v.lastIndex=d?k:0;var x,L=l(v,d?h:h.slice(k));if(null===L||(x=f(s(v.lastIndex+(d?0:k)),h.length))===b)k=r(h,k,_);else{if(P.push(h.slice(b,k)),P.length===w)return P;for(var C=1;C<=L.length-1;C++)if(P.push(L[C]),P.length===w)return P;k=b=x}}return P.push(h.slice(b)),P}]}))},function(t,e,n){var i=n(5),o=n(98).set,a=i.MutationObserver||i.WebKitMutationObserver,r=i.process,s=i.Promise,l="process"==n(30)(r);t.exports=function(){var t,e,n,c=function(){var i,o;for(l&&(i=r.domain)&&i.exit();t;){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){r.nextTick(c)};else if(!a||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(i,c)};else{var f=!0,h=document.createTextNode("");new a(c).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(i){var o={fn:i,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var i=n(143),o=n(45),a="Map";t.exports=n(72)(a,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=i.getEntry(o(this,a),t);return e&&e.v},set:function(t,e){return i.def(o(this,a),0===t?0:t,e)}},i,!0)},function(t,e,n){"use strict";var i=n(143),o=n(45);t.exports=n(72)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return i.def(o(this,"Set"),t=0===t?0:t,t)}},i)},function(t,e,n){"use strict";var i,o=n(5),a=n(29)(0),r=n(18),s=n(35),l=n(123),c=n(144),u=n(8),f=n(45),h=n(45),p=!o.ActiveXObject&&"ActiveXObject"in o,d="WeakMap",m=s.getWeak,g=Object.isExtensible,_=c.ufstore,y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(t){if(u(t)){var e=m(t);return!0===e?_(f(this,d)).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(f(this,d),t,e)}},w=t.exports=n(72)(d,y,v,c,!0,!0);h&&p&&(l((i=c.getConstructor(y,d)).prototype,v),s.NEED=!0,a(["delete","has","get","set"],(function(t){var e=w.prototype,n=e[t];r(e,t,(function(e,o){if(u(e)&&!g(e)){this._f||(this._f=new i);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var i=n(144),o=n(45),a="WeakSet";n(72)(a,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return i.def(o(this,a),t,!0)}},i,!1,!0)},function(t,e,n){"use strict";var i=n(2),o=n(73),a=n(99),r=n(7),s=n(40),l=n(11),c=n(8),u=n(5).ArrayBuffer,f=n(59),h=a.ArrayBuffer,p=a.DataView,d=o.ABV&&u.isView,m=h.prototype.slice,g=o.VIEW,_="ArrayBuffer";i(i.G+i.W+i.F*(u!==h),{ArrayBuffer:h}),i(i.S+i.F*!o.CONSTR,_,{isView:function(t){return d&&d(t)||c(t)&&g in t}}),i(i.P+i.U+i.F*n(6)((function(){return!new h(2).slice(1,void 0).byteLength})),_,{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(r(this),t);for(var n=r(this).byteLength,i=s(t,n),o=s(void 0===e?n:e,n),a=new(f(this,h))(l(o-i)),c=new p(this),u=new p(a),d=0;i<o;)u.setUint8(d++,c.getUint8(i++));return a}}),n(51)(_)},function(t,e,n){var i=n(2);i(i.G+i.W+i.F*!n(73).ABV,{DataView:n(99).DataView})},function(t,e,n){n(32)("Int8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(32)("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(32)("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}),!0)},function(t,e,n){n(32)("Int16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(32)("Uint16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(32)("Int32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(32)("Uint32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(32)("Float32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(32)("Float64",8,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){var i=n(2),o=n(25),a=n(7),r=(n(5).Reflect||{}).apply,s=Function.apply;i(i.S+i.F*!n(6)((function(){r((function(){}))})),"Reflect",{apply:function(t,e,n){var i=o(t),l=a(n);return r?r(i,e,l):s.call(i,e,l)}})},function(t,e,n){var i=n(2),o=n(41),a=n(25),r=n(7),s=n(8),l=n(6),c=n(125),u=(n(5).Reflect||{}).construct,f=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),h=!l((function(){u((function(){}))}));i(i.S+i.F*(f||h),"Reflect",{construct:function(t,e){a(t),r(e);var n=arguments.length<3?t:a(arguments[2]);if(h&&!f)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(c.apply(t,i))}var l=n.prototype,p=o(s(l)?l:Object.prototype),d=Function.apply.call(t,p,e);return s(d)?d:p}})},function(t,e,n){var i=n(14),o=n(2),a=n(7),r=n(34);o(o.S+o.F*n(6)((function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){a(t),e=r(e,!0),a(n);try{return i.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var i=n(2),o=n(27).f,a=n(7);i(i.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var i=n(2),o=n(7),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(132)(a,"Object",(function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}})),i(i.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var i=n(27),o=n(43),a=n(20),r=n(2),s=n(8),l=n(7);r(r.S,"Reflect",{get:function t(e,n){var r,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(r=i.f(e,n))?a(r,"value")?r.value:void 0!==r.get?r.get.call(u):void 0:s(c=o(e))?t(c,n,u):void 0}})},function(t,e,n){var i=n(27),o=n(2),a=n(7);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(a(t),e)}})},function(t,e,n){var i=n(2),o=n(43),a=n(7);i(i.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var i=n(2);i(i.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var i=n(2),o=n(7),a=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var i=n(2);i(i.S,"Reflect",{ownKeys:n(146)})},function(t,e,n){var i=n(2),o=n(7),a=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var i=n(14),o=n(27),a=n(43),r=n(20),s=n(2),l=n(36),c=n(7),u=n(8);s(s.S,"Reflect",{set:function t(e,n,s){var f,h,p=arguments.length<4?e:arguments[3],d=o.f(c(e),n);if(!d){if(u(h=a(e)))return t(h,n,s,p);d=l(0)}if(r(d,"value")){if(!1===d.writable||!u(p))return!1;if(f=o.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,i.f(p,n,f)}else i.f(p,n,l(0,s));return!0}return void 0!==d.set&&(d.set.call(p,s),!0)}})},function(t,e,n){var i=n(2),o=n(80);o&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(329),t.exports=n(12).Array.includes},function(t,e,n){"use strict";var i=n(2),o=n(63)(!0);i(i.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(44)("includes")},function(t,e,n){n(331),t.exports=n(12).Array.flatMap},function(t,e,n){"use strict";var i=n(2),o=n(332),a=n(17),r=n(11),s=n(25),l=n(134);i(i.P,"Array",{flatMap:function(t){var e,n,i=a(this);return s(t),e=r(i.length),n=l(i,0),o(n,i,i,e,0,1,t,arguments[1]),n}}),n(44)("flatMap")},function(t,e,n){"use strict";var i=n(65),o=n(8),a=n(11),r=n(24),s=n(9)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,f,h,p){for(var d,m,g=u,_=0,y=!!h&&r(h,p,3);_<c;){if(_ in l){if(d=y?y(l[_],_,n):l[_],m=!1,o(d)&&(m=void 0!==(m=d[s])?!!m:i(d)),m&&f>0)g=t(e,n,d,a(d.length),g,f-1)-1;else{if(g>=9007199254740991)throw TypeError();e[g]=d}g++}_++}return g}},function(t,e,n){n(334),t.exports=n(12).String.padStart},function(t,e,n){"use strict";var i=n(2),o=n(147),a=n(71),r=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*r,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(336),t.exports=n(12).String.padEnd},function(t,e,n){"use strict";var i=n(2),o=n(147),a=n(71),r=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*r,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(338),t.exports=n(12).String.trimLeft},function(t,e,n){"use strict";n(49)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(340),t.exports=n(12).String.trimRight},function(t,e,n){"use strict";n(49)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(342),t.exports=n(76).f("asyncIterator")},function(t,e,n){n(119)("asyncIterator")},function(t,e,n){n(344),t.exports=n(12).Object.getOwnPropertyDescriptors},function(t,e,n){var i=n(2),o=n(146),a=n(22),r=n(27),s=n(92);i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=a(t),l=r.f,c=o(i),u={},f=0;c.length>f;)void 0!==(n=l(i,e=c[f++]))&&s(u,e,n);return u}})},function(t,e,n){n(346),t.exports=n(12).Object.values},function(t,e,n){var i=n(2),o=n(148)(!1);i(i.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(348),t.exports=n(12).Object.entries},function(t,e,n){var i=n(2),o=n(148)(!0);i(i.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(140),n(350),t.exports=n(12).Promise.finally},function(t,e,n){"use strict";var i=n(2),o=n(12),a=n(5),r=n(59),s=n(142);i(i.P+i.R,"Promise",{finally:function(t){var e=r(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(352),n(353),n(354),t.exports=n(12)},function(t,e,n){var i=n(5),o=n(2),a=n(71),r=[].slice,s=/MSIE .\./.test(a),l=function(t){return function(e,n){var i=arguments.length>2,o=!!i&&r.call(arguments,2);return t(i?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(i.setTimeout),setInterval:l(i.setInterval)})},function(t,e,n){var i=n(2),o=n(98);i(i.G+i.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var i=n(95),o=n(39),a=n(18),r=n(5),s=n(21),l=n(50),c=n(9),u=c("iterator"),f=c("toStringTag"),h=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(p),m=0;m<d.length;m++){var g,_=d[m],y=p[_],v=r[_],w=v&&v.prototype;if(w&&(w[u]||s(w,u,h),w[f]||s(w,f,_),l[_]=h,y))for(g in i)w[g]||a(w,g,i[g],!0)}},function(t,e,n){var i=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n,i){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),r=new O(i||[]);return a._invoke=function(t,e,n){var i=u;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===p){if("throw"===o)throw a;return M()}for(n.method=o,n.arg=a;;){var r=n.delegate;if(r){var s=x(r,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var l=c(t,e,n);if("normal"===l.type){if(i=n.done?p:f,l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=p,n.method="throw",n.arg=l.arg)}}}(t,n,r),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u="suspendedStart",f="suspendedYield",h="executing",p="completed",d={};function m(){}function g(){}function _(){}var y={};y[a]=function(){return this};var v=Object.getPrototypeOf,w=v&&v(v(S([])));w&&w!==n&&i.call(w,a)&&(y=w);var b=_.prototype=m.prototype=Object.create(y);function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function P(t){function e(n,o,a,r){var s=c(t[n],t,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,a,r)}),(function(t){e("throw",t,a,r)})):Promise.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return e("throw",t,a,r)}))}r(s.arg)}var n;this._invoke=function(t,i){function o(){return new Promise((function(n,o){e(t,i,n,o)}))}return n=n?n.then(o,o):o()}}function x(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=c(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function S(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,r=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}return{next:M}}function M(){return{value:e,done:!0}}return g.prototype=b.constructor=_,_.constructor=g,_[s]=g.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},k(P.prototype),P.prototype[r]=function(){return this},t.AsyncIterator=P,t.async=function(e,n,i,o){var a=new P(l(e,n,i,o));return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(b),b[s]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=S,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(i,o){return s.type="throw",s.arg=t,n.next=i,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var r=a?a.completion:{};return r.type=t,r.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:S(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=i}catch(t){Function("r","regeneratorRuntime = r")(i)}},function(t,e,n){n(357),t.exports=n(149).global},function(t,e,n){var i=n(358);i(i.G,{global:n(100)})},function(t,e,n){var i=n(100),o=n(149),a=n(359),r=n(361),s=n(368),l=function(t,e,n){var c,u,f,h=t&l.F,p=t&l.G,d=t&l.S,m=t&l.P,g=t&l.B,_=t&l.W,y=p?o:o[e]||(o[e]={}),v=y.prototype,w=p?i:d?i[e]:(i[e]||{}).prototype;for(c in p&&(n=e),n)(u=!h&&w&&void 0!==w[c])&&s(y,c)||(f=u?w[c]:n[c],y[c]=p&&"function"!=typeof w[c]?n[c]:g&&u?a(f,i):_&&w[c]==f?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):m&&"function"==typeof f?a(Function.call,f):f,m&&((y.virtual||(y.virtual={}))[c]=f,t&l.R&&v&&!v[c]&&r(v,c,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var i=n(360);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(362),o=n(367);t.exports=n(102)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(363),o=n(364),a=n(366),r=Object.defineProperty;e.f=n(102)?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(101);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(102)&&!n(150)((function(){return 7!=Object.defineProperty(n(365)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(101),o=n(100).document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){var i=n(101);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){(function(i){var o,a;void 0===(a="function"==typeof(o=function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&function(t,e){(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}(t,e)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}var l=function(){function e(){t(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(e,[{key:"addEventListener",value:function(t,e){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"removeEventListener",value:function(t,e){if(t in this.listeners)for(var n=this.listeners[t],i=0,o=n.length;i<o;i++)if(n[i]===e)return void n.splice(i,1)}},{key:"dispatchEvent",value:function(t){var e=this;if(t.type in this.listeners){for(var n=function(n){setTimeout((function(){return n.call(e,t)}))},i=this.listeners[t.type],o=0,a=i.length;o<a;o++)n(i[o]);return!t.defaultPrevented}}}]),e}(),c=function(e){function i(){var e;return t(this,i),(e=function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?r(t):e}(this,a(i).call(this))).listeners||l.call(r(e)),Object.defineProperty(r(e),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(r(e),"onabort",{value:null,writable:!0,configurable:!0}),e}return o(i,e),n(i,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),s(a(i.prototype),"dispatchEvent",this).call(this,t)}}]),i}(l),u=function(){function e(){t(this,e),Object.defineProperty(this,"signal",{value:new c,writable:!0,configurable:!0})}return n(e,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),e}();function f(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof t.Request&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(u.prototype[Symbol.toStringTag]="AbortController",c.prototype[Symbol.toStringTag]="AbortSignal"),function(t){if(f(t))if(t.fetch){var e=function(t){"function"==typeof t&&(t={fetch:t});var e=t,n=e.fetch,i=e.Request,o=void 0===i?n.Request:i,a=e.AbortController,r=e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=void 0!==r&&r;if(!f({fetch:n,Request:o,AbortController:a,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:l};var l=o;(l&&!l.prototype.hasOwnProperty("signal")||s)&&((l=function(t,e){var n;e&&e.signal&&(n=e.signal,delete e.signal);var i=new o(t,e);return n&&Object.defineProperty(i,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),i}).prototype=o.prototype);var c=n;return{fetch:function(t,e){var n=l&&l.prototype.isPrototypeOf(t)?t.signal:e?e.signal:void 0;if(n){var i;try{i=new DOMException("Aborted","AbortError")}catch(t){(i=new Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(i);var o=new Promise((function(t,e){n.addEventListener("abort",(function(){return e(i)}),{once:!0})}));return e&&e.signal&&delete e.signal,Promise.race([o,c(t,e)])}return c(t,e)},Request:l}}(t),n=e.fetch,i=e.Request;t.fetch=n,t.Request=i,Object.defineProperty(t,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:u}),Object.defineProperty(t,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:c})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:i)})?o.call(e,n,e,t):o)||(t.exports=a)}).call(this,n(114))},function(t,e,n){"use strict";n.r(e);var i=n(4),o=n.n(i),a=n(0),r=n.n(a),s=n(104),l=n(1),c=n(3),u=n(371),f=n.n(u),h=function(t,e){this.widget=t,this.module=e,this.state=window.SensbitInpostEasyPackConfig.paymentFilter.defaultEnabled,window.SensbitInpostEasyPackConfig.paymentFilter.state=this.state,this.build()};function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}h.prototype={build:function(){var t=this;return r()("div",{className:"payment-filter",ref:Object(l.k)((function(e){t.state=!window.SensbitInpostEasyPackConfig.paymentFilter.state,window.SensbitInpostEasyPackConfig.paymentFilter.state=t.state,window.SensbitInpostEasyPackConfig.paymentFilter.defaultEnabled=!1,document.querySelectorAll(".payment-filter button").forEach((function(t){t.classList.toggle("selected")})),t.module.loadClosestPoints?t.module.loadClosestPoints(t.module.currentTypes,!0,[],t.state):t.module.self.loadClosestPoints(t.module.currentTypes,!0,[],t.state)}))},r()("button",{id:"payment-filter-input",type:"checkbox",className:"btn btn-checkbox ".concat(window.SensbitInpostEasyPackConfig.paymentFilter.state?"selected":" ")}),r()("i",{className:"far fa-credit-card"}),r()("label",{htmlFor:"payment-filter-input",className:"label"},Object(l.n)("payment_filter")))},render:function(){return this.build()}};var d={};d=n(55).leafletMap,n(60).googleMap;var m=function(t,e,n){this.params=e,this.kind=n||"checkbox",this.selectedTypes=t,this.paymentFilter=null,this.build(t)};m.prototype={build:function(t){this.selectedTypes=t;var e=this,n=this.selectedTypes.filter((function(t){return!c.typesHelpers.getAllAdditionalTypes(window.SensbitInpostEasyPackConfig.extendedTypes).includes(t)}));this.currentType=r()("div",{className:f.a["current-type"],style:{"background-image":void 0!==n[0]&&n.length<2?"url('".concat(window.SensbitInpostEasyPackConfig.iconsUrl).concat(n[0].replace("_only",""),".png?").concat(window.SensbitInpostEasyPack.version,"')"):"none","padding-left":void 0!==n[0]&&n.length<2?"42px":"10px"}},window.SensbitInpostEasyPackConfig.mobileFiltersAsCheckbox?this.getJoinedCurrentTypes():Object(l.n)(n[0])),0===t.length&&(this.currentType.innerHTML=Object(l.n)("select")),this.list=r()("ul",{className:f.a["types-list"]}),this.listWrapper=r()("div",{className:f.a["list-wrapper"]},this.list),this.currentTypeWrapper=r()("div",{className:f.a["current-type-wrapper"]},r()("button",{className:"".concat(f.a.btn," ").concat(f.a["btn-select-type"]),dangerouslySetInnerHTML:{__html:"▼"},ref:Object(l.k)((function(){null===e.listWrapper.offsetParent?e.listWrapper.dataset.show="true":e.listWrapper.dataset.show="false"}))}),this.currentType),this.wrapper=r()("div",{className:f.a["type-filter"]},this.currentTypeWrapper,this.getTypes()),this.params.style.sheet.insertRule(".".concat(f.a["easypack-widget"]," .").concat(f.a["type-filter"]," .").concat(f.a["btn-radio"]," { background: url(").concat(window.SensbitInpostEasyPackConfig.map.typeSelectedRadio,") no-repeat 0 -27px; }"),0),this.params.style.sheet.insertRule(".".concat(f.a["easypack-widget"]," .").concat(f.a["type-filter"]," li .").concat(f.a["btn-checkbox"]," { background: url(").concat(window.SensbitInpostEasyPackConfig.map.typeSelectedIcon,") no-repeat center; }"),0)},getJoinedCurrentTypes:function(){return this.selectedTypes.map((function(t){if(c.typesHelpers.isParent(t,c.typesHelpers.getExtendedCollection())){var e=c.typesHelpers.getObjectForType(t,c.typesHelpers.getExtendedCollection());return null!==e&&e.name?Object(l.n)(e.name):Object(l.n)(t)}if(-1===c.typesHelpers.getAllAdditionalTypes(c.typesHelpers.getExtendedCollection()).indexOf(t))return Object(l.n)(t)})).filter((function(t){return t})).join(", ")},updateDataClass:function(t,e,n,i){e.classList.add(f.a.some),e.setAttribute("data-checked","true"),e.parentNode.setAttribute("data-checked","true"),c.typesHelpers.isAllChildSelected(t,i,n)&&(e.classList.remove(f.a.some),e.classList.remove(f.a.none),e.setAttribute("data-checked","true"),e.parentNode.setAttribute("data-checked","true"),e.classList.add(f.a.all)),c.typesHelpers.isNoOneChildSelected(t,i,n)&&(e.classList.remove(f.a.some),e.classList.remove(f.a.all),e.setAttribute("data-checked","false"),e.parentNode.setAttribute("data-checked","false"),e.classList.add(f.a.none))},renderPaymentFilter:function(){return this.paymentFilter=new h(self,this.params),this.paymentFilter.render()},getTypes:function(){var t=window.SensbitInpostEasyPackConfig.points.types,e=c.typesHelpers.getExtendedCollection(),n=this;return n.items=[],n.checked=0,t.forEach((function(t){var i=l.d.findObjectByPropertyName(e,t)||{};t="pok"===t?"pop":t;var o="url("+window.SensbitInpostEasyPackConfig.iconsUrl+t.replace("_only","")+".png?".concat(window.SensbitInpostEasyPack.version,")"),a=t,s=i.enabled||!0,u='url("'+window.SensbitInpostEasyPackConfig.map.tooltipPointerIcon+'") no-repeat left bottom',h=window.SensbitInpostEasyPackConfig.markersUrl+t.replace("_only","")+".png?"+window.SensbitInpostEasyPack.version,d=Object(l.n)(t),m=Object(l.n)(t+"_description");n.checkedParent=!1;var g,_=l.d.in(t,n.selectedTypes)||"object"===p(i)&&l.d.in(t,n.selectedTypes);_&&n.checked++,void 0!==i.childs&&(i.childs.unshift(JSON.parse('{"'+t+'": { "enabled": "true"}}')),g=r()("div",{className:f.a["dropdown-wrapper"]},r()("ul",{className:f.a["dropdown-subtypes"]},i.childs.map((function(t){return Object.keys(t).map((function(e){if(!0===t[e].enabled){var i=c.typesHelpers.getNameForType(e),o=l.d.in(i,n.selectedTypes);o&&n.checked++;var a=r()("button",{type:"button",className:"".concat(f.a.btn," ").concat(f.a["btn-".concat(n.kind)]," ").concat(f.a["type-".concat(n.kind)])});return n.items.push(a),r()("li",{"data-type":i,"data-checked":o,style:{"background-image":"url(".concat(window.SensbitInpostEasyPackConfig.iconsUrl).concat(i.replace("_only",""),".png?").concat(window.SensbitInpostEasyPack.version)}},a,r()("span",{className:f.a.label},Object(l.n)(i.replace("_only",""))))}}))})))));var y=void 0===i.childs?f.a["has-tooltip"]:f.a["no-tooltip"],v=r()("button",{type:"button",readonly:!1===s,style:{cursor:s?"":"not-allowed"},className:"".concat(f.a.btn," ").concat(f.a["btn-".concat(n.kind)]," ").concat(f.a["type-".concat(n.kind)]," ").concat(void 0!==i.childs?f.a["no-tooltip"]:f.a["has-tooltip"])});n.items.push(v),i.name&&(d=Object(l.n)(i.name));var w=r()("div",{className:f.a["tooltip-wrapper"],style:{background:u}},r()("div",{className:f.a["type-tooltip"]},r()("div",{className:f.a["icon-wrapper"]},r()("img",{src:"".concat(h.replace("_only",""))})),r()("div",{className:f.a.description},m))),b=r()("li",{style:{"background-image":void 0===i.childs?o:""},className:"".concat(void 0!==i.childs?"".concat(f.a["has-subtypes"]," ").concat(f.a.group):f.a["no-subtypes"]),"data-type":a,"data-checked":_},v,r()("span",{className:"".concat(y," ").concat(f.a.label),style:{cursor:s?"":"not-allowed"}},Object(l.n)(d)),void 0!==i.childs&&r()("span",{className:f.a.arrow,ref:Object(l.k)((function(t){t.stopPropagation(),t.target.dataset?t.target.dataset.dropdown="false":t.target.setAttribute("data-dropdown","false");var e=this.parentNode.dataset.dropdown;this.parentNode.dataset.dropdown=void 0===e||"closed"===e?"open":"closed"})),style:{background:"url(".concat(SensbitInpostEasyPackConfig.map.pointerIcon,") no-repeat center bottom / 15px")}}),void 0!==i.childs&&g,l.d.in(t,window.SensbitInpostEasyPackConfig.points.allowedToolTips)&&w);void 0!==i.enabled&&!1===i.enabled||n.list.appendChild(b)})),window.SensbitInpostEasyPackConfig.paymentFilter&&!0===window.SensbitInpostEasyPackConfig.paymentFilter.visible&&n.list.appendChild(n.renderPaymentFilter()),n.listWrapper},setKind:function(t){this.kind=t;var e,n,i=this.list.getElementsByClassName("btn"),o={};for(n=0;n<i.length;n++)i[n].parentElement.classList.contains("payment-filter")||(o[n]=i[n]);for(e=0;e<o.length;e++)o[e].className="".concat(f.a.btn," ").concat(f.a["btn-".concat(this.kind)]," ").concat(f.a["type-".concat(this.kind)])},update:function(t){for(var e=this.list.getElementsByTagName("li"),n=c.typesHelpers.getExtendedCollection(),i=0;i<e.length;i++){var o=e[i],a=o.getAttribute("data-type");l.d.in(a,t)?o.setAttribute("data-checked","true"):o.setAttribute("data-checked","false");var r=l.d.findObjectByPropertyName(n,a)||{};o.querySelector("button.".concat(f.a["main-type"]))&&this.updateDataClass(a,o.querySelector("button.".concat(f.a["main-type"])),r,t)}this.selectedTypes=t,Object(l.g)()&&d.filterPointsByTypes(t);var s=t.filter((function(t){return!c.typesHelpers.getAllAdditionalTypes(window.SensbitInpostEasyPackConfig.extendedTypes).includes(t)}));this.currentType.innerHTML=Object(l.n)(t[0]),window.SensbitInpostEasyPackConfig.mobileFiltersAsCheckbox?this.currentType.innerHTML=this.getJoinedCurrentTypes():this.currentType.innerHTML=Object(l.n)(s[0]),0===t.length&&(this.currentType.innerHTML=Object(l.n)("select")),void 0!==s[0]&&s.length<2?(this.currentType.style.backgroundImage="url("+window.SensbitInpostEasyPackConfig.iconsUrl+s[0].replace("_only","")+".png?".concat(window.SensbitInpostEasyPack.version,")"),this.currentType.style.paddingLeft="42px"):(this.currentType.style.backgroundImage="none",this.currentType.style.paddingLeft="10px"),this.currentTypeWrapper.appendChild(this.currentType)},render:function(t){this.items.length>1&&t.appendChild(this.wrapper),this.placeholder=t},rerender:function(){var t=this.selectedTypes.filter((function(t){return!c.typesHelpers.getAllAdditionalTypes(window.SensbitInpostEasyPackConfig.extendedTypes).includes(t)}));window.SensbitInpostEasyPackConfig.mobileFiltersAsCheckbox?this.currentType.innerHTML=this.getJoinedCurrentTypes():this.currentType.innerHTML=Object(l.n)(t[0]);for(var e=this.list.getElementsByTagName("li"),n=0;n<e.length;++n){var i=e[n];i.getElementsByClassName(f.a.description).length>0&&(i.getElementsByClassName(f.a.description)[0].innerHTML=Object(l.n)(i.dataset.type+"_description")),i.getElementsByClassName(f.a.label)[0].innerHTML=Object(l.n)(i.dataset.type)}}};var g=n(47);function _(){return(_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var y,v={};y=n(55).leafletMap,v=n(60).googleMap;var w=function(t){return this.widget=t,window.SensbitInpostEasyPackConfig.points.functions.length>0&&(this.widget.isFilter=!0),this.mapController=Object(l.e)()?v:y,this.mapController.currentFilters=this.currentFilters=window.SensbitInpostEasyPackConfig.points.functions||[],this.build(),this};w.prototype={build:function(){var t=this,e=function(){var e;t.widget.loader(!0),t.widget.isFilter=!0,this.checked?this.dataset?t.currentFilters.push(this.dataset.filter):t.currentFilters.push(this.getAttribute("data-filter")):(e=this.dataset?t.currentFilters.indexOf(this.dataset.filter):t.currentFilters.indexOf(this.getAttribute("data-filter")),t.currentFilters.splice(e,1),0===t.currentFilters.length&&(t.widget.isFilter=!1,(void 0===t.currentTypes||t.currentTypes.length>0)&&!c.typesHelpers.isOnlyAdditionTypes(t.widget.currentTypes.filter((function(t){return t})),c.typesHelpers.getExtendedCollection())&&t.refreshAllTypes())),t.mapController.currentFilters=t.currentFilters||[],Object(l.g)()?(t.mapController.clearLayers(),t.mapController.sortPointsByFilters(t.currentFilters)):t.widget.showType(this.dataset.filter),o()((function(){t.getPointsByFilter()}),100)};"pl"===window.SensbitInpostEasyPackConfig.instance?Object(g.a)({},(function(t){t.forEach((function(t,n){return document.getElementById("".concat(f.a["filters-widget__list"])).appendChild(r()("li",{key:n,className:"".concat(f.a["filters-widget__elem"])},r()("input",_({type:"checkbox",id:t.name,"data-filter":t.name,ref:Object(l.k)(e)},l.d.in(t.name,window.SensbitInpostEasyPackConfig.points.functions)?{checked:!0}:{})),r()("label",{For:t.name,dangerouslySetInnerHTML:{__html:void 0===t[window.SensbitInpostEasyPackConfig.defaultLocale]?t.name:t[window.SensbitInpostEasyPackConfig.defaultLocale]}})))}))})):window.SensbitInpostEasyPackConfig.filters=!1,this.filtersElement=r()("div",{className:"".concat(f.a["filters-widget"]," ").concat(f.a.hidden),"data-open":!1},r()("div",{className:"".concat(f.a["filters-widget__loading"])}),r()("ul",{className:"".concat(f.a["filters-widget__list"]),id:"".concat(f.a["filters-widget__list"])}))},refreshAllTypes:function(t){Object(l.e)()&&v.clearMarkers(),this.widget.showType(this.widget.currentTypes[0])},getPointsByFilter:function(){var t=this;if(t.currentFilters.length>0&&this.widget.currentTypes.length>0){t.filtersElement.className="".concat(f.a["filters-widget"]," ").concat(f.a.loading),Object(l.e)()&&v.clearMarkers(),t.widget.listObj.clear();for(var e=function(e){var n=t.widget.currentTypes[e];if(!c.typesHelpers.isOnlyAdditionTypes(t.widget.currentTypes.filter((function(t){return t})),c.typesHelpers.getExtendedCollection())){var i=(t.widget.allMarkers[n]||[]).filter((function(e){return l.d.all(t.currentFilters,e.point.functions)}));i.forEach((function(e){t.widget.listObj.addPoint(e.point,t.widget.addListener(e),n)})),Object(l.e)()&&v.addMarkers(i)}},n=0;n<t.widget.currentTypes.length;n++)e(n);t.widget.loadClosestPoints(),t.filtersElement.className=f.a["filters-widget"],t.widget.statusBarObj.hide()}else{Object(l.e)()&&v.clearMarkers(),t.filtersElement.className=f.a["filters-widget"],t.widget.listObj.clear();for(var i=0;i<t.widget.currentTypes.length;i++)c.typesHelpers.isOnlyAdditionTypes(t.widget.currentTypes.filter((function(t){return t})),c.typesHelpers.getExtendedCollection())||t.widget.showType(t.widget.currentTypes[i])}o()((function(){t.widget.loader(!1)}),0)},render:function(){return this.filtersElement},rerender:function(){return this.filtersElement}};var b=function(t){return this.widget=t,this.build(),this};b.prototype={build:function(){var t=this;t.searchInput=r()("input",{type:"search",autoComplete:"geo-search",className:f.a["search-input"],name:"easypack-search",id:"easypack-search",placeholder:Object(l.n)("search_by_city_or_address")});var e=function(){!0===this.classList.contains(f.a.opened)?(this.classList.remove(f.a.opened),t.widget.filtersObj.filtersElement.classList.add(f.a.hidden)):(this.classList.add(f.a.opened),t.widget.filtersObj.filtersElement.classList.remove(f.a.hidden))};this.searchButton=r()("button",{className:"".concat(f.a.btn," ").concat(f.a["btn-search"]),type:"button",style:{"background-image":"url(".concat(window.SensbitInpostEasyPackConfig.iconsUrl,"search.png?").concat(window.SensbitInpostEasyPack.version,")")}});var n=function(t){return!!window.SensbitInpostEasyPackConfig.filters&&r()("button",{"data-open":!1,className:"".concat(f.a.btn," ").concat(f.a["btn-filters"]," ").concat(t.class),type:"button",ref:Object(l.k)(e)},Object(l.n)("show_filters"),r()("span",{className:f.a["btn-filters__arrow"],style:{"background-image":"url(".concat(window.SensbitInpostEasyPackConfig.iconsUrl,"filters.png?").concat(window.SensbitInpostEasyPack.version,")")}}))};return this.desktopFiltersButton=r()(n,{class:f.a["visible-xs"]}),this.mobileFiltersButton=r()(n,{class:f.a["hidden-xs"]}),this.searchElement=r()("div",{className:f.a["search-widget"],id:"searchWidget"},this.desktopFiltersButton,r()("div",{className:"".concat(f.a["search-group"]," ").concat(window.SensbitInpostEasyPackConfig.filters?f.a["with-filters"]:"")},this.searchInput,r()("span",{className:"".concat(f.a["search-group-btn"]," ").concat(window.SensbitInpostEasyPackConfig.filters?f.a["with-filters"]:"")},this.mobileFiltersButton,this.searchButton))),this.searchElement},render:function(){return this.searchElement},rerender:function(){document.getElementById("searchWidget").replaceWith(this.build())}};var k=n(54),P=n.n(k),x=n(10),L={},C={};L=n(55).leafletMap,C=n(60).googleMap;var O="listvillages",S={searchObj:null,mapObj:null,placesService:null,searchWait:null,params:null,maxPointsResult:0,loader:null,self:null,service:function(t,e,n){this.searchObj=t,this.mapObj=e,this.params=n,this.maxPointsResult=window.SensbitInpostEasyPackConfig.searchPointsResultLimit;var i=this;if(Object(l.f)()){var o=new google.maps.places.AutocompleteService;S.placesService=new google.maps.places.PlacesService(Object(l.g)()?document.createElement("div"):i.mapObj.map),i.placesService=S.placesService}i.loaderToggle(!1);var a=P()((function(t){var e=document.getElementById(O);if(t.target.value.length>2&&13!==t.which){if(i.loaderToggle(!0),e){for(var n=e.getElementsByClassName(f.a.place);n[0];)n[0].parentNode.removeChild(n[0]);for(n=e.getElementsByClassName(f.a.point);n[0];)n[0].parentNode.removeChild(n[0])}var a=t.target.value.replace(/ul\.\s?/i,"");if(0!==a.length){var r=a+" "+window.SensbitInpostEasyPackConfig.map.searchCountry;switch(window.SensbitInpostEasyPackConfig.searchType){case"osm":Object(l.a)("".concat(window.SensbitInpostEasyPackConfig.searchApiUrl,"?q=").concat(encodeURIComponent(a),"&format=jsonv2"),"GET",(function(t){var e=[];if(t.length)for(var n=function(n){if(void 0===e.find((function(e){return e.display_name===t[n].display_name}))&&e.push(t[n]),e.length>=6)return"break"},o=0;o<t.length&&"break"!==n(o);o++);i.displaySuggestions(e,"OK",i)}));break;case"google":o.getPlacePredictions({input:r,types:["geocode"]},(function(t,e){return i.displaySuggestions(t,e,i)}))}a.length>=window.SensbitInpostEasyPackConfig.map.autocompleteMinSearchPoint&&(window.abortController&&window.abortController.abort&&"/point"===window.requestPath&&window.abortController.abort(),i.displayPointsResults(a))}}else null!==e&&t.target.value.length<=2&&(e.classList.add(f.a.hidden),e.parentElement.removeChild(e),i.loaderToggle(!1));13===t.which&&document.getElementsByClassName(f.a["inpost-search__item-list"]).length>0&&i.selectFirstResult()}),400);this.searchObj.searchInput.addEventListener("keyup",(function(t){a(t)}),!1),this.bindSearchEvents()},displaySuggestions:function(t,e,n){if(n=this,"OK"===e){var i,o=document.getElementsByClassName(f.a["search-widget"])[0];null===document.getElementById(O)?i=r()("div",{id:O,className:"".concat(f.a["inpost-search__list"])}):(i=document.getElementById(O)).classList.remove(f.a.hidden);for(var a=i.getElementsByClassName(f.a.place);a[0];)a[0].parentNode.removeChild(a[0]);var s=function(t){switch(n.searchObj.searchInput.value=t.target.querySelector(".pac-matched").innerHTML,window.SensbitInpostEasyPackConfig.searchType){case"google":(function(){Object(l.g)()?(new google.maps.Geocoder).geocode({placeId:t.target.dataset.placeid},(function(t,e){"OK"===e&&L.setMapView({latitude:t[0].geometry.location.lat(),longitude:t[0].geometry.location.lng()},!0,window.SensbitInpostEasyPackConfig.map.autocompleteZoom)})):(S.searchObj.searchInput.value=t.target.querySelector(".pac-matched").innerHTML,void 0!==t.target.childNodes[1]&&(S.searchObj.searchInput.value+=", "+this.childNodes[1].innerHTML),S.setCenter(t.target.dataset.placeid))}).call(this);break;case"osm":(function(){if(Object(l.g)())L.setMapView({latitude:this.dataset.lat,longitude:this.dataset.lng},!0,window.SensbitInpostEasyPackConfig.map.autocompleteZoom);else if(Object(l.e)()){var t=new google.maps.LatLng(this.dataset.lat,this.dataset.lng);C.setCenter(t),C.setZoom(window.SensbitInpostEasyPackConfig.map.detailsMinZoom)}}).call(this)}};t.map((function(t){if("OK"===e)return r()("div",{"data-placeid":Object(l.f)()?t.place_id:null,"data-lat":Object(l.h)()?t.lat:"","data-lng":Object(l.h)()?t.lon:"",className:"".concat(f.a["inpost-search__item-list"]," ").concat(f.a.place),ref:Object(l.k)(s)},r()("span",{className:f.a["inpost-search__item-list--query"],style:{"pointer-events":"none"}},r()("span",{className:"pac-matched",style:{"pointer-events":"none"}},Object(l.f)()?t.description:t.display_name)))})).forEach((function(t){return i.appendChild(t)})),o.appendChild(i),n.loaderToggle(!1)}else n.loaderToggle(!1)},displayPointsResults:function(t){var e,n=this,i=document.getElementsByClassName(f.a["search-widget"])[0];null===document.getElementById(O)?e=r()("div",{id:O,className:f.a["inpost-search__list"]}):(e=document.getElementById(O)).classList.remove(f.a.hidden);for(var o=e.getElementsByClassName(f.a.point);o[0];)o[0].parentNode.removeChild(o[0]);Object(x.c)(t.toUpperCase(),(function(t){if(t&&t.name){var i=r()("div",{className:"".concat(f.a["inpost-search__item-list"]," ").concat(f.a.point)},r()("span",{className:f.a["inpost-search__item-list--query"]},r()("span",{className:f.a["pac-matched"]}))).cloneNode(!0);i.querySelector(".pac-matched").innerHTML=t.name,t.action=function(){Object(l.e)()?(C.handleSearchLockerPoint(t),n.mapObj.module.loader(!0)):Object(l.g)()&&(L.handleSearchLockerPoint(t),n.mapObj.loader(!0))},i.addEventListener("click",(function(){S.searchObj.searchInput.value=this.childNodes[0].childNodes[0].innerHTML,void 0!==this.childNodes[1]&&(S.searchObj.searchInput.value+=", "+this.childNodes[1].innerHTML),t.action()})),n.loaderToggle(!1);var o=!0;document.getElementById(O).childNodes.length>0&&document.getElementById(O).childNodes.forEach((function(e){o&&(o=e.innerHTML!==t.name)})),o&&e.insertAdjacentElement("beforeend",i),document.getElementById(O).classList.remove("hidden")}else n.loaderToggle(!1)}),{functions:n.mapObj.currentFilters||n.mapObj.currentFilters,type:n.mapObj.types||n.mapObj.currentTypes}),i.appendChild(e)},bindSearchEvents:function(){var t=this;this.params.placeholderObj.addEventListener("click",(function(t){var e=t.target.className,n=document.getElementById(O);null!==n&&(e!==f.a["search-input"]||e!==f.a["inpost-search__item-list"]?n.classList.add(f.a.hidden):e===f.a["inpost-search__list"]&&n.classList.remove(f.a.hidden))})),this.searchObj.searchButton.addEventListener("click",(function(){t.selectFirstResult()}))},selectFirstResult:function(){this.mapObj&&this.mapObj.currentInfoWindow&&this.mapObj.currentInfoWindow.close();for(var t=document.getElementsByClassName(f.a["inpost-search__item-list"]),e=document.getElementById("easypack-search").value,n=null,i=0;i<t.length;i++){var o=t[i].childNodes[0].childNodes[0].innerHTML.toLowerCase();t[i].childNodes.length>1&&(o+=", "+t[i].childNodes[1].innerHTML.toLowerCase()),null===n&&0===o.search(e.toLowerCase())&&(n=t[i])}var a=document.getElementsByClassName(f.a["inpost-search__item-list"]).item(0);if(null!==n&&(a=n),null!=a)if(a.dataset.placeid){this.searchObj.searchInput.value="";for(var r=0;r<a.children.length;r++){var s=a.children.item(r);s.children.length>0&&(s=s.children[0]),this.searchObj.searchInput.value=this.searchObj.searchInput.value+s.innerHTML+", "}switch(Object(l.h)()?this.searchObj.searchInput.value=this.searchObj.searchInput.value.slice(0,-4):this.searchObj.searchInput.value=this.searchObj.searchInput.value.slice(0,-2),window.SensbitInpostEasyPackConfig.searchType){case"google":Object(l.g)()?(new google.maps.Geocoder).geocode({placeId:a.dataset.placeid},(function(t,e){"OK"===e&&L.setMapView({latitude:t[0].geometry.location.lat(),longitude:t[0].geometry.location.lng()},!0,window.SensbitInpostEasyPackConfig.map.autocompleteZoom)})):this.setCenter(a.dataset.placeid),document.getElementById(O).classList.add(f.a.hidden);break;case"osm":default:if(Object(l.g)())L.setMapView({latitude:a.dataset.lat,longitude:a.dataset.lng},!0,window.SensbitInpostEasyPackConfig.map.autocompleteZoom);else if(Object(l.e)()){var c=new google.maps.LatLng(a.dataset.lat,a.dataset.lng);C.map.setCenter(c),C.map.setZoom(window.SensbitInpostEasyPackConfig.map.detailsMinZoom)}document.getElementById(O).classList.add(f.a.hidden)}}else a.dataset.placeid||a.click();this.searchObj.searchInput.blur()},loaderToggle:function(t){if(document.getElementById("searchLoader"))t&&this.loader.classList.contains(f.a.hidden)?this.loader.classList.remove(f.a.hidden):t||this.loader.classList.contains(f.a.hidden)||this.loader.classList.add(f.a.hidden);else{var e=r()("div",{id:"searchLoader",className:"".concat(f.a["loading-icon-wrapper"]," ").concat(f.a["loader-wrapper"]," ").concat(f.a.hidden)},r()("div",{className:"ball-spin-fade-loader"},r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null)));this.loader=this.searchObj.searchInput.parentNode.insertBefore(e,this.searchObj.searchInput.parentNode.lastChild)}},setCenter:function(t){S.placesService.getDetails({placeId:t},(function(t){S.params.clearDetails(),S.params.closeInfoBox(),t&&(t.geometry.viewport&&Object(l.g)()?L.map.fitBounds([[t.geometry.viewport.getNorthEast().lat(),t.geometry.viewport.getNorthEast().lng()],[t.geometry.viewport.getSouthWest().lat(),t.geometry.viewport.getSouthWest().lng()]]):t.geometry.viewport&&Object(l.e)()?(C.map.fitBounds(t.geometry.viewport),o()((function(){C.map.getZoom()<window.SensbitInpostEasyPackConfig.map.visiblePointsMinZoom&&C.map.setZoom(window.SensbitInpostEasyPackConfig.map.visiblePointsMinZoom)}),300)):(C.map.setCenter(t.geometry.location),C.map.setZoom(window.SensbitInpostEasyPackConfig.map.detailsMinZoom))),document.getElementById(O).classList.add(f.a.hidden)}))}},M=n(105),T=n(106),E=n(107),j=n(108),z=n(109),A=n(110),I=n(46);function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){F(t,e,n[e])}))}return t}function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Z={},R={};Z=n(55).leafletMap,R=n(60).googleMap;var H=function(t,e,n,i){var a,s,u,p,d=t,g=i,_=(window.SensbitInpostEasyPackConfig.points.types,window.SensbitInpostEasyPackConfig.map.defaultLocation),y=_,v=[],k={},P=[],L=null,C=null,O=null,F=null,H=null,q=null,U=null,G=!1,W={},V={};switch(self.initialLocation=y,self.searchObj=null,self.detailsObj=null,self.pointsStorage={},self.isFilter=window.SensbitInpostEasyPackConfig.filters,self.isMobile=G,self.allMarkers=k,self.mapRendered=!1,window.SensbitInpostEasyPack.pointCallback=e,!0){case Object(l.e)():p=R;break;case Object(l.g)():p=Z}self.mapController=p,self.closeModal=function(){document.getElementById("widget-modal").parentNode.style.display="none",self.mapRendered=!1};var K=function(t){window.SensbitInpostEasyPackConfig.closeFullScreenModeOnPointSelect&&(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen().then((function(){})):document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()),(window.SensbitInpostEasyPack.pointCallback||window.SensbitInpostEasyPackConfig.customDetailsCallback)&&(window.SensbitInpostEasyPackConfig.customDetailsCallback||window.SensbitInpostEasyPack.pointCallback)(t,self)},Y=function(){if(null!=u){var t=U.querySelector("."+u.element.className);t.parentNode.removeChild(t),u=null}};self.clearDetails=Y,self.isMobile=G,Z.pointCallback=K,Z.locationFromBrowser=O,Z.initialLocation=y,Z.module=g,Z.params={setPointDetails:self.setPointDetails,closeInfoBox:self.closeInfoBox,style:q,map:null,fullscreenControl:{pseudoFullscreen:!1},placeholder:U,initialLocation:y,isMobile:G,widget:self},self.showType=function(t){var e,n=G&&!window.SensbitInpostEasyPackConfig.mobileFiltersAsCheckbox,i=c.typesHelpers.isParent(t,c.typesHelpers.getExtendedCollection()),o=a;if(n?o=[t]:o.push(t),i&&(e=o).push.apply(e,D(function(){var t=c.typesHelpers.getAllAdditionalTypes(c.typesHelpers.getExtendedCollection());return D(a.filter((function(e){return!t.includes(e)})))}())),(o=c.typesHelpers.sortByPriorities(c.typesHelpers.getUniqueValues(o))).filter((function(t){return t.includes("_only")})).length>=1){var r=c.typesHelpers.getAllAdditionalTypes(c.typesHelpers.getExtendedCollection());o=o.filter((function(t){return!r.includes(t)}))}p.clearMarkers(),o.forEach((function(t){var e=t.replace("_only","");if(void 0!==k[e]){var n=k[e].filter((function(t){return!t.point.functions||l.d.all(self.filtersObj.currentFilters,t.point.functions)}));X(n,t),Object(l.e)()&&R.addMarkers(n)}})),p.types=a=o,self.statusBarObj&&self.statusBarObj.clear(),et(a,!0,self.filtersObj.currentFilters),self.typesFilterObj&&self.typesFilterObj.update(a),Y(),Q(),C.params.currentTypes=a,G&&(F.listWrapper.dataset.show="false")},self.hideType=function(t){self.mapIdle?mt(t):o()((function(){self.hideType(t)}),250)},self.hideAllTypes=function(){a.length=0,v=[],R.clearMarkers(),C.clear(),F.update(a),Y(),Q()},self.addType=function(t){void 0===W[t.id]&&(W[t.id]=[]),W[t.id]=t,window.SensbitInpostEasyPackConfig.points.types.push(t)},self.refreshPoints=function(){C.clear(),window.SensbitInpostEasyPack.pointsToSearch.forEach((function(t){C.addPoint(N({},t,{type:t.types}),st(P[t.name]),self.currentTypes)}))},self.addPoint=function(t){if(t.dynamic=!0,void 0!==W[t.type[0]]&&(t.icon=W[t.type[0]].icon),l.d.in(t.type,a))rt([t],!0,t.type);else for(var e=0;t.type.length>e;e++)void 0===V[t.type[e]]&&(V[t.type[e]]=[]),V[t.type[e]].push(t)},self.searchPlace=function(t){if(self.mapIdle)switch(self.searchObj&&(self.searchObj.searchInput.value=t),window.SensbitInpostEasyPackConfig.searchType){case"osm":Object(l.a)(window.SensbitInpostEasyPackConfig.searchApiUrl+"?q="+t+"&format=jsonv2","GET",(function(t){t&&t.length&&(self.searchObj.searchInput.value=t[0].display_name,p.handleOsmSearchPlace(t))}));break;case"google":(new google.maps.Geocoder).geocode({address:t+" "+window.SensbitInpostEasyPackConfig.map.searchCountry},(function(t,e){e===google.maps.GeocoderStatus.OK&&t.length>0&&!t[0].partial_match?(p.handleGoogleSearchPlace(t),H&&(self.searchObj.searchInput.value=t[0].formatted_address)):e!==google.maps.GeocoderStatus.OK||0!==t.length&&!t[0].partial_match||H&&(H.searchInput.value="")}))}else o()((function(){self.searchPlace(t)}),250)},self.searchLockerPoint=function(t){self.mapIdle&&t&&t.length>0?Object(x.c)(t,(function(t){t.error||p.handleSearchLockerPoint(t)})):o()((function(){self.searchLockerPoint(t)}),250)};var X=function(t,e){for(var n=0;t.length>n;n++)t[n]=ut(t[n],e)},J=function(t){s=t},$=Z.params.setPointDetails=function(t){u=t},Q=Z.params.closeInfoBox=function(){void 0!==s&&s.close()};self.closeInfoBox=Q,self.renderPaymentFilter=function(){return this.paymentFilter=new h(self,self),this.paymentFilter.render()};var tt=function(t){return t.length>0?t.sort((function(t,e){var n=p.getCenterLat(),i=p.getCenterLng();return l.d.calculateDistance([n,i],[t.location.latitude,t.location.longitude])-l.d.calculateDistance([n,i],[e.location.latitude,e.location.longitude])})):t};self.sortCurrentPointsByDistance=tt;var et=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=p.getZoom();if(o>=window.SensbitInpostEasyPackConfig.map.visiblePointsMinZoom)if(void 0===(n=self.filtersObj.currentFilters)&&(n=[]),a.length>0||n.length>0){var r=self.isFilter?{type:a,functions:n}:{type:a};i||window.SensbitInpostEasyPackConfig.paymentFilter&&!0===window.SensbitInpostEasyPackConfig.paymentFilter.state?(r.payment_available="true",r.payment_type="2"):(delete r.payment_available,delete r.payment_type);var s=self.mapRendered&&void 0!==p.getBounds()?p.calculateBoundsDistance():window.SensbitInpostEasyPackConfig.map.defaultDistance;0===s&&(s=window.SensbitInpostEasyPackConfig.map.defaultDistance),_=p.getCenterMapLocation(),self.listObj.loading(!0),window.abortController&&window.abortController.abort&&window.abortController.abort(),Object(x.b)(_,s,r,(function(e){if(C.clear(),Object(l.g)()&&Z.addLeafletPoints({items:e},[],!1,"",n,!0),a.includes("parcel_locker_only")&&(e=e.filter((function(t){return 1===t.type.length&&t.type.includes("parcel_locker")}))),nt(!1),self.statusBarObj.hide(),e.length&&(e=tt(e)),void 0===t&&(t=a[0]),rt(e,!0,t),document.getElementById("point-list").style.pointerEvents="all",document.getElementsByClassName("list-point-link").length)for(var i=document.getElementsByClassName("list-point-link"),o=0;o<i.length;o++)i.item(o).style.cursor="pointer";e.filter((function(t){return t.name===p.showMarkerName})).length>0&&window.SensbitInpostEasyPack.pointsToSearch.find((function(t){return t.name===p.showMarkerName})).action(),0===e.length&&(self.mapController.clearMarkers(),self.statusBarObj.showInfoAboutNoPoints())}),p.map,(function(t){}))}else self.statusBarObj.hide();else nt(!1),self.statusBarObj.showInfoAboutZoom(),C.clear(),p.clearMarkers()};self.loadClosestPoints=et;var nt=function(t){t?U.mapLoader.classList.remove(f.a.hidden):U.mapLoader.classList.add(f.a.hidden)};self.loader=nt;var it=function(){Object(l.e)()?at():ot()},ot=function(){SensbitInpostEasyPack.leafletMapsApi.ready&&!self.mapRendered?p.renderMap(U,L,n):o()((function(){it()}),250)},at=function(){SensbitInpostEasyPack.googleMapsApi.ready&&!self.mapRendered?p.renderMap(U,L,n):o()((function(){it()}),250)},rt=function t(e,n,i){self.mapRendered?(n&&C.clear(),ct(e,n,i)):o()((function(){t(e,n,i)}),250)};self.addPoints=rt;var st=function(t){return function(){ft(t)}};self.addListener=st;var lt=function(t){return p.createMarker(t,self.addListener)};self.createMarker=lt;var ct=function(t,e,n){var i=[];if((t=t.filter((function(t){return p.visibleOnMap(t)||window.SensbitInpostEasyPackConfig.points.showPoints.length>0}))).forEach((function(t){if(t.location&&0!==t.location.latitude&&0!==t.location.longitude)if(v.indexOf(t.name)>-1&&!0===e){var n=P[t.name];-1===window.SensbitInpostEasyPack.pointsToSearch.indexOf({name:t.name,types:t.type,action:st(n)})&&window.SensbitInpostEasyPack.pointsToSearch.push(N({name:t.name,types:t.type,action:st(n)},t))}else{var o=lt(t);-1===window.SensbitInpostEasyPack.pointsToSearch.indexOf({name:t.name,types:t.type,action:st(o)})&&window.SensbitInpostEasyPack.pointsToSearch.push(N({name:t.name,types:t.type,action:st(o)},t)),v.push(t.name),t.type.filter((function(t){return"pok"!==t})).forEach((function(e){void 0!==k[e]&&0!==k[e].length||(k[e]=[]),-1===k[e].indexOf(o)&&k[e].push(o),c.typesHelpers.in(e.replace("_only",""),a)&&void 0===P[t.name]&&null!==o.point.functions&&l.d.all(self.filtersObj.currentFilters,o.point.functions)&&i.push(o),P[t.name]=o}))}})),t=tt(t),Object(l.e)()&&window.SensbitInpostEasyPackConfig.points.showPoints.length>0&&window.SensbitInpostEasyPack.pointsToSearch.length>0&&!window.SensbitInpostEasyPack.showPointsInitialized){var o=new google.maps.LatLngBounds;window.SensbitInpostEasyPack.pointsToSearch.forEach((function(t){var e=new google.maps.LatLng(t.location.latitude,t.location.longitude);o.extend(e)})),window.SensbitInpostEasyPack.showPointsInitialized=!0,self.loader(!1),R.map.fitBounds(o),R.map.setZoom(window.SensbitInpostEasyPackConfig.map.detailsMinZoom)}t.forEach((function(t){var e=P[t.name];t.type.filter((function(t){return"pok"!==t})).forEach((function(t){(c.typesHelpers.in(t.replace("_only",""),a)&&null!==e.point.functions&&l.d.all(self.filtersObj.currentFilters,e.point.functions)||null===e.point.functions)&&i.push(k[t].find((function(t){return t.point.name===e.point.name})))})),self.currentTypes.length>0&&C.addPoint(t,st(P[t.name]),n)})),i.length>0?(p.addMarkers(i),i=[]):self.statusBarObj.showInfoAboutNoPoints(),l.d.hasCustomMapAndListInRow()&&C.paginate(1,l.d.getPaginationPerPage()),C&&C.loading&&C.loading(!1),self.loader(!1),self.statusBarObj.hide()};Z.processNewPoints=self.processNewPoints=ct;var ut=function(t){var e=Object(x.e)(t.point,a);return p.updateMarkerIcon(t,e)},ft=function(t){if(void 0===t);else{for(var e=document.getElementsByClassName(f.a["info-box-wrapper"]),n=0;n<e.length;n++)e[n]&&e[n].getElementsByTagName("img")[0]&&e[n].getElementsByTagName("img")[0].click();G&&!l.d.hasCustomMapAndListInRow()&&(self.viewChooserObj.listWrapper.setAttribute("data-active","false"),self.viewChooserObj.mapWrapper.setAttribute("data-active","true"),Object(l.e)()?self.mapElement.style.display="block":(document.getElementById("map-leaflet").style.display="flex",document.getElementById("map-leaflet").style.visibility="visible"),self.listObj.listElement.style.display="none");var i,o=p.getWindowSize(G);Object(x.c)(t.point.name,(function(e){if(void 0===self.pointsStorage[t.point.name]&&(self.pointsStorage[t.point.name]=e),i=function(e){return new A.infoWindow(t,{clearDetails:Y,setPointDetails:$,setInfoBox:J,closeInfoBox:Q,style:q,infoBox:s,pointDetails:u,placeholder:U,placeholderId:d,initialLocation:y,map:R.map,isMobile:G,locationFromBrowser:O},{pixelOffset:o},e,K||window.SensbitInpostEasyPackConfig.customDetailsCallback,self,G)}(e),null!=u){var n=function(e){return new I.a(t,{setPointDetails:$,pointDetails:u,closeInfoBox:Q,style:q,map:p.map,placeholder:U,initialLocation:y,isMobile:G,widget:self},e)}(e);n.render(),self.detailsObj=n}p.offsetCenter(t.getPosition(),0,-120,i,self.viewChooserObj.resetState,t)}))}};self.renderTypesFilter=function(){var t;t=window.SensbitInpostEasyPackConfig.mobileFiltersAsCheckbox?"checkbox":G?"radio":"checkbox",F=new m(a,{currentTypes:a,style:q,self:self},t),self.typesFilterObj=F,F.render(U)},self.addTypeClickEvent=function(){if(window.SensbitInpostEasyPackConfig.display.showTypesFilters){var t,e=self.typesFilterObj.items;G||document.addEventListener("click",(function(){for(var t=document.getElementsByClassName(f.a["has-subtypes"]),e=0;e<t.length;e++)t[e].dataset.dropdown="closed"}));var n=function(t){var e=t.parentNode.getAttribute("data-type");switch(window.SensbitInpostEasyPackConfig.mapType){case"google":self.statusBarObj.showInfoAboutZoom(),C.clear(),R.clearMarkers();break;default:Z.map.invalidateSize(),C.clear(),Z.clearLayers()}G&&!window.SensbitInpostEasyPackConfig.mobileFiltersAsCheckbox?self.showType(e):l.d.in(e,a)?self.hideType(e):self.showType(e)};for(t=0;t<e.length;t++){var i=e[t];i.addEventListener("click",(function(t){t.stopPropagation(),n(this,self)})),i.nextSibling.addEventListener("click",(function(t){t.stopPropagation(),n(this,self)}))}}},self.renderList=function(){C=l.d.hasCustomMapAndListInRow()?new T.paginatedListWidget({currentTypes:a}):new M.listWidget({currentTypes:a,mapController:p}),Z.listObj=self.listObj=C,R.listObj=C,C.render(document.getElementById(f.a["map-list-flex"]))},self.renderViewChooser=function(){var t=new E.viewChooser({style:q,mapElement:self.mapElement,leafletMap:Z.element,list:self.listObj});self.viewChooserObj=t,t.render(U)},self.renderStatusBar=function(){self.statusBarObj=new j.statusBar(self),self.statusBarObj.render(Object(l.g)()?document.getElementById("map-leaflet"):document.getElementById("map"))},self.renderLanguageBar=function(t,e){window.SensbitInpostEasyPackConfig.langSelection&&new z.languageBar(self,t,e).render(Object(l.g)()?document.getElementById("map-leaflet"):document.getElementById("map"))},self.renderSearch=function(){H=new b(self),self.searchObj=H,U.insertBefore(H.render(),U.firstChild),pt()},self.renderFilters=function(){var t=new w(self);self.filtersObj=t,U.insertBefore(t.render(),U.firstChild)};var ht,pt=function(){return S.service(H,p,{placeholderObj:U,clearDetails:Y,closeInfoBox:Q,currentTypes:a})},dt=function(){U.offsetWidth<window.SensbitInpostEasyPackConfig.mobileSize?G||self.isModal||(Q(),Y(),Z.params.isMobile=G=!0,self.isMobile=!0,U.className="".concat(f.a["easypack-widget"]," ").concat(f.a.mobile),F&&(window.SensbitInpostEasyPackConfig.mobileFiltersAsCheckbox||F.setKind("radio"),F.listWrapper.dataset.show="false"),a&&a.length>1&&(window.SensbitInpostEasyPackConfig.mobileFiltersAsCheckbox||(a=[a[0]],c.typesHelpers.getObjectForType(a[0],c.typesHelpers.getExtendedCollection())&&c.typesHelpers.getObjectForType(a[0],c.typesHelpers.getExtendedCollection()).additional&&(a=[c.typesHelpers.getObjectForType(a[0],c.typesHelpers.getExtendedCollection()).additional].concat(a))),F&&F.update(a))):G&&(Q(),Y(),U.className=f.a["easypack-widget"],Z.params.isMobile=G=!1,self.isMobile=!1,F&&F.setKind("checkbox"))},mt=function t(e){var n=a.indexOf(e);if(n>-1){if(window.pendingRequests.length>0)for(var i=0;window.pendingRequests.length>i;i++);v=[],c.typesHelpers.isParent(e,c.typesHelpers.getExtendedCollection())&&c.typesHelpers.isAllChildSelected(e,a,l.d.findObjectByPropertyName(c.typesHelpers.getExtendedCollection(),e)||{})&&c.typesHelpers.getAllChildsForGroup(e,c.typesHelpers.getExtendedCollection()).filter((function(t){return t!==e})).forEach((function(e){t(e)})),a.splice(n,1);var o=c.typesHelpers.getParentIfAvailable(e,c.typesHelpers.getExtendedCollection());null!==o&&c.typesHelpers.isNoOneChildSelected(o,a,c.typesHelpers.getObjectForType(o,c.typesHelpers.getExtendedCollection()))&&t(o),e=e.replace("_only",""),void 0!==k[e]&&X(k[e]),c.typesHelpers.isOnlyAdditionTypes(a.filter((function(t){return t})),c.typesHelpers.getExtendedCollection())&&c.typesHelpers.getAllAdditionalTypes(c.typesHelpers.getExtendedCollection()).forEach((function(e){t(e)})),p.clearMarkers(),a.length>0&&a.forEach((function(t){if(void 0!==k[t.replace("_only","")]){var e=k[t.replace("_only","")].filter((function(t){return!t.point.functions||l.d.all(self.filtersObj.currentFilters,t.point.functions)}));X(e),p.addMarkers(e)}})),self.statusBarObj&&self.statusBarObj.clear(),et(),F.update(a),Y(),Q()}};return function t(){var e=document.getElementById(d);if(e){Z.params.placeholder=U=e,self.placeholderObj=e,e.className=f.a["easypack-widget"],p.placeholderObj=e;var n=e.ownerDocument;Z.params.style=q=n.createElement("style"),q.appendChild(n.createTextNode("")),n.head.appendChild(q),L=r()("div",{className:f.a["loading-icon-wrapper"]},r()("div",{className:"ball-spin-fade-loader ball-spin-fade-loader-mp"},r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null))),self.placeholderObj.appendChild(L),dt(),setInterval((function(){dt()}),250)}else o()((function(){t()}),250)}(),p.module=self,self.init=i.init,function(){for(var t=0;t<window.SensbitInpostEasyPackConfig.points.types.length;t++){if("object"===B(window.SensbitInpostEasyPackConfig.points.types[t])){"pok"===window.SensbitInpostEasyPackConfig.points.types[t].name&&(window.SensbitInpostEasyPackConfig.points.types[t].name="pop");break}"pok"===window.SensbitInpostEasyPackConfig.points.types[t]&&(window.SensbitInpostEasyPackConfig.points.types[t]="pop")}l.d.in("pok",window.SensbitInpostEasyPackConfig.map.initialTypes)&&(window.SensbitInpostEasyPackConfig.map.initialTypes=window.SensbitInpostEasyPackConfig.map.initialTypes.map((function(t){return"pok"===t?"pop":t}))),a=l.d.intersection(window.SensbitInpostEasyPackConfig.map.initialTypes,window.SensbitInpostEasyPackConfig.points.types);var e=c.typesHelpers.seachInArrayOfObjectsKeyWithCondition(c.typesHelpers.getExtendedCollection(),"enabled",!0,"childs");(e=e.concat(c.typesHelpers.getAllAdditionalTypes(c.typesHelpers.getExtendedCollection())||[])).length>0&&(a=l.d.intersection(a,e)).length>0&&(a=a.concat(c.typesHelpers.getAllAdditionalTypes(c.typesHelpers.getExtendedCollection()))).forEach((function(t){c.typesHelpers.isParent(t,c.typesHelpers.getExtendedCollection())&&(a=(a=a.concat([c.typesHelpers.getNameForType(t)])).concat(c.typesHelpers.getAllChildsForGroup(t,c.typesHelpers.getExtendedCollection())))})),0===a.length&&(a=[SensbitInpostEasyPackConfig.map.initialTypes[0]]),p.types=self.currentTypes=a}(),ht=setTimeout((function(){it()}),3e3),window.SensbitInpostEasyPackConfig.map.useGeolocation&&navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){clearTimeout(ht),it(),_=[t.coords.latitude,t.coords.longitude],Z.initialLocation=_,y=_,O=!0,function t(e){self.mapRendered?p.setCenterFromArray(e):o()((function(){t(e)}),250)}(_)}),(function(){clearTimeout(ht),it()})):(clearTimeout(ht),it()),self},q=function(t){return this.options=t,this.render(),this};q.prototype={render:function(){var t=r()("div",{style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",position:"fixed","z-index":9999999,top:0,right:0,bottom:0,left:0}},r()("div",{className:"".concat(f.a["widget-modal"]),id:"widget-modal",style:{width:"100%",height:"100%","max-width":"".concat(this.options.width,"px"),"max-height":"".concat(this.options.height>590?this.options.height:590,"px"),"z-index":"99999999!important"}},r()("div",{className:"".concat(f.a["widget-modal__topbar"]," ").concat(f.a[""])},r()("div",{className:f.a["widget-modal__close"],ref:Object(l.k)((function(){return t.style.display="none"})),dangerouslySetInnerHTML:{__html:"✕"}})),r()("div",{id:"widget-modal__map"})));document.body.appendChild(t)}};var U=n(33),G=function(t,e,n){switch(this.build(t,e),this.callback=e,n.dropdownWidgetObj=this,window.SensbitInpostEasyPackConfig.searchType){case"osm":window.SensbitInpostEasyPack.dropdownWidgetObj.afterLoad();break;case"google":SensbitInpostEasyPack.googleMapsApi.initialized||(SensbitInpostEasyPack.googleMapsApi.initialized=!0)}};G.prototype.build=function(t,e){var n=document.getElementById(t);n.className=f.a["easypack-widget"],this.dropdownLabel=r()("span",null,Object(l.n)("select_point")),this.dropdownArrow=r()("span",{className:f.a["easypack-dropdown__arrow"]},r()("img",{src:"".concat(window.SensbitInpostEasyPackConfig.assetsServer,"/").concat(window.SensbitInpostEasyPackConfig.map.filtersIcon)})),this.dropdownSelect=r()("div",{className:f.a["easypack-dropdown__select"],ref:Object(l.k)((function(){var t=a.dropdownContainer.dataset.open;a.dropdownContainer.dataset.open="false"===t?"true":"false"}))},this.dropdownLabel,this.dropdownArrow);var i,a=this,s=r()("input",{className:f.a["easypack-dropdown__search"],placeholder:Object(l.n)("search_by_city_or_address_only"),ref:Object(l.l)((function(t){i&&(clearTimeout(i),i=null),i=o()(function(){var t=this.value.replace(/ul\.\s?/i,"");0!==t.length&&(a.loadingIcon.className="easypack-loading",a.searchPoints(t,a.callback))}.bind(this),250)}))});this.dropdownList=r()("ul",{className:f.a["easypack-dropdown__list"]}),this.loadingIcon=r()("div",{className:"".concat(f.a["easypack-loading"]," ").concat(f.a.hidden)},r()("div",{className:"ball-spin-fade-loader"},r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null),r()("div",null))),this.dropdownContent=r()("div",{className:f.a["easypack-dropdown__content"]},r()("div",{className:"search-input-loader-wrapper"},s,this.loadingIcon),this.dropdownList),this.dropdownContainer=r()("div",{className:f.a["easypack-dropdown"],"data-open":"false"},this.dropdownSelect,this.dropdownContent),n.appendChild(this.dropdownContainer)},G.prototype.afterLoad=function(){this.loadingIcon.className=f.a["easypack-loading"],this.searchFn(U.SensbitInpostEasyPackConfig.map.defaultLocation,this.callback)},G.prototype.searchPoints=function(t,e){var n=this;switch(n.loadedPoints=[],window.SensbitInpostEasyPackConfig.searchType){case"osm":Object(l.a)(window.SensbitInpostEasyPackConfig.searchApiUrl+"?q="+t+"&format=jsonv2","GET",(function(t){if(t.length){var i=t[0].lat,o=t[0].lon;n.dropdownList.innerHTML="",n.searchFn([i,o],e)}}));break;case"google":this.autocompleteService=new google.maps.places.AutocompleteService,this.geocoder=new google.maps.Geocoder,this.autocompleteService.getPlacePredictions({input:t,types:["geocode"]},(function(t,i){t.length>0&&n.geocoder.geocode({placeId:t[0].place_id},(function(t,i){if(t.length>0){var o=t[0].geometry.location.lat(),a=t[0].geometry.location.lng();n.dropdownList.innerHTML="",n.searchFn([o,a],e)}}))}))}},G.prototype.searchFn=function(t,e){var n=this;Object(x.b)(t,window.SensbitInpostEasyPackConfig.map.defaultDistance,{type:window.SensbitInpostEasyPackConfig.points.types,fields:["name","type","location","address","address_details","is_next","location_description","opening_hours","payment_point_descr"]},(function(t){n.loadedPoints=t;for(var i=0;i<t.length;i++){var o=r()("li",{"data-placeid":i,ref:Object(l.k)((function(){e(n.loadedPoints[this.dataset.placeid]),n.dropdownLabel.innerHTML=this.innerHTML,n.dropdownContainer.dataset.open="false"}))},t[i].address.line1+", "+t[i].address.line2+", "+t[i].name);n.dropdownList.appendChild(o)}n.loadingIcon.className="".concat(f.a.hidden," ").concat(f.a["easypack-loading"])}))},n(183),n(369),n.d(e,"SensbitInpostEasyPack",(function(){return W})),n(33),n(103),n(16),n(175),n(104),n(181),n(3),n(105),n(106),n(108),n(109),n(107),n(110);var W=function(){var t={init:function(e,n){n||(window.SensbitInpostEasyPack.pointsToSearch=[]),null!==Object(l.c)("names")&&""!==Object(l.c)("names")&&(e.points||(e.points={}),e.points.showPoints=[Object(l.c)("names")]),Object(l.b)(e,n),n||(Object(l.i)(),l.d.loadWebFonts()),t.config=window.SensbitInpostEasyPackConfig,t.userConfig=e,window.SensbitInpostEasyPack.locale=window.SensbitInpostEasyPackConfig.defaultLocale},asyncInit:function(){void 0!==window.SensbitInpostEasyPackAsyncInit?window.SensbitInpostEasyPackAsyncInit():o()(t.asyncInit,250)},pointsToSearch:[]};return t.points={allAsync:x.a,closest:x.b,find:x.c},t.version=s.default,t.mapWidget=function(e,n,i){if(window.addEventListener("resize",(function(t){t.target.innerWidth<768?(document.querySelector(".view-chooser > .map-widget")&&(document.querySelector(".view-chooser > .map-widget").dataset.active="true",document.querySelector(".view-chooser > .list-wrapper").dataset.active="false"),document.querySelector(".map-widget").style.visibility="visible",document.querySelector(".list-widget").style.visibility="hidden"):(document.querySelector(".map-widget").style.visibility="visible",document.querySelector(".list-widget").style.visibility="visible",document.querySelector(".list-widget").style.display="flex")})),document.getElementById(e))return new H(e,n,i,t);o()((function(){return t.mapWidget(e,n,i)}),250)},t.dropdownWidget=function(e,n){return new G(e,n,t)},t.modalMap=function(e,n){return document.getElementById("widget-modal")?(t.map.isMobile&&void 0!==t.map.viewChooserObj&&t.map.viewChooserObj.resetState(),document.getElementById("widget-modal").parentNode.style.display="flex"):(new q(n),t.map=new H("widget-modal__map",e,null,t),t.map.isModal=!0,t.map.isMobile=!0,window.addEventListener("resize",(function(e){n.width&&n.width<=768||!n.width&&window.innerWidth<=768?document.getElementById("widget-modal__map").classList.add("mobile"):document.getElementById("widget-modal__map").classList.remove("mobile"),t.map.viewChooserObj.resetState()}))),t.map},t}();window.SensbitInpostEasyPack=W,W.asyncInit()},function(t,e){t.exports={noSelect:"noSelect","easypack-widget":"easypack-widget",btn:"btn",hidden:"hidden","loading-icon-wrapper":"loading-icon-wrapper","loader-wrapper":"loader-wrapper","info-box-wrapper":"info-box-wrapper","info-window":"info-window",content:"content","point-wrapper":"point-wrapper","mobile-details-content":"mobile-details-content",links:"links","d-none":"d-none","select-link":"select-link","route-link":"route-link","details-link":"details-link","details-link-mobile":"details-link-mobile","opening-hours-label":"opening-hours-label","easypack-dropdown":"easypack-dropdown","search-input-loader-wrapper":"search-input-loader-wrapper","easypack-loading":"easypack-loading","ball-spin-fade-loader":"ball-spin-fade-loader","easypack-dropdown__select":"easypack-dropdown__select","easypack-dropdown__arrow":"easypack-dropdown__arrow","easypack-dropdown__search":"easypack-dropdown__search","easypack-dropdown__content":"easypack-dropdown__content","easypack-dropdown__list":"easypack-dropdown__list","search-input":"search-input","search-group":"search-group","input-group-addon":"input-group-addon","search-group-btn":"search-group-btn","with-filters":"with-filters","btn-group":"btn-group","dropdown-toggle":"dropdown-toggle","btn-default":"btn-default","btn-checkbox":"btn-checkbox","btn-radio":"btn-radio","btn-search":"btn-search","btn-filters":"btn-filters","search-widget":"search-widget","btn-filters__arrow":"btn-filters__arrow",opened:"opened","no-subtypes":"no-subtypes","has-subtypes":"has-subtypes",all:"all",none:"none",some:"some",group:"group",label:"label","visible-xs":"visible-xs","hidden-xs":"hidden-xs",searchLoader:"searchLoader","input-group":"input-group","map-widget":"map-widget","status-bar":"status-bar","loader-inner":"loader-inner","ball-spin-fade-loader-mp":"ball-spin-fade-loader-mp","status-bar--hidden":"status-bar--hidden","leaflet-popup":"leaflet-popup","leaflet-popup-content-wrapper":"leaflet-popup-content-wrapper","leaflet-popup-content":"leaflet-popup-content",phone:"phone",name:"name","open-hours-label":"open-hours-label","open-hours":"open-hours",address:"address","leaflet-popup-tip":"leaflet-popup-tip","leaflet-popup-close-button":"leaflet-popup-close-button",apm_doubled:"apm_doubled","popup-container":"popup-container","filters-widget":"filters-widget","filters-widget__loading":"filters-widget__loading",loading:"loading","filters-widget__list":"filters-widget__list","filters-widget__elem":"filters-widget__elem","type-filter":"type-filter","current-type-wrapper":"current-type-wrapper","list-wrapper":"list-wrapper",arrow:"arrow","dropdown-wrapper":"dropdown-wrapper","dropdown-subtypes":"dropdown-subtypes","payment-filter":"payment-filter",selected:"selected","main-type":"main-type","no-tooltip":"no-tooltip","has-tooltip":"has-tooltip","tooltip-wrapper":"tooltip-wrapper","type-tooltip":"type-tooltip","icon-wrapper":"icon-wrapper",description:"description","map-list-row":"map-list-row","map-list-flex":"map-list-flex","language-bar":"language-bar","current-status":"current-status","list-widget":"list-widget","loading-content":"loading-content",title:"title","map-list-in-row":"map-list-in-row",row:"row","col-address":"col-address","col-name":"col-name","col-city":"col-city","col-point-type":"col-point-type","col-point-type-name":"col-point-type-name","col-actions":"col-actions","col-sm":"col-sm","col-street":"col-street",actions:"actions","details-show-on-map":"details-show-on-map","details-show-more":"details-show-more","pagination-wrapper":"pagination-wrapper",current:"current",pagingPrev:"pagingPrev",pagingNext:"pagingNext",disabled:"disabled","map-wrapper":"map-wrapper","map-btn":"map-btn","list-btn":"list-btn","point-details":"point-details","details-wrapper":"details-wrapper","details-content":"details-content","point-box":"point-box","details-actions":"details-actions",action:"action","plan-route":"plan-route","description-photo":"description-photo",item:"item","font-small":"font-small",term:"term",definition:"definition","close-button":"close-button",mobile:"mobile","scroll-box":"scroll-box",viewport:"viewport",overview:"overview","list-point-link":"list-point-link","image-wrapper":"image-wrapper","data-wrapper":"data-wrapper",scrollbar:"scrollbar",track:"track",thumb:"thumb",disable:"disable","gm-style":"gm-style","inpost-search__list":"inpost-search__list",place:"place",point:"point","widget-modal":"widget-modal","inpost-search__item-list":"inpost-search__item-list","pac-matched":"pac-matched","inpost-search__item-list--query":"inpost-search__item-list--query","widget-modal__topbar":"widget-modal__topbar","widget-modal__close":"widget-modal__close","view-chooser":"view-chooser","no-points":"no-points","widget-modal__map":"widget-modal__map","leaflet-map-pane":"leaflet-map-pane",loader:"loader","current-type":"current-type","btn-select-type":"btn-select-type","types-list":"types-list","payment-wrapper":"payment-wrapper",pagingItem:"pagingItem",pagingSeparator:"pagingSeparator",fa:"fa",fas:"fas",far:"far",fal:"fal",fad:"fad",fab:"fab","fa-lg":"fa-lg","fa-xs":"fa-xs","fa-sm":"fa-sm","fa-1x":"fa-1x","fa-2x":"fa-2x","fa-3x":"fa-3x","fa-4x":"fa-4x","fa-5x":"fa-5x","fa-6x":"fa-6x","fa-7x":"fa-7x","fa-8x":"fa-8x","fa-9x":"fa-9x","fa-10x":"fa-10x","fa-fw":"fa-fw","fa-ul":"fa-ul","fa-li":"fa-li","fa-border":"fa-border","fa-pull-left":"fa-pull-left","fa-pull-right":"fa-pull-right","fa-spin":"fa-spin","fa-pulse":"fa-pulse","fa-rotate-90":"fa-rotate-90","fa-rotate-180":"fa-rotate-180","fa-rotate-270":"fa-rotate-270","fa-flip-horizontal":"fa-flip-horizontal","fa-flip-vertical":"fa-flip-vertical","fa-flip-both":"fa-flip-both","fa-stack":"fa-stack","fa-stack-1x":"fa-stack-1x","fa-stack-2x":"fa-stack-2x","fa-inverse":"fa-inverse","fa-500px":"fa-500px","fa-accessible-icon":"fa-accessible-icon","fa-accusoft":"fa-accusoft","fa-acquisitions-incorporated":"fa-acquisitions-incorporated","fa-ad":"fa-ad","fa-address-book":"fa-address-book","fa-address-card":"fa-address-card","fa-adjust":"fa-adjust","fa-adn":"fa-adn","fa-adversal":"fa-adversal","fa-affiliatetheme":"fa-affiliatetheme","fa-air-freshener":"fa-air-freshener","fa-airbnb":"fa-airbnb","fa-algolia":"fa-algolia","fa-align-center":"fa-align-center","fa-align-justify":"fa-align-justify","fa-align-left":"fa-align-left","fa-align-right":"fa-align-right","fa-alipay":"fa-alipay","fa-allergies":"fa-allergies","fa-amazon":"fa-amazon","fa-amazon-pay":"fa-amazon-pay","fa-ambulance":"fa-ambulance","fa-american-sign-language-interpreting":"fa-american-sign-language-interpreting","fa-amilia":"fa-amilia","fa-anchor":"fa-anchor","fa-android":"fa-android","fa-angellist":"fa-angellist","fa-angle-double-down":"fa-angle-double-down","fa-angle-double-left":"fa-angle-double-left","fa-angle-double-right":"fa-angle-double-right","fa-angle-double-up":"fa-angle-double-up","fa-angle-down":"fa-angle-down","fa-angle-left":"fa-angle-left","fa-angle-right":"fa-angle-right","fa-angle-up":"fa-angle-up","fa-angry":"fa-angry","fa-angrycreative":"fa-angrycreative","fa-angular":"fa-angular","fa-ankh":"fa-ankh","fa-app-store":"fa-app-store","fa-app-store-ios":"fa-app-store-ios","fa-apper":"fa-apper","fa-apple":"fa-apple","fa-apple-alt":"fa-apple-alt","fa-apple-pay":"fa-apple-pay","fa-archive":"fa-archive","fa-archway":"fa-archway","fa-arrow-alt-circle-down":"fa-arrow-alt-circle-down","fa-arrow-alt-circle-left":"fa-arrow-alt-circle-left","fa-arrow-alt-circle-right":"fa-arrow-alt-circle-right","fa-arrow-alt-circle-up":"fa-arrow-alt-circle-up","fa-arrow-circle-down":"fa-arrow-circle-down","fa-arrow-circle-left":"fa-arrow-circle-left","fa-arrow-circle-right":"fa-arrow-circle-right","fa-arrow-circle-up":"fa-arrow-circle-up","fa-arrow-down":"fa-arrow-down","fa-arrow-left":"fa-arrow-left","fa-arrow-right":"fa-arrow-right","fa-arrow-up":"fa-arrow-up","fa-arrows-alt":"fa-arrows-alt","fa-arrows-alt-h":"fa-arrows-alt-h","fa-arrows-alt-v":"fa-arrows-alt-v","fa-artstation":"fa-artstation","fa-assistive-listening-systems":"fa-assistive-listening-systems","fa-asterisk":"fa-asterisk","fa-asymmetrik":"fa-asymmetrik","fa-at":"fa-at","fa-atlas":"fa-atlas","fa-atlassian":"fa-atlassian","fa-atom":"fa-atom","fa-audible":"fa-audible","fa-audio-description":"fa-audio-description","fa-autoprefixer":"fa-autoprefixer","fa-avianex":"fa-avianex","fa-aviato":"fa-aviato","fa-award":"fa-award","fa-aws":"fa-aws","fa-baby":"fa-baby","fa-baby-carriage":"fa-baby-carriage","fa-backspace":"fa-backspace","fa-backward":"fa-backward","fa-bacon":"fa-bacon","fa-bacteria":"fa-bacteria","fa-bacterium":"fa-bacterium","fa-bahai":"fa-bahai","fa-balance-scale":"fa-balance-scale","fa-balance-scale-left":"fa-balance-scale-left","fa-balance-scale-right":"fa-balance-scale-right","fa-ban":"fa-ban","fa-band-aid":"fa-band-aid","fa-bandcamp":"fa-bandcamp","fa-barcode":"fa-barcode","fa-bars":"fa-bars","fa-baseball-ball":"fa-baseball-ball","fa-basketball-ball":"fa-basketball-ball","fa-bath":"fa-bath","fa-battery-empty":"fa-battery-empty","fa-battery-full":"fa-battery-full","fa-battery-half":"fa-battery-half","fa-battery-quarter":"fa-battery-quarter","fa-battery-three-quarters":"fa-battery-three-quarters","fa-battle-net":"fa-battle-net","fa-bed":"fa-bed","fa-beer":"fa-beer","fa-behance":"fa-behance","fa-behance-square":"fa-behance-square","fa-bell":"fa-bell","fa-bell-slash":"fa-bell-slash","fa-bezier-curve":"fa-bezier-curve","fa-bible":"fa-bible","fa-bicycle":"fa-bicycle","fa-biking":"fa-biking","fa-bimobject":"fa-bimobject","fa-binoculars":"fa-binoculars","fa-biohazard":"fa-biohazard","fa-birthday-cake":"fa-birthday-cake","fa-bitbucket":"fa-bitbucket","fa-bitcoin":"fa-bitcoin","fa-bity":"fa-bity","fa-black-tie":"fa-black-tie","fa-blackberry":"fa-blackberry","fa-blender":"fa-blender","fa-blender-phone":"fa-blender-phone","fa-blind":"fa-blind","fa-blog":"fa-blog","fa-blogger":"fa-blogger","fa-blogger-b":"fa-blogger-b","fa-bluetooth":"fa-bluetooth","fa-bluetooth-b":"fa-bluetooth-b","fa-bold":"fa-bold","fa-bolt":"fa-bolt","fa-bomb":"fa-bomb","fa-bone":"fa-bone","fa-bong":"fa-bong","fa-book":"fa-book","fa-book-dead":"fa-book-dead","fa-book-medical":"fa-book-medical","fa-book-open":"fa-book-open","fa-book-reader":"fa-book-reader","fa-bookmark":"fa-bookmark","fa-bootstrap":"fa-bootstrap","fa-border-all":"fa-border-all","fa-border-none":"fa-border-none","fa-border-style":"fa-border-style","fa-bowling-ball":"fa-bowling-ball","fa-box":"fa-box","fa-box-open":"fa-box-open","fa-box-tissue":"fa-box-tissue","fa-boxes":"fa-boxes","fa-braille":"fa-braille","fa-brain":"fa-brain","fa-bread-slice":"fa-bread-slice","fa-briefcase":"fa-briefcase","fa-briefcase-medical":"fa-briefcase-medical","fa-broadcast-tower":"fa-broadcast-tower","fa-broom":"fa-broom","fa-brush":"fa-brush","fa-btc":"fa-btc","fa-buffer":"fa-buffer","fa-bug":"fa-bug","fa-building":"fa-building","fa-bullhorn":"fa-bullhorn","fa-bullseye":"fa-bullseye","fa-burn":"fa-burn","fa-buromobelexperte":"fa-buromobelexperte","fa-bus":"fa-bus","fa-bus-alt":"fa-bus-alt","fa-business-time":"fa-business-time","fa-buy-n-large":"fa-buy-n-large","fa-buysellads":"fa-buysellads","fa-calculator":"fa-calculator","fa-calendar":"fa-calendar","fa-calendar-alt":"fa-calendar-alt","fa-calendar-check":"fa-calendar-check","fa-calendar-day":"fa-calendar-day","fa-calendar-minus":"fa-calendar-minus","fa-calendar-plus":"fa-calendar-plus","fa-calendar-times":"fa-calendar-times","fa-calendar-week":"fa-calendar-week","fa-camera":"fa-camera","fa-camera-retro":"fa-camera-retro","fa-campground":"fa-campground","fa-canadian-maple-leaf":"fa-canadian-maple-leaf","fa-candy-cane":"fa-candy-cane","fa-cannabis":"fa-cannabis","fa-capsules":"fa-capsules","fa-car":"fa-car","fa-car-alt":"fa-car-alt","fa-car-battery":"fa-car-battery","fa-car-crash":"fa-car-crash","fa-car-side":"fa-car-side","fa-caravan":"fa-caravan","fa-caret-down":"fa-caret-down","fa-caret-left":"fa-caret-left","fa-caret-right":"fa-caret-right","fa-caret-square-down":"fa-caret-square-down","fa-caret-square-left":"fa-caret-square-left","fa-caret-square-right":"fa-caret-square-right","fa-caret-square-up":"fa-caret-square-up","fa-caret-up":"fa-caret-up","fa-carrot":"fa-carrot","fa-cart-arrow-down":"fa-cart-arrow-down","fa-cart-plus":"fa-cart-plus","fa-cash-register":"fa-cash-register","fa-cat":"fa-cat","fa-cc-amazon-pay":"fa-cc-amazon-pay","fa-cc-amex":"fa-cc-amex","fa-cc-apple-pay":"fa-cc-apple-pay","fa-cc-diners-club":"fa-cc-diners-club","fa-cc-discover":"fa-cc-discover","fa-cc-jcb":"fa-cc-jcb","fa-cc-mastercard":"fa-cc-mastercard","fa-cc-paypal":"fa-cc-paypal","fa-cc-stripe":"fa-cc-stripe","fa-cc-visa":"fa-cc-visa","fa-centercode":"fa-centercode","fa-centos":"fa-centos","fa-certificate":"fa-certificate","fa-chair":"fa-chair","fa-chalkboard":"fa-chalkboard","fa-chalkboard-teacher":"fa-chalkboard-teacher","fa-charging-station":"fa-charging-station","fa-chart-area":"fa-chart-area","fa-chart-bar":"fa-chart-bar","fa-chart-line":"fa-chart-line","fa-chart-pie":"fa-chart-pie","fa-check":"fa-check","fa-check-circle":"fa-check-circle","fa-check-double":"fa-check-double","fa-check-square":"fa-check-square","fa-cheese":"fa-cheese","fa-chess":"fa-chess","fa-chess-bishop":"fa-chess-bishop","fa-chess-board":"fa-chess-board","fa-chess-king":"fa-chess-king","fa-chess-knight":"fa-chess-knight","fa-chess-pawn":"fa-chess-pawn","fa-chess-queen":"fa-chess-queen","fa-chess-rook":"fa-chess-rook","fa-chevron-circle-down":"fa-chevron-circle-down","fa-chevron-circle-left":"fa-chevron-circle-left","fa-chevron-circle-right":"fa-chevron-circle-right","fa-chevron-circle-up":"fa-chevron-circle-up","fa-chevron-down":"fa-chevron-down","fa-chevron-left":"fa-chevron-left","fa-chevron-right":"fa-chevron-right","fa-chevron-up":"fa-chevron-up","fa-child":"fa-child","fa-chrome":"fa-chrome","fa-chromecast":"fa-chromecast","fa-church":"fa-church","fa-circle":"fa-circle","fa-circle-notch":"fa-circle-notch","fa-city":"fa-city","fa-clinic-medical":"fa-clinic-medical","fa-clipboard":"fa-clipboard","fa-clipboard-check":"fa-clipboard-check","fa-clipboard-list":"fa-clipboard-list","fa-clock":"fa-clock","fa-clone":"fa-clone","fa-closed-captioning":"fa-closed-captioning","fa-cloud":"fa-cloud","fa-cloud-download-alt":"fa-cloud-download-alt","fa-cloud-meatball":"fa-cloud-meatball","fa-cloud-moon":"fa-cloud-moon","fa-cloud-moon-rain":"fa-cloud-moon-rain","fa-cloud-rain":"fa-cloud-rain","fa-cloud-showers-heavy":"fa-cloud-showers-heavy","fa-cloud-sun":"fa-cloud-sun","fa-cloud-sun-rain":"fa-cloud-sun-rain","fa-cloud-upload-alt":"fa-cloud-upload-alt","fa-cloudflare":"fa-cloudflare","fa-cloudscale":"fa-cloudscale","fa-cloudsmith":"fa-cloudsmith","fa-cloudversify":"fa-cloudversify","fa-cocktail":"fa-cocktail","fa-code":"fa-code","fa-code-branch":"fa-code-branch","fa-codepen":"fa-codepen","fa-codiepie":"fa-codiepie","fa-coffee":"fa-coffee","fa-cog":"fa-cog","fa-cogs":"fa-cogs","fa-coins":"fa-coins","fa-columns":"fa-columns","fa-comment":"fa-comment","fa-comment-alt":"fa-comment-alt","fa-comment-dollar":"fa-comment-dollar","fa-comment-dots":"fa-comment-dots","fa-comment-medical":"fa-comment-medical","fa-comment-slash":"fa-comment-slash","fa-comments":"fa-comments","fa-comments-dollar":"fa-comments-dollar","fa-compact-disc":"fa-compact-disc","fa-compass":"fa-compass","fa-compress":"fa-compress","fa-compress-alt":"fa-compress-alt","fa-compress-arrows-alt":"fa-compress-arrows-alt","fa-concierge-bell":"fa-concierge-bell","fa-confluence":"fa-confluence","fa-connectdevelop":"fa-connectdevelop","fa-contao":"fa-contao","fa-cookie":"fa-cookie","fa-cookie-bite":"fa-cookie-bite","fa-copy":"fa-copy","fa-copyright":"fa-copyright","fa-cotton-bureau":"fa-cotton-bureau","fa-couch":"fa-couch","fa-cpanel":"fa-cpanel","fa-creative-commons":"fa-creative-commons","fa-creative-commons-by":"fa-creative-commons-by","fa-creative-commons-nc":"fa-creative-commons-nc","fa-creative-commons-nc-eu":"fa-creative-commons-nc-eu","fa-creative-commons-nc-jp":"fa-creative-commons-nc-jp","fa-creative-commons-nd":"fa-creative-commons-nd","fa-creative-commons-pd":"fa-creative-commons-pd","fa-creative-commons-pd-alt":"fa-creative-commons-pd-alt","fa-creative-commons-remix":"fa-creative-commons-remix","fa-creative-commons-sa":"fa-creative-commons-sa","fa-creative-commons-sampling":"fa-creative-commons-sampling","fa-creative-commons-sampling-plus":"fa-creative-commons-sampling-plus","fa-creative-commons-share":"fa-creative-commons-share","fa-creative-commons-zero":"fa-creative-commons-zero","fa-credit-card":"fa-credit-card","fa-critical-role":"fa-critical-role","fa-crop":"fa-crop","fa-crop-alt":"fa-crop-alt","fa-cross":"fa-cross","fa-crosshairs":"fa-crosshairs","fa-crow":"fa-crow","fa-crown":"fa-crown","fa-crutch":"fa-crutch","fa-css3":"fa-css3","fa-css3-alt":"fa-css3-alt","fa-cube":"fa-cube","fa-cubes":"fa-cubes","fa-cut":"fa-cut","fa-cuttlefish":"fa-cuttlefish","fa-d-and-d":"fa-d-and-d","fa-d-and-d-beyond":"fa-d-and-d-beyond","fa-dailymotion":"fa-dailymotion","fa-dashcube":"fa-dashcube","fa-database":"fa-database","fa-deaf":"fa-deaf","fa-deezer":"fa-deezer","fa-delicious":"fa-delicious","fa-democrat":"fa-democrat","fa-deploydog":"fa-deploydog","fa-deskpro":"fa-deskpro","fa-desktop":"fa-desktop","fa-dev":"fa-dev","fa-deviantart":"fa-deviantart","fa-dharmachakra":"fa-dharmachakra","fa-dhl":"fa-dhl","fa-diagnoses":"fa-diagnoses","fa-diaspora":"fa-diaspora","fa-dice":"fa-dice","fa-dice-d20":"fa-dice-d20","fa-dice-d6":"fa-dice-d6","fa-dice-five":"fa-dice-five","fa-dice-four":"fa-dice-four","fa-dice-one":"fa-dice-one","fa-dice-six":"fa-dice-six","fa-dice-three":"fa-dice-three","fa-dice-two":"fa-dice-two","fa-digg":"fa-digg","fa-digital-ocean":"fa-digital-ocean","fa-digital-tachograph":"fa-digital-tachograph","fa-directions":"fa-directions","fa-discord":"fa-discord","fa-discourse":"fa-discourse","fa-disease":"fa-disease","fa-divide":"fa-divide","fa-dizzy":"fa-dizzy","fa-dna":"fa-dna","fa-dochub":"fa-dochub","fa-docker":"fa-docker","fa-dog":"fa-dog","fa-dollar-sign":"fa-dollar-sign","fa-dolly":"fa-dolly","fa-dolly-flatbed":"fa-dolly-flatbed","fa-donate":"fa-donate","fa-door-closed":"fa-door-closed","fa-door-open":"fa-door-open","fa-dot-circle":"fa-dot-circle","fa-dove":"fa-dove","fa-download":"fa-download","fa-draft2digital":"fa-draft2digital","fa-drafting-compass":"fa-drafting-compass","fa-dragon":"fa-dragon","fa-draw-polygon":"fa-draw-polygon","fa-dribbble":"fa-dribbble","fa-dribbble-square":"fa-dribbble-square","fa-dropbox":"fa-dropbox","fa-drum":"fa-drum","fa-drum-steelpan":"fa-drum-steelpan","fa-drumstick-bite":"fa-drumstick-bite","fa-drupal":"fa-drupal","fa-dumbbell":"fa-dumbbell","fa-dumpster":"fa-dumpster","fa-dumpster-fire":"fa-dumpster-fire","fa-dungeon":"fa-dungeon","fa-dyalog":"fa-dyalog","fa-earlybirds":"fa-earlybirds","fa-ebay":"fa-ebay","fa-edge":"fa-edge","fa-edge-legacy":"fa-edge-legacy","fa-edit":"fa-edit","fa-egg":"fa-egg","fa-eject":"fa-eject","fa-elementor":"fa-elementor","fa-ellipsis-h":"fa-ellipsis-h","fa-ellipsis-v":"fa-ellipsis-v","fa-ello":"fa-ello","fa-ember":"fa-ember","fa-empire":"fa-empire","fa-envelope":"fa-envelope","fa-envelope-open":"fa-envelope-open","fa-envelope-open-text":"fa-envelope-open-text","fa-envelope-square":"fa-envelope-square","fa-envira":"fa-envira","fa-equals":"fa-equals","fa-eraser":"fa-eraser","fa-erlang":"fa-erlang","fa-ethereum":"fa-ethereum","fa-ethernet":"fa-ethernet","fa-etsy":"fa-etsy","fa-euro-sign":"fa-euro-sign","fa-evernote":"fa-evernote","fa-exchange-alt":"fa-exchange-alt","fa-exclamation":"fa-exclamation","fa-exclamation-circle":"fa-exclamation-circle","fa-exclamation-triangle":"fa-exclamation-triangle","fa-expand":"fa-expand","fa-expand-alt":"fa-expand-alt","fa-expand-arrows-alt":"fa-expand-arrows-alt","fa-expeditedssl":"fa-expeditedssl","fa-external-link-alt":"fa-external-link-alt","fa-external-link-square-alt":"fa-external-link-square-alt","fa-eye":"fa-eye","fa-eye-dropper":"fa-eye-dropper","fa-eye-slash":"fa-eye-slash","fa-facebook":"fa-facebook","fa-facebook-f":"fa-facebook-f","fa-facebook-messenger":"fa-facebook-messenger","fa-facebook-square":"fa-facebook-square","fa-fan":"fa-fan","fa-fantasy-flight-games":"fa-fantasy-flight-games","fa-fast-backward":"fa-fast-backward","fa-fast-forward":"fa-fast-forward","fa-faucet":"fa-faucet","fa-fax":"fa-fax","fa-feather":"fa-feather","fa-feather-alt":"fa-feather-alt","fa-fedex":"fa-fedex","fa-fedora":"fa-fedora","fa-female":"fa-female","fa-fighter-jet":"fa-fighter-jet","fa-figma":"fa-figma","fa-file":"fa-file","fa-file-alt":"fa-file-alt","fa-file-archive":"fa-file-archive","fa-file-audio":"fa-file-audio","fa-file-code":"fa-file-code","fa-file-contract":"fa-file-contract","fa-file-csv":"fa-file-csv","fa-file-download":"fa-file-download","fa-file-excel":"fa-file-excel","fa-file-export":"fa-file-export","fa-file-image":"fa-file-image","fa-file-import":"fa-file-import","fa-file-invoice":"fa-file-invoice","fa-file-invoice-dollar":"fa-file-invoice-dollar","fa-file-medical":"fa-file-medical","fa-file-medical-alt":"fa-file-medical-alt","fa-file-pdf":"fa-file-pdf","fa-file-powerpoint":"fa-file-powerpoint","fa-file-prescription":"fa-file-prescription","fa-file-signature":"fa-file-signature","fa-file-upload":"fa-file-upload","fa-file-video":"fa-file-video","fa-file-word":"fa-file-word","fa-fill":"fa-fill","fa-fill-drip":"fa-fill-drip","fa-film":"fa-film","fa-filter":"fa-filter","fa-fingerprint":"fa-fingerprint","fa-fire":"fa-fire","fa-fire-alt":"fa-fire-alt","fa-fire-extinguisher":"fa-fire-extinguisher","fa-firefox":"fa-firefox","fa-firefox-browser":"fa-firefox-browser","fa-first-aid":"fa-first-aid","fa-first-order":"fa-first-order","fa-first-order-alt":"fa-first-order-alt","fa-firstdraft":"fa-firstdraft","fa-fish":"fa-fish","fa-fist-raised":"fa-fist-raised","fa-flag":"fa-flag","fa-flag-checkered":"fa-flag-checkered","fa-flag-usa":"fa-flag-usa","fa-flask":"fa-flask","fa-flickr":"fa-flickr","fa-flipboard":"fa-flipboard","fa-flushed":"fa-flushed","fa-fly":"fa-fly","fa-folder":"fa-folder","fa-folder-minus":"fa-folder-minus","fa-folder-open":"fa-folder-open","fa-folder-plus":"fa-folder-plus","fa-font":"fa-font","fa-font-awesome":"fa-font-awesome","fa-font-awesome-alt":"fa-font-awesome-alt","fa-font-awesome-flag":"fa-font-awesome-flag","fa-font-awesome-logo-full":"fa-font-awesome-logo-full","fa-fonticons":"fa-fonticons","fa-fonticons-fi":"fa-fonticons-fi","fa-football-ball":"fa-football-ball","fa-fort-awesome":"fa-fort-awesome","fa-fort-awesome-alt":"fa-fort-awesome-alt","fa-forumbee":"fa-forumbee","fa-forward":"fa-forward","fa-foursquare":"fa-foursquare","fa-free-code-camp":"fa-free-code-camp","fa-freebsd":"fa-freebsd","fa-frog":"fa-frog","fa-frown":"fa-frown","fa-frown-open":"fa-frown-open","fa-fulcrum":"fa-fulcrum","fa-funnel-dollar":"fa-funnel-dollar","fa-futbol":"fa-futbol","fa-galactic-republic":"fa-galactic-republic","fa-galactic-senate":"fa-galactic-senate","fa-gamepad":"fa-gamepad","fa-gas-pump":"fa-gas-pump","fa-gavel":"fa-gavel","fa-gem":"fa-gem","fa-genderless":"fa-genderless","fa-get-pocket":"fa-get-pocket","fa-gg":"fa-gg","fa-gg-circle":"fa-gg-circle","fa-ghost":"fa-ghost","fa-gift":"fa-gift","fa-gifts":"fa-gifts","fa-git":"fa-git","fa-git-alt":"fa-git-alt","fa-git-square":"fa-git-square","fa-github":"fa-github","fa-github-alt":"fa-github-alt","fa-github-square":"fa-github-square","fa-gitkraken":"fa-gitkraken","fa-gitlab":"fa-gitlab","fa-gitter":"fa-gitter","fa-glass-cheers":"fa-glass-cheers","fa-glass-martini":"fa-glass-martini","fa-glass-martini-alt":"fa-glass-martini-alt","fa-glass-whiskey":"fa-glass-whiskey","fa-glasses":"fa-glasses","fa-glide":"fa-glide","fa-glide-g":"fa-glide-g","fa-globe":"fa-globe","fa-globe-africa":"fa-globe-africa","fa-globe-americas":"fa-globe-americas","fa-globe-asia":"fa-globe-asia","fa-globe-europe":"fa-globe-europe","fa-gofore":"fa-gofore","fa-golf-ball":"fa-golf-ball","fa-goodreads":"fa-goodreads","fa-goodreads-g":"fa-goodreads-g","fa-google":"fa-google","fa-google-drive":"fa-google-drive","fa-google-pay":"fa-google-pay","fa-google-play":"fa-google-play","fa-google-plus":"fa-google-plus","fa-google-plus-g":"fa-google-plus-g","fa-google-plus-square":"fa-google-plus-square","fa-google-wallet":"fa-google-wallet","fa-gopuram":"fa-gopuram","fa-graduation-cap":"fa-graduation-cap","fa-gratipay":"fa-gratipay","fa-grav":"fa-grav","fa-greater-than":"fa-greater-than","fa-greater-than-equal":"fa-greater-than-equal","fa-grimace":"fa-grimace","fa-grin":"fa-grin","fa-grin-alt":"fa-grin-alt","fa-grin-beam":"fa-grin-beam","fa-grin-beam-sweat":"fa-grin-beam-sweat","fa-grin-hearts":"fa-grin-hearts","fa-grin-squint":"fa-grin-squint","fa-grin-squint-tears":"fa-grin-squint-tears","fa-grin-stars":"fa-grin-stars","fa-grin-tears":"fa-grin-tears","fa-grin-tongue":"fa-grin-tongue","fa-grin-tongue-squint":"fa-grin-tongue-squint","fa-grin-tongue-wink":"fa-grin-tongue-wink","fa-grin-wink":"fa-grin-wink","fa-grip-horizontal":"fa-grip-horizontal","fa-grip-lines":"fa-grip-lines","fa-grip-lines-vertical":"fa-grip-lines-vertical","fa-grip-vertical":"fa-grip-vertical","fa-gripfire":"fa-gripfire","fa-grunt":"fa-grunt","fa-guilded":"fa-guilded","fa-guitar":"fa-guitar","fa-gulp":"fa-gulp","fa-h-square":"fa-h-square","fa-hacker-news":"fa-hacker-news","fa-hacker-news-square":"fa-hacker-news-square","fa-hackerrank":"fa-hackerrank","fa-hamburger":"fa-hamburger","fa-hammer":"fa-hammer","fa-hamsa":"fa-hamsa","fa-hand-holding":"fa-hand-holding","fa-hand-holding-heart":"fa-hand-holding-heart","fa-hand-holding-medical":"fa-hand-holding-medical","fa-hand-holding-usd":"fa-hand-holding-usd","fa-hand-holding-water":"fa-hand-holding-water","fa-hand-lizard":"fa-hand-lizard","fa-hand-middle-finger":"fa-hand-middle-finger","fa-hand-paper":"fa-hand-paper","fa-hand-peace":"fa-hand-peace","fa-hand-point-down":"fa-hand-point-down","fa-hand-point-left":"fa-hand-point-left","fa-hand-point-right":"fa-hand-point-right","fa-hand-point-up":"fa-hand-point-up","fa-hand-pointer":"fa-hand-pointer","fa-hand-rock":"fa-hand-rock","fa-hand-scissors":"fa-hand-scissors","fa-hand-sparkles":"fa-hand-sparkles","fa-hand-spock":"fa-hand-spock","fa-hands":"fa-hands","fa-hands-helping":"fa-hands-helping","fa-hands-wash":"fa-hands-wash","fa-handshake":"fa-handshake","fa-handshake-alt-slash":"fa-handshake-alt-slash","fa-handshake-slash":"fa-handshake-slash","fa-hanukiah":"fa-hanukiah","fa-hard-hat":"fa-hard-hat","fa-hashtag":"fa-hashtag","fa-hat-cowboy":"fa-hat-cowboy","fa-hat-cowboy-side":"fa-hat-cowboy-side","fa-hat-wizard":"fa-hat-wizard","fa-hdd":"fa-hdd","fa-head-side-cough":"fa-head-side-cough","fa-head-side-cough-slash":"fa-head-side-cough-slash","fa-head-side-mask":"fa-head-side-mask","fa-head-side-virus":"fa-head-side-virus","fa-heading":"fa-heading","fa-headphones":"fa-headphones","fa-headphones-alt":"fa-headphones-alt","fa-headset":"fa-headset","fa-heart":"fa-heart","fa-heart-broken":"fa-heart-broken","fa-heartbeat":"fa-heartbeat","fa-helicopter":"fa-helicopter","fa-highlighter":"fa-highlighter","fa-hiking":"fa-hiking","fa-hippo":"fa-hippo","fa-hips":"fa-hips","fa-hire-a-helper":"fa-hire-a-helper","fa-history":"fa-history","fa-hive":"fa-hive","fa-hockey-puck":"fa-hockey-puck","fa-holly-berry":"fa-holly-berry","fa-home":"fa-home","fa-hooli":"fa-hooli","fa-hornbill":"fa-hornbill","fa-horse":"fa-horse","fa-horse-head":"fa-horse-head","fa-hospital":"fa-hospital","fa-hospital-alt":"fa-hospital-alt","fa-hospital-symbol":"fa-hospital-symbol","fa-hospital-user":"fa-hospital-user","fa-hot-tub":"fa-hot-tub","fa-hotdog":"fa-hotdog","fa-hotel":"fa-hotel","fa-hotjar":"fa-hotjar","fa-hourglass":"fa-hourglass","fa-hourglass-end":"fa-hourglass-end","fa-hourglass-half":"fa-hourglass-half","fa-hourglass-start":"fa-hourglass-start","fa-house-damage":"fa-house-damage","fa-house-user":"fa-house-user","fa-houzz":"fa-houzz","fa-hryvnia":"fa-hryvnia","fa-html5":"fa-html5","fa-hubspot":"fa-hubspot","fa-i-cursor":"fa-i-cursor","fa-ice-cream":"fa-ice-cream","fa-icicles":"fa-icicles","fa-icons":"fa-icons","fa-id-badge":"fa-id-badge","fa-id-card":"fa-id-card","fa-id-card-alt":"fa-id-card-alt","fa-ideal":"fa-ideal","fa-igloo":"fa-igloo","fa-image":"fa-image","fa-images":"fa-images","fa-imdb":"fa-imdb","fa-inbox":"fa-inbox","fa-indent":"fa-indent","fa-industry":"fa-industry","fa-infinity":"fa-infinity","fa-info":"fa-info","fa-info-circle":"fa-info-circle","fa-innosoft":"fa-innosoft","fa-instagram":"fa-instagram","fa-instagram-square":"fa-instagram-square","fa-instalod":"fa-instalod","fa-intercom":"fa-intercom","fa-internet-explorer":"fa-internet-explorer","fa-invision":"fa-invision","fa-ioxhost":"fa-ioxhost","fa-italic":"fa-italic","fa-itch-io":"fa-itch-io","fa-itunes":"fa-itunes","fa-itunes-note":"fa-itunes-note","fa-java":"fa-java","fa-jedi":"fa-jedi","fa-jedi-order":"fa-jedi-order","fa-jenkins":"fa-jenkins","fa-jira":"fa-jira","fa-joget":"fa-joget","fa-joint":"fa-joint","fa-joomla":"fa-joomla","fa-journal-whills":"fa-journal-whills","fa-js":"fa-js","fa-js-square":"fa-js-square","fa-jsfiddle":"fa-jsfiddle","fa-kaaba":"fa-kaaba","fa-kaggle":"fa-kaggle","fa-key":"fa-key","fa-keybase":"fa-keybase","fa-keyboard":"fa-keyboard","fa-keycdn":"fa-keycdn","fa-khanda":"fa-khanda","fa-kickstarter":"fa-kickstarter","fa-kickstarter-k":"fa-kickstarter-k","fa-kiss":"fa-kiss","fa-kiss-beam":"fa-kiss-beam","fa-kiss-wink-heart":"fa-kiss-wink-heart","fa-kiwi-bird":"fa-kiwi-bird","fa-korvue":"fa-korvue","fa-landmark":"fa-landmark","fa-language":"fa-language","fa-laptop":"fa-laptop","fa-laptop-code":"fa-laptop-code","fa-laptop-house":"fa-laptop-house","fa-laptop-medical":"fa-laptop-medical","fa-laravel":"fa-laravel","fa-lastfm":"fa-lastfm","fa-lastfm-square":"fa-lastfm-square","fa-laugh":"fa-laugh","fa-laugh-beam":"fa-laugh-beam","fa-laugh-squint":"fa-laugh-squint","fa-laugh-wink":"fa-laugh-wink","fa-layer-group":"fa-layer-group","fa-leaf":"fa-leaf","fa-leanpub":"fa-leanpub","fa-lemon":"fa-lemon","fa-less":"fa-less","fa-less-than":"fa-less-than","fa-less-than-equal":"fa-less-than-equal","fa-level-down-alt":"fa-level-down-alt","fa-level-up-alt":"fa-level-up-alt","fa-life-ring":"fa-life-ring","fa-lightbulb":"fa-lightbulb","fa-line":"fa-line","fa-link":"fa-link","fa-linkedin":"fa-linkedin","fa-linkedin-in":"fa-linkedin-in","fa-linode":"fa-linode","fa-linux":"fa-linux","fa-lira-sign":"fa-lira-sign","fa-list":"fa-list","fa-list-alt":"fa-list-alt","fa-list-ol":"fa-list-ol","fa-list-ul":"fa-list-ul","fa-location-arrow":"fa-location-arrow","fa-lock":"fa-lock","fa-lock-open":"fa-lock-open","fa-long-arrow-alt-down":"fa-long-arrow-alt-down","fa-long-arrow-alt-left":"fa-long-arrow-alt-left","fa-long-arrow-alt-right":"fa-long-arrow-alt-right","fa-long-arrow-alt-up":"fa-long-arrow-alt-up","fa-low-vision":"fa-low-vision","fa-luggage-cart":"fa-luggage-cart","fa-lungs":"fa-lungs","fa-lungs-virus":"fa-lungs-virus","fa-lyft":"fa-lyft","fa-magento":"fa-magento","fa-magic":"fa-magic","fa-magnet":"fa-magnet","fa-mail-bulk":"fa-mail-bulk","fa-mailchimp":"fa-mailchimp","fa-male":"fa-male","fa-mandalorian":"fa-mandalorian","fa-map":"fa-map","fa-map-marked":"fa-map-marked","fa-map-marked-alt":"fa-map-marked-alt","fa-map-marker":"fa-map-marker","fa-map-marker-alt":"fa-map-marker-alt","fa-map-pin":"fa-map-pin","fa-map-signs":"fa-map-signs","fa-markdown":"fa-markdown","fa-marker":"fa-marker","fa-mars":"fa-mars","fa-mars-double":"fa-mars-double","fa-mars-stroke":"fa-mars-stroke","fa-mars-stroke-h":"fa-mars-stroke-h","fa-mars-stroke-v":"fa-mars-stroke-v","fa-mask":"fa-mask","fa-mastodon":"fa-mastodon","fa-maxcdn":"fa-maxcdn","fa-mdb":"fa-mdb","fa-medal":"fa-medal","fa-medapps":"fa-medapps","fa-medium":"fa-medium","fa-medium-m":"fa-medium-m","fa-medkit":"fa-medkit","fa-medrt":"fa-medrt","fa-meetup":"fa-meetup","fa-megaport":"fa-megaport","fa-meh":"fa-meh","fa-meh-blank":"fa-meh-blank","fa-meh-rolling-eyes":"fa-meh-rolling-eyes","fa-memory":"fa-memory","fa-mendeley":"fa-mendeley","fa-menorah":"fa-menorah","fa-mercury":"fa-mercury","fa-meteor":"fa-meteor","fa-microblog":"fa-microblog","fa-microchip":"fa-microchip","fa-microphone":"fa-microphone","fa-microphone-alt":"fa-microphone-alt","fa-microphone-alt-slash":"fa-microphone-alt-slash","fa-microphone-slash":"fa-microphone-slash","fa-microscope":"fa-microscope","fa-microsoft":"fa-microsoft","fa-minus":"fa-minus","fa-minus-circle":"fa-minus-circle","fa-minus-square":"fa-minus-square","fa-mitten":"fa-mitten","fa-mix":"fa-mix","fa-mixcloud":"fa-mixcloud","fa-mixer":"fa-mixer","fa-mizuni":"fa-mizuni","fa-mobile":"fa-mobile","fa-mobile-alt":"fa-mobile-alt","fa-modx":"fa-modx","fa-monero":"fa-monero","fa-money-bill":"fa-money-bill","fa-money-bill-alt":"fa-money-bill-alt","fa-money-bill-wave":"fa-money-bill-wave","fa-money-bill-wave-alt":"fa-money-bill-wave-alt","fa-money-check":"fa-money-check","fa-money-check-alt":"fa-money-check-alt","fa-monument":"fa-monument","fa-moon":"fa-moon","fa-mortar-pestle":"fa-mortar-pestle","fa-mosque":"fa-mosque","fa-motorcycle":"fa-motorcycle","fa-mountain":"fa-mountain","fa-mouse":"fa-mouse","fa-mouse-pointer":"fa-mouse-pointer","fa-mug-hot":"fa-mug-hot","fa-music":"fa-music","fa-napster":"fa-napster","fa-neos":"fa-neos","fa-network-wired":"fa-network-wired","fa-neuter":"fa-neuter","fa-newspaper":"fa-newspaper","fa-nimblr":"fa-nimblr","fa-node":"fa-node","fa-node-js":"fa-node-js","fa-not-equal":"fa-not-equal","fa-notes-medical":"fa-notes-medical","fa-npm":"fa-npm","fa-ns8":"fa-ns8","fa-nutritionix":"fa-nutritionix","fa-object-group":"fa-object-group","fa-object-ungroup":"fa-object-ungroup","fa-octopus-deploy":"fa-octopus-deploy","fa-odnoklassniki":"fa-odnoklassniki","fa-odnoklassniki-square":"fa-odnoklassniki-square","fa-oil-can":"fa-oil-can","fa-old-republic":"fa-old-republic","fa-om":"fa-om","fa-opencart":"fa-opencart","fa-openid":"fa-openid","fa-opera":"fa-opera","fa-optin-monster":"fa-optin-monster","fa-orcid":"fa-orcid","fa-osi":"fa-osi","fa-otter":"fa-otter","fa-outdent":"fa-outdent","fa-page4":"fa-page4","fa-pagelines":"fa-pagelines","fa-pager":"fa-pager","fa-paint-brush":"fa-paint-brush","fa-paint-roller":"fa-paint-roller","fa-palette":"fa-palette","fa-palfed":"fa-palfed","fa-pallet":"fa-pallet","fa-paper-plane":"fa-paper-plane","fa-paperclip":"fa-paperclip","fa-parachute-box":"fa-parachute-box","fa-paragraph":"fa-paragraph","fa-parking":"fa-parking","fa-passport":"fa-passport","fa-pastafarianism":"fa-pastafarianism","fa-paste":"fa-paste","fa-patreon":"fa-patreon","fa-pause":"fa-pause","fa-pause-circle":"fa-pause-circle","fa-paw":"fa-paw","fa-paypal":"fa-paypal","fa-peace":"fa-peace","fa-pen":"fa-pen","fa-pen-alt":"fa-pen-alt","fa-pen-fancy":"fa-pen-fancy","fa-pen-nib":"fa-pen-nib","fa-pen-square":"fa-pen-square","fa-pencil-alt":"fa-pencil-alt","fa-pencil-ruler":"fa-pencil-ruler","fa-penny-arcade":"fa-penny-arcade","fa-people-arrows":"fa-people-arrows","fa-people-carry":"fa-people-carry","fa-pepper-hot":"fa-pepper-hot","fa-perbyte":"fa-perbyte","fa-percent":"fa-percent","fa-percentage":"fa-percentage","fa-periscope":"fa-periscope","fa-person-booth":"fa-person-booth","fa-phabricator":"fa-phabricator","fa-phoenix-framework":"fa-phoenix-framework","fa-phoenix-squadron":"fa-phoenix-squadron","fa-phone":"fa-phone","fa-phone-alt":"fa-phone-alt","fa-phone-slash":"fa-phone-slash","fa-phone-square":"fa-phone-square","fa-phone-square-alt":"fa-phone-square-alt","fa-phone-volume":"fa-phone-volume","fa-photo-video":"fa-photo-video","fa-php":"fa-php","fa-pied-piper":"fa-pied-piper","fa-pied-piper-alt":"fa-pied-piper-alt","fa-pied-piper-hat":"fa-pied-piper-hat","fa-pied-piper-pp":"fa-pied-piper-pp","fa-pied-piper-square":"fa-pied-piper-square","fa-piggy-bank":"fa-piggy-bank","fa-pills":"fa-pills","fa-pinterest":"fa-pinterest","fa-pinterest-p":"fa-pinterest-p","fa-pinterest-square":"fa-pinterest-square","fa-pizza-slice":"fa-pizza-slice","fa-place-of-worship":"fa-place-of-worship","fa-plane":"fa-plane","fa-plane-arrival":"fa-plane-arrival","fa-plane-departure":"fa-plane-departure","fa-plane-slash":"fa-plane-slash","fa-play":"fa-play","fa-play-circle":"fa-play-circle","fa-playstation":"fa-playstation","fa-plug":"fa-plug","fa-plus":"fa-plus","fa-plus-circle":"fa-plus-circle","fa-plus-square":"fa-plus-square","fa-podcast":"fa-podcast","fa-poll":"fa-poll","fa-poll-h":"fa-poll-h","fa-poo":"fa-poo","fa-poo-storm":"fa-poo-storm","fa-poop":"fa-poop","fa-portrait":"fa-portrait","fa-pound-sign":"fa-pound-sign","fa-power-off":"fa-power-off","fa-pray":"fa-pray","fa-praying-hands":"fa-praying-hands","fa-prescription":"fa-prescription","fa-prescription-bottle":"fa-prescription-bottle","fa-prescription-bottle-alt":"fa-prescription-bottle-alt","fa-print":"fa-print","fa-procedures":"fa-procedures","fa-product-hunt":"fa-product-hunt","fa-project-diagram":"fa-project-diagram","fa-pump-medical":"fa-pump-medical","fa-pump-soap":"fa-pump-soap","fa-pushed":"fa-pushed","fa-puzzle-piece":"fa-puzzle-piece","fa-python":"fa-python","fa-qq":"fa-qq","fa-qrcode":"fa-qrcode","fa-question":"fa-question","fa-question-circle":"fa-question-circle","fa-quidditch":"fa-quidditch","fa-quinscape":"fa-quinscape","fa-quora":"fa-quora","fa-quote-left":"fa-quote-left","fa-quote-right":"fa-quote-right","fa-quran":"fa-quran","fa-r-project":"fa-r-project","fa-radiation":"fa-radiation","fa-radiation-alt":"fa-radiation-alt","fa-rainbow":"fa-rainbow","fa-random":"fa-random","fa-raspberry-pi":"fa-raspberry-pi","fa-ravelry":"fa-ravelry","fa-react":"fa-react","fa-reacteurope":"fa-reacteurope","fa-readme":"fa-readme","fa-rebel":"fa-rebel","fa-receipt":"fa-receipt","fa-record-vinyl":"fa-record-vinyl","fa-recycle":"fa-recycle","fa-red-river":"fa-red-river","fa-reddit":"fa-reddit","fa-reddit-alien":"fa-reddit-alien","fa-reddit-square":"fa-reddit-square","fa-redhat":"fa-redhat","fa-redo":"fa-redo","fa-redo-alt":"fa-redo-alt","fa-registered":"fa-registered","fa-remove-format":"fa-remove-format","fa-renren":"fa-renren","fa-reply":"fa-reply","fa-reply-all":"fa-reply-all","fa-replyd":"fa-replyd","fa-republican":"fa-republican","fa-researchgate":"fa-researchgate","fa-resolving":"fa-resolving","fa-restroom":"fa-restroom","fa-retweet":"fa-retweet","fa-rev":"fa-rev","fa-ribbon":"fa-ribbon","fa-ring":"fa-ring","fa-road":"fa-road","fa-robot":"fa-robot","fa-rocket":"fa-rocket","fa-rocketchat":"fa-rocketchat","fa-rockrms":"fa-rockrms","fa-route":"fa-route","fa-rss":"fa-rss","fa-rss-square":"fa-rss-square","fa-ruble-sign":"fa-ruble-sign","fa-ruler":"fa-ruler","fa-ruler-combined":"fa-ruler-combined","fa-ruler-horizontal":"fa-ruler-horizontal","fa-ruler-vertical":"fa-ruler-vertical","fa-running":"fa-running","fa-rupee-sign":"fa-rupee-sign","fa-rust":"fa-rust","fa-sad-cry":"fa-sad-cry","fa-sad-tear":"fa-sad-tear","fa-safari":"fa-safari","fa-salesforce":"fa-salesforce","fa-sass":"fa-sass","fa-satellite":"fa-satellite","fa-satellite-dish":"fa-satellite-dish","fa-save":"fa-save","fa-schlix":"fa-schlix","fa-school":"fa-school","fa-screwdriver":"fa-screwdriver","fa-scribd":"fa-scribd","fa-scroll":"fa-scroll","fa-sd-card":"fa-sd-card","fa-search":"fa-search","fa-search-dollar":"fa-search-dollar","fa-search-location":"fa-search-location","fa-search-minus":"fa-search-minus","fa-search-plus":"fa-search-plus","fa-searchengin":"fa-searchengin","fa-seedling":"fa-seedling","fa-sellcast":"fa-sellcast","fa-sellsy":"fa-sellsy","fa-server":"fa-server","fa-servicestack":"fa-servicestack","fa-shapes":"fa-shapes","fa-share":"fa-share","fa-share-alt":"fa-share-alt","fa-share-alt-square":"fa-share-alt-square","fa-share-square":"fa-share-square","fa-shekel-sign":"fa-shekel-sign","fa-shield-alt":"fa-shield-alt","fa-shield-virus":"fa-shield-virus","fa-ship":"fa-ship","fa-shipping-fast":"fa-shipping-fast","fa-shirtsinbulk":"fa-shirtsinbulk","fa-shoe-prints":"fa-shoe-prints","fa-shopify":"fa-shopify","fa-shopping-bag":"fa-shopping-bag","fa-shopping-basket":"fa-shopping-basket","fa-shopping-cart":"fa-shopping-cart","fa-shopware":"fa-shopware","fa-shower":"fa-shower","fa-shuttle-van":"fa-shuttle-van","fa-sign":"fa-sign","fa-sign-in-alt":"fa-sign-in-alt","fa-sign-language":"fa-sign-language","fa-sign-out-alt":"fa-sign-out-alt","fa-signal":"fa-signal","fa-signature":"fa-signature","fa-sim-card":"fa-sim-card","fa-simplybuilt":"fa-simplybuilt","fa-sink":"fa-sink","fa-sistrix":"fa-sistrix","fa-sitemap":"fa-sitemap","fa-sith":"fa-sith","fa-skating":"fa-skating","fa-sketch":"fa-sketch","fa-skiing":"fa-skiing","fa-skiing-nordic":"fa-skiing-nordic","fa-skull":"fa-skull","fa-skull-crossbones":"fa-skull-crossbones","fa-skyatlas":"fa-skyatlas","fa-skype":"fa-skype","fa-slack":"fa-slack","fa-slack-hash":"fa-slack-hash","fa-slash":"fa-slash","fa-sleigh":"fa-sleigh","fa-sliders-h":"fa-sliders-h","fa-slideshare":"fa-slideshare","fa-smile":"fa-smile","fa-smile-beam":"fa-smile-beam","fa-smile-wink":"fa-smile-wink","fa-smog":"fa-smog","fa-smoking":"fa-smoking","fa-smoking-ban":"fa-smoking-ban","fa-sms":"fa-sms","fa-snapchat":"fa-snapchat","fa-snapchat-ghost":"fa-snapchat-ghost","fa-snapchat-square":"fa-snapchat-square","fa-snowboarding":"fa-snowboarding","fa-snowflake":"fa-snowflake","fa-snowman":"fa-snowman","fa-snowplow":"fa-snowplow","fa-soap":"fa-soap","fa-socks":"fa-socks","fa-solar-panel":"fa-solar-panel","fa-sort":"fa-sort","fa-sort-alpha-down":"fa-sort-alpha-down","fa-sort-alpha-down-alt":"fa-sort-alpha-down-alt","fa-sort-alpha-up":"fa-sort-alpha-up","fa-sort-alpha-up-alt":"fa-sort-alpha-up-alt","fa-sort-amount-down":"fa-sort-amount-down","fa-sort-amount-down-alt":"fa-sort-amount-down-alt","fa-sort-amount-up":"fa-sort-amount-up","fa-sort-amount-up-alt":"fa-sort-amount-up-alt","fa-sort-down":"fa-sort-down","fa-sort-numeric-down":"fa-sort-numeric-down","fa-sort-numeric-down-alt":"fa-sort-numeric-down-alt","fa-sort-numeric-up":"fa-sort-numeric-up","fa-sort-numeric-up-alt":"fa-sort-numeric-up-alt","fa-sort-up":"fa-sort-up","fa-soundcloud":"fa-soundcloud","fa-sourcetree":"fa-sourcetree","fa-spa":"fa-spa","fa-space-shuttle":"fa-space-shuttle","fa-speakap":"fa-speakap","fa-speaker-deck":"fa-speaker-deck","fa-spell-check":"fa-spell-check","fa-spider":"fa-spider","fa-spinner":"fa-spinner","fa-splotch":"fa-splotch","fa-spotify":"fa-spotify","fa-spray-can":"fa-spray-can","fa-square":"fa-square","fa-square-full":"fa-square-full","fa-square-root-alt":"fa-square-root-alt","fa-squarespace":"fa-squarespace","fa-stack-exchange":"fa-stack-exchange","fa-stack-overflow":"fa-stack-overflow","fa-stackpath":"fa-stackpath","fa-stamp":"fa-stamp","fa-star":"fa-star","fa-star-and-crescent":"fa-star-and-crescent","fa-star-half":"fa-star-half","fa-star-half-alt":"fa-star-half-alt","fa-star-of-david":"fa-star-of-david","fa-star-of-life":"fa-star-of-life","fa-staylinked":"fa-staylinked","fa-steam":"fa-steam","fa-steam-square":"fa-steam-square","fa-steam-symbol":"fa-steam-symbol","fa-step-backward":"fa-step-backward","fa-step-forward":"fa-step-forward","fa-stethoscope":"fa-stethoscope","fa-sticker-mule":"fa-sticker-mule","fa-sticky-note":"fa-sticky-note","fa-stop":"fa-stop","fa-stop-circle":"fa-stop-circle","fa-stopwatch":"fa-stopwatch","fa-stopwatch-20":"fa-stopwatch-20","fa-store":"fa-store","fa-store-alt":"fa-store-alt","fa-store-alt-slash":"fa-store-alt-slash","fa-store-slash":"fa-store-slash","fa-strava":"fa-strava","fa-stream":"fa-stream","fa-street-view":"fa-street-view","fa-strikethrough":"fa-strikethrough","fa-stripe":"fa-stripe","fa-stripe-s":"fa-stripe-s","fa-stroopwafel":"fa-stroopwafel","fa-studiovinari":"fa-studiovinari","fa-stumbleupon":"fa-stumbleupon","fa-stumbleupon-circle":"fa-stumbleupon-circle","fa-subscript":"fa-subscript","fa-subway":"fa-subway","fa-suitcase":"fa-suitcase","fa-suitcase-rolling":"fa-suitcase-rolling","fa-sun":"fa-sun","fa-superpowers":"fa-superpowers","fa-superscript":"fa-superscript","fa-supple":"fa-supple","fa-surprise":"fa-surprise","fa-suse":"fa-suse","fa-swatchbook":"fa-swatchbook","fa-swift":"fa-swift","fa-swimmer":"fa-swimmer","fa-swimming-pool":"fa-swimming-pool","fa-symfony":"fa-symfony","fa-synagogue":"fa-synagogue","fa-sync":"fa-sync","fa-sync-alt":"fa-sync-alt","fa-syringe":"fa-syringe","fa-table":"fa-table","fa-table-tennis":"fa-table-tennis","fa-tablet":"fa-tablet","fa-tablet-alt":"fa-tablet-alt","fa-tablets":"fa-tablets","fa-tachometer-alt":"fa-tachometer-alt","fa-tag":"fa-tag","fa-tags":"fa-tags","fa-tape":"fa-tape","fa-tasks":"fa-tasks","fa-taxi":"fa-taxi","fa-teamspeak":"fa-teamspeak","fa-teeth":"fa-teeth","fa-teeth-open":"fa-teeth-open","fa-telegram":"fa-telegram","fa-telegram-plane":"fa-telegram-plane","fa-temperature-high":"fa-temperature-high","fa-temperature-low":"fa-temperature-low","fa-tencent-weibo":"fa-tencent-weibo","fa-tenge":"fa-tenge","fa-terminal":"fa-terminal","fa-text-height":"fa-text-height","fa-text-width":"fa-text-width","fa-th":"fa-th","fa-th-large":"fa-th-large","fa-th-list":"fa-th-list","fa-the-red-yeti":"fa-the-red-yeti","fa-theater-masks":"fa-theater-masks","fa-themeco":"fa-themeco","fa-themeisle":"fa-themeisle","fa-thermometer":"fa-thermometer","fa-thermometer-empty":"fa-thermometer-empty","fa-thermometer-full":"fa-thermometer-full","fa-thermometer-half":"fa-thermometer-half","fa-thermometer-quarter":"fa-thermometer-quarter","fa-thermometer-three-quarters":"fa-thermometer-three-quarters","fa-think-peaks":"fa-think-peaks","fa-thumbs-down":"fa-thumbs-down","fa-thumbs-up":"fa-thumbs-up","fa-thumbtack":"fa-thumbtack","fa-ticket-alt":"fa-ticket-alt","fa-tiktok":"fa-tiktok","fa-times":"fa-times","fa-times-circle":"fa-times-circle","fa-tint":"fa-tint","fa-tint-slash":"fa-tint-slash","fa-tired":"fa-tired","fa-toggle-off":"fa-toggle-off","fa-toggle-on":"fa-toggle-on","fa-toilet":"fa-toilet","fa-toilet-paper":"fa-toilet-paper","fa-toilet-paper-slash":"fa-toilet-paper-slash","fa-toolbox":"fa-toolbox","fa-tools":"fa-tools","fa-tooth":"fa-tooth","fa-torah":"fa-torah","fa-torii-gate":"fa-torii-gate","fa-tractor":"fa-tractor","fa-trade-federation":"fa-trade-federation","fa-trademark":"fa-trademark","fa-traffic-light":"fa-traffic-light","fa-trailer":"fa-trailer","fa-train":"fa-train","fa-tram":"fa-tram","fa-transgender":"fa-transgender","fa-transgender-alt":"fa-transgender-alt","fa-trash":"fa-trash","fa-trash-alt":"fa-trash-alt","fa-trash-restore":"fa-trash-restore","fa-trash-restore-alt":"fa-trash-restore-alt","fa-tree":"fa-tree","fa-trello":"fa-trello","fa-tripadvisor":"fa-tripadvisor","fa-trophy":"fa-trophy","fa-truck":"fa-truck","fa-truck-loading":"fa-truck-loading","fa-truck-monster":"fa-truck-monster","fa-truck-moving":"fa-truck-moving","fa-truck-pickup":"fa-truck-pickup","fa-tshirt":"fa-tshirt","fa-tty":"fa-tty","fa-tumblr":"fa-tumblr","fa-tumblr-square":"fa-tumblr-square","fa-tv":"fa-tv","fa-twitch":"fa-twitch","fa-twitter":"fa-twitter","fa-twitter-square":"fa-twitter-square","fa-typo3":"fa-typo3","fa-uber":"fa-uber","fa-ubuntu":"fa-ubuntu","fa-uikit":"fa-uikit","fa-umbraco":"fa-umbraco","fa-umbrella":"fa-umbrella","fa-umbrella-beach":"fa-umbrella-beach","fa-uncharted":"fa-uncharted","fa-underline":"fa-underline","fa-undo":"fa-undo","fa-undo-alt":"fa-undo-alt","fa-uniregistry":"fa-uniregistry","fa-unity":"fa-unity","fa-universal-access":"fa-universal-access","fa-university":"fa-university","fa-unlink":"fa-unlink","fa-unlock":"fa-unlock","fa-unlock-alt":"fa-unlock-alt","fa-unsplash":"fa-unsplash","fa-untappd":"fa-untappd","fa-upload":"fa-upload","fa-ups":"fa-ups","fa-usb":"fa-usb","fa-user":"fa-user","fa-user-alt":"fa-user-alt","fa-user-alt-slash":"fa-user-alt-slash","fa-user-astronaut":"fa-user-astronaut","fa-user-check":"fa-user-check","fa-user-circle":"fa-user-circle","fa-user-clock":"fa-user-clock","fa-user-cog":"fa-user-cog","fa-user-edit":"fa-user-edit","fa-user-friends":"fa-user-friends","fa-user-graduate":"fa-user-graduate","fa-user-injured":"fa-user-injured","fa-user-lock":"fa-user-lock","fa-user-md":"fa-user-md","fa-user-minus":"fa-user-minus","fa-user-ninja":"fa-user-ninja","fa-user-nurse":"fa-user-nurse","fa-user-plus":"fa-user-plus","fa-user-secret":"fa-user-secret","fa-user-shield":"fa-user-shield","fa-user-slash":"fa-user-slash","fa-user-tag":"fa-user-tag","fa-user-tie":"fa-user-tie","fa-user-times":"fa-user-times","fa-users":"fa-users","fa-users-cog":"fa-users-cog","fa-users-slash":"fa-users-slash","fa-usps":"fa-usps","fa-ussunnah":"fa-ussunnah","fa-utensil-spoon":"fa-utensil-spoon","fa-utensils":"fa-utensils","fa-vaadin":"fa-vaadin","fa-vector-square":"fa-vector-square","fa-venus":"fa-venus","fa-venus-double":"fa-venus-double","fa-venus-mars":"fa-venus-mars","fa-vest":"fa-vest","fa-vest-patches":"fa-vest-patches","fa-viacoin":"fa-viacoin","fa-viadeo":"fa-viadeo","fa-viadeo-square":"fa-viadeo-square","fa-vial":"fa-vial","fa-vials":"fa-vials","fa-viber":"fa-viber","fa-video":"fa-video","fa-video-slash":"fa-video-slash","fa-vihara":"fa-vihara","fa-vimeo":"fa-vimeo","fa-vimeo-square":"fa-vimeo-square","fa-vimeo-v":"fa-vimeo-v","fa-vine":"fa-vine","fa-virus":"fa-virus","fa-virus-slash":"fa-virus-slash","fa-viruses":"fa-viruses","fa-vk":"fa-vk","fa-vnv":"fa-vnv","fa-voicemail":"fa-voicemail","fa-volleyball-ball":"fa-volleyball-ball","fa-volume-down":"fa-volume-down","fa-volume-mute":"fa-volume-mute","fa-volume-off":"fa-volume-off","fa-volume-up":"fa-volume-up","fa-vote-yea":"fa-vote-yea","fa-vr-cardboard":"fa-vr-cardboard","fa-vuejs":"fa-vuejs","fa-walking":"fa-walking","fa-wallet":"fa-wallet","fa-warehouse":"fa-warehouse","fa-watchman-monitoring":"fa-watchman-monitoring","fa-water":"fa-water","fa-wave-square":"fa-wave-square","fa-waze":"fa-waze","fa-weebly":"fa-weebly","fa-weibo":"fa-weibo","fa-weight":"fa-weight","fa-weight-hanging":"fa-weight-hanging","fa-weixin":"fa-weixin","fa-whatsapp":"fa-whatsapp","fa-whatsapp-square":"fa-whatsapp-square","fa-wheelchair":"fa-wheelchair","fa-whmcs":"fa-whmcs","fa-wifi":"fa-wifi","fa-wikipedia-w":"fa-wikipedia-w","fa-wind":"fa-wind","fa-window-close":"fa-window-close","fa-window-maximize":"fa-window-maximize","fa-window-minimize":"fa-window-minimize","fa-window-restore":"fa-window-restore","fa-windows":"fa-windows","fa-wine-bottle":"fa-wine-bottle","fa-wine-glass":"fa-wine-glass","fa-wine-glass-alt":"fa-wine-glass-alt","fa-wix":"fa-wix","fa-wizards-of-the-coast":"fa-wizards-of-the-coast","fa-wodu":"fa-wodu","fa-wolf-pack-battalion":"fa-wolf-pack-battalion","fa-won-sign":"fa-won-sign","fa-wordpress":"fa-wordpress","fa-wordpress-simple":"fa-wordpress-simple","fa-wpbeginner":"fa-wpbeginner","fa-wpexplorer":"fa-wpexplorer","fa-wpforms":"fa-wpforms","fa-wpressr":"fa-wpressr","fa-wrench":"fa-wrench","fa-x-ray":"fa-x-ray","fa-xbox":"fa-xbox","fa-xing":"fa-xing","fa-xing-square":"fa-xing-square","fa-y-combinator":"fa-y-combinator","fa-yahoo":"fa-yahoo","fa-yammer":"fa-yammer","fa-yandex":"fa-yandex","fa-yandex-international":"fa-yandex-international","fa-yarn":"fa-yarn","fa-yelp":"fa-yelp","fa-yen-sign":"fa-yen-sign","fa-yin-yang":"fa-yin-yang","fa-yoast":"fa-yoast","fa-youtube":"fa-youtube","fa-youtube-square":"fa-youtube-square","fa-zhihu":"fa-zhihu","sr-only":"sr-only","sr-only-focusable":"sr-only-focusable",empty_list:"empty_list"}}]);var sensbitpocztapolska=function(d,e,t){var u={module:"",text_choose_point:"",text_point_cod:"",loaded:!1,id_interval:!1,use_desintifier:!1,carriers:[],carriers_cod:[],point:"",point_label:"",carrier_selector:".delivery_option_radio",point_required:!1,validate_cod:0,map_is_open:!1,x13opc:!1,onepagecheckout:!1,supercheckout:!1,onepagecheckoutps:!1,wkonepagecheckout:!1,spstepcheckout:!1,google_key:"AIzaSyDZc6Ajf0PqhUAzbktozQyHFpi5V7TZW_o",use_interval:!1,conf_btn:"button[name=processCarrier]",ps17:!1,ajax_url:"",show_chooser_below_list:!1},_=0,f="";function v(e){return e.text}function h(e){return e.split("").reverse().join("")}function o(){var e,t=d(u.carrier_selector).filter(":checked"),o=parseInt(t.val());if(u.use_desintifier&&3<o.toString().length&&o.toString().indexOf(",")<=-1&&(o=parseInt(function(e){e=e.toString();var t=parseInt(e[0]);return h((e=h(e.substr(1))).split("0".repeat(t+1)).join(","))}(o))),_=o,-1!==d.inArray(o,u.carriers)){u.validate_cod=-1!==d.inArray(o,u.carriers_cod)?1:0,1!==u.validate_cod&&(e=[],0<_&&void 0!==u.points_by_carrier&&"object"==typeof u.points_by_carrier[_]&&0<u.points_by_carrier[_].length&&(e=u.points_by_carrier[_]),f=e),u.point_required=!0;var i="append";if(u.show_chooser_below_list){if(u.onepagecheckoutps){var n=t.closest(".delivery-options");i="append"}else if(u.onepagecheckout){n=d("#carriers_section");i="after"}else if(u.supercheckout)n=d("#shipping-method");else if(u.spstepcheckout)n=d("#shipping_container");else{n=d(u.ps17?".delivery-options-list .delivery-options":".delivery_options_address");i="append"}n.is("table")&&(i="after")}else if(u.x13opc)n=t.closest(".delivery_option");else if(u.onepagecheckout){(n=t.closest("tr")).length||(n=t.closest(".delivery_option"))}else if(u.onepagecheckoutps){n=t.closest(".delivery-option, .delivery_option");i="after"}else if(u.supercheckout)n=t.closest("tr");else if(u.wkonepagecheckout){n=d(u.carrier_selector).closest(".wk-shipping-list");i="append"}else{(n=t.closest(u.ps17?".delivery-option":".delivery_option")).length||(n=t.closest(".form-group")),i="after"}if(n.is("tr")&&(i="after"),"after"===i)var r=n.parent().find("."+u.module+"."+u.validate_cod).length;else r=n.find("."+u.module+"."+u.validate_cod).length;if(!r){var a=d("#"+u.module).clone(!0);if(a.removeAttr("id"),a.addClass(u.validate_cod.toString()),u.show_chooser_below_list&&u.ps17&&a.css("margin-top","0"),u.show_chooser_below_list||!u.x13opc&&!n.is("tr"))"append"===i?n.append(a):"after"===i&&n.after(a);else{var c=n;n.is("tr")||(n=n.find("tr")),a.css("margin","0");var s=n.find("td").length;n.find("td").css("border","0");var p=d('<tr class="'+u.module+'-tr"><td colspan="'+s+'" style="border:0;padding:0;" class="'+u.module+'-td"></td></tr>');p.find("td").append(a),n.after(p);var l=n.next("."+u.module+"-tr").find("."+u.module+"-td");c.width()<l.width()&&!u.supercheckout?l.css("max-width","0"):u.supercheckout&&(n.next(".sensbitpocztapolska-tr").css("display","block"),l.css("display","block"),l.css("width","100%"))}d(a).find("."+u.module+"-point-select").not(".active").addClass("active").select2pocztapolska({language:"pl",allowClear:!1,closeOnSelect:!0,selectOnClose:!1,width:300,ajax:{url:u.ajax_url,dataType:"json",delay:250,data:function(e){return{ajax:1,sensbitpocztapolska:1,action:"searchPoints",q:e.term,is_cod:u.validate_cod,page:e.page||1,type:f}},processResults:function(e,t){t.page=t.page||1;var o=d.map(e.items,function(e){return e.id=e.id_place,e.text=e.label,e});return{results:o,pagination:{more:30*t.page<e.total_count}}},cache:!0},escapeMarkup:function(e){return e},minimumInputLength:1,templateResult:v,templateSelection:v}),u.point.length<=0&&d(u.conf_btn+", input#cgv, input#cgv2, input#privacy_policy, input#kb_super_policy_1, input#kb_super_policy_2, #conditions_to_approve\\[terms-and-conditions\\], input[required][id^=agreement]").filter(":visible").filter(":checkbox").each(function(){d(this).prop("checked",!1),void 0!==d.uniform&&d.uniform.update(this),"function"==typeof updatePaymentMethodsDisplay&&updatePaymentMethodsDisplay()})}d("."+u.module).not("."+u.validate_cod).hide(),d("."+u.module+"."+u.validate_cod).show(),u.validate_cod&&u.point_required&&0<u.point.length&&g.updatePoint(u.point,"."+u.module+"-point-select")}else d("."+u.module).hide(),u.point_required=!1}String.prototype.repeat=function(e){return new Array(e+1).join(this)};var g={setOptions:function(e){void 0!==e.point&&(null!==e.point&&e.point||(e.point="")),d.extend(u,e),0<u.point.length&&g.updatePoint(u.point,"."+u.module+"-point-select"),d("input.multi_carrier_poland").length?u.carrier_selector="input.multi_carrier_poland":d(u.carrier_selector).length<=0&&(d("input[name^='delivery_option']").length&&(u.carrier_selector="input[name^='delivery_option']"),d("input[name^='id_carrier']").length&&(u.carrier_selector="input[name^='id_carrier']")),d(u.conf_btn+", input#cgv, input#cgv2, input#privacy_policy, input#kb_super_policy_1, input#kb_super_policy_2, #conditions_to_approve\\[terms-and-conditions\\], input[required][id^=agreement]").length<=0&&(u.conf_btn="button[name=confirmDeliveryOption]")},debug:function(){return u},init:function(e){u.loaded||(void 0!==e&&g.setOptions(e),u.loaded=!0,u.id_interval=setInterval(function(){void 0!==d&&(d(function(){if(console.log(u.text_console,"font-size:18px;color:#c00;"),d(document).on("click",function(e){d(e.target).is("#sensbitpocztapolska-overlay-backdrop")&&d("#sensbitpocztapolska-overlay").remove()}),o(),d(document).on("change",u.carrier_selector,function(){o()}),u.use_interval)setInterval(function(){o()},500);d(document).on("change","."+u.module+"-point-select",function(){var e=d(this);g.updatePoint(e.val(),e)}),d(document).on("click",u.conf_btn+", input#cgv, input#cgv2, input#privacy_policy, input#kb_super_policy_1, input#kb_super_policy_2, #conditions_to_approve\\[terms-and-conditions\\],input[required][id^=agreement]",function(e){u.point_required&&u.point.length<=0?(e.preventDefault(),d("."+u.module).addClass("error"),alert(u.text_choose_point),d(this).is(":checkbox")&&d(this).is(":visible")&&(d(this).prop("checked",!1),void 0!==d.uniform&&d.uniform.update(this)),d("."+u.module+"-map-btn").trigger("click")):d("."+u.module).removeClass("error")})}),clearInterval(u.id_interval))},300))},openMap:function(t,e){PPWidgetApp.toggleMap({callback:function(e){d(t).each(function(){d(this).val(e.pni),d(t).parents(".sensbitpocztapolska").find(".select2pocztapolska-selection__rendered").text(e.name+" ("+e.street+", "+e.zipCode+" "+e.city+")"),sensbitpocztapolska.updatePoint(e.pni)})},payOnPickup:1===u.validate_cod,address:e,type:f})},updatePoint:function(o,i){d.ajax({url:u.ajax_url,type:"POST",data:{ajax:1,sensbitpocztapolska:1,action:"updatePoint",point:o,check_cod:u.validate_cod},success:function(e){var t;"0"===e?(u.point="",d(i).closest("."+u.module).find("."+u.select2+"-selection__rendered").text(""),t=u.text_point_cod,d.prototype.fancybox?d.fancybox.open([{type:"inline",autoScale:!0,minHeight:30,content:'<p class="fancybox-error">'+t+"</p>"}],{padding:0,helpers:{overlay:{locked:!1}}}):alert(t)):(u.point=o,d("."+u.module).removeClass("error"))}})}};return g}($,window,document);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.select2pocztapolska&&n.fn.select2pocztapolska.amd)var e=n.fn.select2pocztapolska.amd;var t,s,c;return e&&e.requirejs||(e?s=e:e={},function(d){function h(e,t){return n.call(e,t)}function r(e,t){var n,o,s,i,r,a,l,c,p,u,d,h=t&&t.split("/"),f=$.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(r=(e=e.split("/")).length-1,$.nodeIdCompat&&b.test(e[r])&&(e[r]=e[r].replace(b,"")),e=h.slice(0,h.length-1).concat(e),p=0;p<e.length;p+=1)if("."===(d=e[p]))e.splice(p,1),p-=1;else if(".."===d){if(1===p&&(".."===e[2]||".."===e[0]))break;0<p&&(e.splice(p-1,2),p-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(p=(n=e.split("/")).length;0<p;p-=1){if(o=n.slice(0,p).join("/"),h)for(u=h.length;0<u;u-=1)if((s=f[h.slice(0,u).join("/")])&&(s=s[o])){i=s,a=p;break}if(i)break;!l&&g&&g[o]&&(l=g[o],c=p)}!i&&l&&(i=l,a=c),i&&(n.splice(0,a,i),e=n.join("/"))}return e}function f(t,n){return function(){var e=o.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),l.apply(d,e.concat([t,n]))}}function g(t){return function(e){_[t]=e}}function m(e){if(h(w,e)){var t=w[e];delete w[e],k[e]=!0,i.apply(d,t)}if(!h(_,e)&&!h(k,e))throw new Error("No "+e);return _[e]}function a(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}var i,l,v,y,_={},w={},$={},k={},n=Object.prototype.hasOwnProperty,o=[].slice,b=/\.js$/;v=function(e,t){var n,o,s=a(e),i=s[0];return e=s[1],i&&(n=m(i=r(i,t))),i?e=n&&n.normalize?n.normalize(e,(o=t,function(e){return r(e,o)})):r(e,t):(i=(s=a(e=r(e,t)))[0],e=s[1],i&&(n=m(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},y={require:function(e){return f(e)},exports:function(e){var t=_[e];return void 0!==t?t:_[e]={}},module:function(e){return{id:e,uri:"",exports:_[e],config:(t=e,function(){return $&&$.config&&$.config[t]||{}})};var t}},i=function(e,t,n,o){var s,i,r,a,l,c,p=[],u=typeof n;if(o=o||e,"undefined"===u||"function"===u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(i=(a=v(t[l],o)).f))p[l]=y.require(e);else if("exports"===i)p[l]=y.exports(e),c=!0;else if("module"===i)s=p[l]=y.module(e);else if(h(_,i)||h(w,i)||h(k,i))p[l]=m(i);else{if(!a.p)throw new Error(e+" missing "+i);a.p.load(a.n,f(o,!0),g(i),{}),p[l]=_[i]}r=n?n.apply(_[e],p):void 0,e&&(s&&s.exports!==d&&s.exports!==_[e]?_[e]=s.exports:r===d&&c||(_[e]=r))}else e&&(_[e]=n)},t=s=l=function(e,t,n,o,s){if("string"==typeof e)return y[e]?y[e](t):m(v(e,t).f);if(!e.splice){if(($=e).deps&&l($.deps,$.callback),!t)return;t.splice?(e=t,t=n,n=null):e=d}return t=t||function(){},"function"==typeof n&&(n=o,o=s),o?i(d,e,t,n):setTimeout(function(){i(d,e,t,n)},4),l},l.config=function(e){return l(e)},t._defined=_,(c=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),h(_,e)||h(w,e)||(w[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=s,e.define=c),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2pocztapolska/utils",["jquery"],function(i){function p(e){var t=e.prototype,n=[];for(var o in t)"function"==typeof t[o]&&"constructor"!==o&&n.push(o);return n}var e={Extend:function(e,t){function n(){this.constructor=e}var o={}.hasOwnProperty;for(var s in t)o.call(t,s)&&(e[s]=t[s]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(o,s){function i(){var e=Array.prototype.unshift,t=s.prototype.constructor.length,n=o.prototype.constructor;0<t&&(e.call(arguments,o.prototype.constructor),n=s.prototype.constructor),n.apply(this,arguments)}var e=p(s),t=p(o);s.displayName=o.displayName,i.prototype=new function(){this.constructor=i};for(var n=0;n<t.length;n++){var r=t[n];i.prototype[r]=o.prototype[r]}for(var a=function(e){var t=function(){};e in i.prototype&&(t=i.prototype[e]);var n=s.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},l=0;l<e.length;l++){var c=e[l];i.prototype[c]=a(c)}return i}},t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,o=e.length;n<o;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),o=e;if(1!==n.length){for(var s=0;s<n.length;s++){var i=n[s];(i=i.substring(0,1).toLowerCase()+i.substring(1))in o||(o[i]={}),s==n.length-1&&(o[i]=e[t]),o=o[i]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=i(t),o=t.style.overflowX,s=t.style.overflowY;return(o!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===o||"scroll"===s||n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth)},e.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===i.fn.jquery.substr(0,3)){var n=i();i.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e}),e.define("select2pocztapolska/results",["jquery","./utils"],function(d,e){function o(e,t,n){this.$element=e,this.data=n,this.options=t,o.__super__.constructor.call(this)}return e.Extend(o,e.Observable),o.prototype.render=function(){var e=d('<ul class="select2pocztapolska-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},o.prototype.clear=function(){this.$results.empty()},o.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=d('<li role="treeitem" aria-live="assertive" class="select2pocztapolska-results__option"></li>'),o=this.options.get("translations").get(e.message);n.append(t(o(e.args))),n[0].className+=" select2pocztapolska-results__message",this.$results.append(n)},o.prototype.hideMessages=function(){this.$results.find(".select2pocztapolska-results__message").remove()},o.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var o=e.results[n],s=this.option(o);t.push(s)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},o.prototype.position=function(e,t){t.find(".select2pocztapolska-results").append(e)},o.prototype.sort=function(e){return this.options.get("sorter")(e)},o.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2pocztapolska-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},o.prototype.setClasses=function(){var t=this;this.data.current(function(e){var o=d.map(e,function(e){return e.id.toString()});t.$results.find(".select2pocztapolska-results__option[aria-selected]").each(function(){var e=d(this),t=d.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<d.inArray(n,o)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},o.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},o.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},o.prototype.option=function(e){var t=document.createElement("li");t.className="select2pocztapolska-results__option";var n={role:"treeitem","aria-selected":"false"};for(var o in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var s=n[o];t.setAttribute(o,s)}if(e.children){var i=d(t),r=document.createElement("strong");r.className="select2pocztapolska-results__group",d(r),this.template(e,r);for(var a=[],l=0;l<e.children.length;l++){var c=e.children[l],p=this.option(c);a.push(p)}var u=d("<ul></ul>",{class:"select2pocztapolska-results__options select2pocztapolska-results__options--nested"});u.append(a),i.append(r),i.append(u)}else this.template(e,t);return d.data(t,"data",e),t},o.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var o=n-1;0===e.length&&(o=0);var s=t.eq(o);s.trigger("mouseenter");var i=l.$results.offset().top,r=s.offset().top,a=l.$results.scrollTop()+(r-i);0===o?l.$results.scrollTop(0):r-i<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var o=t.eq(n);o.trigger("mouseenter");var s=l.$results.offset().top+l.$results.outerHeight(!1),i=o.offset().top+o.outerHeight(!1),r=l.$results.scrollTop()+i-s;0===n?l.$results.scrollTop(0):s<i&&l.$results.scrollTop(r)}}),t.on("results:focus",function(e){e.element.addClass("select2pocztapolska-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),d.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,o=0<e.deltaY&&t-e.deltaY<=0,s=e.deltaY<0&&n<=l.$results.height();o?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):s&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2pocztapolska-results__option[aria-selected]",function(e){var t=d(this),n=t.data("data");return"true"===t.attr("aria-selected")?void(l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})):void l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2pocztapolska-results__option[aria-selected]",function(e){var t=d(this).data("data");l.getHighlightedResults().removeClass("select2pocztapolska-results__option--highlighted"),l.trigger("results:focus",{data:t,element:d(this)})})},o.prototype.getHighlightedResults=function(){return this.$results.find(".select2pocztapolska-results__option--highlighted")},o.prototype.destroy=function(){this.$results.remove()},o.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,o=e.offset().top,s=this.$results.scrollTop()+(o-n),i=o-n;s-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(i>this.$results.outerHeight()||i<0)&&this.$results.scrollTop(s)}},o.prototype.template=function(e,t){var n=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),s=n(e,t);null==s?t.style.display="none":"string"==typeof s?t.innerHTML=o(s):d(t).append(s)},o}),e.define("select2pocztapolska/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2pocztapolska/selection/base",["jquery","../utils","../keys"],function(n,e,s){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return e.Extend(o,e.Observable),o.prototype.render=function(){var e=n('<span class="select2pocztapolska-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},o.prototype.bind=function(e,t){var n=this,o=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===s.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",o),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2pocztapolska."+e.id,function(e){var t=n(e.target).closest(".select2pocztapolska");n(".select2pocztapolska.select2pocztapolska-container--open").each(function(){var e=n(this);this!=t[0]&&e.data("element").select2pocztapolska("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2pocztapolska."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o}),e.define("select2pocztapolska/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,o){function s(){s.__super__.constructor.apply(this,arguments)}return n.Extend(s,t),s.prototype.render=function(){var e=s.__super__.render.call(this);return e.addClass("select2pocztapolska-selection--single"),e.html('<span class="select2pocztapolska-selection__rendered"></span><span class="select2pocztapolska-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},s.prototype.bind=function(t,e){var n=this;s.__super__.bind.apply(this,arguments);var o=t.id+"-container";this.$selection.find(".select2pocztapolska-selection__rendered").attr("id",o),this.$selection.attr("aria-labelledby",o),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(e){n.update(e.data)})},s.prototype.clear=function(){this.$selection.find(".select2pocztapolska-selection__rendered").empty()},s.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},s.prototype.selectionContainer=function(){return e("<span></span>")},s.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2pocztapolska-selection__rendered"),o=this.display(t,n);n.empty().append(o),n.prop("title",t.title||t.text)}else this.clear()},s}),e.define("select2pocztapolska/selection/multiple",["jquery","./base","../utils"],function(o,e,a){function s(e,t){s.__super__.constructor.apply(this,arguments)}return a.Extend(s,e),s.prototype.render=function(){var e=s.__super__.render.call(this);return e.addClass("select2pocztapolska-selection--multiple"),e.html('<ul class="select2pocztapolska-selection__rendered"></ul>'),e},s.prototype.bind=function(e,t){var n=this;s.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2pocztapolska-selection__choice__remove",function(e){if(!n.options.get("disabled")){var t=o(this).parent().data("data");n.trigger("unselect",{originalEvent:e,data:t})}})},s.prototype.clear=function(){this.$selection.find(".select2pocztapolska-selection__rendered").empty()},s.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},s.prototype.selectionContainer=function(){return o('<li class="select2pocztapolska-selection__choice"><span class="select2pocztapolska-selection__choice__remove" role="presentation">×</span></li>')},s.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var o=e[n],s=this.selectionContainer(),i=this.display(o,s);s.append(i),s.prop("title",o.title||o.text),s.data("data",o),t.push(s)}var r=this.$selection.find(".select2pocztapolska-selection__rendered");a.appendMany(r,t)}},s}),e.define("select2pocztapolska/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2pocztapolska-selection__placeholder").removeClass("select2pocztapolska-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var o=this.createPlaceholder(this.placeholder);this.$selection.find(".select2pocztapolska-selection__rendered").append(o)},t}),e.define("select2pocztapolska/selection/allowClear",["jquery","../keys"],function(o,s){function e(){}return e.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2pocztapolska-selection__clear",function(e){o._handleClear(e)}),t.on("keypress",function(e){o._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2pocztapolska-selection__clear");if(0!==n.length){t.stopPropagation();for(var o=n.data("data"),s=0;s<o.length;s++){var i={data:o[s]};if(this.trigger("unselect",i),i.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||(t.which==s.DELETE||t.which==s.BACKSPACE)&&this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2pocztapolska-selection__placeholder").length||0===t.length)){var n=o('<span class="select2pocztapolska-selection__clear">×</span>');n.data("data",t),this.$selection.find(".select2pocztapolska-selection__rendered").prepend(n)}},e}),e.define("select2pocztapolska/selection/search",["jquery","../utils","../keys"],function(o,e,r){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=o('<li class="select2pocztapolska-search select2pocztapolska-search--inline"><input class="select2pocztapolska-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("open",function(){o.$search.trigger("focus")}),t.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),t.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),t.on("disable",function(){o.$search.prop("disabled",!0)}),t.on("focus",function(e){o.$search.trigger("focus")}),t.on("results:focus",function(e){o.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2pocztapolska-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2pocztapolska-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2pocztapolska-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===r.BACKSPACE&&""===o.$search.val()){var t=o.$searchContainer.prev(".select2pocztapolska-selection__choice");if(0<t.length){var n=t.data("data");o.searchRemoveChoice(n),e.preventDefault()}}});var s=document.documentMode,i=s&&s<=11;this.$selection.on("input.searchcheck",".select2pocztapolska-search--inline",function(e){return i?void o.$selection.off("input.search input.searchcheck"):void o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2pocztapolska-search--inline",function(e){if(i&&"input"===e.type)o.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=r.SHIFT&&t!=r.CTRL&&t!=r.ALT&&t!=r.TAB&&o.handleSearch(e)}})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2pocztapolska-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2pocztapolska-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},t}),e.define("select2pocztapolska/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var o=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting"],i=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==r.inArray(e,s)){t=t||{};var n=r.Event("select2pocztapolska:"+e,{params:t});o.$element.trigger(n),-1!==r.inArray(e,i)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2pocztapolska/translation",["jquery","require"],function(t,n){function o(e){this.dict=e||{}}return o.prototype.all=function(){return this.dict},o.prototype.get=function(e){return this.dict[e]},o.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},o._cache={},o.loadPath=function(e){if(!(e in o._cache)){var t=n(e);o._cache[e]=t}return new o(o._cache[e])},o}),e.define("select2pocztapolska/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("select2pocztapolska/data/base",["../utils"],function(o){function n(e,t){n.__super__.constructor.call(this)}return o.Extend(n,o.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return(n+=o.generateChars(4))+(null!=t.id?"-"+t.id.toString():"-"+o.generateChars(4))},n}),e.define("select2pocztapolska/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],o=this;this.$element.find(":selected").each(function(){var e=a(this),t=o.item(e);n.push(t)}),e(n)},n.prototype.select=function(s){var i=this;if(s.selected=!0,a(s.element).is("option"))return s.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(s=[s]).push.apply(s,e);for(var n=0;n<s.length;n++){var o=s[n].id;-1===a.inArray(o,t)&&t.push(o)}i.$element.val(t),i.$element.trigger("change")});else{var e=s.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(s){var i=this;if(this.$element.prop("multiple"))return s.selected=!1,a(s.element).is("option")?(s.element.selected=!1,void this.$element.trigger("change")):void this.current(function(e){for(var t=[],n=0;n<e.length;n++){var o=e[n].id;o!==s.id&&-1===a.inArray(o,t)&&t.push(o)}i.$element.val(t),i.$element.trigger("change")})},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})},n.prototype.query=function(o,e){var s=[],i=this;this.$element.children().each(function(){var e=a(this);if(e.is("option")||e.is("optgroup")){var t=i.item(e),n=i.matches(o,t);null!==n&&s.push(n)}}),e({results:s})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=a(t),o=this._normalizeItem(e);return o.element=t,a.data(t,"data",o),n},n.prototype.item=function(e){var t={};if(null!=(t=a.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),o=[],s=0;s<n.length;s++){var i=a(n[s]),r=this.item(i);o.push(r)}t.children=o}return(t=this._normalizeItem(t)).element=e[0],a.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){return a.isPlainObject(e)||(e={id:e,text:e}),null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2pocztapolska/data/array",["./select","../utils","jquery"],function(e,f,g){function o(e,t){var n=t.get("data")||[];o.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return f.Extend(o,e),o.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),o.__super__.select.call(this,n)},o.prototype.convertToOptions=function(e){function t(e){return function(){return g(this).val()==e.id}}for(var n=this,o=this.$element.find("option"),s=o.map(function(){return n.item(g(this)).id}).get(),i=[],r=0;r<e.length;r++){var a=this._normalizeItem(e[r]);if(0<=g.inArray(a.id,s)){var l=o.filter(t(a)),c=this.item(l),p=g.extend(!0,{},a,c),u=this.option(p);l.replaceWith(u)}else{var d=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(d,h)}i.push(d)}}return i},o}),e.define("select2pocztapolska/data/ajax",["./array","../utils","jquery"],function(e,t,i){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return i.extend({},e,{q:e.term})},transport:function(e,t,n){var o=i.ajax(e);return o.then(t),o.fail(n),o}};return i.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,o){function e(){var e=t.transport(t,function(e){var t=s.processResults(e,n);s.options.get("debug")&&window.console&&console.error&&(t&&t.results&&i.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),o(t)},function(){e.status&&"0"===e.status||s.trigger("results:message",{message:"errorLoading"})});s._request=e}var s=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2pocztapolska/data/tags",["jquery"],function(p){function e(e,t,n){var o=n.get("tags"),s=n.get("createTag");void 0!==s&&(this.createTag=s);var i=n.get("insertTag");if(void 0!==i&&(this.insertTag=i),e.call(this,t,n),p.isArray(o))for(var r=0;r<o.length;r++){var a=o[r],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,p){var u=this;return this._removeOldTags(),null==c.term||null!=c.page?void e.call(this,c,p):void e.call(this,c,function e(t,n){for(var o=t.results,s=0;s<o.length;s++){var i=o[s],r=null!=i.children&&!e({results:i.children},!0);if(i.text===c.term||r)return!n&&(t.data=o,void p(t))}if(n)return!0;var a=u.createTag(c);if(null!=a){var l=u.option(a);l.attr("data-select2pocztapolska-tag",!0),u.addOptions([l]),u.insertTag(o,a)}t.results=o,p(t)})},e.prototype.createTag=function(e,t){var n=p.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){(this._lastTag,this.$element.find("option[data-select2pocztapolska-tag]")).each(function(){this.selected||p(this).remove()})},e}),e.define("select2pocztapolska/data/tokenizer",["jquery"],function(u){function e(e,t,n){var o=n.get("tokenizer");void 0!==o&&(this.tokenizer=o),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2pocztapolska-search__field")},e.prototype.query=function(e,t,n){var s=this;t.term=t.term||"";var o=this.tokenizer(t,this.options,function(e){var t,n=s._normalizeItem(e);if(!s.$element.find("option").filter(function(){return u(this).val()===n.id}).length){var o=s.option(n);o.attr("data-select2pocztapolska-tag",!0),s._removeOldTags(),s.addOptions([o])}t=n,s.trigger("select",{data:t})});o.term!==t.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.focus()),t.term=o.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,o){for(var s=n.get("tokenSeparators")||[],i=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<i.length;){var l=i[r];if(-1!==u.inArray(l,s)){var c=i.substr(0,r),p=a(u.extend({},t,{term:c}));null!=p?(o(p),i=i.substr(r+1)||"",r=0):r++}else r++}return{term:i}},e}),e.define("select2pocztapolska/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2pocztapolska/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2pocztapolska/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,o,s){var i=this;this.current(function(e){var t=null!=e?e.length:0;return 0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?void i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):void n.call(i,o,s)})},e}),e.define("select2pocztapolska/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2pocztapolska-dropdown"><span class="select2pocztapolska-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2pocztapolska/dropdown/search",["jquery","../utils"],function(s,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=s('<span class="select2pocztapolska-search select2pocztapolska-search--dropdown"><input class="select2pocztapolska-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){s(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),t.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),t.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val("")}),t.on("focus",function(){t.isOpen()&&o.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer.removeClass("select2pocztapolska-search--hide"):o.$searchContainer.addClass("select2pocztapolska-search--hide"))})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2pocztapolska/dropdown/hidePlaceholder",[],function(){function e(e,t,n,o){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,o)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),o=t.length-1;0<=o;o--){var s=t[o];this.placeholder.id===s.id&&n.splice(o,1)}return n},e}),e.define("select2pocztapolska/dropdown/infiniteScroll",["jquery"],function(s){function e(e,t,n,o){this.lastParams={},e.call(this,t,n,o),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("query",function(e){o.lastParams=e,o.loading=!0}),t.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var e=s.contains(document.documentElement,o.$loadingMore[0]);!o.loading&&e&&o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore()})},e.prototype.loadMore=function(){this.loading=!0;var e=s.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=s('<li class="select2pocztapolska-results__option select2pocztapolska-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2pocztapolska/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var o=this,s=!1;e.call(this,t,n),t.on("open",function(){o._showDropdown(),o._attachPositioningHandler(t),s||(s=!0,t.on("results:all",function(){o._positionDropdown(),o._resizeDropdown()}),t.on("results:append",function(){o._positionDropdown(),o._resizeDropdown()}))}),t.on("close",function(){o._hideDropdown(),o._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2pocztapolska"),t.addClass("select2pocztapolska-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,o="scroll.select2pocztapolska."+t.id,s="resize.select2pocztapolska."+t.id,i="orientationchange.select2pocztapolska."+t.id,r=this.$container.parents().filter(a.hasScroll);r.each(function(){f(this).data("select2pocztapolska-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),r.on(o,function(e){var t=f(this).data("select2pocztapolska-scroll-position");f(this).scrollTop(t.y)}),f(window).on(o+" "+s+" "+i,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2pocztapolska."+t.id,o="resize.select2pocztapolska."+t.id,s="orientationchange.select2pocztapolska."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+o+" "+s)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2pocztapolska-dropdown--above"),n=this.$dropdown.hasClass("select2pocztapolska-dropdown--below"),o=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var i={height:this.$container.outerHeight(!1)};i.top=s.top,i.bottom=s.top+i.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<s.top-r,p=l>s.bottom+r,u={left:s.left,top:i.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var h=d.offset();u.top-=h.top,u.left-=h.left,t||n||(o="below"),p||!c||t?!c&&p&&t&&(o="below"):o="above",("above"==o||t&&"below"!==o)&&(u.top=i.top-h.top-r),null!=o&&(this.$dropdown.removeClass("select2pocztapolska-dropdown--below select2pocztapolska-dropdown--above").addClass("select2pocztapolska-dropdown--"+o),this.$container.removeClass("select2pocztapolska-container--below select2pocztapolska-container--above").addClass("select2pocztapolska-container--"+o)),this.$dropdownContainer.css(u)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2pocztapolska/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,o){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,o)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,o=0;o<t.length;o++){var s=t[o];s.children?n+=e(s.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2pocztapolska/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("close",function(e){o._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var s=o.data("data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},e}),e.define("select2pocztapolska/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("select",function(e){o._selectTriggered(e)}),t.on("unselect",function(e){o._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2pocztapolska/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("select2pocztapolska/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(f,g,m,v,y,_,w,$,k,b,z,t,A,x,E,C,O,S,T,D,q,L,j,P,I,R,M,U,e){function n(){this.reset()}return n.prototype.apply=function(t){if(null==(t=f.extend(!0,{},this.defaults,t)).dataAdapter){if(null!=t.ajax?t.dataAdapter=E:null!=t.data?t.dataAdapter=x:t.dataAdapter=A,0<t.minimumInputLength&&(t.dataAdapter=b.Decorate(t.dataAdapter,S)),0<t.maximumInputLength&&(t.dataAdapter=b.Decorate(t.dataAdapter,T)),0<t.maximumSelectionLength&&(t.dataAdapter=b.Decorate(t.dataAdapter,D)),t.tags&&(t.dataAdapter=b.Decorate(t.dataAdapter,C)),(null!=t.tokenSeparators||null!=t.tokenizer)&&(t.dataAdapter=b.Decorate(t.dataAdapter,O)),null!=t.query){var e=g(t.amdBase+"compat/query");t.dataAdapter=b.Decorate(t.dataAdapter,e)}if(null!=t.initSelection){var n=g(t.amdBase+"compat/initSelection");t.dataAdapter=b.Decorate(t.dataAdapter,n)}}if(null==t.resultsAdapter&&(t.resultsAdapter=m,null!=t.ajax&&(t.resultsAdapter=b.Decorate(t.resultsAdapter,P)),null!=t.placeholder&&(t.resultsAdapter=b.Decorate(t.resultsAdapter,j)),t.selectOnClose&&(t.resultsAdapter=b.Decorate(t.resultsAdapter,M))),null==t.dropdownAdapter){if(t.multiple)t.dropdownAdapter=q;else{var o=b.Decorate(q,L);t.dropdownAdapter=o}if(0!==t.minimumResultsForSearch&&(t.dropdownAdapter=b.Decorate(t.dropdownAdapter,R)),t.closeOnSelect&&(t.dropdownAdapter=b.Decorate(t.dropdownAdapter,U)),null!=t.dropdownCssClass||null!=t.dropdownCss||null!=t.adaptDropdownCssClass){var s=g(t.amdBase+"compat/dropdownCss");t.dropdownAdapter=b.Decorate(t.dropdownAdapter,s)}t.dropdownAdapter=b.Decorate(t.dropdownAdapter,I)}if(null==t.selectionAdapter){if(t.multiple?t.selectionAdapter=y:t.selectionAdapter=v,null!=t.placeholder&&(t.selectionAdapter=b.Decorate(t.selectionAdapter,_)),t.allowClear&&(t.selectionAdapter=b.Decorate(t.selectionAdapter,w)),t.multiple&&(t.selectionAdapter=b.Decorate(t.selectionAdapter,$)),null!=t.containerCssClass||null!=t.containerCss||null!=t.adaptContainerCssClass){var i=g(t.amdBase+"compat/containerCss");t.selectionAdapter=b.Decorate(t.selectionAdapter,i)}t.selectionAdapter=b.Decorate(t.selectionAdapter,k)}if("string"==typeof t.language)if(0<t.language.indexOf("-")){var r=t.language.split("-")[0];t.language=[t.language,r]}else t.language=[t.language];if(f.isArray(t.language)){var a=new z;t.language.push("en");for(var l=t.language,c=0;c<l.length;c++){var p=l[c],u={};try{u=z.loadPath(p)}catch(e){try{p=this.defaults.amdLanguageBase+p,u=z.loadPath(p)}catch(e){t.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+p+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(u)}t.translations=a}else{var d=z.loadPath(this.defaults.amdLanguageBase+"en"),h=new z(t.language);h.extend(d),t.translations=h}return t},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:b.escapeMarkup,language:e,matcher:function e(t,n){if(""===f.trim(t.term))return n;if(n.children&&0<n.children.length){for(var o=f.extend(!0,{},n),s=n.children.length-1;0<=s;s--)null==e(t,n.children[s])&&o.children.splice(s,1);return 0<o.children.length?o:e(t,o)}var i=a(n.text).toUpperCase(),r=a(t.term).toUpperCase();return-1<i.indexOf(r)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.set=function(e,t){var n={};n[f.camelCase(e)]=t;var o=b._convertData(n);f.extend(this.defaults,o)},new n}),e.define("select2pocztapolska/options",["require","jquery","./defaults","./utils"],function(o,i,s,r){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=s.apply(this.options),t&&t.is("input")){var n=o(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t,n=["select2pocztapolska"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2pocztapolskaTags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2pocztapolska-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2pocztapolskaTags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl"))),t=i.fn.jquery&&"1."==i.fn.jquery.substr(0,2)&&e[0].dataset?i.extend(!0,{},e[0].dataset,e.data()):e.data();var o=i.extend(!0,{},t);for(var s in o=r._convertData(o))-1<i.inArray(s,n)||(i.isPlainObject(this.options[s])?i.extend(this.options[s],o[s]):this.options[s]=o[s]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2pocztapolska/core",["jquery","./options","./utils","./keys"],function(s,c,n,o){var p=function(e,t){null!=e.data("select2pocztapolska")&&e.data("select2pocztapolska").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),p.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(e,this.options);var s=this.render();this._placeContainer(s);var i=this.options.get("selectionAdapter");this.selection=new i(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var r=this.options.get("dropdownAdapter");this.dropdown=new r(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2pocztapolska-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2pocztapolska",this)};return n.Extend(p,n.Observable),p.prototype._generateId=function(e){return"select2pocztapolska-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},p.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},p.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var o=this._resolveWidth(e,"style");return null!=o?o:this._resolveWidth(e,"element")}if("element"==t){var s=e.outerWidth(!1);return s<=0?"auto":s+"px"}if("style"!=t)return t;var i=e.attr("style");if("string"!=typeof i)return null;for(var r=i.split(";"),a=0,l=r.length;a<l;a+=1){var c=r[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},p.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},p.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2pocztapolska",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2pocztapolska",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){s.each(e,t._syncA),s.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},p.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},p.prototype._registerSelectionEvents=function(){var n=this,o=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===s.inArray(e,o)&&n.trigger(e,t)})},p.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},p.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},p.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2pocztapolska-container--open")}),this.on("close",function(){n.$container.removeClass("select2pocztapolska-container--open")}),this.on("enable",function(){n.$container.removeClass("select2pocztapolska-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2pocztapolska-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2pocztapolska-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===o.ESC||t===o.TAB||t===o.UP&&e.altKey?(n.close(),e.preventDefault()):t===o.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===o.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===o.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===o.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===o.ENTER||t===o.SPACE||t===o.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},p.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},p.prototype._syncSubtree=function(e,t){var n=!1,o=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var s=0;s<t.addedNodes.length;s++)t.addedNodes[s].selected&&(n=!0);else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){o.trigger("selection:update",{data:e})})}},p.prototype.trigger=function(e,t){var n=p.__super__.trigger,o={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in o){var s=o[e],i={prevented:!1,name:e,args:t};if(n.call(this,s,i),i.prevented)return void(t.prevented=!0)}n.call(this,e,t)},p.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},p.prototype.open=function(){this.isOpen()||this.trigger("query",{})},p.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},p.prototype.isOpen=function(){return this.$container.hasClass("select2pocztapolska-container--open")},p.prototype.hasFocus=function(){return this.$container.hasClass("select2pocztapolska-container--focus")},p.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2pocztapolska-container--focus"),this.trigger("focus",{}))},p.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2pocztapolska("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},p.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2pocztapolska("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},p.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2pocztapolska("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];s.isArray(t)&&(t=s.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},p.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2pocztapolska"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2pocztapolska-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2pocztapolska"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},p.prototype.render=function(){var e=s('<span class="select2pocztapolska select2pocztapolska-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2pocztapolska-container--"+this.options.get("theme")),e.data("element",this.$element),e},p}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2pocztapolska",["jquery","jquery-mousewheel","./select2pocztapolska/core","./select2pocztapolska/defaults"],function(s,e,i,t){if(null==s.fn.select2pocztapolska){var r=["open","close","destroy"];s.fn.select2pocztapolska=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=s.extend(!0,{},t);new i(s(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,o=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s(this).data("select2pocztapolska");null==e&&window.console&&console.error&&console.error("The select2pocztapolska('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,o)}),-1<s.inArray(t,r)?this:n}}return null==s.fn.select2pocztapolska.defaults&&(s.fn.select2pocztapolska.defaults=t),i}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2pocztapolska");return n.fn.select2pocztapolska.amd=e,t}),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2pocztapolska&&jQuery.fn.select2pocztapolska.amd)var e=jQuery.fn.select2pocztapolska.amd;e.define("select2pocztapolska/i18n/pl",[],function(){var n=["znak","znaki","znaków"],t=["element","elementy","elementów"],o=function(e,t){return 1===e?t[0]:1<e&&e<=4?t[1]:5<=e?t[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Usuń "+t+" "+o(t,n)},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Wprowadź miasto, ulicę lub nazwę punktu odbioru. Min. "+t+" "+o(t,n)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(e){return"Możesz zaznaczyć tylko "+e.maximum+" "+o(e.maximum,t)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"}}}),e.define,e.require}();$(document).ready(function(){$('input[data-module-name="PayByNet"]').each(function(){$(this).closest('.payment-option').addClass('pbn-box');$(this).closest('.custom-radio').addClass('pbn-box-row')})});var sensbitfedex=function(c,e,t){var l={module:"",text_choose_point:"",text_point_cod:"",loaded:!1,id_interval:!1,use_desintifier:!1,carriers:[],carriers_cod:[],point:"",point_label:"",carrier_selector:".delivery_option_radio",point_required:!1,validate_cod:0,map_is_open:!1,x13opc:!1,onepagecheckout:!1,supercheckout:!1,onepagecheckoutps:!1,wkonepagecheckout:!1,google_key:"AIzaSyDZc6Ajf0PqhUAzbktozQyHFpi5V7TZW_o",use_interval:!1,conf_btn:"button[name=processCarrier]",ps17:!1,ajax_url:"",show_chooser_below_list:!1,cod_available:!0};function s(e){return e.text}function d(e){return e.split("").reverse().join("")}function o(){var e=parseInt(c(l.carrier_selector+":checked").val());if(l.use_desintifier&&c(l.carrier_selector+":checked").val().toString().indexOf(",")<=-1&&(e=parseInt(function(e){e=e.toString();var t=parseInt(e[0]);return d((e=d(e.substr(1))).split("0".repeat(t+1)).join(","))}(e))),-1!==c.inArray(e,l.carriers)){l.point_required=!0,l.point.length<=0&&c(l.conf_btn).filter(":checkbox").each(function(){c(this).prop("checked",!1),void 0!==c.uniform&&c.uniform.update(this)});var t="append";if(l.show_chooser_below_list)if(l.onepagecheckoutps){var o=c(l.carrier_selector+":checked").closest(".delivery-options");t="append"}else if(l.onepagecheckout){o=c("#carriers_section");t="after"}else if(l.supercheckout)o=c("#shipping-method");else{o=c(l.ps17?".delivery-options-list .delivery-options":".delivery_options_address");t="append"}else if(l.x13opc)o=c(l.carrier_selector+":checked").closest(".delivery_option");else if(l.onepagecheckout){(o=c(l.carrier_selector+":checked").closest("tr")).length||(o=c(l.carrier_selector+":checked").closest(".delivery_option"))}else if(l.onepagecheckoutps){o=c(l.carrier_selector+":checked").closest(".delivery-option, .delivery_option");t="after"}else if(l.supercheckout)o=c(l.carrier_selector+":checked").closest("tr");else if(l.wkonepagecheckout){o=c(l.carrier_selector).closest(".wk-shipping-list");t="append"}else{o=c(l.carrier_selector+":checked").closest(l.ps17?".delivery-option":".delivery_option");t="after"}if(l.validate_cod=-1!==c.inArray(e,l.carriers_cod)?1:0,l.validate_cod&&!l.cod_available)_.updatePoint("","."+l.module+"-point-select"),u(l.cod_max_reached_text);else{if(o.is("tr")&&(t="after"),"after"===t)var i=o.parent().find("."+l.module+"."+l.validate_cod).length;else i=o.find("."+l.module+"."+l.validate_cod).length;if(!i){var n=c("#"+l.module).clone(!0);if(n.removeAttr("id"),n.addClass(l.validate_cod.toString()),l.show_chooser_below_list&&l.ps17&&n.css("margin-top","0"),l.show_chooser_below_list||!l.x13opc&&!o.is("tr"))"append"===t?o.append(n):"after"===t&&o.after(n);else{o.is("tr")||(o=o.find("tr")),n.css("margin","0");var r=o.find("td").length;o.find("td").css("border","0");var a=c('<tr><td colspan="'+r+'" style="border:0"></td></tr>');a.find("td").append(n),o.after(a)}c(n).find("."+l.module+"-point-select").not(".active").addClass("active").select2sensbitfedex({language:"pl",allowClear:!1,closeOnSelect:!0,selectOnClose:!1,width:300,ajax:{url:l.ajax_url,dataType:"json",delay:250,data:function(e){return{ajax:1,action:"searchPoints",q:e.term,is_cod:l.validate_cod,page:e.page||1}},processResults:function(e,t){t.page=t.page||1;var o=c.map(e.items,function(e){return e.id=e.name,e.text=e.label,e});return{results:o,pagination:{more:30*t.page<e.total_count}}},cache:!0},escapeMarkup:function(e){return e},minimumInputLength:1,templateResult:s,templateSelection:s})}c("."+l.module).not("."+l.validate_cod).hide(),c("."+l.module+"."+l.validate_cod).show(),l.point_required&&0<l.point.length&&_.updatePoint(l.point,"."+l.module+"-point-select")}}else c("."+l.module).hide(),l.point_required=!1;p()}function p(){if(1<=c("#order-summary-content .addresshead").first().length)if(null===l.delivery_block&&(l.delivery_block=c("#order-summary-content .addresshead").first().closest("div").html()),l.point_required&&0<l.point.length){var e=c("#order-summary-content .addresshead").first()[0].outerHTML;e+=l.point_address,c("#order-summary-content .addresshead").first().closest("div").html(e)}else c("#order-summary-content .addresshead").first().closest("div").html(l.delivery_block)}function u(e){c.prototype.fancybox?c.fancybox.open([{type:"inline",autoScale:!0,minHeight:30,content:'<p class="fancybox-error">'+e+"</p>"}],{padding:0,helpers:{overlay:{locked:!1}}}):alert(e)}function i(e){var t=!1;if(l.point_required&&l.point.length<=0)t=!0,e.preventDefault(),e.stopPropagation(),alert(l.text_choose_point),c("."+l.module+"-map-btn").trigger("click");else if(l.point_required&&c("."+l.module+"-phone-input:visible").length){9!==c("."+l.module+"-phone-input:visible").val().replace(/\D/g,"").length&&(t=!0,e.preventDefault(),e.stopPropagation(),alert(l.text_phone_required))}t?(c("."+l.module).addClass("error"),c(this).is(":checkbox")&&c(this).is(":visible")&&(c(this).prop("checked",!1),void 0!==c.uniform&&c.uniform.update(this)),c("html, body").animate({scrollTop:c("."+l.module+":visible").offset().top-150},500)):c("."+l.module).removeClass("error")}String.prototype.repeat=function(e){return new Array(e+1).join(this)};var _={setOptions:function(e){void 0!==e.point&&(null!==e.point&&e.point||(e.point="")),c.extend(l,e),0<l.point.length&&_.updatePoint(l.point,"."+l.module+"-point-select")},debug:function(){return l},init:function(e){l.loaded||(void 0!==e&&_.setOptions(e),l.loaded=!0,l.id_interval=setInterval(function(){void 0!==c&&(c(function(){if(console.log(l.text_console,"font-size:18px;color:#e40037;"),o(),c(document).on("change",l.carrier_selector,function(){o()}),l.use_interval)setInterval(function(){o()},500);c(document).on("change","."+l.module+"-point-select",function(){var e=c(this);_.updatePoint(e.val(),e)}),c(document).on("keyup","."+l.module+"-phone-input",function(){c(this).val(c(this).val().replace(/\D/g,""))}),c(document).on("change","."+l.module+"-phone-input",function(){_.updatePoint(l.point,"."+l.module+"-point-select")}),c(document).on("submit","form[name=carrier_area]",function(e){i(e)}),c(document).on("click",l.conf_btn+", input#cgv, input#cgv2, input#privacy_policy, input#kb_super_policy_1, input#kb_super_policy_2, #conditions_to_approve\\[terms-and-conditions\\], input[required][id^=agreement]",function(e){i(e)})}),clearInterval(l.id_interval))},300))},openMap:function(e,t){l.map_is_open||(!function(i,e){if(!l.hide_map){var t={code:l.point.split(":")[1],operator:"FEDEX"};if(!l.validate_cod||!c("."+l.module+"-map-container").hasClass("cod")){if(!l.validate_cod&&c("."+l.module+"-map-container").hasClass("cod"))c("."+l.module+"-map-container").removeClass("cod");else if(!l.validate_cod&&c("."+l.module+"-map-container").length&&!c("."+l.module+"-map-container").hasClass("cod"))return;c("."+l.module+"-map-container").remove(),c("body").append("<div class='"+l.module+"-map-container'><div id='sensbitfedex-map-widget'></div></div>"),c("."+l.module+"-map-container").click(function(e){c(e.target).parents("."+l.module+"-map-container").length||(c(this).fadeOut(),l.map_is_open=!1)}),SensbitFedexMapWidget.init(document.getElementById("sensbitfedex-map-widget"),{googleMapApiKey:l.google_key,callback:function(o){c(i).filter(":visible").each(function(){var e=c(this),t=o.brand+":"+o.code;e.val(t),"KOLPORTER"===o.brand&&(o.brand="Salonik Kolportera"),c(i).parents("."+l.module).find("."+l.select2+"-selection__rendered").text([o.brand,o.street,o.postalCode+" "+o.city].join(", ")),_.updatePoint(t,i)}),c("."+l.module+"-map-container").fadeOut(),l.map_is_open=!1},initialAddress:l.customer_place,userDataQuery:l.customer_place,posType:"DELIVERY",codOnly:l.validate_cod,selectedPos:t})}}}(e),l.map_is_open=!0,c("."+l.module+"-map-container").fadeIn())},updatePoint:function(t,o){var e=c("."+l.module+"-phone-input:visible");e.length||(e=c("."+l.module+"-phone-input").eq(0)),c.ajax({url:l.ajax_url,type:"POST",data:{ajax:1,action:"updatePoint",point:t,check_cod:l.validate_cod,phone:e.length?e.val():""},success:function(e){"0"===e?(l.point="",c(o).closest("."+l.module).find("."+l.select2+"-selection__rendered").text(""),u(l.text_point_cod)):(l.point_address=e,l.point=t,c("."+l.module).removeClass("error")),p()}})}};return _}($,window,document);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.select2sensbitfedex&&n.fn.select2sensbitfedex.amd)var e=n.fn.select2sensbitfedex.amd;var t,i,c;return e&&e.requirejs||(e?i=e:e={},function(p){function h(e,t){return n.call(e,t)}function o(e,t){var n,s,i,r,o,a,l,c,d,u,p,h=t&&t.split("/"),f=_.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(o=(e=e.split("/")).length-1,_.nodeIdCompat&&$.test(e[o])&&(e[o]=e[o].replace($,"")),e=h.slice(0,h.length-1).concat(e),d=0;d<e.length;d+=1)if("."===(p=e[d]))e.splice(d,1),d-=1;else if(".."===p){if(1===d&&(".."===e[2]||".."===e[0]))break;0<d&&(e.splice(d-1,2),d-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(d=(n=e.split("/")).length;0<d;d-=1){if(s=n.slice(0,d).join("/"),h)for(u=h.length;0<u;u-=1)if((i=f[h.slice(0,u).join("/")])&&(i=i[s])){r=i,a=d;break}if(r)break;!l&&g&&g[s]&&(l=g[s],c=d)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function f(t,n){return function(){var e=s.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),l.apply(p,e.concat([t,n]))}}function g(t){return function(e){b[t]=e}}function m(e){if(h(x,e)){var t=x[e];delete x[e],w[e]=!0,r.apply(p,t)}if(!h(b,e)&&!h(w,e))throw new Error("No "+e);return b[e]}function a(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}var r,l,v,y,b={},x={},_={},w={},n=Object.prototype.hasOwnProperty,s=[].slice,$=/\.js$/;v=function(e,t){var n,s,i=a(e),r=i[0];return e=i[1],r&&(n=m(r=o(r,t))),r?e=n&&n.normalize?n.normalize(e,(s=t,function(e){return o(e,s)})):o(e,t):(r=(i=a(e=o(e,t)))[0],e=i[1],r&&(n=m(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},y={require:function(e){return f(e)},exports:function(e){var t=b[e];return void 0!==t?t:b[e]={}},module:function(e){return{id:e,uri:"",exports:b[e],config:(t=e,function(){return _&&_.config&&_.config[t]||{}})};var t}},r=function(e,t,n,s){var i,r,o,a,l,c,d=[],u=typeof n;if(s=s||e,"undefined"===u||"function"===u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(r=(a=v(t[l],s)).f))d[l]=y.require(e);else if("exports"===r)d[l]=y.exports(e),c=!0;else if("module"===r)i=d[l]=y.module(e);else if(h(b,r)||h(x,r)||h(w,r))d[l]=m(r);else{if(!a.p)throw new Error(e+" missing "+r);a.p.load(a.n,f(s,!0),g(r),{}),d[l]=b[r]}o=n?n.apply(b[e],d):void 0,e&&(i&&i.exports!==p&&i.exports!==b[e]?b[e]=i.exports:o===p&&c||(b[e]=o))}else e&&(b[e]=n)},t=i=l=function(e,t,n,s,i){if("string"==typeof e)return y[e]?y[e](t):m(v(e,t).f);if(!e.splice){if((_=e).deps&&l(_.deps,_.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=s,s=i),s?r(p,e,t,n):setTimeout(function(){r(p,e,t,n)},4),l},l.config=function(e){return l(e)},t._defined=b,(c=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),h(b,e)||h(x,e)||(x[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=i,e.define=c),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2sensbitfedex/utils",["jquery"],function(r){function d(e){var t=e.prototype,n=[];for(var s in t){"function"==typeof t[s]&&"constructor"!==s&&n.push(s)}return n}var e={Extend:function(e,t){function n(){this.constructor=e}var s={}.hasOwnProperty;for(var i in t)s.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(s,i){function r(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}var e=d(i),t=d(s);i.displayName=s.displayName,r.prototype=new function(){this.constructor=r};for(var n=0;n<t.length;n++){var o=t[n];r.prototype[o]=s.prototype[o]}for(var a=function(e){var t=function(){};e in r.prototype&&(t=r.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},l=0;l<e.length;l++){var c=e[l];r.prototype[c]=a(c)}return r}},t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,s=e.length;n<s;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),s=e;if(1!==n.length){for(var i=0;i<n.length;i++){var r=n[i];(r=r.substring(0,1).toLowerCase()+r.substring(1))in s||(s[r]={}),i==n.length-1&&(s[r]=e[t]),s=s[r]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=r(t),s=t.style.overflowX,i=t.style.overflowY;return(s!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===s||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},e.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===r.fn.jquery.substr(0,3)){var n=r();r.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e}),e.define("select2sensbitfedex/results",["jquery","./utils"],function(p,e){function s(e,t,n){this.$element=e,this.data=n,this.options=t,s.__super__.constructor.call(this)}return e.Extend(s,e.Observable),s.prototype.render=function(){var e=p('<ul class="select2sensbitfedex-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=p('<li role="treeitem" aria-live="assertive" class="select2sensbitfedex-results__option"></li>'),s=this.options.get("translations").get(e.message);n.append(t(s(e.args))),n[0].className+=" select2sensbitfedex-results__message",this.$results.append(n)},s.prototype.hideMessages=function(){this.$results.find(".select2sensbitfedex-results__message").remove()},s.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var s=e.results[n],i=this.option(s);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},s.prototype.position=function(e,t){t.find(".select2sensbitfedex-results").append(e)},s.prototype.sort=function(e){return this.options.get("sorter")(e)},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2sensbitfedex-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=p.map(e,function(e){return e.id.toString()});t.$results.find(".select2sensbitfedex-results__option[aria-selected]").each(function(){var e=p(this),t=p.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<p.inArray(n,s)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},s.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(e){var t=document.createElement("li");t.className="select2sensbitfedex-results__option";var n={role:"treeitem","aria-selected":"false"};for(var s in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var i=n[s];t.setAttribute(s,i)}if(e.children){var r=p(t),o=document.createElement("strong");o.className="select2sensbitfedex-results__group",p(o),this.template(e,o);for(var a=[],l=0;l<e.children.length;l++){var c=e.children[l],d=this.option(c);a.push(d)}var u=p("<ul></ul>",{class:"select2sensbitfedex-results__options select2sensbitfedex-results__options--nested"});u.append(a),r.append(o),r.append(u)}else this.template(e,t);return p.data(t,"data",e),t},s.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var s=n-1;0===e.length&&(s=0);var i=t.eq(s);i.trigger("mouseenter");var r=l.$results.offset().top,o=i.offset().top,a=l.$results.scrollTop()+(o-r);0===s?l.$results.scrollTop(0):o-r<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var s=t.eq(n);s.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),r=s.offset().top+s.outerHeight(!1),o=l.$results.scrollTop()+r-i;0===n?l.$results.scrollTop(0):i<r&&l.$results.scrollTop(o)}}),t.on("results:focus",function(e){e.element.addClass("select2sensbitfedex-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),p.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,s=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();s?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2sensbitfedex-results__option[aria-selected]",function(e){var t=p(this),n=t.data("data");return"true"===t.attr("aria-selected")?void(l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})):void l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2sensbitfedex-results__option[aria-selected]",function(e){var t=p(this).data("data");l.getHighlightedResults().removeClass("select2sensbitfedex-results__option--highlighted"),l.trigger("results:focus",{data:t,element:p(this)})})},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2sensbitfedex-results__option--highlighted")},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,s=e.offset().top,i=this.$results.scrollTop()+(s-n),r=s-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(i)}},s.prototype.template=function(e,t){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=s(i):p(t).append(i)},s}),e.define("select2sensbitfedex/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2sensbitfedex/selection/base",["jquery","../utils","../keys"],function(n,e,i){function s(e,t){this.$element=e,this.options=t,s.__super__.constructor.call(this)}return e.Extend(s,e.Observable),s.prototype.render=function(){var e=n('<span class="select2sensbitfedex-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},s.prototype.bind=function(e,t){var n=this,s=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},s.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},s.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2sensbitfedex."+e.id,function(e){var t=n(e.target).closest(".select2sensbitfedex");n(".select2sensbitfedex.select2sensbitfedex-container--open").each(function(){var e=n(this);this!=t[0]&&e.data("element").select2sensbitfedex("close")})})},s.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2sensbitfedex."+e.id)},s.prototype.position=function(e,t){t.find(".selection").append(e)},s.prototype.destroy=function(){this._detachCloseHandler(this.container)},s.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},s}),e.define("select2sensbitfedex/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,s){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2sensbitfedex-selection--single"),e.html('<span class="select2sensbitfedex-selection__rendered"></span><span class="select2sensbitfedex-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2sensbitfedex-selection__rendered").attr("id",s),this.$selection.attr("aria-labelledby",s),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(e){n.update(e.data)})},i.prototype.clear=function(){this.$selection.find(".select2sensbitfedex-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2sensbitfedex-selection__rendered"),s=this.display(t,n);n.empty().append(s),n.prop("title",t.title||t.text)}else this.clear()},i}),e.define("select2sensbitfedex/selection/multiple",["jquery","./base","../utils"],function(s,e,a){function i(e,t){i.__super__.constructor.apply(this,arguments)}return a.Extend(i,e),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2sensbitfedex-selection--multiple"),e.html('<ul class="select2sensbitfedex-selection__rendered"></ul>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2sensbitfedex-selection__choice__remove",function(e){if(!n.options.get("disabled")){var t=s(this).parent().data("data");n.trigger("unselect",{originalEvent:e,data:t})}})},i.prototype.clear=function(){this.$selection.find(".select2sensbitfedex-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return s('<li class="select2sensbitfedex-selection__choice"><span class="select2sensbitfedex-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var s=e[n],i=this.selectionContainer(),r=this.display(s,i);i.append(r),i.prop("title",s.title||s.text),i.data("data",s),t.push(i)}var o=this.$selection.find(".select2sensbitfedex-selection__rendered");a.appendMany(o,t)}},i}),e.define("select2sensbitfedex/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2sensbitfedex-selection__placeholder").removeClass("select2sensbitfedex-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var s=this.createPlaceholder(this.placeholder);this.$selection.find(".select2sensbitfedex-selection__rendered").append(s)},t}),e.define("select2sensbitfedex/selection/allowClear",["jquery","../keys"],function(s,i){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2sensbitfedex-selection__clear",function(e){s._handleClear(e)}),t.on("keypress",function(e){s._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2sensbitfedex-selection__clear");if(0!==n.length){t.stopPropagation();for(var s=n.data("data"),i=0;i<s.length;i++){var r={data:s[i]};if(this.trigger("unselect",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||(t.which==i.DELETE||t.which==i.BACKSPACE)&&this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2sensbitfedex-selection__placeholder").length||0===t.length)){var n=s('<span class="select2sensbitfedex-selection__clear">×</span>');n.data("data",t),this.$selection.find(".select2sensbitfedex-selection__rendered").prepend(n)}},e}),e.define("select2sensbitfedex/selection/search",["jquery","../utils","../keys"],function(s,e,o){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=s('<li class="select2sensbitfedex-search select2sensbitfedex-search--inline"><input class="select2sensbitfedex-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("open",function(){s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){s.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2sensbitfedex-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2sensbitfedex-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2sensbitfedex-search--inline",function(e){if(e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===o.BACKSPACE&&""===s.$search.val()){var t=s.$searchContainer.prev(".select2sensbitfedex-selection__choice");if(0<t.length){var n=t.data("data");s.searchRemoveChoice(n),e.preventDefault()}}});var i=document.documentMode,r=i&&i<=11;this.$selection.on("input.searchcheck",".select2sensbitfedex-search--inline",function(e){return r?void s.$selection.off("input.search input.searchcheck"):void s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2sensbitfedex-search--inline",function(e){if(r&&"input"===e.type)s.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=o.SHIFT&&t!=o.CTRL&&t!=o.ALT&&t!=o.TAB&&s.handleSearch(e)}})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2sensbitfedex-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2sensbitfedex-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},t}),e.define("select2sensbitfedex/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var s=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting"],r=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==o.inArray(e,i)){t=t||{};var n=o.Event("select2sensbitfedex:"+e,{params:t});s.$element.trigger(n),-1!==o.inArray(e,r)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2sensbitfedex/translation",["jquery","require"],function(t,n){function s(e){this.dict=e||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(e){return this.dict[e]},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},s._cache={},s.loadPath=function(e){if(!(e in s._cache)){var t=n(e);s._cache[e]=t}return new s(s._cache[e])},s}),e.define("select2sensbitfedex/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("select2sensbitfedex/data/base",["../utils"],function(s){function n(e,t){n.__super__.constructor.call(this)}return s.Extend(n,s.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return(n+=s.generateChars(4))+(null!=t.id?"-"+t.id.toString():"-"+s.generateChars(4))},n}),e.define("select2sensbitfedex/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],s=this;this.$element.find(":selected").each(function(){var e=a(this),t=s.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var r=this;if(i.selected=!0,a(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var s=i[n].id;-1===a.inArray(s,t)&&t.push(s)}r.$element.val(t),r.$element.trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(i){var r=this;if(this.$element.prop("multiple"))return i.selected=!1,a(i.element).is("option")?(i.element.selected=!1,void this.$element.trigger("change")):void this.current(function(e){for(var t=[],n=0;n<e.length;n++){var s=e[n].id;s!==i.id&&-1===a.inArray(s,t)&&t.push(s)}r.$element.val(t),r.$element.trigger("change")})},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})},n.prototype.query=function(s,e){var i=[],r=this;this.$element.children().each(function(){var e=a(this);if(e.is("option")||e.is("optgroup")){var t=r.item(e),n=r.matches(s,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=a(t),s=this._normalizeItem(e);return s.element=t,a.data(t,"data",s),n},n.prototype.item=function(e){var t={};if(null!=(t=a.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),s=[],i=0;i<n.length;i++){var r=a(n[i]),o=this.item(r);s.push(o)}t.children=s}return(t=this._normalizeItem(t)).element=e[0],a.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){a.isPlainObject(e)||(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2sensbitfedex/data/array",["./select","../utils","jquery"],function(e,f,g){function s(e,t){var n=t.get("data")||[];s.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return f.Extend(s,e),s.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),s.__super__.select.call(this,n)},s.prototype.convertToOptions=function(e){function t(e){return function(){return g(this).val()==e.id}}for(var n=this,s=this.$element.find("option"),i=s.map(function(){return n.item(g(this)).id}).get(),r=[],o=0;o<e.length;o++){var a=this._normalizeItem(e[o]);if(0<=g.inArray(a.id,i)){var l=s.filter(t(a)),c=this.item(l),d=g.extend(!0,{},a,c),u=this.option(d);l.replaceWith(u)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}r.push(p)}}return r},s}),e.define("select2sensbitfedex/data/ajax",["./array","../utils","jquery"],function(e,t,r){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return r.extend({},e,{q:e.term})},transport:function(e,t,n){var s=r.ajax(e);return s.then(t),s.fail(n),s}};return r.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,s){function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&r.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),s(t)},function(){e.status&&"0"===e.status||i.trigger("results:message",{message:"errorLoading"})});i._request=e}var i=this;null!=this._request&&(r.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=r.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2sensbitfedex/data/tags",["jquery"],function(d){function e(e,t,n){var s=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var r=n.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,t,n),d.isArray(s))for(var o=0;o<s.length;o++){var a=s[o],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,d){var u=this;return this._removeOldTags(),null==c.term||null!=c.page?void e.call(this,c,d):void e.call(this,c,function e(t,n){for(var s=t.results,i=0;i<s.length;i++){var r=s[i],o=null!=r.children&&!e({results:r.children},!0);if(r.text===c.term||o)return!n&&(t.data=s,void d(t))}if(n)return!0;var a=u.createTag(c);if(null!=a){var l=u.option(a);l.attr("data-select2sensbitfedex-tag",!0),u.addOptions([l]),u.insertTag(s,a)}t.results=s,d(t)})},e.prototype.createTag=function(e,t){var n=d.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){(this._lastTag,this.$element.find("option[data-select2sensbitfedex-tag]")).each(function(){this.selected||d(this).remove()})},e}),e.define("select2sensbitfedex/data/tokenizer",["jquery"],function(u){function e(e,t,n){var s=n.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2sensbitfedex-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var s=this.tokenizer(t,this.options,function(e){var t,n=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return u(this).val()===n.id}).length){var s=i.option(n);s.attr("data-select2sensbitfedex-tag",!0),i._removeOldTags(),i.addOptions([s])}t=n,i.trigger("select",{data:t})});s.term!==t.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.focus()),t.term=s.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,s){for(var i=n.get("tokenSeparators")||[],r=t.term,o=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};o<r.length;){var l=r[o];if(-1!==u.inArray(l,i)){var c=r.substr(0,o),d=a(u.extend({},t,{term:c}));null!=d?(s(d),r=r.substr(o+1)||"",o=0):o++}else o++}return{term:r}},e}),e.define("select2sensbitfedex/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2sensbitfedex/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2sensbitfedex/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,s,i){var r=this;this.current(function(e){var t=null!=e?e.length:0;return 0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void n.call(r,s,i)})},e}),e.define("select2sensbitfedex/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2sensbitfedex-dropdown"><span class="select2sensbitfedex-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2sensbitfedex/dropdown/search",["jquery","../utils"],function(i,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=i('<span class="select2sensbitfedex-search select2sensbitfedex-search--dropdown"><input class="select2sensbitfedex-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){i(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.focus(),window.setTimeout(function(){s.$search.focus()},0)}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.val("")}),t.on("focus",function(){t.isOpen()&&s.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer.removeClass("select2sensbitfedex-search--hide"):s.$searchContainer.addClass("select2sensbitfedex-search--hide"))})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2sensbitfedex/dropdown/hidePlaceholder",[],function(){function e(e,t,n,s){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,s)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),s=t.length-1;0<=s;s--){var i=t[s];this.placeholder.id===i.id&&n.splice(s,1)}return n},e}),e.define("select2sensbitfedex/dropdown/infiniteScroll",["jquery"],function(i){function e(e,t,n,s){this.lastParams={},e.call(this,t,n,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("query",function(e){s.lastParams=e,s.loading=!0}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",function(){var e=i.contains(document.documentElement,s.$loadingMore[0]);if(!s.loading&&e){var t=s.$results.offset().top+s.$results.outerHeight(!1);s.$loadingMore.offset().top+s.$loadingMore.outerHeight(!1)<=t+50&&s.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=i.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=i('<li class="select2sensbitfedex-results__option select2sensbitfedex-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2sensbitfedex/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this,i=!1;e.call(this,t,n),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),i||(i=!0,t.on("results:all",function(){s._positionDropdown(),s._resizeDropdown()}),t.on("results:append",function(){s._positionDropdown(),s._resizeDropdown()}))}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2sensbitfedex"),t.addClass("select2sensbitfedex-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,s="scroll.select2sensbitfedex."+t.id,i="resize.select2sensbitfedex."+t.id,r="orientationchange.select2sensbitfedex."+t.id,o=this.$container.parents().filter(a.hasScroll);o.each(function(){f(this).data("select2sensbitfedex-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),o.on(s,function(e){var t=f(this).data("select2sensbitfedex-scroll-position");f(this).scrollTop(t.y)}),f(window).on(s+" "+i+" "+r,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2sensbitfedex."+t.id,s="resize.select2sensbitfedex."+t.id,i="orientationchange.select2sensbitfedex."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+s+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2sensbitfedex-dropdown--above"),n=this.$dropdown.hasClass("select2sensbitfedex-dropdown--below"),s=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=i.top,r.bottom=i.top+r.height;var o=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-o,d=l>i.bottom+o,u={left:i.left,top:r.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();u.top-=h.top,u.left-=h.left,t||n||(s="below"),d||!c||t?!c&&d&&t&&(s="below"):s="above",("above"==s||t&&"below"!==s)&&(u.top=r.top-h.top-o),null!=s&&(this.$dropdown.removeClass("select2sensbitfedex-dropdown--below select2sensbitfedex-dropdown--above").addClass("select2sensbitfedex-dropdown--"+s),this.$container.removeClass("select2sensbitfedex-container--below select2sensbitfedex-container--above").addClass("select2sensbitfedex-container--"+s)),this.$dropdownContainer.css(u)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2sensbitfedex/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,s){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,s)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,s=0;s<t.length;s++){var i=t[s];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2sensbitfedex/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("close",function(e){s._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var s=this.getHighlightedResults();if(!(s.length<1)){var i=s.data("data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2sensbitfedex/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(e){s._selectTriggered(e)}),t.on("unselect",function(e){s._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2sensbitfedex/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("select2sensbitfedex/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(f,g,m,v,y,b,x,_,w,$,A,t,E,C,O,S,T,D,q,L,j,k,P,I,R,z,M,U,e){function n(){this.reset()}return n.prototype.apply=function(t){if(null==(t=f.extend(!0,{},this.defaults,t)).dataAdapter){if(null!=t.ajax?t.dataAdapter=O:null!=t.data?t.dataAdapter=C:t.dataAdapter=E,0<t.minimumInputLength&&(t.dataAdapter=$.Decorate(t.dataAdapter,D)),0<t.maximumInputLength&&(t.dataAdapter=$.Decorate(t.dataAdapter,q)),0<t.maximumSelectionLength&&(t.dataAdapter=$.Decorate(t.dataAdapter,L)),t.tags&&(t.dataAdapter=$.Decorate(t.dataAdapter,S)),(null!=t.tokenSeparators||null!=t.tokenizer)&&(t.dataAdapter=$.Decorate(t.dataAdapter,T)),null!=t.query){var e=g(t.amdBase+"compat/query");t.dataAdapter=$.Decorate(t.dataAdapter,e)}if(null!=t.initSelection){var n=g(t.amdBase+"compat/initSelection");t.dataAdapter=$.Decorate(t.dataAdapter,n)}}if(null==t.resultsAdapter&&(t.resultsAdapter=m,null!=t.ajax&&(t.resultsAdapter=$.Decorate(t.resultsAdapter,I)),null!=t.placeholder&&(t.resultsAdapter=$.Decorate(t.resultsAdapter,P)),t.selectOnClose&&(t.resultsAdapter=$.Decorate(t.resultsAdapter,M))),null==t.dropdownAdapter){if(t.multiple)t.dropdownAdapter=j;else{var s=$.Decorate(j,k);t.dropdownAdapter=s}if(0!==t.minimumResultsForSearch&&(t.dropdownAdapter=$.Decorate(t.dropdownAdapter,z)),t.closeOnSelect&&(t.dropdownAdapter=$.Decorate(t.dropdownAdapter,U)),null!=t.dropdownCssClass||null!=t.dropdownCss||null!=t.adaptDropdownCssClass){var i=g(t.amdBase+"compat/dropdownCss");t.dropdownAdapter=$.Decorate(t.dropdownAdapter,i)}t.dropdownAdapter=$.Decorate(t.dropdownAdapter,R)}if(null==t.selectionAdapter){if(t.multiple?t.selectionAdapter=y:t.selectionAdapter=v,null!=t.placeholder&&(t.selectionAdapter=$.Decorate(t.selectionAdapter,b)),t.allowClear&&(t.selectionAdapter=$.Decorate(t.selectionAdapter,x)),t.multiple&&(t.selectionAdapter=$.Decorate(t.selectionAdapter,_)),null!=t.containerCssClass||null!=t.containerCss||null!=t.adaptContainerCssClass){var r=g(t.amdBase+"compat/containerCss");t.selectionAdapter=$.Decorate(t.selectionAdapter,r)}t.selectionAdapter=$.Decorate(t.selectionAdapter,w)}if("string"==typeof t.language)if(0<t.language.indexOf("-")){var o=t.language.split("-")[0];t.language=[t.language,o]}else t.language=[t.language];if(f.isArray(t.language)){var a=new A;t.language.push("en");for(var l=t.language,c=0;c<l.length;c++){var d=l[c],u={};try{u=A.loadPath(d)}catch(e){try{d=this.defaults.amdLanguageBase+d,u=A.loadPath(d)}catch(e){t.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+d+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(u)}t.translations=a}else{var p=A.loadPath(this.defaults.amdLanguageBase+"en"),h=new A(t.language);h.extend(p),t.translations=h}return t},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:$.escapeMarkup,language:e,matcher:function e(t,n){if(""===f.trim(t.term))return n;if(n.children&&0<n.children.length){for(var s=f.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&s.children.splice(i,1);return 0<s.children.length?s:e(t,s)}var r=a(n.text).toUpperCase(),o=a(t.term).toUpperCase();return-1<r.indexOf(o)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.set=function(e,t){var n={};n[f.camelCase(e)]=t;var s=$._convertData(n);f.extend(this.defaults,s)},new n}),e.define("select2sensbitfedex/options",["require","jquery","./defaults","./utils"],function(s,r,i,o){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=i.apply(this.options),t&&t.is("input")){var n=s(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=o.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2sensbitfedex"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2sensbitfedexTags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2sensbitfedex-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2sensbitfedexTags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n;n=r.fn.jquery&&"1."==r.fn.jquery.substr(0,2)&&e[0].dataset?r.extend(!0,{},e[0].dataset,e.data()):e.data();var s=r.extend(!0,{},n);for(var i in s=o._convertData(s))-1<r.inArray(i,t)||(r.isPlainObject(this.options[i])?r.extend(this.options[i],s[i]):this.options[i]=s[i]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2sensbitfedex/core",["jquery","./options","./utils","./keys"],function(i,c,n,s){var d=function(e,t){null!=e.data("select2sensbitfedex")&&e.data("select2sensbitfedex").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var i=this.render();this._placeContainer(i);var r=this.options.get("selectionAdapter");this.selection=new r(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var o=this.options.get("dropdownAdapter");this.dropdown=new o(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2sensbitfedex-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2sensbitfedex",this)};return n.Extend(d,n.Observable),d.prototype._generateId=function(e){return"select2sensbitfedex-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var s=this._resolveWidth(e,"style");return null!=s?s:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return t;var r=e.attr("style");if("string"!=typeof r)return null;for(var o=r.split(";"),a=0,l=o.length;a<l;a+=1){var c=o[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2sensbitfedex",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2sensbitfedex",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){i.each(e,t._syncA),i.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,s=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.inArray(e,s)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2sensbitfedex-container--open")}),this.on("close",function(){n.$container.removeClass("select2sensbitfedex-container--open")}),this.on("enable",function(){n.$container.removeClass("select2sensbitfedex-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2sensbitfedex-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2sensbitfedex-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===s.ESC||t===s.TAB||t===s.UP&&e.altKey?(n.close(),e.preventDefault()):t===s.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._syncSubtree=function(e,t){var n=!1,s=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})})}},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in s){var i=s[e],r={prevented:!1,name:e,args:t};if(n.call(this,i,r),r.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.trigger("query",{})},d.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},d.prototype.isOpen=function(){return this.$container.hasClass("select2sensbitfedex-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2sensbitfedex-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2sensbitfedex-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2sensbitfedex("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2sensbitfedex("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2sensbitfedex("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];i.isArray(t)&&(t=i.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2sensbitfedex"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2sensbitfedex-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2sensbitfedex"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=i('<span class="select2sensbitfedex select2sensbitfedex-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2sensbitfedex-container--"+this.options.get("theme")),e.data("element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2sensbitfedex",["jquery","jquery-mousewheel","./select2sensbitfedex/core","./select2sensbitfedex/defaults"],function(i,e,r,t){if(null==i.fn.select2sensbitfedex){var o=["open","close","destroy"];i.fn.select2sensbitfedex=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new r(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=i(this).data("select2sensbitfedex");null==e&&window.console&&console.error&&console.error("The select2sensbitfedex('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,s)}),-1<i.inArray(t,o)?this:n}}return null==i.fn.select2sensbitfedex.defaults&&(i.fn.select2sensbitfedex.defaults=t),r}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2sensbitfedex");return n.fn.select2sensbitfedex.amd=e,t}),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2sensbitfedex&&jQuery.fn.select2sensbitfedex.amd)var e=jQuery.fn.select2sensbitfedex.amd;e.define("select2sensbitfedex/i18n/pl",[],function(){var n=["znak","znaki","znaków"],t=["element","elementy","elementów"],s=function(e,t){return 1===e?t[0]:1<e&&e<=4?t[1]:5<=e?t[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Usuń "+t+" "+s(t,n)},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Wprowadź miasto, ulicę lub nazwę punktu odbioru FEDEX. Min. "+t+" "+s(t,n)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(e){return"Możesz zaznaczyć tylko "+e.maximum+" "+s(e.maximum,t)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"}}}),e.define,e.require}();var SensbitFedexMapWidget;!function(){"use strict";"undefined"==typeof SensbitFedexMapWidget?(SensbitFedexMapWidget=function(){function a(b,c){b.getMarkerClusterer().extend(a,google.maps.OverlayView),this.cluster_=b,this.className_=b.getMarkerClusterer().getClusterClass(),this.styles_=c,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(b.getMap())}function b(b){this.markerClusterer_=b,this.map_=b.getMap(),this.gridSize_=b.getGridSize(),this.minClusterSize_=b.getMinimumClusterSize(),this.averageCenter_=b.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new a(this,b.getStyles())}function c(a,b,d){this.extend(c,google.maps.OverlayView),b=b||[],d=d||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=d.gridSize||60,this.minClusterSize_=d.minimumClusterSize||2,this.maxZoom_=d.maxZoom||null,this.styles_=d.styles||[],this.title_=d.title||"",this.zoomOnClick_=!0,void 0!==d.zoomOnClick&&(this.zoomOnClick_=d.zoomOnClick),this.averageCenter_=!1,void 0!==d.averageCenter&&(this.averageCenter_=d.averageCenter),this.ignoreHidden_=!1,void 0!==d.ignoreHidden&&(this.ignoreHidden_=d.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==d.enableRetinaIcons&&(this.enableRetinaIcons_=d.enableRetinaIcons),this.imagePath_=d.imagePath||c.IMAGE_PATH,this.imageExtension_=d.imageExtension||c.IMAGE_EXTENSION,this.imageSizes_=d.imageSizes||c.IMAGE_SIZES,this.calculator_=d.calculator||c.CALCULATOR,this.batchSize_=d.batchSize||c.BATCH_SIZE,this.batchSizeIE_=d.batchSizeIE||c.BATCH_SIZE_IE,this.clusterClass_=d.clusterClass||"cluster",navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(b,!0),this.setMap(a)}function d(a,b){for(var c=0,d=a;c<d.length;c++){var e=d[c];if(b(e))return e}return null}function e(a,b){return!!d(a,b)}function f(a,b){for(var c=[],d=0,e=a;d<e.length;d++){var f=e[d];c.push(b(f))}return c}function g(a,b){return a.classList?a.classList.contains(b):new RegExp("(^| )"+b+"( |$)","gi").test(a.className)}function h(a,b){a&&(a.classList?a.classList.add(b):a.className+=" "+b)}function i(a,b){a&&(a.classList?a.classList.remove(b):a.className=a.className.replace(new RegExp("(^|\\b)"+b.split(" ").join("|")+"(\\b|$)","gi")," "))}function j(a){return a.operator+"/"+a.code}a.prototype.onAdd=function(){var a,b,c=this,d=google.maps.version.split(".");d=parseInt(100*d[0],10)+parseInt(d[1],10),this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){b=a}),google.maps.event.addDomListener(this.div_,"mousedown",function(){a=!0,b=!1}),d>=332&&google.maps.event.addDomListener(this.div_,"touchstart",function(a){a.stopPropagation()}),google.maps.event.addDomListener(this.div_,"click",function(d){if(a=!1,!b){var e,f,g=c.cluster_.getMarkerClusterer();google.maps.event.trigger(g,"click",c.cluster_),google.maps.event.trigger(g,"clusterclick",c.cluster_),g.getZoomOnClick()&&(f=g.getMaxZoom(),e=c.cluster_.getBounds(),g.getMap().fitBounds(e),setTimeout(function(){g.getMap().fitBounds(e),null!==f&&g.getMap().getZoom()>f&&g.getMap().setZoom(f+1)},100)),d.cancelBubble=!0,d.stopPropagation&&d.stopPropagation()}}),google.maps.event.addDomListener(this.div_,"mouseover",function(){var a=c.cluster_.getMarkerClusterer();google.maps.event.trigger(a,"mouseover",c.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){var a=c.cluster_.getMarkerClusterer();google.maps.event.trigger(a,"mouseout",c.cluster_)})},a.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},a.prototype.draw=function(){if(this.visible_){var a=this.getPosFromLatLng_(this.center_);this.div_.style.top=a.y+"px",this.div_.style.left=a.x+"px",this.div_.style.zIndex=google.maps.Marker.MAX_ZINDEX+1}},a.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},a.prototype.show=function(){if(this.div_){var a="",b=this.backgroundPosition_.split(" "),c=parseInt(b[0].replace(/^\s+|\s+$/g,""),10),d=parseInt(b[1].replace(/^\s+|\s+$/g,""),10),e=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(e),a="<img src='"+this.url_+"' style='position: absolute; top: "+d+"px; left: "+c+"px; ",a+=this.cluster_.getMarkerClusterer().enableRetinaIcons_?"width: "+this.width_+"px; height: "+this.height_+"px;":"clip: rect("+-1*d+"px, "+(-1*c+this.width_)+"px, "+(-1*d+this.height_)+"px, "+-1*c+"px);",a+="'>",this.div_.innerHTML=a+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>","undefined"==typeof this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""}this.visible_=!0},a.prototype.useStyle=function(a){this.sums_=a;var b=Math.max(0,a.index-1);b=Math.min(this.styles_.length-1,b);var c=this.styles_[b];this.url_=c.url,this.height_=c.height,this.width_=c.width,this.anchorText_=c.anchorText||[0,0],this.anchorIcon_=c.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=c.textColor||"black",this.textSize_=c.textSize||11,this.textDecoration_=c.textDecoration||"none",this.fontWeight_=c.fontWeight||"bold",this.fontStyle_=c.fontStyle||"normal",this.fontFamily_=c.fontFamily||"Arial,sans-serif",this.backgroundPosition_=c.backgroundPosition||"0 0"},a.prototype.setCenter=function(a){this.center_=a},a.prototype.createCss=function(a){var b=[];return b.push("cursor: pointer;"),b.push("position: absolute; top: "+a.y+"px; left: "+a.x+"px;"),b.push("width: "+this.width_+"px; height: "+this.height_+"px;"),b.push("-webkit-user-select: none;"),b.push("-khtml-user-select: none;"),b.push("-moz-user-select: none;"),b.push("-o-user-select: none;"),b.push("user-select: none;"),b.join("")},a.prototype.getPosFromLatLng_=function(a){var b=this.getProjection().fromLatLngToDivPixel(a);return b.x-=this.anchorIcon_[1],b.y-=this.anchorIcon_[0],b.x=parseInt(b.x,10),b.y=parseInt(b.y,10),b},b.prototype.getSize=function(){return this.markers_.length},b.prototype.getMarkers=function(){return this.markers_},b.prototype.getCenter=function(){return this.center_},b.prototype.getMap=function(){return this.map_},b.prototype.getMarkerClusterer=function(){return this.markerClusterer_},b.prototype.getBounds=function(){var a,b=new google.maps.LatLngBounds(this.center_,this.center_),c=this.getMarkers();for(a=0;a<c.length;a++)b.extend(c[a].getPosition());return b},b.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},b.prototype.addMarker=function(a){var b,c,d;if(this.isMarkerAlreadyAdded_(a))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,f=(this.center_.lat()*(e-1)+a.getPosition().lat())/e,g=(this.center_.lng()*(e-1)+a.getPosition().lng())/e;this.center_=new google.maps.LatLng(f,g),this.calculateBounds_()}}else this.center_=a.getPosition(),this.calculateBounds_();if(a.isAdded=!0,this.markers_.push(a),c=this.markers_.length,d=this.markerClusterer_.getMaxZoom(),null!==d&&this.map_.getZoom()>d)a.getMap()!==this.map_&&a.setMap(this.map_);else if(c<this.minClusterSize_)a.getMap()!==this.map_&&a.setMap(this.map_);else if(c===this.minClusterSize_)for(b=0;b<c;b++)this.markers_[b].setMap(null);else a.setMap(null);return this.updateIcon_(),!0},b.prototype.isMarkerInClusterBounds=function(a){return this.bounds_.contains(a.getPosition())},b.prototype.calculateBounds_=function(){var a=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(a)},b.prototype.updateIcon_=function(){var a=this.markers_.length,b=this.markerClusterer_.getMaxZoom();if(null!==b&&this.map_.getZoom()>b)return void this.clusterIcon_.hide();if(a<this.minClusterSize_)return void this.clusterIcon_.hide();var c=this.markerClusterer_.getStyles().length,d=this.markerClusterer_.getCalculator()(this.markers_,c);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(d),this.clusterIcon_.show()},b.prototype.isMarkerAlreadyAdded_=function(a){var b;if(this.markers_.indexOf)return this.markers_.indexOf(a)!==-1;for(b=0;b<this.markers_.length;b++)if(a===this.markers_[b])return!0;return!1},c.prototype.onAdd=function(){var a=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){var a=this.getMap().getZoom(),b=this.getMap().minZoom||0,c=Math.min(this.getMap().maxZoom||100,this.getMap().mapTypes[this.getMap().getMapTypeId()].maxZoom);a=Math.min(Math.max(a,b),c),this.prevZoom_!=a&&(this.prevZoom_=a,this.resetViewport_(!1))}.bind(this)),google.maps.event.addListener(this.getMap(),"idle",function(){a.redraw_()})]},c.prototype.onRemove=function(){var a;for(a=0;a<this.markers_.length;a++)this.markers_[a].getMap()!==this.activeMap_&&this.markers_[a].setMap(this.activeMap_);for(a=0;a<this.clusters_.length;a++)this.clusters_[a].remove();for(this.clusters_=[],a=0;a<this.listeners_.length;a++)google.maps.event.removeListener(this.listeners_[a]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},c.prototype.draw=function(){},c.prototype.setupStyles_=function(){var a,b;if(!(this.styles_.length>0))for(a=0;a<this.imageSizes_.length;a++)b=this.imageSizes_[a],this.styles_.push({url:this.imagePath_+(a+1)+"."+this.imageExtension_,height:b,width:b})},c.prototype.fitMapToMarkers=function(){var a,b=this.getMarkers(),c=new google.maps.LatLngBounds;for(a=0;a<b.length;a++)!b[a].getVisible()&&this.getIgnoreHidden()||c.extend(b[a].getPosition());this.getMap().fitBounds(c)},c.prototype.getGridSize=function(){return this.gridSize_},c.prototype.setGridSize=function(a){this.gridSize_=a},c.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},c.prototype.setMinimumClusterSize=function(a){this.minClusterSize_=a},c.prototype.getMaxZoom=function(){return this.maxZoom_},c.prototype.setMaxZoom=function(a){this.maxZoom_=a},c.prototype.getStyles=function(){return this.styles_},c.prototype.setStyles=function(a){this.styles_=a},c.prototype.getTitle=function(){return this.title_},c.prototype.setTitle=function(a){this.title_=a},c.prototype.getZoomOnClick=function(){return this.zoomOnClick_},c.prototype.setZoomOnClick=function(a){this.zoomOnClick_=a},c.prototype.getAverageCenter=function(){return this.averageCenter_},c.prototype.setAverageCenter=function(a){this.averageCenter_=a},c.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},c.prototype.setIgnoreHidden=function(a){this.ignoreHidden_=a},c.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},c.prototype.setEnableRetinaIcons=function(a){this.enableRetinaIcons_=a},c.prototype.getImageExtension=function(){return this.imageExtension_},c.prototype.setImageExtension=function(a){this.imageExtension_=a},c.prototype.getImagePath=function(){return this.imagePath_},c.prototype.setImagePath=function(a){this.imagePath_=a},c.prototype.getImageSizes=function(){return this.imageSizes_},c.prototype.setImageSizes=function(a){this.imageSizes_=a},c.prototype.getCalculator=function(){return this.calculator_},c.prototype.setCalculator=function(a){this.calculator_=a},c.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},c.prototype.setBatchSizeIE=function(a){this.batchSizeIE_=a},c.prototype.getClusterClass=function(){return this.clusterClass_},c.prototype.setClusterClass=function(a){this.clusterClass_=a},c.prototype.getMarkers=function(){return this.markers_},c.prototype.getTotalMarkers=function(){return this.markers_.length},c.prototype.getClusters=function(){return this.clusters_},c.prototype.getTotalClusters=function(){return this.clusters_.length},c.prototype.addMarker=function(a,b){this.pushMarkerTo_(a),b||this.redraw_()},c.prototype.addMarkers=function(a,b){var c;for(c in a)a.hasOwnProperty(c)&&this.pushMarkerTo_(a[c]);b||this.redraw_()},c.prototype.pushMarkerTo_=function(a){if(a.getDraggable()){var b=this;google.maps.event.addListener(a,"dragend",function(){b.ready_&&(this.isAdded=!1,b.repaint())})}a.isAdded=!1,this.markers_.push(a)},c.prototype.removeMarker=function(a,b){var c=this.removeMarker_(a);return!b&&c&&this.repaint(),c},c.prototype.removeMarkers=function(a,b){var c,d,e=!1;for(c=0;c<a.length;c++)d=this.removeMarker_(a[c]),e=e||d;return!b&&e&&this.repaint(),e},c.prototype.removeMarker_=function(a){var b,c=-1;if(this.markers_.indexOf)c=this.markers_.indexOf(a);else for(b=0;b<this.markers_.length;b++)if(a===this.markers_[b]){c=b;break}return c!==-1&&(a.setMap(null),this.markers_.splice(c,1),!0)},c.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},c.prototype.repaint=function(){var a=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){var b;for(b=0;b<a.length;b++)a[b].remove()},0)},c.prototype.getExtendedBounds=function(a){var b=this.getProjection(),c=new google.maps.LatLng(a.getNorthEast().lat(),a.getNorthEast().lng()),d=new google.maps.LatLng(a.getSouthWest().lat(),a.getSouthWest().lng()),e=b.fromLatLngToDivPixel(c);e.x+=this.gridSize_,e.y-=this.gridSize_;var f=b.fromLatLngToDivPixel(d);f.x-=this.gridSize_,f.y+=this.gridSize_;var g=b.fromDivPixelToLatLng(e),h=b.fromDivPixelToLatLng(f);return a.extend(g),a.extend(h),a},c.prototype.redraw_=function(){this.createClusters_(0)},c.prototype.resetViewport_=function(a){var b,c;for(b=0;b<this.clusters_.length;b++)this.clusters_[b].remove();for(this.clusters_=[],b=0;b<this.markers_.length;b++)c=this.markers_[b],c.isAdded=!1,a&&c.setMap(null)},c.prototype.distanceBetweenPoints_=function(a,b){var c=6371,d=(b.lat()-a.lat())*Math.PI/180,e=(b.lng()-a.lng())*Math.PI/180,f=Math.sin(d/2)*Math.sin(d/2)+Math.cos(a.lat()*Math.PI/180)*Math.cos(b.lat()*Math.PI/180)*Math.sin(e/2)*Math.sin(e/2),g=2*Math.atan2(Math.sqrt(f),Math.sqrt(1-f)),h=c*g;return h},c.prototype.isMarkerInBounds_=function(a,b){return b.contains(a.getPosition())},c.prototype.addToClosestCluster_=function(a){var c,d,e,f,g=4e4,h=null;for(c=0;c<this.clusters_.length;c++)e=this.clusters_[c],f=e.getCenter(),f&&(d=this.distanceBetweenPoints_(f,a.getPosition()),d<g&&(g=d,h=e));h&&h.isMarkerInClusterBounds(a)?h.addMarker(a):(e=new b(this),e.addMarker(a),this.clusters_.push(e))},c.prototype.createClusters_=function(a){var b,c,d,e=this;if(this.ready_){0===a&&(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),d=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));var f=this.getExtendedBounds(d),g=Math.min(a+this.batchSize_,this.markers_.length);for(b=a;b<g;b++)c=this.markers_[b],!c.isAdded&&this.isMarkerInBounds_(c,f)&&(!this.ignoreHidden_||this.ignoreHidden_&&c.getVisible())&&this.addToClosestCluster_(c);g<this.markers_.length?this.timerRefStatic=setTimeout(function(){e.createClusters_(g)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},c.prototype.extend=function(a,b){return function(a){var b;for(b in a.prototype)this.prototype[b]=a.prototype[b];return this}.apply(a,[b])},c.CALCULATOR=function(a,b){for(var c=0,d="",e=a.length.toString(),f=e;0!==f;)f=parseInt(f/10,10),c++;return c=Math.min(c,b),{text:e,index:c,title:d}},c.BATCH_SIZE=2e3,c.BATCH_SIZE_IE=500,c.IMAGE_PATH="https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m",c.IMAGE_EXTENSION="png",c.IMAGE_SIZES=[53,56,66,78,90],"object"==typeof module&&(module.exports=c);var k;!function(a){a[a.DELIVERY="DELIVERY"]="DELIVERY",a[a.POSTING="POSTING"]="POSTING"}(k||(k={}));var l,m=function(){function a(a){void 0===a&&(a=!1);var b=a?"https://pos.sandbox-bliskapaczka.pl":"https://pos.bliskapaczka.pl";this.posEndpointUrl=b+"/api/v1/pos",this.requestCounterUrl=a?"https://api.sandbox-bliskapaczka.pl":"https://api.bliskapaczka.pl"}return a.prototype.loadScript=function(a){var b=document.createElement("script");b.type="application/javascript",b.src=a,document.body.appendChild(b)},a.prototype.getPos=function(a,b,c){var d=this.posEndpointUrl+"/"+a;this.xhrRequest(d,"GET",b,c)},a.prototype.listPos=function(a,b,c,d){var e="?operators="+b.join(","),f="&fields=operator,code,latitude,longitude,brand,brandPretty,operatorPretty,cod,available",g=this.posEndpointUrl+e+f;a&&(g+="&posType="+k[a].toLowerCase()),this.xhrRequest(g,"GET",c,d)},a.prototype.countPointSelection=function(a,b){var c=this.requestCounterUrl+"/point/select/"+a+"/"+b;this.xhrRequest(c,"POST",function(){},function(a){return console.error(a)})},a.prototype.xhrRequest=function(a,b,c,d){var e=new XMLHttpRequest;e.open(b,a,!0),e.onload=function(){if(e.readyState==XMLHttpRequest.DONE)if(200==e.status){var a=e.responseText?JSON.parse(e.responseText):null;c(a)}else d&&d(e.responseText)},e.onerror=function(){d(e.responseText)},e.send()},a}(),n=function(){function a(){}return a.asset=function(a){if(a.indexOf('http')!==-1)return a;return"https://widget.bliskapaczka.pl/vppo/"+a},a.posImage=function(a){return"https://pos.bliskapaczka.pl/assets/images/"+a},a.submitButton=function(a){var b=a?"Wybierz":"Wybierz punkt";return'\n <button type="button" class="bp-map-submit-button">\n '+b+"\n </button>\n "},a.submitButtonOrText=function(a,b){return b?this.submitButton(a):"<span>Punkt czasowo niedostępny</span>"},a.addressDescription=function(a){var b=a.postalCode||"";return"\n <address>ul. "+a.street+"<br/>"+b+" "+a.city+"</address>\n "},a.operatorLogo=function(a){var b=this.posImage(a+".png");return'<img src="'+b+'" alt="'+a+'"/>'},a.brandLogo=function(a){var b=this.asset("images/brand/"+a+".png");return'<img src="'+b+'" alt="'+a+'"/>'},a.rwdButtons=function(){var b=a.asset("images/icons/icon_target.svg"),c=a.asset("images/icons/icon_filter.svg");return'<div class="bp-rwd-button" id="BPFindMeRWD">\n <div>\n <img class="bp-rwd-button-icon" src="'+b+'"/>\n </div>\n </div>\n <div class="bp-rwd-button" id="SensbitFedexMapWidgetFiltersButtonRWD">\n <div>\n <img class="bp-rwd-button-icon" src="'+c+'"/>\n </div>\n </div>'},a.footer=function(){var a=this.asset("images/bp_log.svg");return'<div class="bp-footer-content">\n <a href="https://bliskapaczka.pl" target="_blank">\n <img class="bp-footer-logo" src="'+a+'">\n </a>\n <div class="points-count">\n <div id="BPPosCount" class="points-count-label">\n\n </div>\n <div id="BPPosLoader" class="points-count-loader">\n <div class="points-count-label">\n <span>Ładowanie...</span>\n </div>\n <div class="loader">\n <div class="bp-sk-fading-circle">\n <div class="sk-circle1 sk-circle"></div>\n <div class="sk-circle2 sk-circle"></div>\n <div class="sk-circle3 sk-circle"></div>\n <div class="sk-circle4 sk-circle"></div>\n <div class="sk-circle5 sk-circle"></div>\n <div class="sk-circle6 sk-circle"></div>\n <div class="sk-circle7 sk-circle"></div>\n <div class="sk-circle8 sk-circle"></div>\n <div class="sk-circle9 sk-circle"></div>\n <div class="sk-circle10 sk-circle"></div>\n <div class="sk-circle11 sk-circle"></div>\n <div class="sk-circle12 sk-circle"></div>\n </div>\n </div>\n </div>\n </div>\n </div>'},a.parcelPrice=function(a){if(a&&(a.price||0==a.price)){var b=a.price.toFixed(2).replace(".",",");return b+" zł"}return""},a.posType=function(a){return a.deliveryPoint&&!a.postingPoint?'<span class="bp-text-bold">UWAGA!</span> Punkt tylko odbiorczy':a.postingPoint&&!a.deliveryPoint?'<span class="bp-text-bold">UWAGA!</span> Punkt tylko nadawczy':""},a.posTags=function(a){var b="";return a.deliveryPoint&&(b+='<div class="bp-tag">Punkt odbiorczy</div>'),a.postingPoint&&(b+='<div class="bp-tag">Punkt nadawczy</div>'),a.cod&&(b+='<div class="bp-tag">Pobranie</div>'),"INPOST"==a.brand&&(b+='<div class="bp-tag">Dostęp 24h</div>'),b},a.openingHoursDescription=function(a){function b(a){function b(a){for(var b={},c=0,e=d;c<e.length;c++){var f=e[c],g=a[f];b[f]=g?g.from+" - "+g.to:"nieczynne"}return b}function c(a,b){for(var c=a,e=a;e<d.length;e++){var g=d[e],h=f[g];if(b!=h)break;c=e}return c}for(var d=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"],e=["Pn","Wt","Sr","Czw","Pt","So","Nd"],f=b(a),g="",h=0;h<d.length;h++){var i=d[h],j=f[i],k=c(h,j),l=e[h],m=e[k],n=h!=k?l+"-"+m:l;g+="<div>"+n+": "+j+"</div>",h=k}return"<div>Pn-Nd: 00:00 - 23:59</div>"==g?"Pn-Nd: 24h":g}var c=a.openingHoursMap,d=c&&Object.keys(c).length?b(c):"brak danych";return'\n <div style="font-weight:bold;">Godziny otwarcia: </div>\n <div>\n '+d+"\n </div>\n "},a}(),o=function(){function a(){}return Object.defineProperty(a,"styles",{get:function(){return[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#322e2d"}]},{featureType:"administrative",elementType:"labels.text.stroke",stylers:[{color:"#fffaf2"},{weight:4.68},{gamma:1}]},{featureType:"landscape",elementType:"all",stylers:[{lightness:20},{color:"#efe9e4"}]},{featureType:"landscape",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"landscape.man_made",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{visibility:"on"},{color:"#f0e4d3"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"on"},{saturation:-24},{lightness:0}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{lightness:16},{saturation:-100},{hue:"#ffd800"}]},{featureType:"poi",elementType:"labels.icon",stylers:[{saturation:-100},{hue:"#ffd800"}]},{featureType:"poi.sports_complex",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{lightness:-100},{saturation:-77}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{lightness:100}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#efe9e4"},{lightness:-10}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#efe9e4"},{lightness:-25}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{lightness:41}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{weight:.01}]},{featureType:"road.highway",elementType:"labels.icon",stylers:[{lightness:43},{visibility:"off"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#efe9e4"},{lightness:-6}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{color:"#efe9e4"},{lightness:-20}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{lightness:47}]},{featureType:"road.arterial",elementType:"labels.text.stroke",stylers:[{lightness:1},{weight:.01}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{color:"#f4f0f0"},{lightness:14}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{lightness:65}]},{featureType:"transit.station",elementType:"labels.text",stylers:[{saturation:-100}]},{featureType:"transit.station",elementType:"labels.icon",stylers:[{saturation:-100}]},{featureType:"transit.station.bus",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#19a0d8"},{gamma:1},{lightness:52}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{lightness:-100}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{lightness:100}]}]},enumerable:!0,configurable:!0}),a}();!function(a){a[a.OPERATOR="OPERATOR"]="OPERATOR",a[a.COD="COD"]="COD"}(l||(l={}));var p=function(){function a(){}return a.prototype.init=function(a,b){var c=this;this.filters=this.createFilters(a,b),this.filtersElement.innerHTML=this.display(),this.forEachFilterElement(function(a){a&&(a.checked=!0)});var d=this.findCodFilterElement();d&&(d.checked=b.filterValue),this.filtersButtonElement.addEventListener("click",function(){c.isCollapsed()?c.expandFilters():c.collapseFilters()}),this.rwdFiltersButtonElement.addEventListener("click",function(){c.isCollapsed()?c.expandFilters():c.collapseFilters()}),this.filtersContent.addEventListener("scroll",function(){c.processFiltersInsetShadow()}),window.addEventListener("resize",function(){c.filtersContent&&c.processFiltersInsetShadow()}),this.processFiltersInsetShadow()},a.prototype.processFiltersInsetShadow=function(){var a=this.filtersContent.offsetWidth,b=this.filtersContent.scrollWidth,c=this.filtersContent.scrollLeft;a<b?0==c?(i(this.filtersContent,"left-scroll"),h(this.filtersContent,"right-scroll")):c+a==b?(h(this.filtersContent,"left-scroll"),i(this.filtersContent,"right-scroll")):(h(this.filtersContent,"left-scroll"),h(this.filtersContent,"right-scroll")):(i(this.filtersContent,"left-scroll"),i(this.filtersContent,"right-scroll"))},a.prototype.getValues=function(){var a=this,b=[];return this.forEachFilter(function(c){var d=a.findFilterElement(c);d&&d.checked&&c.operator&&b.push(c.operator)}),b},a.prototype.getCod=function(){var a=this,b=!1;return this.forEachFilter(function(c){var d=a.findFilterElement(c);d?d.checked&&c.type==l.COD&&(b=!0):b=Boolean(c.value)}),b},a.prototype.onChange=function(a){this.forEachFilterElement(function(b){b&&b.addEventListener("change",a)})},a.prototype.updateFiltersDisplay=function(a){var b=this;this.forEachFilter(function(c){var d=b.findFilterElement(c);d&&(e(a,function(a){return a==c.operator})?d.disabled=!1:c.type!=l.COD&&(d.disabled=!0,d.checked=!1))}),1==this.filters.length&&this.forEachFilterElement(function(a){return a.disabled=!0})},a.prototype.createFilters=function(a,b){return this.createOperatorsFilters(a).concat([this.createCODFilter(b)])},a.prototype.createOperatorsFilters=function(a){for(var b=[],c=0,d=a;c<d.length;c++){var e=d[c],f={type:l.OPERATOR,operator:e.operator,value:e.price,elementId:"BPFilter"+e.operator};b.push(f)}return b},a.prototype.createCODFilter=function(a){return{value:a.filterValue,show:null==a.showFilter||a.showFilter,type:l.COD,elementId:"BPFilterCOD"}},a.prototype.findFilterElement=function(a){var b=a.elementId;return document.getElementById(b)},a.prototype.forEachFilter=function(a){for(var b=0,c=this.filters;b<c.length;b++){var d=c[b];a(d)}},a.prototype.findCodFilterElement=function(){return document.getElementById("BPFilterCOD")},a.prototype.forEachFilterElement=function(a){var b=this;this.forEachFilter(function(c){return a(b.findFilterElement(c))})},a.prototype.expandFilters=function(){i(document.getElementById("SensbitFedexMapWidget"),"bp-filters-collapsed"),i(this.filtersElement,"bp-filters-collapsed"),this.filtersButtonElement&&(this.filtersButtonElement.title="Zwiń filtry"),this.processFiltersInsetShadow()},a.prototype.collapseFilters=function(){this.isCollapsed()||(h(this.filtersElement,"bp-filters-collapsed"),h(document.getElementById("SensbitFedexMapWidget"),"bp-filters-collapsed")),this.filtersButtonElement&&(this.filtersButtonElement.title="Rozwiń filtry"),this.processFiltersInsetShadow()},a.prototype.isCollapsed=function(){var a=this.filtersElement;return a.className.indexOf("bp-filters-collapsed")!==-1},Object.defineProperty(a.prototype,"filtersElement",{get:function(){return document.getElementById("SensbitFedexMapWidgetFilters")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"filtersButtonElement",{get:function(){return document.getElementById("SensbitFedexMapWidgetFiltersButton")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rwdFiltersButtonElement",{get:function(){return document.getElementById("SensbitFedexMapWidgetFiltersButtonRWD")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"filtersContent",{get:function(){return document.getElementById("SensbitFedexMapWidgetFiltersContent")},enumerable:!0,configurable:!0}),a.prototype.display=function(){var a=this.createFiltersDisplay(),b=n.asset("images/icons/marker.svg");return'\n <div class="bp-filters-content" id="SensbitFedexMapWidgetFiltersContent">\n <div class="bp-filters-logo"><img class="bp-filters-icon" src="'+b+'"/></div>\n <div class="bp-filters-wrapper">'+a+"</div>\n </div>\n "},a.prototype.createFiltersDisplay=function(){for(var a=[],b=0,c=this.filters;b<c.length;b++){var d=c[b],e="",f=d.elementId,g="bp-filter";if(d.operator){var h=d.operator.toLowerCase(),i=n.operatorLogo(d.operator),j="";(d.value||0===d.value)&&(g="bp-filter bp-filter-show-price",j=Number(d.value).toFixed(2).replace(".",",")+"zł"),e='\n <label class="'+g+'">\n <input id="'+f+'" type="checkbox" name="'+h+'" />\n <div class="bp-filter-wrapper">\n <div class="bp-filter-logo">'+i+'</div>\n <div class="bp-filter-price">\n <span>'+j+"</span>\n </div>\n </div>\n </label>\n "}else if(d.show){var k=d.show&&d.value?" disabled ":"";e='\n <div class="checkbox-filter">\n <label class="checkbox-block">\n <input type="checkbox" id="'+f+'" name="codFilter" '+k+' />\n <span class="checkbox" tabindex="0"></span>\n <span class="checkbox-desc '+k+'">Płatność za pobraniem</span>\n </label> \n </div>\n '}""!=e&&a.push(e)}return a.join("")},a}(),q=function(){function a(){this.POS_AVAILABLE_HANDLING_OPERATORS=["FEDEX"]}return a.prototype.init=function(b,d,e,f){var g=this;this.map=b,this.operators=d,this.selectPointCallback=e,this.submitPointCallback=f,this.markerClusterer=new c(b,[],{batchSize:4e4,batchSizeIE:1e4,ignoreHidden:!0,minimumClusterSize:4,styles:[{url:n.asset("images/markers/m1.png"),height:30,width:31,textColor:"white"},{url:n.asset("images/markers/m2.png"),height:34,width:35,textColor:"white"},{url:n.asset("images/markers/m3.png"),height:39,width:40,textColor:"white"},{url:n.asset("images/markers/m4.png"),height:43,width:45,textColor:"white"},{url:n.asset("images/markers/m5.png"),height:49,width:51,textColor:"white"}]}),this.oms=new SensbitFedexMapWidget.OverlappingMarkerSpiderfier(b,{markersWontMove:!0,markersWontHide:!1,keepSpiderfied:!0,ignoreMapClick:!0,nearbyDistance:10,circleFootSeparation:35}),this.siw=SensbitFedexMapWidget.SnazzyInfoWindow(google.maps.OverlayView),this.posListElement.innerHTML=a.displayPointDescription(),google.maps.event.addListener(b,"click",function(){g.unselectMarker()});var h=document.getElementById("SensbitFedexMapWidgetMap");h.addEventListener("touchmove",function(){g.markerClusterer.setZoomOnClick(!1)}),h.addEventListener("touchend",function(){setTimeout(function(){g.markerClusterer.setZoomOnClick(!0)})}),b.addListener("dragstart",function(){g.markerClusterer.setZoomOnClick(!1)}),b.addListener("dragend",function(){setTimeout(function(){g.markerClusterer.setZoomOnClick(!0)})})},a.prototype.clearMarkers=function(){this.oms.forgetAllMarkers(),this.markerClusterer.clearMarkers()},a.prototype.updateMarkers=function(a){for(var b=[],c=0,d=a;c<d.length;c++){var e=d[c],f=this.createMarker(e);b.push(f),this.oms.trackMarker(f)}this.markerClusterer.addMarkers(b,!1)},a.prototype.findMarker=function(a){for(var b=0,c=this.markerClusterer.getMarkers();b<c.length;b++){var d=c[b];if(j(a)==d.get("posId"))return d}return null},a.prototype.selectMarker=function(a,b,c){c&&(this.map.panTo(a.getPosition()),this.map.setZoom(16)),this.isPosAvailable(b)&&(this.currentMarker&&this.currentMarker.setIcon(n.asset("https://www.interblue.pl//modules/sensbitfedex/views/img/marker.png")),this.currentMarker=a,this.currentMarker.setIcon(n.asset("https://www.interblue.pl//modules/sensbitfedex/views/img/marker_active.png"))),this.updateMarkerDescription(b)},a.prototype.unselectMarker=function(){this.currentMarker&&this.currentMarker.setIcon(n.asset("https://www.interblue.pl//modules/sensbitfedex/views/img/marker.png")),this.currentMarker=null,this.updateMarkerDescription(null)},a.prototype.errorMarker=function(a,b){console.error(b),this.currentMarker&&this.currentMarker.setIcon(n.asset("https://www.interblue.pl//modules/sensbitfedex/views/img/marker.png")),this.currentMarker=a,this.currentMarker.setIcon(n.asset("https://www.interblue.pl//modules/sensbitfedex/views/img/marker_active.png")),this.updateErrorDescription(a.get("operatorPretty"),a.get("code"),a.get("brandPretty"))},a.prototype.filterMarkers=function(a,b){var c=this.markerClusterer.getMarkers();this.markerClusterer.clearMarkers();for(var d=0,e=0,f=c;e<f.length;e++){var g=f[e];g.setVisible(!1);for(var h=0,i=a;h<i.length;h++){var j=i[h];g.get("operator")==j&&(!b||b&&1==g.get("cod"))&&(g.setVisible(!0),d++)}}return this.markerClusterer.addMarkers(c,!0),this.markerClusterer.repaint(),this.isCurrentVisible()||this.selectPointCallback(),0==c.length?-1:d},a.prototype.getAvailableOperators=function(){for(var a=[],b=function(b){var c=b.get("operator");e(a,function(a){return a==c})||a.push(c)},c=0,d=this.markerClusterer.getMarkers();c<d.length;c++){var f=d[c];b(f)}return a},a.prototype.isCurrentVisible=function(){return!!this.currentMarker&&this.currentMarker.getVisible()},a.prototype.createMarker=function(b){var c=this,d=new google.maps.LatLng(b.latitude,b.longitude),e=new google.maps.Marker({position:d,map:this.map,icon:this.isPosAvailable(b)?n.asset("https://www.interblue.pl//modules/sensbitfedex/views/img/marker.png"):n.asset("images/markers/marker_disabled.png")});e.setValues({posId:j(b),operator:b.operator,operatorPretty:b.operatorPretty,brandPretty:b.brandPretty,code:b.code,cod:b.cod});var f;return e.addListener("spider_click",function(){c.selectPointCallback(e)}),e.addListener("mouseover",function(){c.isPosAvailable(b)&&e.setIcon(n.asset("https://www.interblue.pl//modules/sensbitfedex/views/img/marker_active.png")),f=new c.siw({marker:e,offset:{left:"25px"},border:!1,pointer:!1,placement:"right",showCloseButton:!1,closeWhenOthersOpen:!0,openOnMarkerClick:!1,panOnOpen:!1}),f.setContent(a.createMarkerShortDescription(b)),f.open(),setTimeout(function(){h(document.getElementsByClassName("si-wrapper-right")[0],"active")},50)}),e.addListener("mouseout",function(){e!=c.currentMarker&&c.isPosAvailable(b)&&e.setIcon(n.asset("https://www.interblue.pl//modules/sensbitfedex/views/img/marker.png")),f&&f.destroy()}),e.setVisible(!1),e},a.createErrorDescription=function(a,b,c){var d=n.asset("images/icons/icon_anuluj.svg"),e=n.submitButton(!1);return'\n <div class="bp-point-desc">\n <div class="bp-point-desc-header">\n <div class="bp-point-desc-header-top">\n <div class="bp-point-desc-header-top-button">\n </div>\n </div>\n <div class="bp-point-desc-point-block">\n <div class="bp-point-desc-point-block-brand">\n '+c+'\n </div>\n <div class="bp-point-desc-point-block-code">\n '+b+'\n </div>\n </div>\n <div class="bp-point-desc-point-block-close">\n <img src="'+d+'">\n </div>\n </div>\n <div class="bp-point-desc-description-row">\n <div class="bp-point-desc-description-row-content">\n <span>Wybrany punkt nie jest w tym momencie dostępny</span>\n </div>\n </div>\n <div class="bp-point-desc-submit-row">\n <div class="bp-point-desc-submit-row-submit-button centered">\n '+e+'\n </div>\n </div>\n <div class="bp-point-desc-operator-row">\n Punkt obsługuje: '+a+"\n </div>\n </div>\n "},a.prototype.createMarkerDescription=function(a){var b=n.brandLogo(a.brand),c=a.brandPretty,e=a.operatorPretty,f=a.description?'<div class="bp-point-desc-description-row-content">'+a.description+"</div>":"",g=n.posTags(a),h=n.addressDescription(a),i=n.parcelPrice(d(this.operators,function(b){return b.operator==a.operator})),j=n.openingHoursDescription(a),k=""!=i,l=n.submitButtonOrText(k,this.isPosAvailable(a)),m=n.asset("images/icons/icon_anuluj.svg"),o=k?"bp-point-desc-submit-row-submit-button":"bp-point-desc-submit-row-submit-button centered";return'\n <div class="bp-point-desc">\n <div class="bp-point-desc-header">\n <div class="bp-point-desc-header-top">\n <div class="bp-point-desc-header-top-button">\n </div>\n </div>\n <div class="bp-point-desc-point-block">\n <div class="bp-point-desc-point-block-brand">\n '+c+'\n </div>\n <div class="bp-point-desc-point-block-code">\n '+a.code+'\n </div>\n </div>\n <div class="bp-point-desc-point-block-close">\n <img src="'+m+'">\n </div>\n </div>\n <div class="bp-point-desc-address-row">\n <div class="bp-point-desc-address-row-address">\n '+h+'\n </div>\n <div class="bp-point-desc-address-row-brand">\n '+b+'\n </div>\n </div>\n <div class="bp-point-desc-submit-row">\n <div class="bp-point-desc-submit-row-price">\n '+i+'\n </div>\n <div class="'+o+'">\n '+l+'\n </div>\n </div>\n <div class="bp-point-desc-description-row">\n '+f+'\n </div>\n <div class="bp-point-desc-opening-hours-row">\n '+j+'\n </div>\n <div class="bp-point-desc-tags-row">\n '+g+'\n </div>\n <div class="bp-point-desc-operator-row">\n Punkt obsługuje: '+e+"\n </div>\n </div>\n "},a.createMarkerShortDescription=function(a){var b=n.brandLogo(a.brand),c=a.brandPretty,d=a.operatorPretty;return'\n <div class="bp-marker-desc">\n <div class="bp-brand-logo-wrapper">\n <div class="bp-brand-logo">'+b+'</div>\n </div>\n <div class="bp-marker-desc-operator-block-wrapper">\n <div class="bp-marker-desc-operator-block">\n <div class="bp-marker-desc-brand">'+c+'</div>\n <div class="bp-marker-desc-operator">'+d+"</div>\n </div>\n </div>\n </div>\n "},a.prototype.showMarkerDescription=function(){i(this.posListElement,"bp-info-hidden")},a.prototype.hideMarkerDescription=function(){h(this.posListElement,"bp-info-hidden")},a.displayPointDescription=function(){return'\n <div id="SensbitFedexMapWidgetPOSInfoContent" class="bp-pos-info-content"></div>\n '},a.prototype.updateMarkerDescription=function(a){if(a){var b=this.createMarkerDescription(a);this.updateMarkerDescriptionWithTemplate(b,a)}else this.hideMarkerDescription(),this.cleanup()},a.prototype.updateErrorDescription=function(b,c,d){var e=a.createErrorDescription(b,c,d);this.updateMarkerDescriptionWithTemplate(e,null),a.submitButton().disabled=!0},a.prototype.updateMarkerDescriptionWithTemplate=function(a,b){var c=this;this.showMarkerDescription();var d=document.createElement("DIV");d.className="bp-pos-info-element",d.id="SensbitFedexMapWidgetPOSInfoElement",d.innerHTML=a,b&&this.isPosAvailable(b)&&d.getElementsByClassName("bp-map-submit-button")[0].addEventListener("click",function(a){a.stopPropagation(),a.cancelBubble=!0,c.submitPointCallback(b)}),d.getElementsByClassName("bp-point-desc-point-block-close")[0].addEventListener("click",function(a){a.stopPropagation(),a.cancelBubble=!0,c.unselectMarker(),i(c.posListElement,"open")}),d.getElementsByClassName("bp-point-desc-header")[0].addEventListener("click",function(a){a.stopPropagation(),a.cancelBubble=!0,g(c.posListElement,"open")?i(c.posListElement,"open"):h(c.posListElement,"open")}),delete Hammer.defaults.cssProps.userSelect,this.hammerTime=new Hammer(d.getElementsByClassName("bp-point-desc-header")[0]),this.hammerTime.get("swipe").set({direction:Hammer.DIRECTION_VERTICAL}),this.hammerTime.on("swipeup",function(){g(c.posListElement,"open")||h(c.posListElement,"open")}),this.hammerTime.on("swipedown",function(){g(c.posListElement,"open")&&i(c.posListElement,"open")}),this.findPosElement()?this.posListContentElement.replaceChild(d,this.findPosElement()):this.posListContentElement.appendChild(d)},a.prototype.cleanup=function(){var a=this;this.findPosElement()&&setTimeout(function(){a.findPosElement().outerHTML=""},200)},Object.defineProperty(a.prototype,"posListElement",{get:function(){return document.getElementById("SensbitFedexMapWidgetPOSInfo")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"posListContentElement",{get:function(){return document.getElementById("SensbitFedexMapWidgetPOSInfoContent")},enumerable:!0,configurable:!0}),a.prototype.findPosElement=function(){return document.getElementById("SensbitFedexMapWidgetPOSInfoElement")},a.submitButton=function(){return document.getElementsByClassName("bp-map-submit-button").item(0)},a.prototype.isPosAvailable=function(a){return a.available||!this.posAvailableHandling(a)},a.prototype.posAvailableHandling=function(a){return this.POS_AVAILABLE_HANDLING_OPERATORS.some(function(b){return b===a.operator})},a}(),r=function(){function a(){this.searchInputs=[],this.searchCallback=function(){}}return a.prototype.init=function(a,b){this.map=a,this.places=new google.maps.places.PlacesService(this.map),this.searchCallback=b||this.searchCallback},a.prototype.initAutocomplete=function(a){var b=this,c=new google.maps.places.Autocomplete(a,{componentRestrictions:{country:"pl"}});c.addListener("place_changed",function(){var d=c.getPlace();d.geometry?b.handleSearchResult(d,a.value):b.search(d.name)}),this.searchInputs.push(a)},a.prototype.search=function(a){var b=this;this.places.textSearch({query:a,bounds:new google.maps.LatLngBounds(new google.maps.LatLng(49.02317,14.544465),new google.maps.LatLng(54.763658,23.828641))},function(c){c&&c.length?b.handleSearchResult(c[0],a):console.warn("no place found for query:",a)})},a.prototype.handleSearchResult=function(a,b){this.changeMapBounds(a),this.updateInputsValue(b),this.searchCallback(b)},a.prototype.changeMapBounds=function(a){var b=new google.maps.LatLngBounds,c=!1;a.geometry.viewport?b.union(a.geometry.viewport):(b.extend(a.geometry.location),c=!0),this.map.fitBounds(b),c&&this.map.setZoom(this.map.getZoom()-6)},a.prototype.updateInputsValue=function(a){for(var b=0,c=this.searchInputs;b<c.length;b++){var d=c[b];d.value=a}},a}(),s=function(){function a(){var a=this;this.searchMyLocation=function(){a.userDataQuery&&a.places.search(a.userDataQuery)},this.findMe=function(){navigator.geolocation.getCurrentPosition(function(b){a.map.setZoom(15),a.map.setCenter({lat:b.coords.latitude,lng:b.coords.longitude})})}}return a.prototype.init=function(a,b,c){this.map=a,this.places=b,this.userDataQuery=c,this.searchElement.innerHTML=this.display(),this.places.initAutocomplete(document.getElementById("SensbitFedexMapWidgetAutocomplete")),this.initButtons()},a.prototype.initButtons=function(){this.userDataQuery?document.getElementById("BPMyLocation").addEventListener("click",this.searchMyLocation):document.getElementById("BPMyLocation").style.display="none",navigator.geolocation&&this.secureLocation()?(document.getElementById("BPFindMe").addEventListener("click",this.findMe),document.getElementById("BPFindMeRWD").addEventListener("click",this.findMe)):(document.getElementById("BPFindMe").style.display="none",document.getElementById("BPFindMeRWD").style.display="none")},Object.defineProperty(a.prototype,"searchElement",{get:function(){return document.getElementById("SensbitFedexMapWidgetSearch")},enumerable:!0,configurable:!0}),a.prototype.display=function(){var a=n.asset("images/icons/icon_home.svg"),b=n.asset("images/icons/icon_target.svg"),c=n.asset("images/icons/icon_filter.svg");return'\n <div class="bp-search-wrapper">\n <div class="bp-search-buttons">\n <div class="bp-search-panel-button" id="BPMyLocation" data-test="my-location">\n <div>\n <img class="bp-search-panel-button-icon" src="'+a+'"/>\n </div>\n <div class="bp-search-button-label">\n Mój adres\n </div>\n </div>\n <div class="bp-search-panel-button" id="BPFindMe" data-test="find-me">\n <div>\n <img class="bp-search-panel-button-icon" src="'+b+'"/>\n </div>\n <div class="bp-search-button-label">\n Znajdź mnie\n </div>\n </div>\n <div class="bp-search-panel-button-hidden" id="SensbitFedexMapWidgetFiltersButton" data-test="filters">\n <div>\n <img class="bp-search-panel-button-icon" src="'+c+'"/>\n </div>\n <div class="bp-search-button-label">\n Filtry\n </div>\n </div>\n </div>\n <div class="bp-search-box">\n <label for="SensbitFedexMapWidgetAutocomplete" class="bp-search-label">\n Szukaj w pobliżu lokalizacji:\n </label>\n <input id="SensbitFedexMapWidgetAutocomplete" class="bp-search-input"\n placeholder="Wpisz kod pocztowy, adres, ulicę, itp."\n data-test="map_search"\n type="text"/>\n </div>\n </div>\n '},a.prototype.secureLocation=function(){return"https:"===location.protocol||"localhost"===location.hostname||"127.0.0.1"===location.hostname},a}(),t=function(){function a(){var a=this;this.submit=function(b){a.http.countPointSelection(b.operator,b.code),a.options.callback&&a.options.callback({code:b.code,operator:b.operator,street:b.street,postalCode:b.postalCode,city:b.city,province:b.province,description:b.description,latitude:b.latitude,longitude:b.longitude,openingHoursMap:b.openingHoursMap,cod:b.cod,brand:b.brand})},this.updateRwd=function(){var b="bp-media-lg",c=a.rootElement;c.offsetWidth<=576?b="bp-media-xs":c.offsetWidth<=768?b="bp-media-sm":c.offsetWidth<=992&&(b="bp-media-md"),c.className=c.className.replace(/bp-media-(xs|sm|md|lg)/,b)},this.selectPoint=function(b,c){if(b){var d=b.get("posId");a.http.getPos(d,function(d){a.markers.selectMarker(b,d,c)},function(c){return a.markers.errorMarker(b,c)})}else a.markers.unselectMarker()}}return a.prototype.init=function(a,b){this.options=b,this.options.operators=this.options.operators||[{operator:"FEDEX"}],this.http=new m(b.testMode),a.innerHTML=this.display(),this.updateRwd(),SensbitFedexMapWidget.ResizeSensor(this.rootElement,this.updateRwd),this.createModules(),this.options.callback||(this.rootElement.className+=" bp-no-callback"),this.options.mapOnly&&h(this.rootElement,"map-only"),window.google&&google.maps?this.initMap():this.http.loadScript("https://maps.googleapis.com/maps/api/js?v=3.exp&key="+this.options.googleMapApiKey+"&libraries=places&language=pl®ion=PL&callback=SensbitFedexMapWidget.initMap")},a.prototype.initMap=function(){var a=this,b=this.createMapOptions(this.options.mapOptions);if(this.map=new google.maps.Map(document.getElementById("SensbitFedexMapWidgetMap"),b),this.options.readyCallback&&google.maps.event.addListenerOnce(this.map,"tilesloaded",this.options.readyCallback),this.markers.init(this.map,this.options.operators,this.selectPoint,this.submit),this.places.init(this.map,this.options.searchCallback),this.options.externalSearch&&this.places.initAutocomplete(this.options.externalSearch),this.options.initialAddress&&!this.options.selectedPos&&this.places.search(this.options.initialAddress),this.search&&this.search.init(this.map,this.places,this.options.userDataQuery),this.filters){var c={showFilter:!1,filterValue:this.options.codOnly};this.filters.init(this.options.operators,c),this.filters.onChange(function(){return a.updatePointsVisibility()})}this.updatePoints(function(){var b=a.options.selectedPos;if(b){var c=a.markers.findMarker(b);c&&a.selectPoint(c,!0)}var d=a.markers.getAvailableOperators();a.filters.updateFiltersDisplay(d),a.updatePointsVisibility()})},a.prototype.createModules=function(){this.markers=new q,this.places=new r,this.filters=new p,this.search=new s},a.prototype.createMapOptions=function(a){void 0===a&&(a={});var b={center:{lat:52.0693235,lng:19.4803114},zoom:6,styles:o.styles,mapTypeControl:!1,gestureHandling:"cooperative"};return a.center=a.center||b.center,a.zoom=void 0!==a.zoom?a.zoom:b.zoom,a.styles=a.styles||b.styles,a.mapTypeControl=void 0!==a.mapTypeControl?a.mapTypeControl:b.mapTypeControl,a.gestureHandling=void 0!==a.gestureHandling?a.gestureHandling:b.gestureHandling,a.fullscreenControl=!1,a},a.prototype.updatePoints=function(a){var b=this,c=this.getOperatorsToUpdate();return this.markers.clearMarkers(),c.length?void this.http.listPos(this.options.posType,c,function(c){b.markers.updateMarkers(c),b.hidePosLoader(),a()},function(a){console.error(a),b.hidePosLoader(),b.displayPosCount(-1)}):(console.warn("Operators array is empty"),void this.hidePosLoader())},a.prototype.setStatusMessage=function(a){var b=document.getElementById("BPPosCount");b.innerHTML=a},a.prototype.hidePosLoader=function(){var a=document.getElementById("BPPosLoader");h(a,"hide")},a.prototype.updatePointsVisibility=function(){var a=this.getOperatorsToUpdate(),b=this.getCodFilter(),c=this.markers.filterMarkers(a,b);this.displayPosCount(c)},a.prototype.displayPosCount=function(a){a>0?this.setStatusMessage(a+" punktów"):0==a?this.setStatusMessage("0 punktów"):this.setStatusMessage("Błąd ładowania punktów")},a.prototype.getOperatorsToUpdate=function(){return this.filters?this.filters.getValues():f(this.options.operators,function(a){return a.operator})},a.prototype.getCodFilter=function(){return this.filters.getCod()},Object.defineProperty(a.prototype,"rootElement",{get:function(){return document.getElementById("SensbitFedexMapWidget")},enumerable:!0,configurable:!0}),a.prototype.display=function(){var a=n.rwdButtons(),b=n.footer();return'\n <div id="SensbitFedexMapWidget" class="bp-media-lg bp-filters-collapsed">\n <div id="SensbitFedexMapWidgetSearch" class="bp-search-panel"></div>\n <div id="SensbitFedexMapWidgetFilters" class="bp-filters"></div>\n <div id="SensbitFedexMapWidgetMap" class="bp-map" data-test="map"></div>\n <div id="SensbitFedexMapWidgetPOSInfo" class="bp-pos-info bp-info-hidden"></div>\n <div id="SensbitFedexMapWidgetRWDButtons" class="bp-rwd-buttons">\n '+a+'\n </div>\n <div id="SensbitFedexMapWidgetFooter" class="bp-footer">\n '+b+"\n </div>\n </div>\n "},a}();return new t}(),function(){!function(a,b){"object"==typeof exports?module.exports=b():a.ResizeSensor=b()}(this,function(){function a(a,b){var c=Object.prototype.toString.call(a),d="[object Array]"===c||"[object NodeList]"===c||"[object HTMLCollection]"===c||"[object Object]"===c||"undefined"!=typeof jQuery&&a instanceof jQuery||"undefined"!=typeof Elements&&a instanceof Elements,e=0,f=a.length;if(d)for(;e<f;e++)b(a[e]);else b(a)}if("undefined"==typeof window)return null;var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(a){return window.setTimeout(a,20)},c=function(d,e){function f(){var a=[];this.add=function(b){a.push(b)};var b,c;this.call=function(){for(b=0,c=a.length;b<c;b++)a[b].call()},this.remove=function(d){var e=[];for(b=0,c=a.length;b<c;b++)a[b]!==d&&e.push(a[b]);a=e},this.length=function(){return a.length}}function g(a,b){return a.currentStyle?a.currentStyle[b]:window.getComputedStyle?window.getComputedStyle(a,null).getPropertyValue(b):a.style[b]}function h(a,c){if(a.resizedAttached){if(a.resizedAttached)return void a.resizedAttached.add(c)}else a.resizedAttached=new f,a.resizedAttached.add(c);a.resizeSensor=document.createElement("div"),a.resizeSensor.className="resize-sensor";var d="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",e="position: absolute; left: 0; top: 0; transition: 0s;";a.resizeSensor.style.cssText=d,a.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+d+'"><div style="'+e+'"></div></div><div class="resize-sensor-shrink" style="'+d+'"><div style="'+e+' width: 200%; height: 200%"></div></div>',a.appendChild(a.resizeSensor),"static"==g(a,"position")&&(a.style.position="relative");var h,i,j,k,l=a.resizeSensor.childNodes[0],m=l.childNodes[0],n=a.resizeSensor.childNodes[1],o=a.offsetWidth,p=a.offsetHeight,q=function(){m.style.width="100000px",m.style.height="100000px",l.scrollLeft=1e5,l.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5};q();var r=function(){i=0,h&&(o=j,p=k,a.resizedAttached&&a.resizedAttached.call())},s=function(){j=a.offsetWidth,k=a.offsetHeight,h=j!=o||k!=p,h&&!i&&(i=b(r)),q()},t=function(a,b,c){a.attachEvent?a.attachEvent("on"+b,c):a.addEventListener(b,c)};t(l,"scroll",s),t(n,"scroll",s)}a(d,function(a){h(a,e)}),this.detach=function(a){c.detach(d,a)}};return c.detach=function(b,c){a(b,function(a){a.resizedAttached&&"function"==typeof c&&(a.resizedAttached.remove(c),a.resizedAttached.length())||a.resizeSensor&&(a.contains(a.resizeSensor)&&a.removeChild(a.resizeSensor),delete a.resizeSensor,delete a.resizedAttached)})},c}),function(){var a,b,c,d,e,f={}.hasOwnProperty,g=[].slice;this.OverlappingMarkerSpiderfier=function(){function a(a,d){var e,g,j;this.map=a,null==d&&(d={}),null==this.constructor.N&&(this.constructor.N=!0,c=google.maps,b=c.event,h=c.MapTypeId,i.keepSpiderfied=!1,i.ignoreMapClick=!1,i.markersWontHide=!1,i.markersWontMove=!1,i.basicFormatEvents=!1,i.nearbyDistance=20,i.circleSpiralSwitchover=9,i.circleFootSeparation=23,i.circleStartAngle=k/12,i.spiralFootSeparation=26,i.spiralLengthStart=11,i.spiralLengthFactor=4,i.spiderfiedZIndex=c.Marker.MAX_ZINDEX+2e4,i.highlightedLegZIndex=c.Marker.MAX_ZINDEX+1e4,i.usualLegZIndex=c.Marker.MAX_ZINDEX+1,i.legWeight=1.5,i.legColors={usual:{},highlighted:{}},j=i.legColors.usual,g=i.legColors.highlighted,j[h.HYBRID]=j[h.SATELLITE]="#fff",g[h.HYBRID]=g[h.SATELLITE]="#f00",j[h.TERRAIN]=j[h.ROADMAP]="#444",g[h.TERRAIN]=g[h.ROADMAP]="#f00",this.constructor.j=function(a){return this.setMap(a)},this.constructor.j.prototype=new c.OverlayView,this.constructor.j.prototype.draw=function(){});for(e in d)f.call(d,e)&&(g=d[e],this[e]=g);this.g=new this.constructor.j(this.map),this.C(),this.c={},this.B=this.l=null,this.addListener("click",function(a,c){return b.trigger(a,"spider_click",c)}),this.addListener("format",function(a,c){return b.trigger(a,"spider_format",c)}),this.ignoreMapClick||b.addListener(this.map,"click",function(a){return function(){return a.unspiderfy()}}(this)),b.addListener(this.map,"maptypeid_changed",function(a){return function(){return a.unspiderfy()}}(this)),b.addListener(this.map,"zoom_changed",function(a){return function(){if(a.unspiderfy(),!a.basicFormatEvents)return a.h()}}(this))}var b,c,d,e,h,i,j,k,l;for(i=a.prototype,j=[a,i],d=0,e=j.length;d<e;d++)l=j[d],l.VERSION="1.0.3";return k=2*Math.PI,c=b=h=null,a.markerStatus={SPIDERFIED:"SPIDERFIED",SPIDERFIABLE:"SPIDERFIABLE",UNSPIDERFIABLE:"UNSPIDERFIABLE",UNSPIDERFIED:"UNSPIDERFIED"},i.C=function(){this.a=[],this.s=[]},i.addMarker=function(a,b){return a.setMap(this.map),this.trackMarker(a,b)},i.trackMarker=function(a,c){var d;return null!=a._oms?this:(a._oms=!0,d=[b.addListener(a,"click",function(b){return function(c){return b.V(a,c)}}(this))],this.markersWontHide||d.push(b.addListener(a,"visible_changed",function(b){return function(){return b.D(a,!1)}}(this))),this.markersWontMove||d.push(b.addListener(a,"position_changed",function(b){return function(){return b.D(a,!0)}}(this))),null!=c&&d.push(b.addListener(a,"spider_click",c)),this.s.push(d),this.a.push(a),this.basicFormatEvents?this.trigger("format",a,this.constructor.markerStatus.UNSPIDERFIED):(this.trigger("format",a,this.constructor.markerStatus.UNSPIDERFIABLE),this.h()),this)},i.D=function(a,b){if(!this.J&&!this.K)return null==a._omsData||!b&&a.getVisible()||this.unspiderfy(b?a:null),this.h()},i.getMarkers=function(){return this.a.slice(0)},i.removeMarker=function(a){return this.forgetMarker(a),a.setMap(null)},i.forgetMarker=function(a){var c,d,e,f,g;if(null!=a._omsData&&this.unspiderfy(),c=this.A(this.a,a),0>c)return this;for(g=this.s.splice(c,1)[0],d=0,e=g.length;d<e;d++)f=g[d],b.removeListener(f);return delete a._oms,this.a.splice(c,1),this.h(),this},i.removeAllMarkers=i.clearMarkers=function(){var a,b,c,d;for(d=this.getMarkers(),this.forgetAllMarkers(),a=0,b=d.length;a<b;a++)c=d[a],c.setMap(null);return this},i.forgetAllMarkers=function(){var a,c,d,e,f,g,h,i;for(this.unspiderfy(),i=this.a,a=c=0,d=i.length;c<d;a=++c){for(g=i[a],f=this.s[a],h=0,a=f.length;h<a;h++)e=f[h],b.removeListener(e);delete g._oms}return this.C(),this},i.addListener=function(a,b){var c;return(null!=(c=this.c)[a]?c[a]:c[a]=[]).push(b),this},i.removeListener=function(a,b){var c;return c=this.A(this.c[a],b),0>c||this.c[a].splice(c,1),this},i.clearListeners=function(a){return this.c[a]=[],this},i.trigger=function(){var a,b,c,d,e,f;for(b=arguments[0],a=2<=arguments.length?g.call(arguments,1):[],b=null!=(c=this.c[b])?c:[],f=[],d=0,e=b.length;d<e;d++)c=b[d],f.push(c.apply(null,a));return f},i.L=function(a,b){var d,e,f,g,h;for(g=this.circleFootSeparation*(2+a)/k,e=k/a,h=[],d=f=0;0<=a?f<a:f>a;d=0<=a?++f:--f)d=this.circleStartAngle+d*e,h.push(new c.Point(b.x+g*Math.cos(d),b.y+g*Math.sin(d)));return h},i.M=function(a,b){var d,e,f,g,h;for(g=this.spiralLengthStart,d=0,h=[],e=f=0;0<=a?f<a:f>a;e=0<=a?++f:--f)d+=this.spiralFootSeparation/g+5e-4*e,e=new c.Point(b.x+g*Math.cos(d),b.y+g*Math.sin(d)),g+=k*this.spiralLengthFactor/d,h.push(e);return h},i.V=function(a,b){var c,d,e,f,g,h,i,j,k;if((h=null!=a._omsData)&&this.keepSpiderfied||this.unspiderfy(),h||this.map.getStreetView().getVisible()||"GoogleEarthAPI"===this.map.getMapTypeId())return this.trigger("click",a,b);for(h=[],i=[],c=this.nearbyDistance,j=c*c,g=this.f(a.position),k=this.a,c=0,d=k.length;c<d;c++)e=k[c],null!=e.map&&e.getVisible()&&(f=this.f(e.position),this.i(f,g)<j?h.push({R:e,G:f}):i.push(e));return 1===h.length?this.trigger("click",a,b):this.W(h,i)},i.markersNearMarker=function(a,b){var c,d,e,f,g,h,i,j,k,l;if(null==b&&(b=!1),null==this.g.getProjection())throw"Must wait for 'idle' event on map before calling markersNearMarker";for(c=this.nearbyDistance,i=c*c,g=this.f(a.position),h=[],j=this.a,c=0,d=j.length;c<d&&(e=j[c],!(e!==a&&null!=e.map&&e.getVisible()&&(f=this.f(null!=(k=null!=(l=e._omsData)?l.v:void 0)?k:e.position),this.i(f,g)<i&&(h.push(e),b))));c++);return h},i.F=function(){var a,b,c,d,e,f,g,h,i,j,k;if(null==this.g.getProjection())throw"Must wait for 'idle' event on map before calling markersNearAnyOtherMarker";i=this.nearbyDistance,i*=i;var l;for(e=this.a,l=[],j=0,b=e.length;j<b;j++)d=e[j],l.push({H:this.f(null!=(a=null!=(c=d._omsData)?c.v:void 0)?a:d.position),b:!1});for(j=this.a,a=c=0,d=j.length;c<d;a=++c)if(b=j[a],null!=b.getMap()&&b.getVisible()&&(f=l[a],!f.b))for(k=this.a,b=h=0,e=k.length;h<e;b=++h)if(g=k[b],b!==a&&null!=g.getMap()&&g.getVisible()&&(g=l[b],(!(b<a)||g.b)&&this.i(f.H,g.H)<i)){f.b=g.b=!0;break}return l},i.markersNearAnyOtherMarker=function(){var a,b,c,d,e,f,g;for(e=this.F(),f=this.a,g=[],a=b=0,c=f.length;b<c;a=++b)d=f[a],e[a].b&&g.push(d);return g},i.setImmediate=function(a){return window.setTimeout(a,0)},i.h=function(){if(!this.basicFormatEvents&&null==this.l)return this.l=this.setImmediate(function(a){return function(){return a.l=null,null!=a.g.getProjection()?a.w():null!=a.B?void 0:a.B=b.addListenerOnce(a.map,"idle",function(){return a.w()})}}(this))},i.w=function(){var a,b,c,d,e,f,g;if(this.basicFormatEvents){for(e=[],b=0,c=markers.length;b<c;b++)d=markers[b],a=null!=d._omsData?"SPIDERFIED":"UNSPIDERFIED",e.push(this.trigger("format",d,this.constructor.markerStatus[a]));return e}for(e=this.F(),f=this.a,g=[],a=c=0,b=f.length;c<b;a=++c)d=f[a],a=null!=d._omsData?"SPIDERFIED":e[a].b?"SPIDERFIABLE":"UNSPIDERFIABLE",g.push(this.trigger("format",d,this.constructor.markerStatus[a]));return g},i.P=function(a){return{m:function(b){return function(){return a._omsData.o.setOptions({strokeColor:b.legColors.highlighted[b.map.mapTypeId],zIndex:b.highlightedLegZIndex})}}(this),u:function(b){return function(){return a._omsData.o.setOptions({strokeColor:b.legColors.usual[b.map.mapTypeId],zIndex:b.usualLegZIndex})}}(this)}},i.W=function(a,d){var e,f,g,h,i,j,k,l,m,n;return this.J=!0,n=a.length,e=this.T(function(){var b,c,d;for(d=[],b=0,c=a.length;b<c;b++)l=a[b],d.push(l.G);return d}()),h=n>=this.circleSpiralSwitchover?this.M(n,e).reverse():this.L(n,e),e=function(){var d,e,l;for(l=[],d=0,e=h.length;d<e;d++)g=h[d],f=this.U(g),m=this.S(a,function(a){return function(b){return a.i(b.G,g)}}(this)),k=m.R,j=new c.Polyline({map:this.map,path:[k.position,f],strokeColor:this.legColors.usual[this.map.mapTypeId],strokeWeight:this.legWeight,zIndex:this.usualLegZIndex}),k._omsData={v:k.getPosition(),X:k.getZIndex(),o:j},this.legColors.highlighted[this.map.mapTypeId]!==this.legColors.usual[this.map.mapTypeId]&&(i=this.P(k),k._omsData.O={m:b.addListener(k,"mouseover",i.m),u:b.addListener(k,"mouseout",i.u)}),this.trigger("format",k,this.constructor.markerStatus.SPIDERFIED),k.setPosition(f),k.setZIndex(Math.round(this.spiderfiedZIndex+g.y)),l.push(k);return l}.call(this),delete this.J,this.I=!0,this.trigger("spiderfy",e,d)},i.unspiderfy=function(a){var c,d,e,f,g,h,i;if(null==a&&(a=null),null==this.I)return this;for(this.K=!0,i=[],g=[],h=this.a,c=0,d=h.length;c<d;c++)f=h[c],null!=f._omsData?(f._omsData.o.setMap(null),f!==a&&f.setPosition(f._omsData.v),f.setZIndex(f._omsData.X),e=f._omsData.O,null!=e&&(b.removeListener(e.m),b.removeListener(e.u)),delete f._omsData,f!==a&&(e=this.basicFormatEvents?"UNSPIDERFIED":"SPIDERFIABLE",this.trigger("format",f,this.constructor.markerStatus[e])),i.push(f)):g.push(f);return delete this.K,delete this.I,this.trigger("unspiderfy",i,g),this},i.i=function(a,b){var c,d;return c=a.x-b.x,d=a.y-b.y,c*c+d*d},i.T=function(a){var b,d,e,f,g;for(b=f=g=0,d=a.length;b<d;b++)e=a[b],f+=e.x,g+=e.y;return a=a.length,new c.Point(f/a,g/a)},i.f=function(a){return this.g.getProjection().fromLatLngToDivPixel(a)},i.U=function(a){return this.g.getProjection().fromDivPixelToLatLng(a)},i.S=function(a,b){var c,d,e,f,g,h;for(e=g=0,h=a.length;g<h;e=++g)f=a[e],f=b(f),("undefined"==typeof c||null===c||f<d)&&(d=f,c=e);return a.splice(c,1)[0]},i.A=function(a,b){var c,d,e,f;if(null!=a.indexOf)return a.indexOf(b);for(c=d=0,e=a.length;d<e;c=++d)if(f=a[c],f===b)return c;return-1},a}(),b=/(\?.*(&|&)|\?)spiderfier_callback=(\w+)/,a=document.currentScript,null==a&&(a=function(){var a,c,d,f,g;for(d=document.getElementsByTagName("script"),g=[],a=0,c=d.length;a<c;a++)e=d[a],null!=(f=e.getAttribute("src"))&&f.match(b)&&g.push(e);return g}()[0]),null!=a&&(a=null!=(c=a.getAttribute("src"))&&null!=(d=c.match(b))?d[3]:void 0)&&"function"==typeof window[a]&&window[a](),"function"==typeof window.spiderfier_callback&&window.spiderfier_callback()}.call(this),function(a,b){if("undefined"!=typeof exports)b(module,exports);else{var c={exports:{}};b(c,c.exports),a.SnazzyInfoWindow=c.exports}}(this,function(a,b){function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function f(a,b){a&&b&&Object.keys(b).forEach(function(c){a[c]=b[c]})}function g(a){var b={};return f(b,t),f(b,a),Object.keys(t).forEach(function(a){var c=t[a];if("object"===("undefined"==typeof c?"undefined":n(c))){var d={};f(d,c),f(d,b[a]),b[a]=d}}),b}function h(a,b){var c=/^(-{0,1}\.{0,1}\d+(\.\d+)?)[\s|\.]*(\w*)$/;if(a&&c.test(a)){var d=c.exec(a),e=d[1],f=d[3]||"px";return{value:1*e,units:f,original:a}}return b?h(b):{original:b}}function i(a,b){if(a){for(;a.firstChild;)a.removeChild(a.firstChild);b&&("string"==typeof b?a.innerHTML=b:a.appendChild(b))}}function j(a){return"top"===a?"bottom":"bottom"===a?"top":"left"===a?"right":"right"===a?"left":a}function k(a){return a.charAt(0).toUpperCase()+a.slice(1)}function l(a){if(void 0!==a&&null!==a){if(a instanceof google.maps.LatLng)return a;if(void 0!==a.lat&&void 0!==a.lng)return new google.maps.LatLng(a)}return null}Object.defineProperty(b,"__esModule",{value:!0});var m=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o="si-",p=1.41421356237,q=.7071067811865474,r="snazzy-info-window-",s={h:"0px",v:"3px",blur:"6px",spread:"0px",color:"#000"},t={placement:"top",pointer:!0,openOnMarkerClick:!0,closeOnMapClick:!0,closeWhenOthersOpen:!1,showCloseButton:!0,panOnOpen:!0,edgeOffset:{top:20,right:20,bottom:20,left:20}},u=function(a){function b(a){c(this,b);var e=d(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a));if("undefined"==typeof google)return console.warn("Snazzy Info Window: Google Maps is not defined!"),d(e);e._html=null,e._opts=g(a),e._callbacks=e._opts.callbacks||{},e._marker=e._opts.marker,e._map=e._opts.map,e._position=l(e._opts.position),e._isOpen=!1,e._listeners=[],e._marker&&e._opts.openOnMarkerClick&&e.trackListener(google.maps.event.addListener(e._marker,"click",function(){e.getMap()||e.open()}),!0),e._position&&!e._opts.offset&&(e._opts.offset={top:"0px",left:"0px"});var f=a.placement||e._opts.position;return("string"==typeof f||f instanceof String)&&(f=f.toLowerCase()),"top"!==f&&"bottom"!==f&&"left"!==f&&"right"!==f?e._opts.placement=t.placement:e._opts.placement=f,f=e._opts.position,void 0===f||null===f||"string"==typeof f||f instanceof String||(e._opts.position=f),void 0!==e._opts.border&&e._opts.border!==!0||(e._opts.border={}),void 0===e._opts.pointer&&(e._opts.pointer=t.pointer),void 0!==e._opts.shadow&&e._opts.shadow!==!0||(e._opts.shadow={}),e}return e(b,a),m(b,[{key:"activateCallback",value:function(a){var b=this._callbacks[a];return b?b.apply(this):void 0}},{key:"trackListener",value:function(a,b){this._listeners.push({listener:a,persistent:b})}},{key:"clearListeners",value:function(a){this._listeners&&(this._listeners.forEach(function(b){!a&&b.persistent||(google.maps.event.removeListener(b.listener),b.listener=null)}),this._listeners=this._listeners.filter(function(a){return null!=a.listener}))}},{key:"isOpen",value:function(){return this._isOpen}},{key:"open",value:function(){var a=this.activateCallback("beforeOpen");(void 0===a||a)&&(this._marker?this.setMap(this._marker.getMap()):this._map&&this._position&&this.setMap(this._map))}},{key:"close",value:function(){var a=this.activateCallback("beforeClose");(void 0===a||a)&&(this.clearListeners(),this.setMap(null))}},{key:"destroy",value:function(){this.getMap()&&this.setMap(null),this.clearListeners(!0)}},{key:"setContent",value:function(a){this._opts.content=a,this._html&&this._html.content&&i(this._html.content,a)}},{key:"setPosition",value:function(a){this._position=l(a),this._isOpen&&this._position&&(this.draw(),this.resize(),this.reposition())}},{key:"setWrapperClass",value:function(a){if(this._html&&this._html.wrapper){var b=this._html.wrapper;b.className=o+"wrapper-"+this._opts.placement,this._opts.border&&(b.className+=" "+o+"has-border"),a&&(b.className+=" "+a)}this._opts.wrapperClass=a}},{key:"getWrapper",value:function(){return this._html?this._html.wrapper:null}},{key:"draw",value:function(){if(this.getMap()&&this._html&&(this._marker||this._position)){var a=this._opts.offset;a&&(a.left&&(this._html.wrapper.style.marginLeft=a.left),a.top&&(this._html.wrapper.style.marginTop=a.top));var b=this._opts.backgroundColor;if(b&&(this._html.contentWrapper.style.backgroundColor=b,this._opts.pointer&&(this._html.pointerBg.style["border"+k(this._opts.placement)+"Color"]=b)),this._opts.padding&&(this._html.contentWrapper.style.padding=this._opts.padding,this._opts.shadow&&(this._html.shadowFrame.style.padding=this._opts.padding)),this._opts.borderRadius&&(this._html.contentWrapper.style.borderRadius=this._opts.borderRadius,this._opts.shadow&&(this._html.shadowFrame.style.borderRadius=this._opts.borderRadius)),this._opts.fontSize&&(this._html.wrapper.style.fontSize=this._opts.fontSize),this._opts.fontColor&&(this._html.contentWrapper.style.color=this._opts.fontColor),this._opts.pointer&&this._opts.pointer!==!0&&(this._opts.shadow&&(this._html.shadowPointer.style.width=this._opts.pointer,this._html.shadowPointer.style.height=this._opts.pointer),this._html.pointerBorder&&(this._html.pointerBorder.style.borderWidth=this._opts.pointer),this._html.pointerBg.style.borderWidth=this._opts.pointer),this._opts.border){var c=0;if(void 0!==this._opts.border.width&&(c=h(this._opts.border.width,"0px"),this._html.contentWrapper.style.borderWidth=c.value+c.units),c=Math.round((this._html.contentWrapper.offsetWidth-this._html.contentWrapper.clientWidth)/2),c=h(c+"px","0px"),this._opts.pointer){var d=Math.min(this._html.pointerBorder.offsetHeight,this._html.pointerBorder.offsetWidth);d=h(d+"px","0px");var e=Math.round(c.value*(p-1));e=Math.min(e,d.value),this._html.pointerBg.style.borderWidth=d.value-e+d.units;var f=k(j(this._opts.placement));this._html.pointerBg.style["margin"+f]=e+c.units,this._html.pointerBg.style[this._opts.placement]=-c.value+c.units}var g=this._opts.border.color;g&&(this._html.contentWrapper.style.borderColor=g,this._html.pointerBorder&&(this._html.pointerBorder.style["border"+k(this._opts.placement)+"Color"]=g))}if(this._opts.shadow){var i=this._opts.shadow,l=function(a){var b=i[a];return void 0!==b&&null!=b};if(l("h")||l("v")||l("blur")||l("spread")||l("color")){var m=h(i.h,s.h),n=h(i.v,s.v),o=h(i.blur,s.blur),t=h(i.spread,s.spread),u=i.color||s.color,v=function(a,b){return a+" "+b+" "+o.original+" "+t.original+" "+u};this._html.shadowFrame.style.boxShadow=v(m.original,n.original);var w=q*(m.value-n.value)+m.units,x=q*(m.value+n.value)+n.units;this._html.shadowPointerInner&&(this._html.shadowPointerInner.style.boxShadow=v(w,x))}this._opts.shadow.opacity&&(this._html.shadowWrapper.style.opacity=this._opts.shadow.opacity)}var y=this.getProjection().fromLatLngToDivPixel(this._position||this._marker.position);y&&(this._html.floatWrapper.style.top=Math.floor(y.y)+"px",this._html.floatWrapper.style.left=Math.floor(y.x)+"px"),this._isOpen||(this._isOpen=!0,this.resize(),this.reposition(),this.activateCallback("afterOpen"),google.maps.event.trigger(this.getMap(),r+"opened",this))}}},{key:"onAdd",value:function(){var a=this;if(!this._html){var b=function(a,b){if(a&&b)for(var c=0;c<b.length;c++){var d=b[c];d&&(a.className&&(a.className+=" "),a.className+=o+d)}},c=function(){for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];var e=document.createElement("div");return b(e,c),e};if(this._html={},this._html.wrapper=c(),this.setWrapperClass(this._opts.wrapperClass),this._opts.shadow&&(this._html.shadowWrapper=c("shadow-wrapper-"+this._opts.placement),this._html.shadowFrame=c("frame","shadow-frame"),this._html.shadowWrapper.appendChild(this._html.shadowFrame),this._opts.pointer&&(this._html.shadowPointer=c("shadow-pointer-"+this._opts.placement),this._html.shadowPointerInner=c("shadow-inner-pointer-"+this._opts.placement),this._html.shadowPointer.appendChild(this._html.shadowPointerInner),this._html.shadowWrapper.appendChild(this._html.shadowPointer)),this._html.wrapper.appendChild(this._html.shadowWrapper)),this._html.contentWrapper=c("frame","content-wrapper"),this._html.content=c("content"),this._opts.content&&i(this._html.content,this._opts.content),this._opts.showCloseButton){if(this._opts.closeButtonMarkup){var d=document.createElement("div");i(d,this._opts.closeButtonMarkup),this._html.closeButton=d.firstChild}else this._html.closeButton=document.createElement("button"),this._html.closeButton.setAttribute("type","button"),this._html.closeButton.innerHTML="×",b(this._html.closeButton,["close-button"]);this._html.contentWrapper.appendChild(this._html.closeButton)}this._html.contentWrapper.appendChild(this._html.content),this._html.wrapper.appendChild(this._html.contentWrapper),this._opts.pointer&&(this._opts.border&&(this._html.pointerBorder=c("pointer-"+this._opts.placement,"pointer-border-"+this._opts.placement),this._html.wrapper.appendChild(this._html.pointerBorder)),this._html.pointerBg=c("pointer-"+this._opts.placement,"pointer-bg-"+this._opts.placement),this._html.wrapper.appendChild(this._html.pointerBg)),this._html.floatWrapper=c("float-wrapper"),this._html.floatWrapper.appendChild(this._html.wrapper),this.getPanes().floatPane.appendChild(this._html.floatWrapper);var e=this.getMap();this.clearListeners(),this._opts.closeOnMapClick&&this.trackListener(google.maps.event.addListener(e,"click",function(){a.close()})),this._opts.closeWhenOthersOpen&&this.trackListener(google.maps.event.addListener(e,r+"opened",function(b){a!==b&&a.close()})),this._previousWidth=null,this._previousHeight=null,this.trackListener(google.maps.event.addListener(e,"bounds_changed",function(){var b=e.getDiv(),c=b.offsetWidth,d=b.offsetHeight,f=a._previousWidth,g=a._previousHeight;null!==f&&null!==g&&f===c&&g===d||(a._previousWidth=c,a._previousHeight=d,a.resize())})),this._marker&&this.trackListener(google.maps.event.addListener(this._marker,"position_changed",function(){a.draw()})),this._opts.showCloseButton&&!this._opts.closeButtonMarkup&&this.trackListener(google.maps.event.addDomListener(this._html.closeButton,"click",function(b){b.cancelBubble=!0,b.stopPropagation&&b.stopPropagation(),a.close()}));var f=["click","dblclick","rightclick","contextmenu","drag","dragend","dragstart","mousedown","mouseout","mouseover","mouseup","touchstart","touchend","touchmove","wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"];f.forEach(function(b){a.trackListener(google.maps.event.addDomListener(a._html.wrapper,b,function(a){a.cancelBubble=!0,a.stopPropagation&&a.stopPropagation()}))}),this.activateCallback("open")}}},{key:"onRemove",value:function(){if(this.activateCallback("close"),this._html){var a=this._html.floatWrapper.parentElement;a&&a.removeChild(this._html.floatWrapper),this._html=null}this._isOpen=!1,this.activateCallback("afterClose")}},{key:"getMapInnerBounds",value:function(){var a=this.getMap().getDiv().getBoundingClientRect(),b={top:a.top+this._opts.edgeOffset.top,right:a.right-this._opts.edgeOffset.right,bottom:a.bottom-this._opts.edgeOffset.bottom,left:a.left+this._opts.edgeOffset.left};return b.width=b.right-b.left,b.height=b.bottom-b.top,b}},{key:"reposition",value:function(){if(this._opts.panOnOpen&&this._html){var a=this.getMapInnerBounds(),b=this._html.wrapper.getBoundingClientRect(),c=0,d=0;a.left>=b.left?c=b.left-a.left:a.right<=b.right&&(c=b.left-(a.right-b.width)),a.top>=b.top?d=b.top-a.top:a.bottom<=b.bottom&&(d=b.top-(a.bottom-b.height)),0===c&&0===d||this.getMap().panBy(c,d)}}},{key:"resize",value:function(){if(this._html){var a=this.getMapInnerBounds(),b=a.width;void 0!==this._opts.maxWidth&&(b=Math.min(b,this._opts.maxWidth)),b-=this._html.wrapper.offsetWidth-this._html.content.offsetWidth,this._html.content.style.maxWidth=b+"px";var c=a.height;void 0!==this._opts.maxHeight&&(c=Math.min(c,this._opts.maxHeight)),c-=this._html.wrapper.offsetHeight-this._html.content.offsetHeight,this._html.content.style.maxHeight=c+"px"}}}]),b};b.default=u,a.exports=b.default}),!function(a,b,c,d){function e(a,b,c){return setTimeout(j(a,c),b)}function f(a,b,c){return!!Array.isArray(a)&&(g(a,c[b],c),!0)}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function h(b,c,d){var e="DEPRECATED METHOD: "+c+"\n"+d+" AT \n";return function(){var c=new Error("get-stack-trace"),d=c&&c.stack?c.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=a.console&&(a.console.warn||a.console.log);return f&&f.call(a.console,e,d),b.apply(this,arguments)}}function i(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&la(d,c)}function j(a,b){return function(){return a.apply(b,arguments)}}function k(a,b){return typeof a==oa?a.apply(b?b[0]||d:d,b):a}function l(a,b){return a===d?b:a}function m(a,b,c){g(q(b),function(b){a.addEventListener(b,c,!1)})}function n(a,b,c){g(q(b),function(b){a.removeEventListener(b,c,!1)})}function o(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function p(a,b){return a.indexOf(b)>-1}function q(a){return a.trim().split(/\s+/g)}function r(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function s(a){return Array.prototype.slice.call(a,0)}function t(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];r(e,g)<0&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function u(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g<ma.length;){if(c=ma[g],e=c?c+f:b,e in a)return e;g++}return d}function v(){return ua++}function w(b){var c=b.ownerDocument||b;return c.defaultView||c.parentWindow||a}function x(a,b){var c=this;this.manager=a,this.callback=b,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(b){k(a.options.enable,[a])&&c.handler(b)},this.init()}function y(a){var b,c=a.options.inputClass;return new(b=c?c:xa?M:ya?P:wa?R:L)(a,z)}function z(a,b,c){var d=c.pointers.length,e=c.changedPointers.length,f=b&Ea&&d-e===0,g=b&(Ga|Ha)&&d-e===0;c.isFirst=!!f,c.isFinal=!!g,f&&(a.session={}),c.eventType=b,A(a,c),a.emit("hammer.input",c),a.recognize(c),a.session.prevInput=c}function A(a,b){var c=a.session,d=b.pointers,e=d.length;c.firstInput||(c.firstInput=D(b)),e>1&&!c.firstMultiple?c.firstMultiple=D(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=E(d);b.timeStamp=ra(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=I(h,i),b.distance=H(h,i),B(c,b),b.offsetDirection=G(b.deltaX,b.deltaY);var j=F(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=qa(j.x)>qa(j.y)?j.x:j.y,b.scale=g?K(g.pointers,d):1,b.rotation=g?J(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,C(c,b);var k=a.element;o(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function B(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};b.eventType!==Ea&&f.eventType!==Ga||(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function C(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Ha&&(i>Da||h.velocity===d)){var j=b.deltaX-h.deltaX,k=b.deltaY-h.deltaY,l=F(i,j,k);e=l.x,f=l.y,c=qa(l.x)>qa(l.y)?l.x:l.y,g=G(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function D(a){for(var b=[],c=0;c<a.pointers.length;)b[c]={clientX:pa(a.pointers[c].clientX),clientY:pa(a.pointers[c].clientY)},c++;return{timeStamp:ra(),pointers:b,center:E(b),deltaX:a.deltaX,deltaY:a.deltaY}}function E(a){var b=a.length;if(1===b)return{x:pa(a[0].clientX),y:pa(a[0].clientY)};for(var c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:pa(c/b),y:pa(d/b)}}function F(a,b,c){return{x:b/a||0,y:c/a||0}}function G(a,b){return a===b?Ia:qa(a)>=qa(b)?0>a?Ja:Ka:0>b?La:Ma}function H(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function I(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function J(a,b){return I(b[1],b[0],Ra)+I(a[1],a[0],Ra)}function K(a,b){return H(b[0],b[1],Ra)/H(a[0],a[1],Ra)}function L(){this.evEl=Ta,this.evWin=Ua,this.pressed=!1,x.apply(this,arguments)}function M(){this.evEl=Xa,this.evWin=Ya,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=$a,this.evWin=_a,this.started=!1,x.apply(this,arguments)}function O(a,b){var c=s(a.touches),d=s(a.changedTouches);return b&(Ga|Ha)&&(c=t(c.concat(d),"identifier",!0)),[c,d]}function P(){this.evTarget=bb,this.targetIds={},x.apply(this,arguments)}function Q(a,b){var c=s(a.touches),d=this.targetIds;if(b&(Ea|Fa)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=s(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return o(a.target,i)}),b===Ea)for(e=0;e<f.length;)d[f[e].identifier]=!0,e++;for(e=0;e<g.length;)d[g[e].identifier]&&h.push(g[e]),b&(Ga|Ha)&&delete d[g[e].identifier],e++;return h.length?[t(f.concat(h),"identifier",!0),h]:void 0}function R(){x.apply(this,arguments);var a=j(this.handler,this);this.touch=new P(this.manager,a),this.mouse=new L(this.manager,a),this.primaryTouch=null,this.lastTouches=[]}function S(a,b){a&Ea?(this.primaryTouch=b.changedPointers[0].identifier,T.call(this,b)):a&(Ga|Ha)&&T.call(this,b)}function T(a){var b=a.changedPointers[0];if(b.identifier===this.primaryTouch){var c={x:b.clientX,y:b.clientY};this.lastTouches.push(c);var d=this.lastTouches,e=function(){var a=d.indexOf(c);a>-1&&d.splice(a,1)};setTimeout(e,cb)}}function U(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d<this.lastTouches.length;d++){var e=this.lastTouches[d],f=Math.abs(b-e.x),g=Math.abs(c-e.y);if(db>=f&&db>=g)return!0}return!1}function V(a,b){this.manager=a,this.set(b)}function W(a){if(p(a,jb))return jb;var b=p(a,kb),c=p(a,lb);return b&&c?jb:b||c?b?kb:lb:p(a,ib)?ib:hb}function X(){if(!fb)return!1;var b={},c=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(d){b[d]=!c||a.CSS.supports("touch-action",d)}),b}function Y(a){this.options=la({},this.defaults,a||{}),this.id=v(),this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=nb,this.simultaneous={},this.requireFail=[]}function Z(a){return a&sb?"cancel":a&qb?"end":a&pb?"move":a&ob?"start":""}function $(a){return a==Ma?"down":a==La?"up":a==Ja?"left":a==Ka?"right":""}function _(a,b){var c=b.manager;return c?c.get(a):a}function aa(){Y.apply(this,arguments)}function ba(){aa.apply(this,arguments),this.pX=null,this.pY=null}function ca(){aa.apply(this,arguments)}function da(){Y.apply(this,arguments),this._timer=null,this._input=null}function ea(){aa.apply(this,arguments)}function fa(){aa.apply(this,arguments)}function ga(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ha(a,b){return b=b||{},b.recognizers=l(b.recognizers,ha.defaults.preset),new ia(a,b)}function ia(a,b){this.options=la({},ha.defaults,b||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=y(this),this.touchAction=new V(this,this.options.touchAction),ja(this,!0),g(this.options.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function ja(a,b){var c=a.element;if(c.style){var d;g(a.options.cssProps,function(e,f){d=u(c.style,f),b?(a.oldCssProps[d]=c.style[d],c.style[d]=e):c.style[d]=a.oldCssProps[d]||""}),b||(a.oldCssProps={})}}function ka(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var la,ma=["","webkit","Moz","MS","ms","o"],na=b.createElement("div"),oa="function",pa=Math.round,qa=Math.abs,ra=Date.now;la="function"!=typeof Object.assign?function(a){if(a===d||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;c<arguments.length;c++){var e=arguments[c];if(e!==d&&null!==e)for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])}return b}:Object.assign;var sa=h(function(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a},"extend","Use `assign`."),ta=h(function(a,b){return sa(a,b,!0)},"merge","Use `assign`."),ua=1,va=/mobile|tablet|ip(ad|hone|od)|android/i,wa="ontouchstart"in a,xa=u(a,"PointerEvent")!==d,ya=wa&&va.test(navigator.userAgent),za="touch",Aa="pen",Ba="mouse",Ca="kinect",Da=25,Ea=1,Fa=2,Ga=4,Ha=8,Ia=1,Ja=2,Ka=4,La=8,Ma=16,Na=Ja|Ka,Oa=La|Ma,Pa=Na|Oa,Qa=["x","y"],Ra=["clientX","clientY"];x.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(w(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&n(this.element,this.evEl,this.domHandler),this.evTarget&&n(this.target,this.evTarget,this.domHandler),this.evWin&&n(w(this.element),this.evWin,this.domHandler)}};var Sa={mousedown:Ea,mousemove:Fa,mouseup:Ga},Ta="mousedown",Ua="mousemove mouseup";i(L,x,{handler:function(a){var b=Sa[a.type];b&Ea&&0===a.button&&(this.pressed=!0),b&Fa&&1!==a.which&&(b=Ga),this.pressed&&(b&Ga&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:Ba,srcEvent:a}))}});var Va={pointerdown:Ea,pointermove:Fa,pointerup:Ga,pointercancel:Ha,pointerout:Ha},Wa={2:za,3:Aa,4:Ba,5:Ca},Xa="pointerdown",Ya="pointermove pointerup pointercancel";a.MSPointerEvent&&!a.PointerEvent&&(Xa="MSPointerDown",Ya="MSPointerMove MSPointerUp MSPointerCancel"),i(M,x,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms",""),e=Va[d],f=Wa[a.pointerType]||a.pointerType,g=f==za,h=r(b,a.pointerId,"pointerId");e&Ea&&(0===a.button||g)?0>h&&(b.push(a),h=b.length-1):e&(Ga|Ha)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Za={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},$a="touchstart",_a="touchstart touchmove touchend touchcancel";i(N,x,{handler:function(a){var b=Za[a.type];if(b===Ea&&(this.started=!0),this.started){var c=O.call(this,a,b);b&(Ga|Ha)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}}});var ab={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},bb="touchstart touchmove touchend touchcancel";i(P,x,{handler:function(a){var b=ab[a.type],c=Q.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}});var cb=2500,db=25;i(R,x,{handler:function(a,b,c){var d=c.pointerType==za,e=c.pointerType==Ba;if(!(e&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(d)S.call(this,b,c);else if(e&&U.call(this,c))return;this.callback(a,b,c)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var eb=u(na.style,"touchAction"),fb=eb!==d,gb="compute",hb="auto",ib="manipulation",jb="none",kb="pan-x",lb="pan-y",mb=X();V.prototype={set:function(a){a==gb&&(a=this.compute()),fb&&this.manager.element.style&&mb[a]&&(this.manager.element.style[eb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){k(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),W(a.join(" "))},preventDefaults:function(a){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=p(d,jb)&&!mb[jb],f=p(d,lb)&&!mb[lb],g=p(d,kb)&&!mb[kb];if(e){var h=1===a.pointers.length,i=a.distance<2,j=a.deltaTime<250;if(h&&i&&j)return}return g&&f?void 0:e||f&&c&Na||g&&c&Oa?this.preventSrc(b):void 0},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var nb=1,ob=2,pb=4,qb=8,rb=qb,sb=16,tb=32;Y.prototype={defaults:{},set:function(a){return la(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=_(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=_(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=_(a,this),-1===r(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=_(a,this);var b=r(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(b,a)}var c=this,d=this.state;qb>d&&b(c.options.event+Z(d)),b(c.options.event),a.additionalEvent&&b(a.additionalEvent),d>=qb&&b(c.options.event+Z(d))},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=tb)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(tb|nb)))return!1;a++}return!0},recognize:function(a){var b=la({},a);return k(this.options.enable,[this,b])?(this.state&(rb|sb|tb)&&(this.state=nb),this.state=this.process(b),void(this.state&(ob|pb|qb|sb)&&this.tryEmit(b))):(this.reset(),void(this.state=tb))},process:function(a){},getTouchAction:function(){},reset:function(){}},i(aa,Y,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(ob|pb),e=this.attrTest(a);return d&&(c&Ha||!e)?b|sb:d||e?c&Ga?b|qb:b&ob?b|pb:ob:tb}}),i(ba,aa,{defaults:{event:"pan",threshold:10,pointers:1,direction:Pa},getTouchAction:function(){var a=this.options.direction,b=[];return a&Na&&b.push(lb),a&Oa&&b.push(kb),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&Na?(e=0===f?Ia:0>f?Ja:Ka,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Ia:0>g?La:Ma,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return aa.prototype.attrTest.call(this,a)&&(this.state&ob||!(this.state&ob)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=$(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),i(ca,aa,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ob)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),i(da,Y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hb]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(Ga|Ha)&&!f)this.reset();else if(a.eventType&Ea)this.reset(),this._timer=e(function(){this.state=rb,this.tryEmit()},b.time,this);else if(a.eventType&Ga)return rb;return tb},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===rb&&(a&&a.eventType&Ga?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=ra(),this.manager.emit(this.options.event,this._input)))}}),i(ea,aa,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ob)}}),i(fa,aa,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Na|Oa,pointers:1},getTouchAction:function(){return ba.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Na|Oa)?b=a.overallVelocity:c&Na?b=a.overallVelocityX:c&Oa&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&qa(b)>this.options.velocity&&a.eventType&Ga},emit:function(a){var b=$(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),i(ga,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ib]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime<b.time;if(this.reset(),a.eventType&Ea&&0===this.count)return this.failTimeout();if(d&&f&&c){if(a.eventType!=Ga)return this.failTimeout();var g=!this.pTime||a.timeStamp-this.pTime<b.interval,h=!this.pCenter||H(this.pCenter,a.center)<b.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,h&&g?this.count+=1:this.count=1,this._input=a;var i=this.count%b.taps;if(0===i)return this.hasRequireFailures()?(this._timer=e(function(){this.state=rb,this.tryEmit()},b.interval,this),ob):rb}return tb},failTimeout:function(){return this._timer=e(function(){this.state=tb},this.options.interval,this),tb},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==rb&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ha.VERSION="2.0.7",ha.defaults={domEvents:!1,touchAction:gb,enable:!0,inputTarget:null,inputClass:null,preset:[[ea,{enable:!1}],[ca,{enable:!1},["rotate"]],[fa,{direction:Na}],[ba,{direction:Na},["swipe"]],[ga],[ga,{event:"doubletap",taps:2},["tap"]],[da]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ub=1,vb=2;ia.prototype={set:function(a){return la(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?vb:ub},recognize:function(a){var b=this.session;if(!b.stopped){this.touchAction.preventDefaults(a);var c,d=this.recognizers,e=b.curRecognizer;(!e||e&&e.state&rb)&&(e=b.curRecognizer=null);for(var f=0;f<d.length;)c=d[f],b.stopped===vb||e&&c!=e&&!c.canRecognizeWith(e)?c.reset():c.recognize(a),!e&&c.state&(ob|pb|qb)&&(e=b.curRecognizer=c),f++}},get:function(a){if(a instanceof Y)return a;for(var b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(f(a,"add",this))return this;var b=this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(f(a,"remove",this))return this;if(a=this.get(a)){var b=this.recognizers,c=r(b,a);-1!==c&&(b.splice(c,1),this.touchAction.update())}return this},on:function(a,b){if(a!==d&&b!==d){var c=this.handlers;return g(q(a),function(a){c[a]=c[a]||[],c[a].push(b)}),this}},off:function(a,b){if(a!==d){var c=this.handlers;return g(q(a),function(a){b?c[a]&&c[a].splice(r(c[a],b),1):delete c[a]}),this}},emit:function(a,b){this.options.domEvents&&ka(a,b);var c=this.handlers[a]&&this.handlers[a].slice();if(c&&c.length){b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()};for(var d=0;d<c.length;)c[d](b),d++}},destroy:function(){this.element&&ja(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},la(ha,{INPUT_START:Ea,INPUT_MOVE:Fa,INPUT_END:Ga,INPUT_CANCEL:Ha,STATE_POSSIBLE:nb,STATE_BEGAN:ob,STATE_CHANGED:pb,STATE_ENDED:qb,STATE_RECOGNIZED:rb,STATE_CANCELLED:sb,STATE_FAILED:tb,DIRECTION_NONE:Ia,DIRECTION_LEFT:Ja,DIRECTION_RIGHT:Ka,DIRECTION_UP:La,DIRECTION_DOWN:Ma,DIRECTION_HORIZONTAL:Na,DIRECTION_VERTICAL:Oa,DIRECTION_ALL:Pa,Manager:ia,Input:x,TouchAction:V,TouchInput:P,MouseInput:L,PointerEventInput:M,TouchMouseInput:R,SingleTouchInput:N,Recognizer:Y,AttrRecognizer:aa,Tap:ga,Pan:ba,Swipe:fa,Pinch:ca,Rotate:ea,Press:da,on:m,off:n,each:g,merge:ta,extend:sa,assign:la,inherit:i,bindFn:j,prefixed:u});var wb="undefined"!=typeof a?a:"undefined"!=typeof self?self:{};wb.Hammer=ha,"function"==typeof define&&define.amd?define(function(){return ha}):"undefined"!=typeof module&&module.exports?module.exports=ha:a[c]=ha}(window,document,"Hammer")}.bind(SensbitFedexMapWidget)()):console.error("SensbitFedexMapWidget already defined")}();(function(root,factory){if(typeof define==='function'&&define.amd){define(["jquery"],function(a0){return(factory(a0))})}else if(typeof exports==='object'){module.exports=factory(require("jquery"))}else{factory(jQuery)}}(this,function(jQuery){
|
||
/** File generated by Grunt -- do not modify
|
||
* JQUERY-FORM-VALIDATOR
|
||
*
|
||
* @version 2.3.44
|
||
* @website http://formvalidator.net/
|
||
* @author Victor Jonsson, http://victorjonsson.se
|
||
* @license MIT
|
||
*/
|
||
(function($,undefined){var disableFormSubmit=function(){return!1},HaltManager={numHalted:0,haltValidation:function($form){this.numHalted++;$.formUtils.haltValidation=!0;$form.unbind('submit',disableFormSubmit).bind('submit',disableFormSubmit).find('*[type="submit"]').addClass('disabled').attr('disabled','disabled')},unHaltValidation:function($form){this.numHalted--;if(this.numHalted===0){$.formUtils.haltValidation=!1;$form.unbind('submit',disableFormSubmit).find('*[type="submit"]').removeClass('disabled').removeAttr('disabled','disabled')}}};function AsyncValidation($form,$input){this.$form=$form;this.$input=$input;this.reset()}
|
||
AsyncValidation.prototype.reset=function(){this.haltedFormValidation=!1;this.hasRun=!1;this.isRunning=!1;this.result=undefined};AsyncValidation.prototype.run=function(eventContext,callback){if(eventContext==='keyup'){return null}else if(this.isRunning){if(!this.haltedFormValidation&&eventContext==='submit'){HaltManager.haltValidation();this.haltedFormValidation=!0}
|
||
return null}else if(this.hasRun){this.$input.one('keyup paste',this.reset.bind(this));return this.result}else{if(eventContext==='submit'){HaltManager.haltValidation(this.$form);this.haltedFormValidation=!0}
|
||
this.isRunning=!0;this.$input.attr('disabled','disabled').addClass('async-validation');this.$form.addClass('async-validation');callback(function(result){this.done(result)}.bind(this));return null}};AsyncValidation.prototype.done=function(result){this.result=result;this.hasRun=!0;this.isRunning=!1;this.$input.removeAttr('disabled').removeClass('async-validation');this.$form.removeClass('async-validation');if(this.haltedFormValidation){HaltManager.unHaltValidation(this.$form);this.$form.trigger('submit')}else{this.$input.trigger('validation.revalidate')}};$.formUtils=$.extend($.formUtils||{},{asyncValidation:function(validatorName,$input,$form){var asyncValidation,input=$input.get(0);if(!input.asyncValidators){input.asyncValidators={}}
|
||
if(input.asyncValidators[validatorName]){asyncValidation=input.asyncValidators[validatorName]}else{asyncValidation=new AsyncValidation($form,$input);input.asyncValidators[validatorName]=asyncValidation}
|
||
return asyncValidation}})})(jQuery);(function($,undefined){'use strict';$.fn.validateForm=function(language,conf){$.formUtils.warn('Use of deprecated function $.validateForm, use $.isValid instead');return this.isValid(language,conf,!0)};$(window).on('formValidationPluginInit',function(evt,config){convertDeprecatedLangCodeToISO6391(config);addSupportForCustomErrorMessageCallback(config);addSupportForElementReferenceInPositionParam(config)}).on('validatorsLoaded formValidationSetup',function(evt,$form){if(!$form){$form=$('form')}
|
||
addSupportForValidationDependingOnCheckedInput($form)});function addSupportForCustomErrorMessageCallback(config){if(config&&config.errorMessagePosition==='custom'&&typeof config.errorMessageCustom==='function'){$.formUtils.warn('Use of deprecated function errorMessageCustom, use config.submitErrorMessageCallback instead');config.submitErrorMessageCallback=function($form,errorMessages){config.errorMessageCustom($form,config.language.errorTitle,errorMessages,config)}}}
|
||
function addSupportForElementReferenceInPositionParam(config){if(config.errorMessagePosition&&typeof config.errorMessagePosition==='object'){$.formUtils.warn('Deprecated use of config parameter errorMessagePosition, use config.submitErrorMessageCallback instead');var $errorMessageContainer=config.errorMessagePosition;config.errorMessagePosition='top';config.submitErrorMessageCallback=function(){return $errorMessageContainer}}}
|
||
function addSupportForValidationDependingOnCheckedInput($form){var $inputsDependingOnCheckedInputs=$form.find('[data-validation-if-checked]');if($inputsDependingOnCheckedInputs.length){$.formUtils.warn('Detected use of attribute "data-validation-if-checked" which is '+'deprecated. Use "data-validation-depends-on" provided by module "logic"')}
|
||
$inputsDependingOnCheckedInputs.on('beforeValidation',function(){var $elem=$(this),nameOfDependingInput=$elem.valAttr('if-checked');var $dependingInput=$('input[name="'+nameOfDependingInput+'"]',$form),dependingInputIsChecked=$dependingInput.is(':checked'),valueOfDependingInput=($.formUtils.getValue($dependingInput)||'').toString(),requiredValueOfDependingInput=$elem.valAttr('if-checked-value');if(!dependingInputIsChecked||!(!requiredValueOfDependingInput||requiredValueOfDependingInput===valueOfDependingInput)){$elem.valAttr('skipped',!0)}})}
|
||
function convertDeprecatedLangCodeToISO6391(config){var deprecatedLangCodes={se:'sv',cz:'cs',dk:'da'};if(config.lang in deprecatedLangCodes){var newLangCode=deprecatedLangCodes[config.lang];$.formUtils.warn('Deprecated use of lang code "'+config.lang+'" use "'+newLangCode+'" instead');config.lang=newLangCode}}})(jQuery);(function($){'use strict';var dialogs={resolveErrorMessage:function($elem,validator,validatorName,conf,language){var errorMsgAttr=conf.validationErrorMsgAttribute+'-'+validatorName.replace('validate_',''),validationErrorMsg=$elem.attr(errorMsgAttr);if(!validationErrorMsg){validationErrorMsg=$elem.attr(conf.validationErrorMsgAttribute);if(!validationErrorMsg){if(typeof validator.errorMessageKey!=='function'){validationErrorMsg=language[validator.errorMessageKey]}else{validationErrorMsg=language[validator.errorMessageKey(conf)]}
|
||
if(!validationErrorMsg){validationErrorMsg=validator.errorMessage}}}
|
||
return validationErrorMsg},getParentContainer:function($elem){if($elem.valAttr('error-msg-container')){return $($elem.valAttr('error-msg-container'))}else{var $parent=$elem.parent();if(!$parent.hasClass('form-group')&&!$parent.closest('form').hasClass('form-horizontal')){var $formGroup=$parent.closest('.form-group');if($formGroup.length){return $formGroup.eq(0)}}
|
||
return $parent}},applyInputErrorStyling:function($input,conf){$input.addClass(conf.errorElementClass).removeClass('valid');this.getParentContainer($input).addClass(conf.inputParentClassOnError).removeClass(conf.inputParentClassOnSuccess);if(conf.borderColorOnError!==''){$input.css('border-color',conf.borderColorOnError)}},applyInputSuccessStyling:function($input,conf){$input.addClass('valid');this.getParentContainer($input).addClass(conf.inputParentClassOnSuccess)},removeInputStylingAndMessage:function($input,conf){$input.removeClass('valid').removeClass(conf.errorElementClass).css('border-color','');var $parentContainer=dialogs.getParentContainer($input);$parentContainer.removeClass(conf.inputParentClassOnError).removeClass(conf.inputParentClassOnSuccess);if(typeof conf.inlineErrorMessageCallback==='function'){var $errorMessage=conf.inlineErrorMessageCallback($input,!1,conf);if($errorMessage){$errorMessage.html('')}}else{$parentContainer.find('.'+conf.errorMessageClass).remove()}},removeAllMessagesAndStyling:function($form,conf){if(typeof conf.submitErrorMessageCallback==='function'){var $errorMessagesInTopOfForm=conf.submitErrorMessageCallback($form,!1,conf);if($errorMessagesInTopOfForm){$errorMessagesInTopOfForm.html('')}}else{$form.find('.'+conf.errorMessageClass+'.alert').remove()}
|
||
$form.find('.'+conf.errorElementClass+',.valid').each(function(){dialogs.removeInputStylingAndMessage($(this),conf)})},setInlineMessage:function($input,errorMsg,conf){this.applyInputErrorStyling($input,conf);var custom=document.getElementById($input.attr('name')+'_err_msg'),$messageContainer=!1,setErrorMessage=function($elem){$.formUtils.$win.trigger('validationErrorDisplay',[$input,$elem]);$elem.html(errorMsg)},addErrorToMessageContainer=function(){var $found=!1;$messageContainer.find('.'+conf.errorMessageClass).each(function(){if(this.inputReferer===$input[0]){$found=$(this);return!1}});if($found){if(!errorMsg){$found.remove()}else{setErrorMessage($found)}}else if(errorMsg!==''){$message=$('<div class="'+conf.errorMessageClass+' alert"></div>');setErrorMessage($message);$message[0].inputReferer=$input[0];$messageContainer.prepend($message)}},$message;if(custom){$.formUtils.warn('Using deprecated element reference '+custom.id);$messageContainer=$(custom);addErrorToMessageContainer()}else if(typeof conf.inlineErrorMessageCallback==='function'){$messageContainer=conf.inlineErrorMessageCallback($input,errorMsg,conf);if(!$messageContainer){return}
|
||
addErrorToMessageContainer()}else{var $parent=this.getParentContainer($input);$message=$parent.find('.'+conf.errorMessageClass+'.help-block');if($message.length===0){$message=$('<span></span>').addClass('help-block').addClass(conf.errorMessageClass);$message.appendTo($parent)}
|
||
setErrorMessage($message)}},setMessageInTopOfForm:function($form,errorMessages,conf,lang){var view='<div class="{errorMessageClass} alert alert-danger">'+'<strong>{errorTitle}</strong>'+'<ul>{fields}</ul>'+'</div>',$container=!1;if(typeof conf.submitErrorMessageCallback==='function'){$container=conf.submitErrorMessageCallback($form,errorMessages,conf);if(!$container){return}}
|
||
var viewParams={errorTitle:lang.errorTitle,fields:'',errorMessageClass:conf.errorMessageClass};$.each(errorMessages,function(i,msg){viewParams.fields+='<li>'+msg+'</li>'});$.each(viewParams,function(param,value){view=view.replace('{'+param+'}',value)});if($container){$container.html(view)}else{$form.children().eq(0).before($(view))}}};$.formUtils=$.extend($.formUtils||{},{dialogs:dialogs})})(jQuery);(function($,window,undefined){'use strict';var _helpers=0;$.fn.validateOnBlur=function(language,conf){var $form=this,$elems=this.find('*[data-validation]');$elems.each(function(){var $this=$(this);if($this.is('[type=radio]')){var $additionals=$form.find('[type=radio][name="'+$this.attr('name')+'"]');$additionals.bind('blur.validation',function(){$this.validateInputOnBlur(language,conf,!0,'blur')});if(conf.validateCheckboxRadioOnClick){$additionals.bind('click.validation',function(){$this.validateInputOnBlur(language,conf,!0,'click')})}}});$elems.bind('blur.validation',function(){$(this).validateInputOnBlur(language,conf,!0,'blur')});if(conf.validateCheckboxRadioOnClick){this.find('input[type=checkbox][data-validation],input[type=radio][data-validation]').bind('click.validation',function(){$(this).validateInputOnBlur(language,conf,!0,'click')})}
|
||
return this};$.fn.validateOnEvent=function(language,config){var $elements=this[0].nodeName==='FORM'?this.find('*[data-validation-event]'):this;$elements.each(function(){var $el=$(this),etype=$el.valAttr('event');if(etype){$el.unbind(etype+'.validation').bind(etype+'.validation',function(evt){if((evt||{}).keyCode!==9){$(this).validateInputOnBlur(language,config,!0,etype)}})}});return this};$.fn.showHelpOnFocus=function(attrName){if(!attrName){attrName='data-validation-help'}
|
||
this.find('textarea,input').each(function(){var $elem=$(this),className='jquery_form_help_'+(++_helpers),help=$elem.attr(attrName);$elem.removeClass('has-help-text').unbind('focus.help').unbind('blur.help');if(help){$elem.addClass('has-help-txt').bind('focus.help',function(){var $help=$elem.parent().find('.'+className);if($help.length===0){$help=$('<span />').addClass(className).addClass('help').addClass('help-block').text(help).hide();$elem.after($help)}
|
||
$help.fadeIn()}).bind('blur.help',function(){$(this).parent().find('.'+className).fadeOut('slow')})}});return this};$.fn.validate=function(cb,conf,lang){var language=$.extend({},$.formUtils.LANG,lang||{});this.each(function(){var $elem=$(this),formDefaultConfig=$elem.closest('form').get(0).validationConfig||{};$elem.one('validation',function(evt,isValid){if(typeof cb==='function'){cb(isValid,this,evt)}});$elem.validateInputOnBlur(language,$.extend({},formDefaultConfig,conf ||{}),!0)})};$.fn.willPostponeValidation=function(){return(this.valAttr('suggestion-nr')||this.valAttr('postpone')||this.hasClass('hasDatepicker'))&&!window.postponedValidation};$.fn.validateInputOnBlur=function(language,conf,attachKeyupEvent,eventContext){$.formUtils.eventType=eventContext;if(this.willPostponeValidation()){var _self=this,postponeTime=this.valAttr('postpone')||200;window.postponedValidation=function(){_self.validateInputOnBlur(language,conf,attachKeyupEvent,eventContext);window.postponedValidation=!1};setTimeout(function(){if(window.postponedValidation){window.postponedValidation()}},postponeTime);return this}
|
||
language=$.extend({},$.formUtils.LANG,language||{});$.formUtils.dialogs.removeInputStylingAndMessage(this,conf);var $elem=this,$form=$elem.closest('form'),result=$.formUtils.validateInput($elem,language,conf,$form,eventContext);var reValidate=function(){$elem.validateInputOnBlur(language,conf,!1,'blur.revalidated')};if(eventContext==='blur'){$elem.unbind('validation.revalidate',reValidate).one('validation.revalidate',reValidate)}
|
||
if(attachKeyupEvent){$elem.removeKeyUpValidation()}
|
||
if(result.shouldChangeDisplay){if(result.isValid){$.formUtils.dialogs.applyInputSuccessStyling($elem,conf)}else{$.formUtils.dialogs.setInlineMessage($elem,result.errorMsg,conf)}}
|
||
if(!result.isValid&&attachKeyupEvent){$elem.validateOnKeyUp(language,conf)}
|
||
return this};$.fn.validateOnKeyUp=function(language,conf){this.each(function(){var $input=$(this);if(!$input.valAttr('has-keyup-event')){$input.valAttr('has-keyup-event','true').bind('keyup.validation',function(evt){if(evt.keyCode!==9){$input.validateInputOnBlur(language,conf,!1,'keyup')}})}});return this};$.fn.removeKeyUpValidation=function(){this.each(function(){$(this).valAttr('has-keyup-event',!1).unbind('keyup.validation')});return this};$.fn.valAttr=function(name,val){if(val===undefined){return this.attr('data-validation-'+name)}else if(val===!1||val===null){return this.removeAttr('data-validation-'+name)}else{name=((name.length>0)?'-'+name:'');return this.attr('data-validation'+name,val)}};$.fn.isValid=function(language,conf,displayError){if($.formUtils.isLoadingModules){var $self=this;setTimeout(function(){$self.isValid(language,conf,displayError)},200);return null}
|
||
conf=$.extend({},$.formUtils.defaultConfig(),conf||{});language=$.extend({},$.formUtils.LANG,language||{});displayError=displayError!==!1;if($.formUtils.errorDisplayPreventedWhenHalted){delete $.formUtils.errorDisplayPreventedWhenHalted;displayError=!1}
|
||
$.formUtils.isValidatingEntireForm=!0;$.formUtils.haltValidation=!1;var addErrorMessage=function(mess,$elem){if($.inArray(mess,errorMessages)<0){errorMessages.push(mess)}
|
||
errorInputs.push($elem);$elem.attr('current-error',mess);if(displayError){$.formUtils.dialogs.applyInputErrorStyling($elem,conf)}},checkedInputs=[],errorMessages=[],errorInputs=[],$form=this,ignoreInput=function(name,type){if(type==='submit'||type==='button'||type==='reset'){return!0}
|
||
return $.inArray(name,conf.ignore||[])>-1};if(displayError){$.formUtils.dialogs.removeAllMessagesAndStyling($form,conf)}
|
||
$form.find('input,textarea,select').filter(':not([type="submit"],[type="button"])').each(function(){var $elem=$(this),elementType=$elem.attr('type'),isCheckboxOrRadioBtn=elementType==='radio'||elementType==='checkbox',elementName=$elem.attr('name');if(!ignoreInput(elementName,elementType)&&(!isCheckboxOrRadioBtn||$.inArray(elementName,checkedInputs)<0)){if(isCheckboxOrRadioBtn){checkedInputs.push(elementName)}
|
||
var result=$.formUtils.validateInput($elem,language,conf,$form,'submit');if(!result.isValid){addErrorMessage(result.errorMsg,$elem)}else if(result.isValid&&result.shouldChangeDisplay){$elem.valAttr('current-error',!1);$.formUtils.dialogs.applyInputSuccessStyling($elem,conf)}}});if(typeof conf.onValidate==='function'){var errors=conf.onValidate($form);if($.isArray(errors)){$.each(errors,function(i,err){addErrorMessage(err.message,err.element)})}else if(errors&&errors.element&&errors.message){addErrorMessage(errors.message,errors.element)}}
|
||
$.formUtils.isValidatingEntireForm=!1;if(errorInputs.length>0){if(displayError){if(conf.errorMessagePosition==='top'){$.formUtils.dialogs.setMessageInTopOfForm($form,errorMessages,conf,language)}else{$.each(errorInputs,function(i,$input){$.formUtils.dialogs.setInlineMessage($input,$input.attr('current-error'),conf)})}
|
||
if(conf.scrollToTopOnError){$.formUtils.$win.scrollTop($form.offset().top-20)}}}
|
||
if(!displayError&&$.formUtils.haltValidation){$.formUtils.errorDisplayPreventedWhenHalted=!0}
|
||
return errorInputs.length===0&&!$.formUtils.haltValidation};$.fn.restrictLength=function(maxLengthElement){new $.formUtils.lengthRestriction(this,maxLengthElement);return this};$.fn.addSuggestions=function(settings){var sugs=!1;this.find('input').each(function(){var $field=$(this);sugs=$.split($field.attr('data-suggestions'));if(sugs.length>0&&!$field.hasClass('has-suggestions')){$.formUtils.suggest($field,sugs,settings);$field.addClass('has-suggestions')}});return this}})(jQuery,window);(function($){'use strict';$.formUtils=$.extend($.formUtils||{},{isLoadingModules:!1,loadedModules:{},loadModules:function(modules,path,callback){if($.formUtils.isLoadingModules){setTimeout(function(){$.formUtils.loadModules(modules,path,callback)},10);return}
|
||
var hasLoadedAnyModule=!1,loadModuleScripts=function(modules,path){var moduleList=$.split(modules),numModules=moduleList.length,moduleLoadedCallback=function(){numModules--;if(numModules===0){$.formUtils.isLoadingModules=!1;if(callback&&hasLoadedAnyModule){if(typeof callback==='function'){callback()}}}};if(numModules>0){$.formUtils.isLoadingModules=!0}
|
||
var cacheSuffix='?_='+(new Date().getTime()),appendToElement=document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0];$.each(moduleList,function(i,modName){modName=$.trim(modName);if(modName.length===0){moduleLoadedCallback()}else{var scriptUrl=path+modName+(modName.slice(-3)==='.js'?'':'.js'),script=document.createElement('SCRIPT');if(scriptUrl in $.formUtils.loadedModules){moduleLoadedCallback()}else{$.formUtils.loadedModules[scriptUrl]=1;hasLoadedAnyModule=!0;script.type='text/javascript';script.onload=moduleLoadedCallback;script.src=scriptUrl+(scriptUrl.slice(-7)==='.dev.js'?cacheSuffix:'');script.onerror=function(){$.formUtils.warn('Unable to load form validation module '+scriptUrl)};script.onreadystatechange=function(){if(this.readyState==='complete'||this.readyState==='loaded'){moduleLoadedCallback();this.onload=null;this.onreadystatechange=null}};appendToElement.appendChild(script)}}})};if(path){loadModuleScripts(modules,path)}else{var findScriptPathAndLoadModules=function(){var foundPath=!1;$('script[src*="form-validator"]').each(function(){var isScriptFromPluginNodeModulesDirectory=this.src.split('form-validator')[1].split('node_modules').length>1;if(!isScriptFromPluginNodeModulesDirectory){foundPath=this.src.substr(0,this.src.lastIndexOf('/'))+'/';if(foundPath==='/'){foundPath=''}
|
||
return!1}});if(foundPath!==!1){loadModuleScripts(modules,foundPath);return!0}
|
||
return!1};if(!findScriptPathAndLoadModules()){$(findScriptPathAndLoadModules)}}}})})(jQuery);(function($){'use strict';$.split=function(val,callback,allowSpaceAsDelimiter){allowSpaceAsDelimiter=allowSpaceAsDelimiter===undefined||allowSpaceAsDelimiter===!0;var pattern='[,|\-'+(allowSpaceAsDelimiter?'\\s':'')+']\\s*',regex=new RegExp(pattern,'g');if(typeof callback!=='function'){if(!val){return[]}
|
||
var values=[];$.each(val.split(callback?callback:regex),function(i,str){str=$.trim(str);if(str.length){values.push(str)}});return values}else if(val){$.each(val.split(regex),function(i,str){str=$.trim(str);if(str.length){return callback(str,i)}})}};$.validate=function(conf){var defaultConf=$.extend($.formUtils.defaultConfig(),{form:'form',validateOnEvent:!1,validateOnBlur:!0,validateCheckboxRadioOnClick:!0,showHelpOnFocus:!0,addSuggestions:!0,modules:'',onModulesLoaded:null,language:!1,onSuccess:!1,onError:!1,onElementValidate:!1});conf=$.extend(defaultConf,conf||{});$(window).trigger('formValidationPluginInit',[conf]);if(conf.lang&&conf.lang!=='en'){var langModule='lang/'+conf.lang+'.js';conf.modules+=conf.modules.length?','+langModule:langModule}
|
||
$(conf.form).each(function(i,form){form.validationConfig=conf;var $form=$(form);$form.trigger('formValidationSetup',[$form,conf]);$form.find('.has-help-txt').unbind('focus.validation').unbind('blur.validation');$form.removeClass('has-validation-callback').unbind('submit.validation').unbind('reset.validation').find('input[data-validation],textarea[data-validation]').unbind('blur.validation');$form.bind('submit.validation',function(evt){var $form=$(this),stop=function(){evt.stopImmediatePropagation();return!1};if($.formUtils.haltValidation){return stop()}
|
||
if($.formUtils.isLoadingModules){setTimeout(function(){$form.trigger('submit.validation')},200);return stop()}
|
||
var valid=$form.isValid(conf.language,conf);if($.formUtils.haltValidation){return stop()}else{if(valid&&typeof conf.onSuccess==='function'){var callbackResponse=conf.onSuccess($form);if(callbackResponse===!1){return stop()}}else if(!valid&&typeof conf.onError==='function'){conf.onError($form);return stop()}else{return valid?!0:stop()}}}).bind('reset.validation',function(){$.formUtils.dialogs.removeAllMessagesAndStyling($form,conf)}).addClass('has-validation-callback');if(conf.showHelpOnFocus){$form.showHelpOnFocus()}
|
||
if(conf.addSuggestions){$form.addSuggestions()}
|
||
if(conf.validateOnBlur){$form.validateOnBlur(conf.language,conf);$form.bind('html5ValidationAttrsFound',function(){$form.validateOnBlur(conf.language,conf)})}
|
||
if(conf.validateOnEvent){$form.validateOnEvent(conf.language,conf)}});if(conf.modules!==''){$.formUtils.loadModules(conf.modules,!1,function(){if(typeof conf.onModulesLoaded==='function'){conf.onModulesLoaded()}
|
||
var $form=typeof conf.form==='string'?$(conf.form):conf.form;$.formUtils.$win.trigger('validatorsLoaded',[$form,conf])})}}})(jQuery);(function($,window){'use strict';var $win=$(window);$.formUtils=$.extend($.formUtils||{},{$win:$win,defaultConfig:function(){return{ignore:[],errorElementClass:'error',borderColorOnError:'#b94a48',errorMessageClass:'form-error',validationRuleAttribute:'data-validation',validationErrorMsgAttribute:'data-validation-error-msg',errorMessagePosition:'inline',errorMessageTemplate:{container:'<div class="{errorMessageClass} alert alert-danger">{messages}</div>',messages:'<strong>{errorTitle}</strong><ul>{fields}</ul>',field:'<li>{msg}</li>'},scrollToTopOnError:!0,dateFormat:'yyyy-mm-dd',addValidClassOnAll:!1,decimalSeparator:'.',inputParentClassOnError:'has-error',inputParentClassOnSuccess:'has-success',validateHiddenInputs:!1,inlineErrorMessageCallback:!1,submitErrorMessageCallback:!1}},validators:{},_events:{load:[],valid:[],invalid:[]},haltValidation:!1,isValidatingEntireForm:!1,addValidator:function(validator){var name=validator.name.indexOf('validate_')===0?validator.name:'validate_'+validator.name;if(validator.validateOnKeyUp===undefined){validator.validateOnKeyUp=!0}
|
||
this.validators[name]=validator},warn:function(msg){if('console' in window){if(typeof window.console.warn==='function'){window.console.warn(msg)}else if(typeof window.console.log==='function'){window.console.log(msg)}}else{alert(msg)}},getValue:function(query,$parent){var $inputs=$parent?$parent.find(query):query;if($inputs.length>0){var type=$inputs.eq(0).attr('type');if(type==='radio'||type==='checkbox'){return $inputs.filter(':checked').val()||''}else{return $inputs.val()||''}}
|
||
return!1},validateInput:function($elem,language,conf,$form,eventContext){conf=conf||$.formUtils.defaultConfig();language=language||$.formUtils.LANG;var value=this.getValue($elem);$elem.valAttr('skipped',!1).one('beforeValidation',function(){if($elem.attr('disabled')||(!$elem.is(':visible')&&!conf.validateHiddenInputs)){$elem.valAttr('skipped',1)}}).trigger('beforeValidation',[value,conf,language]);var inputIsOptional=$elem.valAttr('optional')==='true',skipBecauseItsEmpty=!value&&inputIsOptional,validationRules=$elem.attr(conf.validationRuleAttribute),isValid=!0,errorMsg='',result={isValid:!0,shouldChangeDisplay:!0,errorMsg:''};if(!validationRules||skipBecauseItsEmpty||$elem.valAttr('skipped')){result.shouldChangeDisplay=conf.addValidClassOnAll;return result}
|
||
var ignore=$elem.valAttr('ignore');if(ignore){$.each(ignore.split(''),function(i,character){value=value.replace(new RegExp('\\'+character,'g'),'')})}
|
||
$.split(validationRules,function(rule){if(rule.indexOf('validate_')!==0){rule='validate_'+rule}
|
||
var validator=$.formUtils.validators[rule];if(validator){if(rule==='validate_checkbox_group'){$elem=$form.find('[name="'+$elem.attr('name')+'"]:eq(0)')}
|
||
if(eventContext!=='keyup'||validator.validateOnKeyUp){isValid=validator.validatorFunction(value,$elem,conf,language,$form,eventContext)}
|
||
if(!isValid){if(conf.validateOnBlur){$elem.validateOnKeyUp(language,conf)}
|
||
errorMsg=$.formUtils.dialogs.resolveErrorMessage($elem,validator,rule,conf,language);return!1}}else{throw new Error('Using undefined validator "'+rule+'". Maybe you have forgotten to load the module that "'+rule+'" belongs to?')}});if(isValid===!1){$elem.trigger('validation',!1);result.errorMsg=errorMsg;result.isValid=!1;result.shouldChangeDisplay=!0}else if(isValid===null){result.shouldChangeDisplay=!1}else{$elem.trigger('validation',!0);result.shouldChangeDisplay=!0}
|
||
if(typeof conf.onElementValidate==='function'&&errorMsg!==null){conf.onElementValidate(result.isValid,$elem,$form,errorMsg)}
|
||
$elem.trigger('afterValidation',[result,eventContext]);return result},parseDate:function(val,dateFormat,addMissingLeadingZeros){var divider=dateFormat.replace(/[a-zA-Z]/gi,'').substring(0,1),regexp='^',formatParts=dateFormat.split(divider||null),matches,day,month,year;$.each(formatParts,function(i,part){regexp+=(i>0?'\\'+divider:'')+'(\\d{'+part.length+'})'});regexp+='$';if(addMissingLeadingZeros){var newValueParts=[];$.each(val.split(divider),function(i,part){if(part.length===1){part='0'+part}
|
||
newValueParts.push(part)});val=newValueParts.join(divider)}
|
||
matches=val.match(new RegExp(regexp));if(matches===null){return!1}
|
||
var findDateUnit=function(unit,formatParts,matches){for(var i=0;i<formatParts.length;i++){if(formatParts[i].substring(0,1)===unit){return $.formUtils.parseDateInt(matches[i+1])}}
|
||
return-1};month=findDateUnit('m',formatParts,matches);day=findDateUnit('d',formatParts,matches);year=findDateUnit('y',formatParts,matches);if((month===2&&day>28&&(year%4!==0||year%100===0&&year%400!==0))||(month===2&&day>29&&(year%4===0||year%100!==0&&year%400===0))||month>12||month===0){return!1}
|
||
if((this.isShortMonth(month)&&day>30)||(!this.isShortMonth(month)&&day>31)||day===0){return!1}
|
||
return[year,month,day]},parseDateInt:function(val){if(val.indexOf('0')===0){val=val.replace('0','')}
|
||
return parseInt(val,10)},isShortMonth:function(m){return(m%2===0&&m<7)||(m%2!==0&&m>7)},lengthRestriction:function($inputElement,$maxLengthElement){var maxChars=parseInt($maxLengthElement.text(),10),charsLeft=0,countCharacters=function(){var numChars=$inputElement.val().length;if(numChars>maxChars){var currScrollTopPos=$inputElement.scrollTop();$inputElement.val($inputElement.val().substring(0,maxChars));$inputElement.scrollTop(currScrollTopPos)}
|
||
charsLeft=maxChars-numChars;if(charsLeft<0){charsLeft=0}
|
||
$maxLengthElement.text(charsLeft)};$($inputElement).bind('keydown keyup keypress focus blur',countCharacters).bind('cut paste',function(){setTimeout(countCharacters,100)});$(document).bind('ready',countCharacters)},numericRangeCheck:function(value,rangeAllowed){var range=$.split(rangeAllowed),minmax=parseInt(rangeAllowed.substr(3),10);if(range.length===1&&rangeAllowed.indexOf('min')===-1&&rangeAllowed.indexOf('max')===-1){range=[rangeAllowed,rangeAllowed]}
|
||
if(range.length===2&&(value<parseInt(range[0],10)||value>parseInt(range[1],10))){return['out',range[0],range[1]]}else if(rangeAllowed.indexOf('min')===0&&(value<minmax)){return['min',minmax]}else if(rangeAllowed.indexOf('max')===0&&(value>minmax)){return['max',minmax]}
|
||
return['ok']},_numSuggestionElements:0,_selectedSuggestion:null,_previousTypedVal:null,suggest:function($elem,suggestions,settings){var conf={css:{maxHeight:'150px',background:'#FFF',lineHeight:'150%',textDecoration:'underline',overflowX:'hidden',overflowY:'auto',border:'#CCC solid 1px',borderTop:'none',cursor:'pointer'},activeSuggestionCSS:{background:'#E9E9E9'}},setSuggsetionPosition=function($suggestionContainer,$input){var offset=$input.offset();$suggestionContainer.css({width:$input.outerWidth(),left:offset.left+'px',top:(offset.top+$input.outerHeight())+'px'})};if(settings){$.extend(conf,settings)}
|
||
conf.css.position='absolute';conf.css['z-index']=9999;$elem.attr('autocomplete','off');if(this._numSuggestionElements===0){$win.bind('resize',function(){$('.jquery-form-suggestions').each(function(){var $container=$(this),suggestID=$container.attr('data-suggest-container');setSuggsetionPosition($container,$('.suggestions-'+suggestID).eq(0))})})}
|
||
this._numSuggestionElements++;var onSelectSuggestion=function($el){var suggestionId=$el.valAttr('suggestion-nr');$.formUtils._selectedSuggestion=null;$.formUtils._previousTypedVal=null;$('.jquery-form-suggestion-'+suggestionId).fadeOut('fast')};$elem.data('suggestions',suggestions).valAttr('suggestion-nr',this._numSuggestionElements).unbind('focus.suggest').bind('focus.suggest',function(){$(this).trigger('keyup');$.formUtils._selectedSuggestion=null}).unbind('keyup.suggest').bind('keyup.suggest',function(){var $input=$(this),foundSuggestions=[],val=$.trim($input.val()).toLocaleLowerCase();if(val===$.formUtils._previousTypedVal){return}else{$.formUtils._previousTypedVal=val}
|
||
var hasTypedSuggestion=!1,suggestionId=$input.valAttr('suggestion-nr'),$suggestionContainer=$('.jquery-form-suggestion-'+suggestionId);$suggestionContainer.scrollTop(0);if(val!==''){var findPartial=val.length>2;$.each($input.data('suggestions'),function(i,suggestion){var lowerCaseVal=suggestion.toLocaleLowerCase();if(lowerCaseVal===val){foundSuggestions.push('<strong>'+suggestion+'</strong>');hasTypedSuggestion=!0;return!1}else if(lowerCaseVal.indexOf(val)===0||(findPartial&&lowerCaseVal.indexOf(val)>-1)){foundSuggestions.push(suggestion.replace(new RegExp(val,'gi'),'<strong>$&</strong>'))}})}
|
||
if(hasTypedSuggestion||(foundSuggestions.length===0&&$suggestionContainer.length>0)){$suggestionContainer.hide()}else if(foundSuggestions.length>0&&$suggestionContainer.length===0){$suggestionContainer=$('<div></div>').css(conf.css).appendTo('body');$elem.addClass('suggestions-'+suggestionId);$suggestionContainer.attr('data-suggest-container',suggestionId).addClass('jquery-form-suggestions').addClass('jquery-form-suggestion-'+suggestionId)}else if(foundSuggestions.length>0&&!$suggestionContainer.is(':visible')){$suggestionContainer.show()}
|
||
if(foundSuggestions.length>0&&val.length!==foundSuggestions[0].length){setSuggsetionPosition($suggestionContainer,$input);$suggestionContainer.html('');$.each(foundSuggestions,function(i,text){$('<div></div>').append(text).css({overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap',padding:'5px'}).addClass('form-suggest-element').appendTo($suggestionContainer).click(function(){$input.focus();$input.val($(this).text());$input.trigger('change');onSelectSuggestion($input)})})}}).unbind('keydown.validation').bind('keydown.validation',function(e){var code=(e.keyCode?e.keyCode:e.which),suggestionId,$suggestionContainer,$input=$(this);if(code===13&&$.formUtils._selectedSuggestion!==null){suggestionId=$input.valAttr('suggestion-nr');$suggestionContainer=$('.jquery-form-suggestion-'+suggestionId);if($suggestionContainer.length>0){var newText=$suggestionContainer.find('div').eq($.formUtils._selectedSuggestion).text();$input.val(newText);$input.trigger('change');onSelectSuggestion($input);e.preventDefault()}}else{suggestionId=$input.valAttr('suggestion-nr');$suggestionContainer=$('.jquery-form-suggestion-'+suggestionId);var $suggestions=$suggestionContainer.children();if($suggestions.length>0&&$.inArray(code,[38,40])>-1){if(code===38){if($.formUtils._selectedSuggestion===null){$.formUtils._selectedSuggestion=$suggestions.length-1}else{$.formUtils._selectedSuggestion--}
|
||
if($.formUtils._selectedSuggestion<0){$.formUtils._selectedSuggestion=$suggestions.length-1}}else if(code===40){if($.formUtils._selectedSuggestion===null){$.formUtils._selectedSuggestion=0}else{$.formUtils._selectedSuggestion++}
|
||
if($.formUtils._selectedSuggestion>($suggestions.length-1)){$.formUtils._selectedSuggestion=0}}
|
||
var containerInnerHeight=$suggestionContainer.innerHeight(),containerScrollTop=$suggestionContainer.scrollTop(),suggestionHeight=$suggestionContainer.children().eq(0).outerHeight(),activeSuggestionPosY=suggestionHeight*($.formUtils._selectedSuggestion);if(activeSuggestionPosY<containerScrollTop||activeSuggestionPosY>(containerScrollTop+containerInnerHeight)){$suggestionContainer.scrollTop(activeSuggestionPosY)}
|
||
$suggestions.removeClass('active-suggestion').css('background','none').eq($.formUtils._selectedSuggestion).addClass('active-suggestion').css(conf.activeSuggestionCSS);e.preventDefault();return!1}}}).unbind('blur.suggest').bind('blur.suggest',function(){onSelectSuggestion($(this))});return $elem},LANG:{errorTitle:'Form submission failed!',requiredField:'This is a required field',requiredFields:'You have not answered all required fields',badTime:'You have not given a correct time',badEmail:'You have not given a correct e-mail address',badTelephone:'You have not given a correct phone number',badSecurityAnswer:'You have not given a correct answer to the security question',badDate:'You have not given a correct date',lengthBadStart:'The input value must be between ',lengthBadEnd:' characters',lengthTooLongStart:'The input value is longer than ',lengthTooShortStart:'The input value is shorter than ',notConfirmed:'Input values could not be confirmed',badDomain:'Incorrect domain value',badUrl:'The input value is not a correct URL',badCustomVal:'The input value is incorrect',andSpaces:' and spaces ',badInt:'The input value was not a correct number',badSecurityNumber:'Your social security number was incorrect',badUKVatAnswer:'Incorrect UK VAT Number',badUKNin:'Incorrect UK NIN',badUKUtr:'Incorrect UK UTR Number',badStrength:'The password isn\'t strong enough',badNumberOfSelectedOptionsStart:'You have to choose at least ',badNumberOfSelectedOptionsEnd:' answers',badAlphaNumeric:'The input value can only contain alphanumeric characters ',badAlphaNumericExtra:' and ',wrongFileSize:'The file you are trying to upload is too large (max %s)',wrongFileType:'Only files of type %s is allowed',groupCheckedRangeStart:'Please choose between ',groupCheckedTooFewStart:'Please choose at least ',groupCheckedTooManyStart:'Please choose a maximum of ',groupCheckedEnd:' item(s)',badCreditCard:'The credit card number is not correct',badCVV:'The CVV number was not correct',wrongFileDim:'Incorrect image dimensions,',imageTooTall:'the image can not be taller than',imageTooWide:'the image can not be wider than',imageTooSmall:'the image was too small',min:'min',max:'max',imageRatioNotAccepted:'Image ratio is not be accepted',badBrazilTelephoneAnswer:'The phone number entered is invalid',badBrazilCEPAnswer:'The CEP entered is invalid',badBrazilCPFAnswer:'The CPF entered is invalid',badPlPesel:'The PESEL entered is invalid',badPlNip:'The NIP entered is invalid',badPlRegon:'The REGON entered is invalid',badreCaptcha:'Please confirm that you are not a bot',passwordComplexityStart:'Password must contain at least ',passwordComplexitySeparator:', ',passwordComplexityUppercaseInfo:' uppercase letter(s)',passwordComplexityLowercaseInfo:' lowercase letter(s)',passwordComplexitySpecialCharsInfo:' special character(s)',passwordComplexityNumericCharsInfo:' numeric character(s)',passwordComplexityEnd:'.'}})})(jQuery,window);(function($){$.formUtils.addValidator({name:'email',validatorFunction:function(email){var emailParts=email.toLowerCase().split('@'),localPart=emailParts[0],domain=emailParts[1];if(localPart&&domain){if(localPart.indexOf('"')===0){var len=localPart.length;localPart=localPart.replace(/\"/g,'');if(localPart.length!==(len-2)){return!1}}
|
||
return $.formUtils.validators.validate_domain.validatorFunction(emailParts[1])&&localPart.indexOf('.')!==0&&localPart.substring(localPart.length-1,localPart.length)!=='.'&&localPart.indexOf('..')===-1&&!(/[^\w\+\.\-\#\-\_\~\!\$\&\'\(\)\*\+\,\;\=\:]/.test(localPart))}
|
||
return!1},errorMessage:'',errorMessageKey:'badEmail'});$.formUtils.addValidator({name:'domain',validatorFunction:function(val){return val.length>0&&val.length<=253&&!(/[^a-zA-Z0-9]/.test(val.slice(-2)))&&!(/[^a-zA-Z0-9]/.test(val.substr(0,1)))&&!(/[^a-zA-Z0-9\.\-]/.test(val))&&val.split('..').length===1&&val.split('.').length>1},errorMessage:'',errorMessageKey:'badDomain'});$.formUtils.addValidator({name:'required',validatorFunction:function(val,$el,config,language,$form){switch($el.attr('type')){case 'checkbox':return $el.is(':checked');case 'radio':return $form.find('input[name="'+$el.attr('name')+'"]').filter(':checked').length>0;default:return $.trim(val)!==''}},errorMessage:'',errorMessageKey:function(config){if(config.errorMessagePosition==='top'||typeof config.errorMessagePosition==='function'){return'requiredFields'}else{return'requiredField'}}});$.formUtils.addValidator({name:'length',validatorFunction:function(val,$el,conf,lang){var lengthAllowed=$el.valAttr('length'),type=$el.attr('type');if(lengthAllowed===undefined){alert('Please add attribute "data-validation-length" to '+$el[0].nodeName+' named '+$el.attr('name'));return!0}
|
||
var len=type==='file'&&$el.get(0).files!==undefined?$el.get(0).files.length:val.length,lengthCheckResults=$.formUtils.numericRangeCheck(len,lengthAllowed),checkResult;switch(lengthCheckResults[0]){case 'out':this.errorMessage=lang.lengthBadStart+lengthAllowed+lang.lengthBadEnd;checkResult=!1;break;case 'min':this.errorMessage=lang.lengthTooShortStart+lengthCheckResults[1]+lang.lengthBadEnd;checkResult=!1;break;case 'max':this.errorMessage=lang.lengthTooLongStart+lengthCheckResults[1]+lang.lengthBadEnd;checkResult=!1;break;default:checkResult=!0}
|
||
return checkResult},errorMessage:'',errorMessageKey:''});$.formUtils.addValidator({name:'url',validatorFunction:function(url){var urlFilter=/^(https?|ftp):\/\/((((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|\[|\]|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;if(urlFilter.test(url)){var domain=url.split('://')[1],domainSlashPos=domain.indexOf('/');if(domainSlashPos>-1){domain=domain.substr(0,domainSlashPos)}
|
||
return $.formUtils.validators.validate_domain.validatorFunction(domain)}
|
||
return!1},errorMessage:'',errorMessageKey:'badUrl'});$.formUtils.addValidator({name:'number',validatorFunction:function(val,$el,conf){if(val!==''){var allowing=$el.valAttr('allowing')||'',decimalSeparator=$el.valAttr('decimal-separator')||conf.decimalSeparator,allowsRange=!1,begin,end,steps=$el.valAttr('step')||'',allowsSteps=!1,sanitize=$el.attr('data-sanitize')||'',isFormattedWithNumeral=sanitize.match(/(^|[\s])numberFormat([\s]|$)/i);if(isFormattedWithNumeral){if(!window.numeral){throw new ReferenceError('The data-sanitize value numberFormat cannot be used without the numeral'+' library. Please see Data Validation in http://www.formvalidator.net for more information.')}
|
||
if(val.length){val=String(numeral().unformat(val))}}
|
||
if(allowing.indexOf('number')===-1){allowing+=',number'}
|
||
if(allowing.indexOf('negative')===-1&&val.indexOf('-')===0){return!1}
|
||
if(allowing.indexOf('range')>-1){begin=parseFloat(allowing.substring(allowing.indexOf('[')+1,allowing.indexOf(';')));end=parseFloat(allowing.substring(allowing.indexOf(';')+1,allowing.indexOf(']')));allowsRange=!0}
|
||
if(steps!==''){allowsSteps=!0}
|
||
if(decimalSeparator===','){if(val.indexOf('.')>-1){return!1}
|
||
val=val.replace(',','.')}
|
||
if(val.replace(/[0-9-]/g,'')===''&&(!allowsRange||(val>=begin&&val<=end))&&(!allowsSteps||(val%steps===0))){return!0}
|
||
if(allowing.indexOf('float')>-1&&val.match(new RegExp('^([0-9-]+)\\.([0-9]+)$'))!==null&&(!allowsRange||(val>=begin&&val<=end))&&(!allowsSteps||(val%steps===0))){return!0}}
|
||
return!1},errorMessage:'',errorMessageKey:'badInt'});$.formUtils.addValidator({name:'alphanumeric',validatorFunction:function(val,$el,conf,language){var patternStart='^([a-zA-Z0-9',patternEnd=']+)$',additionalChars=$el.valAttr('allowing'),pattern='';if(additionalChars){pattern=patternStart+additionalChars+patternEnd;var extra=additionalChars.replace(/\\/g,'');if(extra.indexOf(' ')>-1){extra=extra.replace(' ','');extra+=language.andSpaces||$.formUtils.LANG.andSpaces}
|
||
this.errorMessage=language.badAlphaNumeric+language.badAlphaNumericExtra+extra}else{pattern=patternStart+patternEnd;this.errorMessage=language.badAlphaNumeric}
|
||
return new RegExp(pattern).test(val)},errorMessage:'',errorMessageKey:''});$.formUtils.addValidator({name:'custom',validatorFunction:function(val,$el){var regexp=new RegExp($el.valAttr('regexp'));return regexp.test(val)},errorMessage:'',errorMessageKey:'badCustomVal'});$.formUtils.addValidator({name:'date',validatorFunction:function(date,$el,conf){var dateFormat=$el.valAttr('format')||conf.dateFormat||'yyyy-mm-dd',addMissingLeadingZeros=$el.valAttr('require-leading-zero')==='false';return $.formUtils.parseDate(date,dateFormat,addMissingLeadingZeros)!==!1},errorMessage:'',errorMessageKey:'badDate'});$.formUtils.addValidator({name:'checkbox_group',validatorFunction:function(val,$el,conf,lang,$form){var isValid=!0,elname=$el.attr('name'),$checkBoxes=$('input[type=checkbox][name^="'+elname+'"]',$form),checkedCount=$checkBoxes.filter(':checked').length,qtyAllowed=$el.valAttr('qty');if(qtyAllowed===undefined){var elementType=$el.get(0).nodeName;alert('Attribute "data-validation-qty" is missing from '+elementType+' named '+$el.attr('name'))}
|
||
var qtyCheckResults=$.formUtils.numericRangeCheck(checkedCount,qtyAllowed);switch(qtyCheckResults[0]){case 'out':this.errorMessage=lang.groupCheckedRangeStart+qtyAllowed+lang.groupCheckedEnd;isValid=!1;break;case 'min':this.errorMessage=lang.groupCheckedTooFewStart+qtyCheckResults[1]+lang.groupCheckedEnd;isValid=!1;break;case 'max':this.errorMessage=lang.groupCheckedTooManyStart+qtyCheckResults[1]+lang.groupCheckedEnd;isValid=!1;break;default:isValid=!0}
|
||
if(!isValid){var _triggerOnBlur=function(){$checkBoxes.unbind('click',_triggerOnBlur);$checkBoxes.filter('*[data-validation]').validateInputOnBlur(lang,conf,!1,'blur')};$checkBoxes.bind('click',_triggerOnBlur)}
|
||
return isValid}})})(jQuery)}));!function(t){var i=t(window);t.fn.visible=function(t,e,o){if(!(this.length<1)){var r=this.length>1?this.eq(0):this,n=r.get(0),f=i.width(),h=i.height(),o=o?o:"both",l=e===!0?n.offsetWidth*n.offsetHeight:!0;if("function"==typeof n.getBoundingClientRect){var g=n.getBoundingClientRect(),u=g.top>=0&&g.top<h,s=g.bottom>0&&g.bottom<=h,c=g.left>=0&&g.left<f,a=g.right>0&&g.right<=f,v=t?u||s:u&&s,b=t?c||a:c&&a;if("both"===o)return l&&v&&b;if("vertical"===o)return l&&v;if("horizontal"===o)return l&&b}else{var d=i.scrollTop(),p=d+h,w=i.scrollLeft(),m=w+f,y=r.offset(),z=y.top,B=z+r.height(),C=y.left,R=C+r.width(),j=t===!0?B:z,q=t===!0?z:B,H=t===!0?R:C,L=t===!0?C:R;if("both"===o)return!!l&&p>=q&&j>=d&&m>=L&&H>=w;if("vertical"===o)return!!l&&p>=q&&j>=d;if("horizontal"===o)return!!l&&m>=L&&H>=w}}}}(jQuery);/*!
|
||
* jQuery Cookie Plugin v1.4.1
|
||
* https://github.com/carhartl/jquery-cookie
|
||
*
|
||
* Copyright 2013 Klaus Hartl
|
||
* Released under the MIT license
|
||
*/
|
||
(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){factory(require('jquery'))}else{factory(jQuery)}}(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s)}
|
||
function decode(s){return config.raw?s:decodeURIComponent(s)}
|
||
function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value))}
|
||
function parseCookieValue(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\')}
|
||
try{s=decodeURIComponent(s.replace(pluses,' '));return config.json?JSON.parse(s):s}catch(e){}}
|
||
function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value}
|
||
var config=$.cookie=function(key,value,options){if(value!==undefined&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setTime(+t+days*864e+5)}
|
||
return(document.cookie=[encode(key),'=',stringifyCookieValue(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))}
|
||
var result=key?undefined:{};var cookies=document.cookie?document.cookie.split('; '):[];for(var i=0,l=cookies.length;i<l;i++){var parts=cookies[i].split('=');var name=decode(parts.shift());var cookie=parts.join('=');if(key&&key===name){result=read(cookie,value);break}
|
||
if(!key&&(cookie=read(cookie))!==undefined){result[name]=cookie}}
|
||
return result};config.defaults={};$.removeCookie=function(key,options){if($.cookie(key)===undefined){return!1}
|
||
$.cookie(key,'',$.extend({},options,{expires:-1}));return!$.cookie(key)}}));(function($,undefined){var supported,ls,mod='test';if('localStorage' in window){try{ls=(typeof window.localStorage==='undefined')?undefined:window.localStorage;if(typeof ls=='undefined'||typeof window.JSON=='undefined'){supported=!1}else{supported=!0}
|
||
window.localStorage.setItem(mod,'1');window.localStorage.removeItem(mod)}catch(err){supported=!1}}
|
||
$.totalStorageOPC=function(key,value,options){return $.totalStorageOPC.impl.init(key,value)};$.totalStorageOPC.setItem=function(key,value){return $.totalStorageOPC.impl.setItem(key,value)};$.totalStorageOPC.getItem=function(key){return $.totalStorageOPC.impl.getItem(key)};$.totalStorageOPC.getAll=function(){return $.totalStorageOPC.impl.getAll()};$.totalStorageOPC.deleteItem=function(key){return $.totalStorageOPC.impl.deleteItem(key)};$.totalStorageOPC.impl={init:function(key,value){if(typeof value!='undefined'){return this.setItem(key,value)}else{return this.getItem(key)}},setItem:function(key,value){if(!supported){try{$.cookie(key,value);return value}catch(e){console.log('Local Storage not supported by this browser. Install the cookie plugin on your site to take advantage of the same functionality. You can get it at https://github.com/carhartl/jquery-cookie')}}
|
||
var saver=JSON.stringify(value);ls.setItem(key,saver);return this.parseResult(saver)},getItem:function(key){if(!supported){try{return this.parseResult($.cookie(key))}catch(e){return null}}
|
||
var item=ls.getItem(key);return this.parseResult(item)},deleteItem:function(key){if(!supported){try{$.cookie(key,null);return!0}catch(e){return!1}}
|
||
ls.removeItem(key);return!0},getAll:function(){var items=[];if(!supported){try{var pairs=document.cookie.split(";");for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');var key=pair[0];items.push({key:key,value:this.parseResult($.cookie(key))})}}catch(e){return null}}else{for(var j in ls){if(j.length){items.push({key:j,value:this.parseResult(ls.getItem(j))})}}}
|
||
return items},parseResult:function(res){var ret;try{ret=JSON.parse(res);if(typeof ret=='undefined'){ret=res}
|
||
if(ret=='true'){ret=!0}
|
||
if(ret=='false'){ret=!1}}catch(e){ret=res}
|
||
return ret}}})(jQuery);/**
|
||
* We offer the best and most useful modules PrestaShop and modifications for your online store.
|
||
*
|
||
* We are experts and professionals in PrestaShop
|
||
*
|
||
* @author PresTeamShop.com <support@presteamshop.com>
|
||
* @copyright 2011-2017 PresTeamShop
|
||
* @license see file: LICENSE.txt
|
||
* @category PrestaShop
|
||
* @category Module
|
||
* @version 61
|
||
*/
|
||
$(function(){$('#pts_register_product').on('click','.register-button',function(){$('#pts_register_product .form-register').removeClass('hidden').slideDown();$('#pts_register_product .form-validate').slideUp()}).on('click','.validate-button',function(){$('#pts_register_product .form-register').slideUp();$('#pts_register_product .form-validate').removeClass('hidden').slideDown()}).on('click','#btn_send_register',function(){$('#sent_register').submit()}).on('click','#btn_validate_license',function(){$('#validate_license').submit()});$(document).on('input change','.tooltip-title-value',function(event){$(event.currentTarget).attr('title',$(event.currentTarget).val())});$('.tooltip-title-value').trigger('change');$('.pts a, .pts .btn, .pts input:checkbox').click(function(e){$(e.currentTarget).blur()});$('.pts').on('click','.change-language',$.changeLanguage);$('input[type="range"]').on('click',function(event){$(event.currentTarget).trigger('blur')}).on('change',function(event){$(event.currentTarget).attr('title',$(event.currentTarget).val())})});jQuery.extend(jQuery.expr[":"],{reallyvisible:function(a){return!(jQuery(a).css('display')=='none')}});jQuery.extend({isEmpty:function(){var count=0;$.each(arguments,function(i,data){if(typeof data!==typeof undefined&&data!==null&&data!==''&&parseInt(data)!==0){count++}else return!1});return(arguments).length==count?!1:!0},isEmail:function(val){var regExp=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i;return regExp.exec(val)},isJson:function(str){try{JSON.parse(str)}catch(e){return!1}
|
||
return!0},htmlEncode:function(value){return $('<div/>').text(value).html()},htmlDecode:function(value){return $('<div/>').html(value).text()},tinyMCEInit:function(element){$().ready(function(){$(element).tinymce({theme:"advanced",plugins:"safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen",theme_advanced_buttons1:"newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",theme_advanced_buttons2:"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor",theme_advanced_buttons3:"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen",theme_advanced_buttons4:"insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,pagebreak",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",theme_advanced_statusbar_location:"bottom",theme_advanced_resizing:!0,content_css:tiny_content_css,document_base_url:tiny_doc_base_url,template_external_list_url:"lists/template_list.js",external_link_list_url:"lists/link_list.js",external_image_list_url:"lists/image_list.js",media_external_list_url:"lists/media_list.js",elements:"nourlconvert",convert_urls:!1,language:tiny_lang,width:"600"})})},getList:function(table,action,parameters,callback){var $table=table;if(typeof table==='string'){$table=$('#'+table)}else{table=$table.attr('id')}
|
||
var div_loading='#'+table+' tbody';var data={action:action,page:1};$.extend(data,parameters);var _json={data:data,beforeSend:function(request){$('#'+table).addClass('table-loading')},success:function(json){$('#'+table+' thead').empty();$('#'+table+' tbody').empty();$('#'+table).removeClass('table-loading');var $tr_head=$('<tr/>');if(typeof json.masive!==typeof undefined&&typeof json.masive.actions!==typeof undefined&&Object.keys(json.masive.actions).length>0){var $chk_masive=$('<input/>').attr({type:'checkbox'}).addClass('masive-check-all');$chk_masive.on('change',function(e){$('#'+table+' tbody').find('.td_masive input').prop('checked',$(e.currentTarget).prop('checked'))});var $th_masive=$('<th>').addClass('text-center').appendTo($tr_head);$chk_masive.appendTo($th_masive)}
|
||
$.each(json.headers,function(field,name_field){var $th_head=$('<th/>');if(field==='actions'||(typeof json.status!==typeof undefined&&json.status instanceof Array&&(json.status.indexOf(field)!==-1)||field in json.status)){$th_head.addClass('text-center')}
|
||
if(typeof name_field==='object'){if(name_field.type==='icon'){var $span_th=$('<span/>');$('<i/>').addClass('fa-pts fa-pts-'+name_field['class']).css({cursor:'default'}).appendTo($span_th);if(typeof name_field.title!==typeof undefined){$span_th.attr({title:name_field.title})}
|
||
$th_head.append($span_th).appendTo($tr_head)}}else{$th_head.html(name_field).appendTo($tr_head)}});$tr_head.appendTo($('#'+table+' thead'));$.each(json.content,function(i,data){var $tr=$('<tr/>');if(typeof json.prefix_row!==typeof undefined&&!$.isEmpty(json.prefix_row)&&((typeof data.id!==typeof undefined&&!$.isEmpty(data.id))||(typeof data['id_'+json.prefix_row]!==typeof undefined&&!$.isEmpty(data['id_'+json.prefix_row])))){$tr.attr('id',json.prefix_row+'_'+(typeof data.id!==typeof undefined?data.id:data['id_'+json.prefix_row]))}
|
||
if(typeof json.color!==typeof undefined&&typeof data[json.color.by]!==typeof undefined){$tr.addClass(json.color.colors[data[json.color.by]])}
|
||
if(typeof json.masive!==typeof undefined&&typeof json.masive.actions!==typeof undefined&&Object.keys(json.masive.actions).length>0){var $td_masive=$('<td/>').addClass('td_masive text-center');$('<input/>').attr({type:'checkbox'}).addClass('masive-check').appendTo($td_masive).data({tr:$tr,data:data});$td_masive.appendTo($tr)}
|
||
$.each(json.headers,function(field,name_field){var $td=$('<td/>');if(field=='actions'){$td.addClass('actions text-center');var $button_group_actions=$('<div/>').addClass('btn-group').appendTo($td);$button_group_actions.append($('<button/>').dropdown().attr({type:'button','data-toggle':'dropdown'}).addClass('btn btn-default dropdown-toggle').data('toggle','dropdown').append($('<i/>').addClass('fa-pts fa-pts-cog nohover'),' ',$('<span/>').addClass('caret')));var $ul_group_actions=$('<ul/>').addClass('dropdown-menu pull-right').attr({role:'menu'}).appendTo($button_group_actions);$.each(json.actions,function(action,attributes){if(typeof attributes.condition!==typeof undefined){if(typeof attributes.condition.comparator===typeof 'string'){if(data[attributes.condition.field]!=attributes.condition.comparator){return!0}}else if(typeof attributes.condition.comparator==='object'){if($.inArray(data[attributes.condition.field],attributes.condition.comparator)<0){return!0}}}
|
||
var $item_action=$('<a/>').attr({href:'#'}).appendTo($('<li/>').appendTo($ul_group_actions));var action_class=class_name;if(typeof attributes.action_class!==typeof undefined){action_class=attributes.action_class}
|
||
if(typeof attributes['class']!==typeof undefined){var $span=$('<span/>').addClass(attributes['class']);$span.html(' '+attributes.title);if(typeof attributes.icon!==typeof undefined){var $icon=$('<i/>').addClass('fa-pts fa-pts-'+attributes.icon);$icon.prependTo($span)}
|
||
if(typeof attributes.tooltip!==typeof undefined){$span.tooltip({title:attributes.tooltip})}
|
||
$span.click(function(event){var objects=action_class.split(".");var object_class=null;for(var i=0,len=objects.length;i<len;i++){if(object_class===null){object_class=window[objects[i]]}else{object_class=object_class[objects[i]]}}
|
||
$(event.currentTarget).data('content',data);event.data=data;object_class[action](event,data)});$span.appendTo($item_action)}else if(typeof attributes.img!==typeof undefined){var $img_action=$('<img/>').attr({src:module_img+'icon/'+attributes.img,title:attributes.title,alt:attributes.title});$img_action.click(function(event){window[action_class][action](event,data)});$img_action.appendTo($item_action)}else{$item_action.text(data[field])}})}else if(typeof json.status!==typeof undefined&&json.status instanceof Array&&(json.status.indexOf(field)!==-1)||field in json.status){var $span_status=$('<span/>');var $icon_status=$('<i/>').css({'font-size':'1.5em'});var label_class;var icon_class;var status=parseInt(data[field]);if(status){label_class='success';icon_class='check-circle';$icon_status.css({color:'#5bc0de'})}else{label_class='danger';icon_class='times-circle';$icon_status.css({color:'#d9534f'})}
|
||
$icon_status.addClass('nohover fa-pts fa-pts-'+icon_class);$icon_status.appendTo($span_status);$span_status.appendTo($td);if(field in json.status&&json.status[field]instanceof Object&&typeof json.status[field].action!==typeof undefined){$span_status.addClass('cursor-pointer');if(typeof json.status[field]['class']!==typeof undefined)
|
||
$span_status.addClass(json.status[field]['class']);$span_status.click(function(event){var action_class=class_name;if(typeof json.status[field].action_class!==typeof undefined){action_class=json.status[field].action_class}
|
||
window[action_class][json.status[field].action](event,data)})}
|
||
$td.addClass('text-center')}else{var text=data[field];if(text instanceof Object&&typeof text[id_language_default]!==typeof undefined){text=text[id_language_default]}
|
||
if(typeof json.truncate!==typeof undefined){if(typeof json.truncate[field]!==typeof undefined){if(!$.isEmpty(text)&&text.length>json.truncate[field]){var $_span=$('<span/>');var _text_truncate=text.substring(0,json.truncate[field])+'...';$_span.html(_text_truncate);$_span.attr({'data-toggle':'tooltip','data-placement':'top','data-original-title':text});$_span.tooltip();$_span.appendTo($td)}else{$td.html(text)}}else{$td.html(text)}}else{$td.html(text)}
|
||
if(typeof json.link!==typeof undefined){if($.inArray(field,json.link.fields)!==-1){var url=json.link.url;if(typeof json.link.params!==typeof undefined){var _params=new Array();$.each(json.link.params,function(p,param){if(p==='token'){var _param_token=p+'='+param;_params.push(_param_token)}else{var _param=p+'='+data[param];_params.push(_param)}});url+='?'+_params.join('&')}
|
||
var $link=$('<a/>');$link.attr({href:url,target:'_blank'});if(typeof json.link.icon!==typeof undefined){var $icon_link=$('<i/>');$icon_link.addClass(json.link.icon);$icon_link.appendTo($link)}
|
||
$link.appendTo($td)}}}
|
||
$td.appendTo($tr)});$tr.appendTo($('#'+table+' tbody'))});if(typeof json.masive!==typeof undefined&&typeof json.masive.actions!==typeof undefined&&Object.keys(json.masive.actions).length>0){if(typeof $('#'+table+' tfoot')[0]===typeof undefined)
|
||
$table.append($('<tfoot/>'));$('#'+table+' tfoot').empty();var $tr_foot=$('<tr/>');var $td_foot=$('<td/>').addClass('text-right').appendTo($tr_foot).attr('colspan',Object.keys(json.headers).length+1);$tr_foot.appendTo($('#'+table+' tfoot'));var $btn_group_container=$('<div/>').addClass('input-group-btn');var $btn_masive_actions=$('<button/>').dropdown().addClass('btn btn-default dropdown-toggle').attr('data-toggle','dropdown');var $icon_masive_actions=$('<i/>').addClass('fa-pts fa-pts-caret-down nohover');$btn_masive_actions.text(json.masive.label+'\xA0');$icon_masive_actions.appendTo($btn_masive_actions);var $list_actions=$('<ul/>').addClass('dropdown-menu pull-right');$.each(json.masive.actions,function(masive_action,params){var $li_masive_action=$('<li/>');var $span_masive_action=$('<a/>').text(params.title).attr('href','#');if(typeof params.icon!==typeof undefined){$('<i>').addClass('fa-pts fa-pts-'+params.icon).css('margin-right','5px').prependTo($span_masive_action)}
|
||
$span_masive_action.appendTo($li_masive_action);$li_masive_action.appendTo($list_actions);$span_masive_action.on('click',function(masive_event){var masive_data=[];$table.find('tbody tr td.td_masive input.masive-check:checked').each(function(i,checkbox_masive){masive_data.push({index:i,tr:$(checkbox_masive).data('tr'),data:$(checkbox_masive).data('data')})});var action_class=class_name;if(typeof params.action_class!==typeof undefined)
|
||
action_class=params.action_class;var objects=action_class.split(".");var object_class=null;for(var i=0,len=objects.length;i<len;i++){if(object_class===null){object_class=window[objects[i]]}else{object_class=object_class[objects[i]]}}
|
||
if(masive_data.length>0)
|
||
object_class[masive_action](masive_event,masive_data)})});$list_actions.appendTo($btn_group_container);$btn_masive_actions.appendTo($btn_group_container);$btn_group_container.appendTo($td_foot)}
|
||
if(typeof json.pagination!==typeof undefined){$table.makePagination(json.pagination,action,parameters,callback)}
|
||
if(typeof json.sort!==typeof undefined&&typeof $.fn.tableDnD!==typeof undefined){$table.tableDnD({onDrop:function(){var index=0;if(typeof json.pagination!==typeof undefined){var $table_pagination_container=$table.data('pagination-context').container;var items_per_page=$table_pagination_container.find('.pagination-pages select').val();var page=$table_pagination_container.find('ul.pagination li.item_pagination.active').text();items_per_page=parseInt(items_per_page);page=parseInt(page);index=(items_per_page*(page-1))+1}
|
||
var items=[];$table.find('tbody tr').each(function(i,tr){var index_row=index+i;var id_item=$(tr).attr('id').split('_').pop();items.push({index:index_row,id_item:parseInt(id_item)})});var _json={data:{action:json.sort.action,items:items}};$.makeRequest(_json)}})}
|
||
if(typeof callback==='function'){callback(json)}},div_loading:div_loading};$.makeRequest(_json)},radioHandler:function(){$('div.radio-group button').click(function(e){var $parent=$(e.target).parent();$parent.find('button').removeClass('active blue');$(e.target).addClass('active blue');var _name=$parent.attr('data-toggle-name');var _val=$(e.target).val();$('input[name='+_name+']').val(_val)})},showMessage:function(message_code,message){if(typeof $.growl!=='undefined'){var data={title:"",message:message,close:'×',duration:10000};if(message_code===SUCCESS_CODE){data.icon='fa-pts fa-pts-check fa-pts-2x pull-left';$.growl.notice(data)}else{data.icon='fa-pts fa-pts-times fa-pts-2x pull-left';$.growl.error(data)}}},makeRequest:function(params){if(typeof params.data.dataType===typeof undefined)
|
||
params.data.dataType='json';if(typeof params.data.async===typeof undefined)
|
||
params.data.async=!0;if(typeof params.data.token===typeof undefined)
|
||
params.data.token=pts_static_token;if(typeof params.data.url_call===typeof undefined)
|
||
params.data.url_call=actions_controller_url;$.each(params.data,function(i,d){if(typeof d==='boolean'&&i!='async'){params.data[i]=d?1:0}});params.data.navigator=navigator.userAgent;$.ajax({type:'POST',url:params.data.url_call,async:params.data.async,cache:!1,dataType:params.data.dataType,data:params.data,beforeSend:function(request){$('.has-action').addClass('disabled');if(typeof params.beforeSend==='function')
|
||
params.beforeSend();if(typeof params.e!==typeof undefined&&typeof params.e.target!==typeof undefined){if($(params.e.target).hasClass('spinnable')){var $span=$('<span/>');$span.addClass('spinner');var $i=$('<i/>');$i.addClass('icon-spin icon-refresh');$i.appendTo($span);$span.appendTo($(params.e.target))}
|
||
$(params.e.target).blur()}},success:function(data){if(params.data.dataType=='json'&&typeof data!='object'){$.extend(!0,params.data,{dataType:'html',async:!0,action:'writeLog',error:data,data_sent:JSON.stringify(params.data)});params.beforeSend=null;params.complete=null;params.success=function(data){if(typeof params.error==='function')
|
||
params.error(data);else{alert(data)}};$.makeRequest(params);return}
|
||
if(typeof params.success==='function')
|
||
params.success(data);if(typeof data!==typeof undefined)
|
||
if(typeof data.message!==typeof undefined)
|
||
$.showMessage(data.message_code,data.message)},complete:function(jqXHR,textStatus){$('.has-action').removeClass('disabled');if(typeof params.complete==='function')
|
||
params.complete(jqXHR,textStatus);if(typeof params.e!=='undefined'&&typeof params.e.target!=='undefined'){if($(params.e.target).hasClass('spinnable'))
|
||
$(params.e.target).find('.spinner').remove()}
|
||
if(typeof callbackExtraFunctions=='function'){callbackExtraFunctions(params.data.action)}},error:function(XMLHttpRequest,textStatus,errorThrown){if(XMLHttpRequest.readyState==0||(XMLHttpRequest.readyState===4&&XMLHttpRequest.status===403&&XMLHttpRequest.statusText==='Forbidden')){location.reload();return!1}
|
||
if(XMLHttpRequest.status!=0){$.extend(!0,params.data,{dataType:'html',async:!0,action:'writeLog',code_error:XMLHttpRequest.status,name_error:XMLHttpRequest.statusText,error:XMLHttpRequest.responseText,data_sent:JSON.stringify(params.data)});params.beforeSend=null;params.complete=null;params.success=function(data){if(typeof params.error==='function')
|
||
params.error(data);else alert(data)};$.makeRequest(params)}}})},utf8_decode:function(str_data){var tmp_arr=[],i=0,ac=0,c1=0,c2=0,c3=0,c4=0;str_data+='';while(i<str_data.length){c1=str_data.charCodeAt(i);if(c1<=191){tmp_arr[ac++]=String.fromCharCode(c1);i++}else if(c1<=223){c2=str_data.charCodeAt(i+1);tmp_arr[ac++]=String.fromCharCode(((c1&31)<<6)|(c2&63));i+=2}else if(c1<=239){c2=str_data.charCodeAt(i+1);c3=str_data.charCodeAt(i+2);tmp_arr[ac++]=String.fromCharCode(((c1&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}else{c2=str_data.charCodeAt(i+1);c3=str_data.charCodeAt(i+2);c4=str_data.charCodeAt(i+3);c1=((c1&7)<<18)|((c2&63)<<12)|((c3&63)<<6)|(c4&63);c1-=0x10000;tmp_arr[ac++]=String.fromCharCode(0xD800|((c1>>10)&0x3FF));tmp_arr[ac++]=String.fromCharCode(0xDC00|(c1&0x3FF));i+=4}}
|
||
return tmp_arr.join('')},utf8_encode:function(argString){if(argString===null||typeof argString==='undefined'){return''}
|
||
var string=(argString+'');var utftext='',start,end,stringl=0;start=end=0;stringl=string.length;for(var n=0;n<stringl;n++){var c1=string.charCodeAt(n);var enc=null;if(c1<128){end++}else if(c1>127&&c1<2048){enc=String.fromCharCode((c1>>6)|192,(c1&63)|128)}else if((c1&0xF800)!=0xD800){enc=String.fromCharCode((c1>>12)|224,((c1>>6)&63)|128,(c1&63)|128)}else{if((c1&0xFC00)!=0xD800){throw new RangeError('Unmatched trail surrogate at '+n)}
|
||
var c2=string.charCodeAt(++n);if((c2&0xFC00)!=0xDC00){throw new RangeError('Unmatched lead surrogate at '+(n-1))}
|
||
c1=((c1&0x3FF)<<10)+(c2&0x3FF)+0x10000;enc=String.fromCharCode((c1>>18)|240,((c1>>12)&63)|128,((c1>>6)&63)|128,(c1&63)|128)}
|
||
if(enc!==null){if(end>start){utftext+=string.slice(start,end)}
|
||
utftext+=enc;start=end=n+1}}
|
||
if(end>start){utftext+=string.slice(start,stringl)}
|
||
return utftext},isUrlValid:function(url){if($.strpos(url,'//localhost/')){return!0}
|
||
return/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(url)},strpos:function(haystack,needle,offset){var i=(haystack+'').indexOf(needle,(offset||0));return i===-1?!1:i},changeLanguage:function(e){var for_element=$(e.target).attr('for');$('.pts .translatable-field').addClass('hide');$('.pts .translatable-field.'+for_element).removeClass('hide')},ptsChangeTab:function(event){if($(event.currentTarget).data('toggle')!=='tab'){return}
|
||
if($(event.currentTarget).hasClass('has-sub')){if(!$(event.currentTarget).parent().find('div.sub-tabs').is(':visible'))
|
||
$(event.currentTarget).parent().find('div.sub-tabs').slideDown('fast');else $(event.currentTarget).parent().find('div.sub-tabs').slideUp('fast')}else{$('.pts-menu ul li').removeClass('active');var $parent=$(event.currentTarget).parents('.sub-tabs');if(typeof $parent[0]!==typeof undefined){$parent.parent().addClass('active')}
|
||
var $aux_tab=$(event.currentTarget).clone();$aux_tab.find('span').remove();$aux_tab.find('i').remove();var text=$aux_tab.text();$('.pts-content-current-tab').text(text);$(event.currentTarget).find('i').clone().prependTo($('.pts-content-current-tab'));$('html, body').animate({scrollTop:$('body').offset().top+'px'},'fast');var tab=$(event.currentTarget).attr('href').split('-').pop();var location=window.location.href+'';location=location.split('#').shift();window.location.href=location+'#'+tab}},ptsInitChangeLog:function(){if(typeof iso_lang_backoffice_shop!==typeof undefined){var url=module_dir+'docs/CHANGELOG_EN';var $div=$('<div/>').addClass('modal-body').css('white-space','pre-line');if(iso_lang_backoffice_shop=='es'){url=module_dir+'docs/CHANGELOG_ES'}
|
||
$div.load(url);$('<div/>').addClass('modal fade').attr({id:'pts-modal-changelog'}).append($('<div/>').addClass('modal-dialog').append($('<div/>').addClass('modal-content').append($('<div/>').addClass('modal-header').append($('<span/>').addClass('close pull-right').attr({'data-dismiss':'modal'}).append($('<i/>').addClass('fa-pts fa-pts-times')),$('<h4/>').addClass('modal-title"').text('CHANGELOG - '+$('.pts-content .pts-panel .panel-heading.main-head > span.pull-right').text())),$div))).appendTo($('<div/>').addClass('pts').appendTo($('body')));$('.pts-content .pts-panel .panel-heading.main-head > span.pull-right').attr({'data-toggle':'modal','data-target':'#pts-modal-changelog'}).addClass('btn').css('text-transform','uppercase')}},ptsToggleMenuSmall:function(event){$('.pts-menu-xs-container > ul > li > div.sub-tabs').hide()},ptsGoToMenuSmall:function(event){if(!$(event.currentTarget).hasClass('has-sub')){$.ptsToggleMenuSmall(event)}},ptsInitTabDrop:function(){$('.pts-menu').on('click','ul li a',$.ptsChangeTab);var location=window.location.href+'';var tab=location.split('#').pop();if(typeof $('.pts-menu ul li a[href="#tab-'+tab+'"]')[0]===typeof undefined)
|
||
$('.pts-menu ul li.active a').trigger('click');else{$('.pts-menu ul li.active').removeClass('active');$('.pts-menu ul li a[href="#tab-'+tab+'"]').trigger('click');$('.pts-menu ul li a[href="#tab-'+tab+'"]').parents('.sub-tabs').parent().addClass('active');$('.pts-menu ul li a[href="#tab-'+tab+'"]').parents('.sub-tabs').slideDown('fast')}
|
||
$('.pts-menu-xs').on('click','.belt',$.ptsToggleMenuSmall);var $menu_xs=$('.pts-menu > ul').clone();$menu_xs.on('click','li a',$.ptsGoToMenuSmall);$menu_xs.find('li').each(function(i,li){var title=$.trim($(li).find('> a').text());$(li).attr('title',title)});$('.pts-menu-xs .pts-menu-xs-container').append($menu_xs);$('.pts-menu-toggle').on('click',$.onToggleMenu);$('.pts-menu').on('click','a',function(e){$('.pts-menu.menu-mini > ul > li > div.sub-tabs').hide();$(e.currentTarget).parent().find('div.sub-tabs').show()});if(typeof $.totalStorage!==typeof undefined){if($.totalStorage('mini-menu')){$.onToggleMenu()}}},onToggleMenu:function(event){var mini_menu=!1;if(typeof event!==typeof undefined){event.stopPropagation();event.preventDefault();if(typeof $.totalStorage!==typeof undefined&&$.totalStorage('mini-menu')){mini_menu=!$.totalStorage('mini-menu')}else{mini_menu=!0}
|
||
$('.pts-menu, .pts-content').toggleClass('menu-mini')}else{if(typeof $.totalStorage!==typeof undefined){mini_menu=$.totalStorage('mini-menu')}
|
||
if(mini_menu){$('.pts-menu, .pts-content').addClass('menu-mini')}else{$('.pts-menu, .pts-content').removeClass('menu-mini')}
|
||
$('.pts-menu.menu-mini > ul > li > div.sub-tabs').hide()}
|
||
if(typeof $.totalStorage!==typeof undefined){$.totalStorage('mini-menu',mini_menu)}},ptsEventToggle:function(){$('.pts *[data-auto-toggle]').each(function(i,element){if($(element).is(':checkbox')){$(element).on('switchChange',$.ptsAutoToggle)}})},ptsAutoToggle:function(event){var data_hide=$(event.currentTarget).attr('name');$('.pts *[data-hide="'+data_hide+'"]').toggleClass('hidden')},ptsToggleSwitchDepend:function(event){var param=$.extend({},{checked:!0},event.data);var name=$(event.currentTarget).attr('name');var checked=$(event.currentTarget).is(':checked');if(checked===param.checked){$('.depend-'+name).removeClass('hidden')}else{$('.depend-'+name).addClass('hidden')}},ptsInitColorPicker:function(){$('.color-picker').colorpicker()},ptsInitPopOver:function(){$('.btn-popover').each(function(i,element){var id=$(element).attr('id');var $content=$('#'+id+'-content');if(typeof $content[0]!==typeof undefined){$(element).popover({html:$content.hasClass('popover-html'),content:$content.html(),placement:function(pop,ele){if($(window).outerWidth()<769){return'bottom'}else{if($(element).parent().hasClass('text-left'))
|
||
return'top';else return'left'}}})}});$('.pts-label-tooltip').on('click',$.ptsToggleTooltip);$('.pts-label-tooltip').parent().on('mousemove',function(e){window.temp_x=e.pageX+20;window.temp_y=e.pageY+10})},ptsToggleTooltip:function(e){if(!$(e.target).hasClass('pts-label-tooltip'))
|
||
return;var title=$(e.currentTarget).text();$(e.currentTarget).data('tipText',title).removeAttr('title');var $tooltip=$('<p/>').addClass('pts-tooltip-container').text(title).appendTo('body').fadeIn('slow');$tooltip.css({position:'absolute',border:'1px solid #333','background-color':'#161616','border-radius':'5px',padding:'10px',color:'#fff','font-size':'12px Arial'});var remove_function=function(){$(e.currentTarget).off('click');$(e.currentTarget).off('mousemove');$tooltip.remove();$('.pts-tooltip-container').remove();$(e.currentTarget).on('click',$.ptsToggleTooltip)};var move_function=function(e){var mousex=e.pageX+20;var mousey=e.pageY+10;if(typeof e.pageY===typeof undefined&&typeof window.temp_y!==typeof undefined)
|
||
mousey=window.temp_y;if(typeof e.pageX===typeof undefined&&typeof window.temp_x!==typeof undefined)
|
||
mousex=window.temp_x;$tooltip.css({top:mousey,left:mousex})};$(e.currentTarget).on('click mouseout',remove_function);$(e.currentTarget).on('mousemove',move_function);$(e.currentTarget).trigger('mousemove')},getFAQs:function(){$.get(module_dir+'docs/FAQs.json',function(data){if(typeof data==='string'){data=jQuery.parseJSON(data)}
|
||
if(Object.keys(data).length>0){var i=0;var $div_panel_group=$('<div>').addClass('panel-group').attr('id','content_faqs');$.each(data,function(key,value){var question=value['question_'+iso_lang_backoffice_shop];var answer=value['answer_'+iso_lang_backoffice_shop];if(typeof question==='undefined'){question=value.question_en}
|
||
if(typeof answer==='undefined'){answer=value.answer_en}
|
||
var $div_panel=$('<div>').addClass('panel').appendTo($div_panel_group);var $div_panel_heading=$('<div>').addClass('panel-heading').css({'white-space':'normal',padding:'0px'}).appendTo($div_panel);var $h=$('<h5>').addClass('panel-title clearfix').css({'text-transform':'none','font-weight':'bold'}).appendTo($div_panel_heading);var $a=$('<a>').addClass('accordion-toggle').attr('data-toggle','collapse').attr('data-parent','#content_faqs').attr('href','#collapse'+i).appendTo($h);var $i=$('<i>').addClass('indicator pull-right fa-pts fa-pts-plus');var $span_content_i=$('<span>').addClass('col-sm-1 pull-right').appendTo($a).append($i);var $span=$('<span>').addClass('col-sm-11 pull-left').html(question).appendTo($a);var $div_collapse=$('<div>').attr('id','collapse'+i).addClass('panel-collapse collapse').appendTo($div_panel);var $div_panel_body=$('<div>').addClass('panel-body').css('padding','8px 0px').appendTo($div_collapse).html(answer);i++});$('div.tab-content div#tab-faqs').append($div_panel_group)}})}});jQuery.fn.extend({truncate:function(options){var defaults={more:'...'};var options=$.extend(defaults,options);return this.each(function(num){var height=parseInt($(this).css("height"));var width=parseInt($(this).css("width"));var content=$(this).html();while(this.scrollHeight>height){content=content.replace(/\s+\S*$/,"");$(this).html(content+" "+options.more)}})},displayErrors:function(errors){if(!$.isEmpty(errors)){var html='';errors=jQuery.parseJSON(errors);html='<ol>';$.each(errors,function(i,message){html+='<li>'+message+'</li>'});html+='</ol>';jQuery(this).append('<br/><br/>'+html)}},onlyCharacter:function(){jQuery(this).keypress(function(e){var key=(document.all)?e.keyCode:e.which;if(key==8||key==0)
|
||
return!0;var regExp=/[A-Za-z\s]/;return regExp.test(String.fromCharCode(key))});return jQuery(this)},onlyNumber:function(){jQuery(this).keypress(function(e){var key=(document.all)?e.keyCode:e.which;if(key==8||key==0)
|
||
return!0;var regExp=/^[0-9.]+$/;return regExp.test(String.fromCharCode(key))});return jQuery(this)},validName:function(){jQuery(this).keypress(function(e){var key=(document.all)?e.keyCode:e.which;if(key==8||key==0)
|
||
return!0;var character=String.fromCharCode(key).toString();var regExp=/^[a-zA-Zá-úÁ-ÚÄ-Üà-ù.'\s]*$/;return regExp.test(character)});return jQuery(this)},validAddress:function(){jQuery(this).keypress(function(e){var key=(document.all)?e.keyCode:e.which;if(key==8||key==0)
|
||
return!0;var character=String.fromCharCode(key).toString();var regExp=/^[a-zA-Zá-úÁ-ÚÄ-Üà-ù0-9#/.ºª\-\s,]*$/;return regExp.test(character)});return jQuery(this)},toggleLabelStatus:function(){$i_status=$(this).children('i');$i_status.toggleClass('fa-pts-times-circle fa-pts-check-circle');if($i_status.hasClass('fa-pts-check-circle')){$i_status.css('color','#5bc0de')}else{$i_status.css('color','#d9534f')}},ptsToggleDepend:function(){var me=this;var callback_checkbox=function(event){if(typeof riot!==typeof undefined&&typeof riot==='object'){var element=$(event.currentTarget);var active=element.val();active=parseInt(active);var data_hide=element.attr('name');var $element_on=$('#pts_content [data-parent="'+data_hide+'"][data-hidden-on=""]');var $element_off=$('#pts_content [data-parent="'+data_hide+'"][data-hidden-on="1"]');if(active===1){$element_on.show();$element_off.hide()}else{$element_off.show();$element_on.hide()}}else{var checked=$(event.currentTarget).is(':checked')?1:0;var data_hide=$(event.currentTarget).data('switch');var $element_on=$('.pts .pts-content [data-depend="'+data_hide+'"][data-depend-on=""]');var $element_off=$('.pts .pts-content [data-depend="'+data_hide+'"][data-depend-on="1"]');if(checked===1){$element_on.slideDown();$element_off.slideUp()}else{$element_off.slideDown();$element_on.slideUp()}}};var callback_select=function(event){var value=$(event.currentTarget).val();var name=$(event.currentTarget).attr('name');$('.pts .pts-content [data-depend="'+name+'"][data-depend-on]').each(function(i,item){var data_depend=$(item).data('depend-on');if(typeof data_depend==="string"){if(data_depend===value)
|
||
$(item).show();else $(item).hide()}else if(typeof data_depend==="object"){var shown=!1;$.each(data_depend,function(i_d,depend){if(depend===value){shown=!0}
|
||
if(i_d===(data_depend.length-1)){if(shown)
|
||
$(item).show();else $(item).hide()}})}})};if(typeof riot!==typeof undefined&&typeof riot==='object'){var data_depend=$(me).attr('name');if($(me).is('ps-switch')){var input_on=$(me).find('input[id="'+data_depend+'_on"]');var input_off=$(me).find('input[id="'+data_depend+'_off"]');input_on.on('click',callback_checkbox);input_off.on('click',callback_checkbox);if($(me).attr('active')==='true'){input_on.trigger('click')}else{input_off.trigger('click')}}else if($(me).is('ps-select')){$('select[name="'+data_depend+'"]').ptsToggleDepend()}}else{if($(me).hasClass('switch')){$(me).on('change','.switch-input',callback_checkbox);$(me).find('.switch-input').trigger('change')}else{if($(me).is('select')){if(!$(me).hasClass('depend-available')){$(me).addClass('depend-available');$(me).off('change',callback_select).on('change',callback_select);$(me).trigger('change')}}}}},clearTextLimit:function(){$(this).off('keyup')},textLimit:function(limit,callback){var me=this;$(me).on('keyup',function(event){var text=$(me).val();if(text.length>limit){$(me).val(text.substring(0,limit))}
|
||
if(typeof callback==="function")
|
||
callback(me,event)})},makePagination:function(pagination,action,parameters,callback){Pagination.init($(this),pagination,action,parameters,callback)}});var Pagination={table:null,params:null,container:null,context:[],clone:function(obj){if(null===obj||"object"!==typeof obj)
|
||
return obj;var copy=obj.constructor();for(var attr in obj){if(obj.hasOwnProperty(attr))
|
||
copy[attr]=obj[attr]}
|
||
return copy},init:function($table,pagination,action,parameters,callback){var index_context=Pagination.context.length;var instance=Pagination.clone(Pagination);Pagination.context[index_context]=instance;Pagination.context[index_context].total=pagination.total;Pagination.context[index_context].total_pages=pagination.total_pages;Pagination.context[index_context].current_page=pagination.current_page;Pagination.context[index_context].items_per_page=pagination.items_per_page;Pagination.context[index_context].pages_to_show=4;Pagination.context[index_context].table=$table;Pagination.context[index_context].params={action:action,parameters:parameters?parameters:{},callback:callback};var $badge=Pagination.context[index_context].table.parents('.table-container-list').find('#'+pagination.badge);if(pagination.hasOwnProperty('badge')&&typeof $badge!==typeof undefined&&typeof $badge[0]!==typeof undefined){$badge.text(Pagination.context[index_context].total)}
|
||
Pagination.context[index_context].table.parent().find('.paginator').remove();Pagination.context[index_context].container=$('<div/>').addClass('paginator col-md-12 text-center');Pagination.context[index_context].table.after(Pagination.context[index_context].container);Pagination.context[index_context].createPaginator(index_context);$table.data('pagination-context',Pagination.context[index_context])},registerEvents:function(index_context){Pagination.context[index_context].container.find('a.end_or_next_page, a.first_or_before_page').on('click',function(e){var $element=$(e.currentTarget);var page=$element.attr('data-page');if($element.parent('li').is('.disabled')){return}
|
||
if($element.hasClass('first_or_before_page')){Pagination.context[index_context].viewFirstOrBeforePage(index_context,{page:page})}else{Pagination.context[index_context].viewNextOrEndPage(index_context,{page:page})}})},getPagination:function(index_context){if(Pagination.context[index_context].total_pages>0){var from_page=(Pagination.current_page<Pagination.context[index_context].pages_to_show)?1:Pagination.context[index_context].current_page;from_page=parseInt(from_page);var to_page=(from_page+parseInt(Pagination.context[index_context].pages_to_show))-1;to_page=parseInt(to_page);if(parseInt(to_page)>=Pagination.context[index_context].total_pages){to_page=Pagination.context[index_context].total_pages;var diff=(parseInt(to_page)-parseInt(from_page));if(diff<Pagination.context[index_context].pages_to_show){from_page=(to_page-Pagination.context[index_context].pages_to_show)+1;from_page=(from_page<1)?1:from_page}}
|
||
Pagination.context[index_context].createItemsPagination(index_context,{from_page:from_page,to_page:to_page,page:Pagination.context[index_context].current_page})}},createPaginator:function(index_context){var $ul=$('<ul>').addClass('pagination').appendTo(Pagination.context[index_context].container);$('<a/>').append($('<li/>').addClass('fa-pts fa-pts-step-backward nohover')).appendTo($('<li>').appendTo($ul)).addClass('first_or_before_page first_page').attr('data-page',1);$('<a/>').append($('<li>').addClass('fa-pts fa-pts-angle-double-left nohover')).appendTo($('<li>').appendTo($ul)).addClass('first_or_before_page before_page');$('<a/>').addClass('end_or_next_page next_page').append($('<li/>').addClass('fa-pts fa-pts-angle-double-right nohover')).appendTo($('<li>').appendTo($ul));$('<a/>').append($('<li/>').addClass('fa-pts fa-pts-step-forward nohover')).appendTo($('<li>').appendTo($ul)).addClass('end_or_next_page end_page').attr('data-page',Pagination.context[index_context].total_pages);if(parseInt(Pagination.context[index_context].total_pages)===0){Pagination.context[index_context].container.hide()}else{Pagination.context[index_context].container.show()}
|
||
var $div_items_per_page=$('<div/>').addClass('pull-right pagination-pages').appendTo(Pagination.context[index_context].container);var show_lang=(typeof Msg!==typeof undefined&&typeof Msg.show!==typeof undefined)?Msg.show:'Show';$('<span/>').text(show_lang+':').appendTo($('<div/>').addClass('pull-left').appendTo($div_items_per_page));var $select=$('<select/>').addClass('form-control').appendTo($('<div/>').addClass('pull-right').appendTo($div_items_per_page));$.each([20,50,100,300,1000],function(i,num){$('<option/>').val(num).text(num).appendTo($select).prop('selected',(parseInt(Pagination.context[index_context].items_per_page)===parseInt(num)?!0:!1))});$select.on('change',function(e){Pagination.context[index_context].current_page=1;Pagination.context[index_context].items_per_page=$(e.currentTarget).val();Pagination.context[index_context].getList(index_context);$(e.currentTarget).blur()});Pagination.context[index_context].total_pages=Math.ceil(parseInt(Pagination.context[index_context].total)/Pagination.context[index_context].items_per_page);Pagination.context[index_context].getPagination(index_context);Pagination.context[index_context].registerEvents(index_context)},viewFirstOrBeforePage:function(index_context,params){var param=$.extend({},{page:1},params);Pagination.context[index_context].current_page=param.page;Pagination.context[index_context].getList(index_context)},viewNextOrEndPage:function(index_context,params){var param=$.extend({},{page:Pagination.context[index_context].total_pages,get_list:!0},params);Pagination.context[index_context].current_page=param.page;param.page=parseInt(param.page);var from_page=param.page;var to_page=(param.page+Pagination.context[index_context].items_per_page)-1;if(param.page===Pagination.context[index_context].total_pages||parseInt(to_page)>=Pagination.context[index_context].total_pages){from_page=(param.page-Pagination.context[index_context].items_per_page)+1;from_page=(from_page<1)?1:from_page;if(parseInt(to_page)>=Pagination.context[index_context].total_pages){to_page=param.page}}
|
||
if(param.get_list){Pagination.context[index_context].getList(index_context)}},createItemsPagination:function(index_context,params){var param=$.extend({},{from_page:1,to_page:1,page:1},params);var $element_append=Pagination.context[index_context].container.find('ul.pagination');var $elem_content_page=$element_append.find('li.item_pagination a[data-page="'+param.page+'"]');if($elem_content_page.length>0){$element_append.children('li.item_pagination.active').removeClass('active');$elem_content_page.parent('li').addClass('active')}else{$element_append.parent().find('li.item_pagination').remove();var $before=Pagination.context[index_context].container.find('ul.pagination li a.before_page').parent('li');if(param.to_page>Pagination.context[index_context].total_pages){param.to_page=Pagination.context[index_context].total_pages}
|
||
for(var i=param.from_page;i<=param.to_page;i++){var $li=$('<li>').appendTo($element_append).insertAfter($before).addClass('item_pagination');if(i===parseInt(param.page)){$li.addClass('active')}
|
||
$('<a/>').html(i).appendTo($li).data('page',i).on('click',function(e){Pagination.context[index_context].current_page=$(e.currentTarget).data('page');Pagination.context[index_context].getList(index_context)});$before=$li}}
|
||
var $before_page=$element_append.find('a.before_page, a.first_page').parent();var $next_page=$element_append.find('a.next_page, a.end_page').parent();var before_page=param.page-1;var next_page=parseInt(param.page)+1;$element_append.find('a.before_page').attr('data-page',before_page);$element_append.find('a.next_page').attr('data-page',next_page);if(next_page>Pagination.context[index_context].total_pages){$next_page.addClass('disabled')}else{$next_page.removeClass('disabled')}
|
||
if(before_page<1){$before_page.addClass('disabled')}else{$before_page.removeClass('disabled')}},getList:function(index_context){Pagination.context[index_context].params.parameters.page=Pagination.context[index_context].current_page;Pagination.context[index_context].params.parameters.items_per_page=Pagination.context[index_context].items_per_page;$.getList(Pagination.context[index_context].table,Pagination.context[index_context].params.action,Pagination.context[index_context].params.parameters,Pagination.context[index_context].params.callback)}};/**
|
||
* We offer the best and most useful modules PrestaShop and modifications for your online store.
|
||
*
|
||
* We are experts and professionals in PrestaShop
|
||
*
|
||
* @author PresTeamShop.com <support@presteamshop.com>
|
||
* @copyright 2011-2017 PresTeamShop
|
||
* @license see file: LICENSE.txt
|
||
* @category PrestaShop
|
||
* @category Module
|
||
*/
|
||
$(function(){AppOPC.init()});var AppOPC={$opc:!1,$opc_step_one:!1,$opc_step_two:!1,$opc_step_three:!1,$opc_step_review:!1,initialized:!1,load_offer:!0,is_valid_all_form:!1,jqOPC:typeof $jqOPC===typeof undefined?$:$jqOPC,init:function(){AppOPC.initialized=!0;AppOPC.$opc=$('#onepagecheckoutps');AppOPC.$opc_step_one=$('#onepagecheckoutps div#onepagecheckoutps_step_one');AppOPC.$opc_step_two=$('#onepagecheckoutps div#onepagecheckoutps_step_two');AppOPC.$opc_step_three=$('#onepagecheckoutps div#onepagecheckoutps_step_three');AppOPC.$opc_step_review=$('#onepagecheckoutps div#onepagecheckoutps_step_review');if(typeof OnePageCheckoutPS!==typeof undefined){if(typeof jeoquery!==typeof undefined){jeoquery.defaultCountryCode=OnePageCheckoutPS.iso_code_country_delivery_default;jeoquery.defaultLanguage=prestashop.language.iso_code;jeoquery.defaultData.lang=prestashop.language.iso_code}
|
||
if(typeof $.formUtils!==typeof undefined&&typeof $.validate!==typeof undefined){$.formUtils.loadModules('prestashop.js, security.js, brazil.js',OnePageCheckoutPS.ONEPAGECHECKOUTPS_DIR+'views/js/lib/form-validator/');$.validate({form:'div#onepagecheckoutps #form_login, div#onepagecheckoutps #form_onepagecheckoutps',validateHiddenInputs:!0,language:messageValidate,onError:function(){AppOPC.is_valid_all_form=!1},onSuccess:function(){AppOPC.is_valid_all_form=!0;return!1}})}
|
||
$(OnePageCheckoutPS.CONFIGS.OPC_ID_CONTENT_PAGE).css({margin:0}).addClass('opc_center_column').removeClass('col-sm-push-3');Address.launch();Fronted.launch();if(!OnePageCheckoutPS.REGISTER_CUSTOMER){$(OnePageCheckoutPS.CONFIGS.OPC_ID_CONTENT_PAGE).css({width:'100%'});Carrier.launch();Payment.launch();Review.launch()}
|
||
$('div#onepagecheckoutps #onepagecheckoutps_step_one input[data-validation*="isBirthDate"]').datepicker({dateFormat:OnePageCheckoutPS.date_format_language,changeMonth:!0,changeYear:!0,showButtonPanel:!0,yearRange:'-100:+0',isRTL:parseInt(prestashop.language.is_rtl)});$('div#onepagecheckoutps #onepagecheckoutps_step_one input[data-validation*="isDate"]').datepicker({dateFormat:OnePageCheckoutPS.date_format_language,changeMonth:!0,changeYear:!0,showButtonPanel:!0,yearRange:'-100:+0',isRTL:parseInt(prestashop.language.is_rtl)})}else{$('.cart-detailed-actions a').attr('href',prestashop.urls.current_url+'?checkout=1');$('form#voucher').attr('action',prestashop.urls.current_url);var href_delete_voucher=$('a.price_discount_delete').attr('href');if(typeof(href_delete_voucher)!='undefined'){href_delete_voucher=href_delete_voucher.split('?');$('a.price_discount_delete').attr('href',prestashop.urls.current_url+'?'+href_delete_voucher[1])}}}}
|
||
var Fronted={launch:function(){$('div#onepagecheckoutps #opc_show_login').click(function(){Fronted.showModal({type:'normal',title:$('#opc_login').attr('title'),title_icon:'fa-pts-user',content:$('#opc_login')})});AppOPC.$opc.find('#opc_login').on('click','#btn_login',Fronted.loginCustomer);AppOPC.$opc.find('#div_onepagecheckoutps_login').on('click','#btn_logout',function(){$.totalStorageOPC('id_address_delivery',null);$.totalStorageOPC('id_address_invoice',null)});AppOPC.$opc.on('click','#btn_continue_shopping',function(){var link=$('div#onepagecheckoutps #btn_continue_shopping').data('link');if(typeof link===typeof undefined){link=prestashop.urls.pages.index}
|
||
window.location=link});AppOPC.$opc.on('click','#btn-logout',function(e){window.location=$(e.currentTarget).data('link')});AppOPC.$opc.find('#opc_login #txt_login_password').keypress(function(e){var code=(e.keyCode?e.keyCode:e.which);if(code==13)
|
||
Fronted.loginCustomer()})},openCMS:function(params){var param=$.extend({},{id_cms:''},params);var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime(),is_ajax:!0,dataType:'html',action:'loadCMS',id_cms:param.id_cms};var _json={data:data,beforeSend:function(){Fronted.loadingBig(!0)},success:function(html){if(!$.isEmpty(html)){Fronted.showModal({name:'cms_modal',content:html})}},complete:function(){Fronted.loadingBig(!1)}};$.makeRequest(_json)},loadingBig:function(show){if(show){AppOPC.$opc.addClass('opc_overlay');if($(window).width()>=1024){AppOPC.$opc.find('.loading_big').show()}else{$('body').append('<div id="opc_loading">'+OnePageCheckoutPS.Msg.processing_purchase+'<i class="fa-pts fa-pts-spin fa-pts-refresh"></i></div>');$('div#opc_loading').addClass('animate')}}else{AppOPC.$opc.removeClass('opc_overlay');if($(window).width()>=1024){AppOPC.$opc.find('.loading_big').hide()}else{$('div#opc_loading').remove()}}},showModal:function(params){var param=$.extend({},{name:'opc_modal',type:'normal',title:'',title_icon:'',message:'',content:'',close:!0,button_close:!1,size:'',callback:'',callback_close:''},params);$('#'+param.name).remove();var windows_height=$(window).height();var parent_content='';if(typeof param.content==='object'){parent_content=param.content.parent()}
|
||
var $modal=$('<div/>').attr({id:param.name,'class':'modal fade',role:'dialog'});var $modal_dialog=$('<div/>').attr({'class':'modal-dialog '+param.size});var $modal_header=$('<div/>').attr({'class':'modal-header'});var $modal_content=$('<div/>').attr({'class':'modal-content'});var $modal_body=$('<div/>').attr({'class':'modal-body'});var $modal_footer=$('<div/>').attr({'class':'modal-footer'});var $modal_button_close=$('<button/>').attr({type:'button','class':'close'}).click(function(){$('#'+param.name).modal('hide')}).append('<i class="fa-pts fa-pts-close"></i>');var $modal_button_close_footer=$('<button/>').attr({type:'button','class':'btn btn-default'}).click(function(){$('#'+param.name).modal('hide')}).append('OK');var $modal_title='';if(typeof param.message==='array'){var message_html='';$.each(param.message,function(i,message){message_html+='- '+message+'<br/>'});param.message=message_html}
|
||
if(param.type=='error'){$modal_title=$('<span/>').attr({'class':'panel-title'}).append(param.close?$modal_button_close:'').append('<i class="fa-pts fa-pts-times-circle fa-pts-2x" style="color:red"></i>').append(param.message)}else if(param.type=='warning'){$modal_title=$('<span/>').attr({'class':'panel-title'}).append(param.close?$modal_button_close:'').append('<i class="fa-pts fa-pts-warning fa-pts-2x" style="color:orange"></i>').append(param.message)}else{$modal_title=$('<span/>').attr({'class':'panel-title'}).append(param.close?$modal_button_close:'').append('<i class="fa-pts '+param.title_icon+' fa-pts-1x"></i>').append(param.title)}
|
||
$modal_header.append($modal_title);$modal_content.append($modal_header);if(param.type=='normal'){if(typeof param.content==='object'){param.content.removeClass('hidden').appendTo($modal_body)}else{$modal_body.append(param.content)}
|
||
$modal_content.append($modal_body);if(param.button_close){$modal_footer.append($modal_button_close_footer);$modal_content.append($modal_footer)}}
|
||
$modal_dialog.append($modal_content);$modal.append($modal_dialog);$modal.on('hide.bs.modal',function(){if(!param.close){return!1}else{if(typeof param.callback_close!==typeof undefined&&typeof param.callback_close==='function'){if(!param.callback_close()){return!1}}
|
||
if(!$.isEmpty(parent_content)){param.content.appendTo(parent_content).addClass('hidden')}
|
||
$('body').removeClass('modal-open')}});$('div#onepagecheckoutps').prepend($modal);$('#'+param.name).modal('show');if(!$('#'+param.name).hasClass('in')){$('#'+param.name).addClass('in').css({display:'block'})}
|
||
var paddingTop=0
|
||
if(windows_height>$modal_dialog.height()){paddingTop=(windows_height-$modal_dialog.height())/2}
|
||
$('#'+param.name).css({paddingTop:paddingTop});Fronted.loadingBig(!1);if(typeof param.callback!==typeof undefined&&typeof param.callback==='function')
|
||
param.callback();$('.pakkelabels_modal-backdrop').remove();window.scrollTo(0,$('div#onepagecheckoutps').offset().top)},loginCustomer:function(){var email=$('#opc_login #txt_login_email').val();var password=$('#opc_login #txt_login_password').val();var login_success=!1;var data={is_ajax:!0,action:'loginCustomer',email:email,password:password};$('div#onepagecheckoutps #form_login').submit();if(AppOPC.is_valid_all_form){$.ajax({type:'POST',url:prestashop.urls.current_url+'?rand='+new Date().getTime(),cache:!1,dataType:'json',data:data,beforeSend:function(){$('#opc_login #btn_login').attr('disabled','true');$('#opc_login .loading_small').show();$('#opc_login .alert').empty().addClass('hidden')},success:function(json){if(json.success){$.totalStorageOPC('id_address_delivery',null);$.totalStorageOPC('id_address_invoice',null);if($('div#onepagecheckoutps #onepagecheckoutps_step_review_container').length>0){window.parent.location.reload()}else{if(parseInt($('.shopping_cart .ajax_cart_quantity').text())>0){window.parent.location=prestashop.urls.current_url}else{window.parent.location=prestashop.urls.base_url}}
|
||
login_success=!0}else{if(json.errors){$('#opc_login .alert').html('• '+json.errors.join('<br>• ')).removeClass('hidden')}}},complete:function(){if(!login_success){$('#opc_login #btn_login').removeAttr('disabled');$('#opc_login .loading_small').hide()}}})}},openWindow:function(url){var LeftPosition=(screen.width)?(screen.width-700)/2:0;var TopPosition=(screen.height)?(screen.height-500)/2:0;window.open(url,'','height=500,width=600,top='+(TopPosition-10)+',left='+LeftPosition+',toolbar=no,directories=no,status=no,menubar=no,modal=yes,scrollbars=yes')}}
|
||
var Address={id_customer:0,id_address_delivery:0,id_address_invoice:0,delivery_vat_number:!1,invoice_vat_number:!1,launch:function(){$('div#onepagecheckoutps #field_customer_id').addClass('hidden');$('div#onepagecheckoutps #btn_save_customer').click(Address.createCustomer);if($.inArray(prestashop.language.iso_code,OnePageCheckoutPS.LANG_ISO_ALLOW)==0)
|
||
$('#customer_firstname, #customer_lastname').validName();$('div#onepagecheckoutps').on('blur','#customer_email',function(e){Address.checkEmailCustomer($(e.currentTarget).val())});$('div#onepagecheckoutps').on("click","#div_privacy_policy span.read",function(){Fronted.openCMS({id_cms:OnePageCheckoutPS.CONFIGS.OPC_ID_CMS_PRIVACY_POLICY})});if($('#onepagecheckoutps_step_one #br_document_cpf').length>0){$('#onepagecheckoutps_step_one #br_document_cpf').attr('data-validation','cpf').removeClass('validate')}
|
||
AppOPC.$opc_step_one.find('input.customer, input.delivery, input.invoice, #customer_conf_passwd, #customer_conf_email').on('paste',function(e){var $element=$(e.currentTarget);setTimeout(function(){$element.val($.trim($element.val()))},100)});AppOPC.$opc_step_one.find('.container_help_invoice span').click(function(){$('#onepagecheckoutps_step_one #li_invoice_address a').trigger('click')});if(OnePageCheckoutPS.SHOW_DELIVERY_VIRTUAL||$('div#onepagecheckoutps #onepagecheckoutps_step_two #input_virtual_carrier').length<=0){if($.inArray(prestashop.language.iso_code,OnePageCheckoutPS.LANG_ISO_ALLOW)==0){$('div#onepagecheckoutps #delivery_firstname, div#onepagecheckoutps #delivery_lastname').validName();$('div#onepagecheckoutps #delivery_address1, div#onepagecheckoutps #delivery_address2, div#onepagecheckoutps #delivery_city').validAddress()}
|
||
if(!OnePageCheckoutPS.IS_LOGGED){$('div#onepagecheckoutps #field_delivery_id').addClass('hidden')}
|
||
if($('div#onepagecheckoutps select#delivery_id_country').length<=0){Address.updateState({object:'delivery',id_country:OnePageCheckoutPS.id_country_delivery_default})}
|
||
Address.initPostCodeGeonames({object:'delivery'});$('div#onepagecheckoutps').on('change','#delivery_city',function(){$('#delivery_city_list').val('')}).on('change','select#delivery_id_state',function(event){Address.getCitiesByState({object:'delivery'});if(OnePageCheckoutPS.CONFIGS.OPC_RELOAD_SHIPPING_BY_STATE){Carrier.getByCountry()}}).on('change','select#delivery_id_country',function(event){Address.isNeedDniByCountryId({object:'delivery'});Address.isNeedPostCodeByCountryId({object:'delivery'});Address.updateState({object:'delivery',id_country:$(event.currentTarget).val()});Address.initPostCodeGeonames({object:'delivery'});Carrier.getByCountry();if(typeof event.originalEvent!==typeof undefined&&AppOPC.$opc.find('input#delivery_postcode').length>0&&!$.isEmpty(AppOPC.$opc.find('input#invoice_postcode').val())){AppOPC.$opc.find('input#delivery_postcode').validate()}
|
||
if(OnePageCheckoutPS.CONFIGS.OPC_SHOW_LIST_CITIES_GEONAMES){$('#onepagecheckoutps_step_one #delivery_city_list').empty().hide();$('#onepagecheckoutps_step_one #delivery_city').val('')}
|
||
Address.loadAutocompleteAddress()}).on('change','select#delivery_id',function(e){if(!$.isEmpty($(e.currentTarget).val()))
|
||
Address.load({object:'delivery'});else{Address.createAddressAjax({object:'delivery'})}}).on('click','input#checkbox_create_account_guest',Address.checkGuestAccount).on('click','input#checkbox_create_account',Address.checkGuestAccount).on('change','select#id_district',Carrier.getByCountry).on('change','select#id_subdistrict',Carrier.getByCountry);Address.checkGuestAccount();Address.isNeedDniByCountryId({object:'delivery'});Address.isNeedPostCodeByCountryId({object:'delivery'});Address.getCityByPostCode({object:'delivery'})}
|
||
if(OnePageCheckoutPS.CONFIGS.OPC_ENABLE_INVOICE_ADDRESS){if(typeof $.totalStorageOPC!==typeof undefined){if($.totalStorageOPC('create_invoice_address')){$('div#onepagecheckoutps #checkbox_create_invoice_address').attr('checked','true')}}
|
||
if($.inArray(prestashop.language.iso_code,OnePageCheckoutPS.LANG_ISO_ALLOW)==0){$('div#onepagecheckoutps #invoice_firstname, div#onepagecheckoutps #invoice_lastname').validName();$('div#onepagecheckoutps #invoice_address1, div#onepagecheckoutps #invoice_address2, div#onepagecheckoutps #invoice_city').validAddress()}
|
||
if(!OnePageCheckoutPS.IS_LOGGED){$('div#onepagecheckoutps #field_invoice_id').addClass('hidden')}
|
||
if(OnePageCheckoutPS.CONFIGS.OPC_ENABLE_INVOICE_ADDRESS){Address.checkNeedInvoice();$('div#onepagecheckoutps').on('click','input#checkbox_create_invoice_address',function(event){Address.checkNeedInvoice();if($(event.currentTarget).is(':checked')){Address.updateAddressInvoice()}else{Address.removeAddressInvoice()}})}
|
||
if($('div#onepagecheckoutps select#invoice_id_country').length<=0){Address.updateState({object:'invoice',id_country:OnePageCheckoutPS.id_country_invoice_default})}
|
||
Address.initPostCodeGeonames({object:'invoice'});$('div#onepagecheckoutps').on('change','#invoice_city',function(){$('#invoice_city_list').val('')}).on('change','select#invoice_id_state',function(){Address.getCitiesByState({object:'invoice'});Address.updateAddressInvoice()}).on('change','select#invoice_id_country',function(event){Address.isNeedDniByCountryId({object:'invoice'});Address.isNeedPostCodeByCountryId({object:'invoice'});Address.updateState({object:'invoice',id_country:$(event.currentTarget).val()});Address.updateAddressInvoice();Address.initPostCodeGeonames({object:'invoice'});if(typeof event.originalEvent!==typeof undefined&&AppOPC.$opc.find('input#invoice_postcode').length>0&&!$.isEmpty(AppOPC.$opc.find('input#invoice_postcode').val())){AppOPC.$opc.find('input#invoice_postcode').validate()}
|
||
if(OnePageCheckoutPS.CONFIGS.OPC_SHOW_LIST_CITIES_GEONAMES){$('#onepagecheckoutps_step_one #invoice_city_list').empty().hide();$('#onepagecheckoutps_step_one #invoice_city').val('')}
|
||
Address.loadAutocompleteAddress()}).on('change','select#invoice_id',function(e){if(!$.isEmpty($(e.currentTarget).val())){Address.load({object:'invoice'})}else{Address.createAddressAjax({object:'invoice'})}});Address.isNeedDniByCountryId({object:'invoice'});Address.isNeedPostCodeByCountryId({object:'invoice'});Address.getCityByPostCode({object:'invoice'})}
|
||
Address.load()},initPostCodeGeonames:function(params){var param=$.extend({},{object:'delivery'},params);if(OnePageCheckoutPS.CONFIGS.OPC_AUTO_ADDRESS_GEONAMES&&AppOPC.$opc_step_one.find('#'+param.object+'_postcode').length>0){var $id_country=$('#onepagecheckoutps_step_one #'+param.object+'_id_country');var iso_code_country='';if($id_country.length>0){iso_code_country=$id_country.find('option:selected').data('iso-code')}else{iso_code_country=OnePageCheckoutPS.iso_code_country_delivery_default}
|
||
$('#onepagecheckoutps_step_one #'+param.object+'_postcode').jeoPostCodeAutoComplete({country:iso_code_country,callback:function(data){$('#onepagecheckoutps_step_one #'+param.object+'_postcode').val(data.postalCode);$('#onepagecheckoutps_step_one #'+param.object+'_city_list').val(data.name);$('#onepagecheckoutps_step_one #'+param.object+'_city').val(data.name);if($('#onepagecheckoutps_step_one #'+param.object+'_id_state [data-text="'+data.adminName2+'"]').length<=0){$('#onepagecheckoutps_step_one #'+param.object+'_id_state [data-iso-code="'+data.countryCode+'-'+data.adminCode2+'"]').attr('selected','true')}else{$('#onepagecheckoutps_step_one #'+param.object+'_id_state [data-text="'+data.adminName2+'"]').attr('selected','true')}
|
||
if(typeof is_necessary_postcode!==typeof undefined&&is_necessary_postcode){$('#onepagecheckoutps_step_one #'+param.object+'_postcode').trigger('blur')}else if(typeof is_necessary_city!==typeof undefined&&is_necessary_city){$('#onepagecheckoutps_step_one #'+param.object+'_city').trigger('blur')}
|
||
if(typeof is_necessary_postcode!==typeof undefined&&!is_necessary_postcode&&typeof is_necessary_postcode!==typeof undefined&&!is_necessary_postcode){$('#onepagecheckoutps_step_one #'+param.object+'_id_state [data-text="'+data.adminName2+'"]').trigger('change')}}})}},getCityByPostCode:function(params){var param=$.extend({},{object:'delivery'},params);if(1==2){var $city_list=$('#onepagecheckoutps_step_one #'+param.object+'_city_list');if($city_list.length<=0||($city_list.length>0&&!$city_list.is(':visible'))){var $id_country=$('#onepagecheckoutps_step_one #'+param.object+'_id_country');var $postcode=$('#onepagecheckoutps_step_one #'+param.object+'_postcode');var $city=$('#onepagecheckoutps_step_one #'+param.object+'_city');if($postcode.length>0&&$city.length>0){$postcode.jeoPostalCodeLookup({country:$id_country.find('option:selected').data('iso-code'),target:$city})}}}},getCitiesByState:function(params){var param=$.extend({},{object:'delivery'},params);if(OnePageCheckoutPS.CONFIGS.OPC_SHOW_LIST_CITIES_GEONAMES){var $id_country=$('#onepagecheckoutps_step_one #'+param.object+'_id_country');var $id_state=$('#onepagecheckoutps_step_one #'+param.object+'_id_state');var iso_code_country='';if($id_country.length>0){iso_code_country=$id_country.find('option:selected').data('iso-code')}else{iso_code_country=OnePageCheckoutPS.iso_code_country_delivery_default}
|
||
var name_state=$.trim($id_state.find('option:selected').data('text'));if($id_state.length>0&&!$.isEmpty(name_state)){var cities=Array();var current_city=$('#onepagecheckoutps_step_one #'+param.object+'_city').val();jeoquery.getGeoNames('search',{q:name_state,country:iso_code_country,featureClass:'P',style:'full'},function(data){function dynamicSort(property){var sortOrder=1;if(property[0]==="-"){sortOrder=-1;property=property.substr(1)}
|
||
return function(a,b){var result=(a[property]<b[property])?-1:(a[property]>b[property])?1:0;return result*sortOrder}}
|
||
$.each(data.geonames,function(i,item){if($.inArray(item.name,cities)==-1){cities.push({name:$.trim(item.name),postcode:item.adminCode3})}});cities.sort(dynamicSort('name'));var $city_list=$('#onepagecheckoutps_step_one #'+param.object+'_city_list');if($city_list.length<=0){$city_list=$('<select/>').attr({id:param.object+'_city_list',class:'form-control input-sm not_unifrom not_uniform'}).on('change',function(event){var option_selected=$(event.currentTarget).find('option:selected');$('#onepagecheckoutps_step_one #'+param.object+'_city').val($(option_selected).attr('value')).trigger('blur');$('#onepagecheckoutps_step_one #'+param.object+'_postcode').val($(option_selected).attr('data-postcode'))})}else{$city_list.html('').show()}
|
||
var $option=$('<option/>').attr({value:''}).append('--');$option.appendTo($city_list);$.each(cities,function(i,city){var $option=$('<option/>').attr({'value':city.name,'data-postcode':city.postcode}).append(city.name);if(city==current_city){$option.attr('selected','true')}
|
||
$option.appendTo($city_list)});$('#onepagecheckoutps_step_one #field_'+param.object+'_city').append($city_list)})}else{$('#onepagecheckoutps_step_one #'+param.object+'_city_list').hide()}}},loadAddressesCustomer:function(params){var param=$.extend({},{callback:''},params);var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime(),is_ajax:!0,action:'loadAddressesCustomer'};var _json={data:data,success:function(json){if(typeof json.addresses!==typeof undefined){$delivery_id=$('div#onepagecheckoutps #delivery_id');$invoice_id=$('div#onepagecheckoutps #invoice_id');if($delivery_id.length>0){if(OnePageCheckoutPS.IS_LOGGED&&OnePageCheckoutPS.IS_GUEST){$('#onepagecheckoutps_step_one #field_delivery_id').parent().hide()}else{$delivery_id.find('option').prop('selected',!1)
|
||
$delivery_id.find('option:not(:first)').remove();$.each(json.addresses,function(i,address){var $option=$('<option/>').attr({value:address.id_address,}).append(address.alias);if(json.id_address_delivery==address.id_address){$option.prop('selected',!0)}
|
||
$option.appendTo($delivery_id)});if(typeof $.totalStorageOPC!==typeof undefined){var id_address_delivery=$.totalStorageOPC('id_address_delivery');if(id_address_delivery){var $option=$('div#onepagecheckoutps #delivery_id option[value='+id_address_delivery+']');if($option.length>0){$option.attr('selected','true')}}}}}
|
||
if($invoice_id.length>0){if(OnePageCheckoutPS.IS_LOGGED&&OnePageCheckoutPS.IS_GUEST){$('#onepagecheckoutps_step_one #field_invoice_id').parent().hide()}else{$invoice_id.find('option:not(:first)').remove();$.each(json.addresses,function(i,address){var $option=$('<option/>').attr({value:address.id_address,}).append(address.alias);if(json.id_address_invoice==address.id_address){$option.prop('selected',!0)}
|
||
$option.appendTo($invoice_id)});if(typeof $.totalStorageOPC!==typeof undefined){var id_address_invoice=$.totalStorageOPC('id_address_invoice');if(id_address_invoice){var $option=$('div#onepagecheckoutps #invoice_id option[value='+id_address_invoice+']');if($option.length>0){$option.attr('selected','true')}}}}}}},complete:function(){if(typeof param.callback!==typeof undefined&&typeof param.callback==='function'){param.callback()}}};$.makeRequest(_json)},createAddressAjax:function(params){var param=$.extend({},{callback:'',object:'delivery'},params);var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime(),is_ajax:!0,dataType:'html',action:'createAddressAjax',object:param.object};var _json={data:data,success:function(id_address){if(!$.isEmpty(id_address)){if(typeof $.totalStorageOPC!==typeof undefined){if(param.object=='delivery'){$.totalStorageOPC('id_address_delivery',id_address)}
|
||
if(param.object=='invoice'){$.totalStorageOPC('id_address_invoice',id_address)}}
|
||
var callback=function(){Address.clearFormByObject(param.object)}
|
||
Address.loadAddressesCustomer({callback:callback})}},complete:function(){if(typeof param.callback!==typeof undefined&&typeof param.callback==='function'){param.callback()}}};$.makeRequest(_json)},createCustomer:function(){$('div#onepagecheckoutps #form_onepagecheckoutps').submit();if(!AppOPC.is_valid_all_form){if($('#delivery_address_container .required.has-error').length==0&&$('#invoice_address_container .required.has-error').length>0){$('#onepagecheckoutps_step_one #li_delivery_address .nav-link, #onepagecheckoutps_step_one #delivery_address_container').removeClass('active');$('#onepagecheckoutps_step_one #li_invoice_address .nav-link, #onepagecheckoutps_step_one #invoice_address_container').removeClass('active');$('#onepagecheckoutps_step_one #li_invoice_address .nav-link, #onepagecheckoutps_step_one #invoice_address_container').addClass('active')}}
|
||
if(AppOPC.is_valid_all_form&&OnePageCheckoutPS.CONFIGS.OPC_ENABLE_PRIVACY_POLICY&&!OnePageCheckoutPS.IS_LOGGED&&!OnePageCheckoutPS.IS_GUEST&&!$('div#onepagecheckoutps #onepagecheckoutps_step_one #privacy_policy').is(':checked')){$('div#onepagecheckoutps #onepagecheckoutps_step_one #div_privacy_policy').addClass('alert alert-warning');Fronted.showModal({type:'warning',message:OnePageCheckoutPS.Msg.agree_privacy_policy});AppOPC.is_valid_all_form=!1}
|
||
if(AppOPC.is_valid_all_form){var invoice_id='';var fields=Review.getFields();if(OnePageCheckoutPS.CONFIGS.OPC_ENABLE_INVOICE_ADDRESS&&$('div#onepagecheckoutps #checkbox_create_invoice_address').length>0){if($('div#onepagecheckoutps #checkbox_create_invoice_address').is(':checked')){invoice_id=$('#invoice_id').val()}}else{invoice_id=$('#invoice_id').val()}
|
||
var _extra_data=Review.getFieldsExtra({});var _data=$.extend({},_extra_data,{'url_call':prestashop.urls.current_url+'?rand='+new Date().getTime(),'is_ajax':!0,'dataType':'json','action':(OnePageCheckoutPS.IS_LOGGED?'placeOrder':'createCustomerAjax'),'id_customer':(!$.isEmpty(AppOPC.$opc_step_one.find('#customer_id').val())?AppOPC.$opc_step_one.find('#customer_id').val():''),'id_address_delivery':(!$.isEmpty(AppOPC.$opc_step_one.find('#delivery_id').val())?AppOPC.$opc_step_one.find('#delivery_id').val():''),'id_address_invoice':invoice_id,'is_new_customer':(AppOPC.$opc_step_one.find('#checkbox_create_account_guest').is(':checked')?0:1),'fields_opc':JSON.stringify(fields),});var _json={data:_data,beforeSend:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_one_container .loading_small').show()},success:function(data){if(data.isSaved&&(!OnePageCheckoutPS.PS_GUEST_CHECKOUT_ENABLED||$('#checkbox_create_account_guest').is(':checked'))){AppOPC.$opc_step_one.find('#customer_id').val(data.id_customer);AppOPC.$opc_step_one.find('#customer_email, #customer_conf_email, #customer_passwd, #customer_conf_passwd').attr({'disabled':'true','data-validation-optional':'true'});$('#div_onepagecheckoutps_login, #field_customer_passwd, #field_customer_conf_passwd, #field_customer_email, #field_customer_conf_email, div#onepagecheckoutps #onepagecheckoutps_step_one_container .account_creation, #field_choice_group_customer').addClass('hidden')}
|
||
if(data.hasError){Fronted.showModal({type:'error',message:'• '+data.errors.join('<br>• ')})}else{if(typeof $.totalStorageOPC!==typeof undefined){$.totalStorageOPC('id_address_delivery',data.id_address_delivery);$.totalStorageOPC('id_address_invoice',data.id_address_invoice)}
|
||
if(!OnePageCheckoutPS.IS_LOGGED&&!OnePageCheckoutPS.IS_GUEST){if(prestashop.cart.products_count>0){window.parent.location=prestashop.urls.current_url}else{window.parent.location=prestashop.urls.pages.my_account}
|
||
$('div#onepagecheckoutps #btn_save_customer').attr('disabled','true')}else{var callback=function(){if(!OnePageCheckoutPS.IS_VIRTUAL_CART){Carrier.getByCountry()}else{Payment.getByCountry()}};Address.loadAddressesCustomer({callback:callback})}}},complete:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_one_container .loading_small').hide()}};$.makeRequest(_json)}},load:function(params){var param=$.extend({},{object:''},params);var loaded=!1;if(!$.isEmpty($("#delivery_id").val())){Address.id_address_delivery=$("#delivery_id").val();$.totalStorageOPC('id_address_delivery',Address.id_address_delivery)}else{if(typeof $.totalStorageOPC!==typeof undefined){if($.totalStorageOPC('id_address_delivery')){Address.id_address_delivery=$.totalStorageOPC('id_address_delivery')}}}
|
||
if(!$.isEmpty($("#invoice_id").val())){Address.id_address_invoice=$("#invoice_id").val();$.totalStorageOPC('id_address_invoice',Address.id_address_invoice)}else{if(typeof $.totalStorageOPC!==typeof undefined){if($.totalStorageOPC('id_address_invoice')){Address.id_address_invoice=$.totalStorageOPC('id_address_invoice')}}}
|
||
var callback=function(){Address.getCitiesByState({object:'delivery'});if($('#onepagecheckoutps_step_one_container #invoice_address_container').length>0){Address.getCitiesByState({object:'invoice'})}
|
||
if(is_virtual_cart&&!loaded){if(OnePageCheckoutPS.CONFIGS.OPC_SHOW_DELIVERY_VIRTUAL&&$('div#onepagecheckoutps #delivery_id_country').length>0){$('div#onepagecheckoutps #delivery_id_country').trigger('change')}else{Payment.getByCountry()}}else{if($('div#onepagecheckoutps #delivery_id_country').length>0&&!OnePageCheckoutPS.IS_LOGGED){$('div#onepagecheckoutps #delivery_id_country').trigger('change')}else{if(!is_virtual_cart)
|
||
Carrier.getByCountry()}}
|
||
Address.loadAutocompleteAddress()}
|
||
if(OnePageCheckoutPS.IS_LOGGED||OnePageCheckoutPS.IS_GUEST){var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime(),is_ajax:!0,action:'loadAddress',delivery_id:Address.id_address_delivery,invoice_id:Address.id_address_invoice,is_set_invoice:AppOPC.$opc_step_one.find('input#checkbox_create_invoice_address').is(':checked')};var _json={data:data,beforeSend:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_one_container .loading_small').show()},success:function(json){if(!json.hasError&&(!$.isEmpty(json.customer.id)||!$.isEmpty(json.address_delivery.id)||!$.isEmpty(json.address_invoice.id))){Address.id_address_delivery=$.isEmpty(json.address_delivery.id)?0:json.address_delivery.id;Address.id_address_invoice=$.isEmpty(json.address_invoice.id)?0:json.address_invoice.id;Address.id_customer=$.isEmpty(json.customer.id)?0:json.customer.id;if($('div#onepagecheckoutps #delivery_id option').length<=1){Address.loadAddressesCustomer()}
|
||
var object_load='.customer, '+(param.object==''?'.delivery, .invoice':'.'+param.object);$('div#onepagecheckoutps #onepagecheckoutps_step_one').find(object_load).each(function(i,field){var $field=$(field);var name=$field.attr('data-field-name');var default_value=$field.attr('data-default-value');var object='';if($field.hasClass('customer')){var value=json.customer[name];object='customer'}else if($field.hasClass('delivery')){var value=json.address_delivery[name];object='delivery'}else if($field.hasClass('invoice')){var value=json.address_invoice[name];object='invoice'}
|
||
$check_invoice=$('div#onepagecheckoutps input#checkbox_create_invoice_address');if(object=='invoice'&&!OnePageCheckoutPS.CONFIGS.OPC_REQUIRED_INVOICE_ADDRESS&&!$check_invoice.is(':checked')){$('div#onepagecheckoutps #onepagecheckoutps_step_one #invoice_id').val('');return}
|
||
if(name=='id_state'){return}
|
||
if(value=='0000-00-00')
|
||
value='';if($field.is(':checkbox')){if(parseInt(value))
|
||
$field.attr('checked','true');else $field.removeAttr('checked')}else if($field.is(':radio')){if($field.val()==value)
|
||
$field.attr('checked','true')}else{if(name=='birthday'){var date_value=value.split('-');var date_string=OnePageCheckoutPS.date_format_language.replace('dd',date_value[2]);date_string=date_string.replace('mm',date_value[1]);date_string=date_string.replace('yy',date_value[0]);$field.val(date_string)}else{$field.val(value)}
|
||
if($field.is(':text'))
|
||
if(value==default_value)
|
||
$field.val('')}
|
||
if(name=='email'){if((OnePageCheckoutPS.IS_LOGGED&&!OnePageCheckoutPS.IS_GUEST)||!OnePageCheckoutPS.PRESTASHOP.CONFIGS.PS_GUEST_CHECKOUT_ENABLED){$field.attr('disabled','true').addClass('disabled')}else{$('div#onepagecheckoutps #onepagecheckoutps_step_one #customer_conf_email').val($field.val())}}});Address.isNeedDniByCountryId({object:'delivery'});Address.updateState({object:'delivery',id_state_default:json.address_delivery.id_state});Address.isNeedDniByCountryId({object:'invoice'});Address.updateState({object:'invoice',id_state_default:json.address_invoice.id_state});if(OnePageCheckoutPS.IS_VIRTUAL_CART){Payment.getByCountry();loaded=!0}}else{if(json.hasError){Fronted.showModal({type:'error',message:json.errors})}else if(json.hasWarning){Fronted.showModal({type:'warning',message:json.warnings})}}},complete:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_one_container .loading_small').hide();callback()}};$.makeRequest(_json)}else{callback()}},loadAutocompleteAddress:function(){if(OnePageCheckoutPS.CONFIGS.OPC_AUTOCOMPLETE_GOOGLE_ADDRESS&&!$.isEmpty(OnePageCheckoutPS.CONFIGS.OPC_GOOGLE_API_KEY)&&typeof google.maps.places!==typeof undefined){if($('#delivery_address1').length>0){var iso_code_country=null;var $id_country=$('div#onepagecheckoutps select#delivery_id_country');if($id_country.length>0){iso_code_country=$id_country.find('option:selected').data('iso-code')}else{iso_code_country=OnePageCheckoutPS.iso_code_country_delivery_default}
|
||
Address.autocomplete_delivery=new google.maps.places.Autocomplete((document.getElementById('delivery_address1')),{types:['geocode'],componentRestrictions:{country:iso_code_country}});google.maps.event.addListener(Address.autocomplete_delivery,'place_changed',function(){Address.fillInAddress('delivery',Address.autocomplete_delivery)})}
|
||
if($('#invoice_address1').length>0){var iso_code_country=null;var $id_country=$('div#onepagecheckoutps select#invoice_id_country');if($id_country.length>0){iso_code_country=$id_country.find('option:selected').data('iso-code')}else{iso_code_country=OnePageCheckoutPS.iso_code_country_invoice_default}
|
||
Address.autocomplete_invoice=new google.maps.places.Autocomplete((document.getElementById('invoice_address1')),{types:['geocode'],componentRestrictions:{country:iso_code_country}});google.maps.event.addListener(Address.autocomplete_invoice,'place_changed',function(){Address.fillInAddress('invoice',Address.autocomplete_invoice)})}}},fillInAddress:function(address,autocomplete){Address.componentForm={postal_code:{index:0,type:'long_name',field:address+'_postcode'},locality:{index:1,type:'long_name',field:address+'_city'},administrative_area_level_1:{index:2,type:'select',field:address+'_id_state'},administrative_area_level_2:{index:3,type:'select',field:address+'_id_state'},administrative_area_level_3:{index:4,type:'select',field:address+'_id_state'},country:{index:5,type:'select',field:address+'_id_country'},};var place=autocomplete.getPlace();$.each(Address.componentForm,function(c,component){if(component.type!=='select'&&component.field!=(address+'_address1')){$('#'+component.field).val('')}});var components=[];var components_state=[];$.each(place.address_components,function(a,component){if(typeof Address.componentForm[component.types[0]]!==typeof undefined){var field=Address.componentForm[component.types[0]].field;var type=Address.componentForm[component.types[0]].type;var index=Address.componentForm[component.types[0]].index;components[index]={field:field,type:type,name:component.types[0],short_name:component.short_name,long_name:component.long_name,value:(typeof component[type]!==typeof undefined)?component[type]:component.long_name}}});$.each(components,function(c,component){if(typeof component!==typeof undefined){if(component.type==='select'){if(component.name==='country'){$('#'+address+'_id_country option').prop('selected',!1);$('#'+address+'_id_country option[data-iso-code="'+component.short_name+'"]').prop('selected',!0);$('#'+address+'_id_country').trigger('change');Address.getCitiesByState({object:address})}else if(typeof $('#'+address+'_id_state')[0]!==typeof undefined){components_state.push(component)
|
||
Address.callBackState=function(){var id_state='';$.each(components_state,function(c,component_state){if($('#'+address+'_id_state option[data-iso-code="'+component_state.short_name+'"]').length>0){id_state=$('#'+address+'_id_state option[data-iso-code="'+component_state.short_name+'"]').val();return!1}else if($('#'+address+'_id_state option[data-text="'+component_state.value+'"]').length>0){id_state=$('#'+address+'_id_state option[data-text="'+component_state.value+'"]').val();return!1}});$('#'+address+'_id_state option').prop('selected',!1);$('#'+address+'_id_state').val(id_state)}}}else{if(component.field!=(address+'_address1')){$('#'+component.field).val(component.value)}}}});if(typeof is_necessary_postcode!==typeof undefined&&is_necessary_postcode){$('#onepagecheckoutps_step_one #'+address+'_postcode').trigger('blur')}else if(typeof is_necessary_city!==typeof undefined&&is_necessary_city){$('#onepagecheckoutps_step_one #'+address+'_city').trigger('blur')}},updateAddressInvoice:function(params){var param=$.extend({},{callback:'',load_review:!0},params);if(OnePageCheckoutPS.PRESTASHOP.CONFIGS.PS_TAX_ADDRESS_TYPE=='id_address_invoice'||(is_virtual_cart&&($('div#onepagecheckoutps #checkbox_create_invoice_address').is(':checked')||OnePageCheckoutPS.CONFIGS.OPC_REQUIRED_INVOICE_ADDRESS))){var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime(),is_ajax:!0,action:'updateAddressInvoice',dataType:'html'};if($('div#onepagecheckoutps #invoice_id_country').length>0)
|
||
data.id_country=$('div#onepagecheckoutps #invoice_id_country').val();if($('div#onepagecheckoutps #invoice_id_state').length>0)
|
||
data.id_state=$('div#onepagecheckoutps #invoice_id_state').val();if($('div#onepagecheckoutps #invoice_postcode').length>0)
|
||
data.postcode=$('div#onepagecheckoutps #invoice_postcode').val();if($('div#onepagecheckoutps #invoice_city').length>0)
|
||
data.city=$('div#onepagecheckoutps #invoice_city').val();if($('div#onepagecheckoutps #invoice_id').length>0)
|
||
data.id_address_invoice=$('div#onepagecheckoutps #invoice_id').val();if($('div#onepagecheckoutps #invoice_vat_number').length>0)
|
||
data.vat_number=$('div#onepagecheckoutps #invoice_vat_number').val();var _json={data:data,beforeSend:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_one_container .loading_small').show()},success:function(){Carrier.getByCountry()},complete:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_one_container .loading_small').hide();if(typeof param.callback!==typeof undefined&&typeof param.callback==='function')
|
||
param.callback()}};$.makeRequest(_json)}},removeAddressInvoice:function(params){var param=$.extend({},{callback:''},params);if(!$('div#onepagecheckoutps #checkbox_create_invoice_address').is(':checked')){var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime(),is_ajax:!0,action:'removeAddressInvoice',dataType:'html'};var _json={data:data,beforeSend:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_one_container .loading_small').show()},success:function(){Carrier.getByCountry()},complete:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_one_container .loading_small').hide();if(typeof param.callback!==typeof undefined&&typeof param.callback==='function')
|
||
param.callback()}};$.makeRequest(_json)}},geolocate:function(event){$(event.currentTarget).off('focus');if(navigator.geolocation){navigator.geolocation.getCurrentPosition(function(position){var geolocation=new google.maps.LatLng(position.coords.latitude,position.coords.longitude);autocomplete.setBounds(new google.maps.LatLngBounds(geolocation,geolocation))})}},updateState:function(params){var param=$.extend({},{object:'',id_state_default:'',id_country:''},params);var states=null;if(!$.isEmpty(param.object)){var $id_country=$('div#onepagecheckoutps select#'+param.object+'_id_country');var $id_state=$('div#onepagecheckoutps select#'+param.object+'_id_state');var id_country=null;if($id_country.length>0){id_country=$id_country.val()}else{if(param.object=='delivery'){id_country=OnePageCheckoutPS.id_country_delivery_default}else if(param.object=='invoice'){id_country=OnePageCheckoutPS.id_country_invoice_default}}
|
||
var states=countries[id_country];$id_state.find('option').remove();if(!$.isEmpty(states)){var $option=$('<option/>').attr({value:'',}).append('--');$option.appendTo($id_state);$.each(states,function(i,state){var $option=$('<option/>').attr({'data-text':state.name,'data-iso-code':state.iso_code,value:state.id,}).append(state.name);if(param.id_state_default==state.id){$option.attr('selected','true')}
|
||
$option.appendTo($id_state)});if(typeof Address.callBackState==='function'){Address.callBackState()}else{if($.isEmpty($id_state.find('option:selected').val())){var default_value=$id_state.attr('data-default-value');if(default_value!='0'){}else{$id_state.find(':eq(1)').attr('selected','true')}}}
|
||
if(param.object=='delivery'||(param.object=='invoice'&&($('div#onepagecheckoutps #checkbox_create_invoice_address').is(':checked')||OnePageCheckoutPS.CONFIGS.OPC_REQUIRED_INVOICE_ADDRESS))){$id_state.attr('data-validation','required').addClass('required')}
|
||
$('div#onepagecheckoutps #field_'+param.object+'_id_state').find('sup').html('*');$('div#onepagecheckoutps #field_'+param.object+'_id_state').show()}else{$id_state.removeAttr('data-validation').removeClass('required');$('div#onepagecheckoutps #field_'+param.object+'_id_state').find('sup').html('');$('div#onepagecheckoutps #field_'+param.object+'_id_state').hide()}}},checkNeedInvoice:function(){if($('div#onepagecheckoutps #checkbox_create_invoice_address').is(':checked')||OnePageCheckoutPS.CONFIGS.OPC_REQUIRED_INVOICE_ADDRESS){Address.isNeedDniByCountryId({object:'invoice'});Address.updateState({object:'invoice'});$('div#onepagecheckoutps #invoice_address_container .fields_container div.lock_controls').remove();$('div#onepagecheckoutps #invoice_address_container .invoice.required').each(function(i,item){$(item).removeAttr('data-validation-optional')});if(typeof $.totalStorageOPC!==typeof undefined){$.totalStorageOPC('create_invoice_address',!0)}}else{$('div#onepagecheckoutps #invoice_address_container .fields_container').prepend('<div class="lock_controls"></div>');$('div#onepagecheckoutps #invoice_address_container .invoice.required').each(function(i,item){$(item).attr('data-validation-optional','true').trigger('reset')});if(typeof $.totalStorageOPC!==typeof undefined){$.totalStorageOPC('create_invoice_address',!1)}}},checkGuestAccount:function(){if(OnePageCheckoutPS.PRESTASHOP.CONFIGS.PS_GUEST_CHECKOUT_ENABLED){if($('div#onepagecheckoutps #checkbox_create_account_guest').is(':checked')){$('div#onepagecheckoutps #field_customer_passwd, div#onepagecheckoutps #field_customer_conf_passwd').fadeIn().addClass('required');$('div#onepagecheckoutps #field_customer_passwd sup, div#onepagecheckoutps #field_customer_conf_passwd sup').html('*');$('div#onepagecheckoutps #customer_passwd, div#onepagecheckoutps #customer_conf_passwd').removeAttr('data-validation-optional').val('')}else{$('div#onepagecheckoutps #field_customer_passwd, div#onepagecheckoutps #field_customer_conf_passwd').fadeOut().removeClass('required').trigger('reset');$('div#onepagecheckoutps #field_customer_passwd sup, div#onepagecheckoutps #field_customer_conf_passwd sup').html('');$('div#onepagecheckoutps #customer_passwd, div#onepagecheckoutps #customer_conf_passwd').attr('data-validation-optional','true')}}else{if(OnePageCheckoutPS.CONFIGS.OPC_REQUEST_PASSWORD&&OnePageCheckoutPS.CONFIGS.OPC_OPTION_AUTOGENERATE_PASSWORD){if($('div#onepagecheckoutps #checkbox_create_account').is(':checked')){$('div#onepagecheckoutps #field_customer_passwd, div#onepagecheckoutps #field_customer_conf_passwd').fadeIn().addClass('required');$('div#onepagecheckoutps #field_customer_passwd sup, div#onepagecheckoutps #field_customer_conf_passwd sup').html('*');$('div#onepagecheckoutps #customer_passwd, div#onepagecheckoutps #customer_conf_passwd').removeAttr('data-validation-optional').val('')}else{$('div#onepagecheckoutps #field_customer_passwd, div#onepagecheckoutps #field_customer_conf_passwd').fadeOut().removeClass('required').trigger('reset');$('div#onepagecheckoutps #field_customer_passwd sup, div#onepagecheckoutps #field_customer_conf_passwd sup').html('');$('div#onepagecheckoutps #customer_passwd, div#onepagecheckoutps #customer_conf_passwd').attr('data-validation-optional','true')}}}},isNeedDniByCountryId:function(params){var param=$.extend({},{object:''},params);if(!$.isEmpty(param.object)){var id_country=null;var $id_country=$('#onepagecheckoutps_step_one select#'+param.object+'_id_country');if($id_country.length>0){id_country=$id_country.val()}else{if(param.object=='delivery'){id_country=OnePageCheckoutPS.id_country_delivery_default}else if(param.object=='invoice'){id_country=OnePageCheckoutPS.id_country_invoice_default}}
|
||
if(!$.isEmpty(id_country)&&typeof countries!==typeof undefined&&$('#field_'+param.object+'_dni').length>0){if(countriesNeedIDNumber[id_country]){if((param.object==='invoice'&&$('div#onepagecheckoutps #checkbox_create_invoice_address').is(':checked'))||param.object==='delivery'){$('#field_'+param.object+'_dni').addClass('required').show();$('#field_'+param.object+'_dni sup').html('*');$('#'+param.object+'_dni').removeAttr('data-validation-optional').addClass('required')}else{$('#field_'+param.object+'_dni').removeClass('required').hide();$('#field_'+param.object+'_dni sup').html('');$('#'+param.object+'_dni').attr('data-validation-optional','true').removeClass('required')}}else{if($('#'+param.object+'_dni').attr('data-required')=='0'){$('#field_'+param.object+'_dni').removeClass('required');$('#field_'+param.object+'_dni sup').html('');$('#'+param.object+'_dni').attr('data-validation-optional','true').removeClass('required')}}}}},isNeedPostCodeByCountryId:function(params){var param=$.extend({},{object:''},params);if(!$.isEmpty(param.object)){var $id_country=$('#onepagecheckoutps_step_one select#'+param.object+'_id_country');if($id_country.length>0){id_country=$id_country.val()}else{if(param.object=='delivery'){id_country=OnePageCheckoutPS.id_country_delivery_default}else if(param.object=='invoice'){id_country=OnePageCheckoutPS.id_country_invoice_default}}
|
||
if(!$.isEmpty(id_country)&&typeof countries!==typeof undefined&&$('#field_'+param.object+'_postcode').length>0){if(!$.isEmpty(countriesNeedZipCode[id_country])){var format=countriesNeedZipCode[id_country];format=format.replace(/N/g,'0');format=format.replace(/L/g,'A');format=format.replace(/C/g,countriesIsoCode[id_country]);$('#'+param.object+'_postcode').attr('data-default-value',format);$('#field_'+param.object+'_postcode').addClass('required').show();$('#field_'+param.object+'_postcode sup').html('*');if(param.object==='delivery'||(param.object==='invoice'&&$('div#onepagecheckoutps #checkbox_create_invoice_address').is(':checked'))){$('#'+param.object+'_postcode').removeAttr('data-validation-optional').addClass('required')}}else{if($('#'+param.object+'_postcode').attr('data-required')=='0'){$('#field_'+param.object+'_postcode').removeClass('required');$('#field_'+param.object+'_postcode sup').html('');$('#'+param.object+'_postcode').attr('data-validation-optional','true').removeClass('required')}}}}},checkEmailCustomer:function(email){var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime(),is_ajax:!0,dataType:'html',action:'checkRegisteredCustomerEmail',email:email};if(!$.isEmpty(email)&&$.isEmail(email)){var _json={data:data,success:function(data){if(data!=0){var callback=function(){$('#form_login #txt_login_email').val($('#onepagecheckoutps_step_one #customer_email').val());$('#email_check_modal .modal-footer').append('<button type="button" class="btn btn-primary" onclick="$(\'div#onepagecheckoutps button.close\').trigger(\'click\');$(\'div#onepagecheckoutps #opc_show_login\').trigger(\'click\')" style="margin-left: 15px;">'+OnePageCheckoutPS.Msg.login_customer+'</button>')}
|
||
if(OnePageCheckoutPS.PRESTASHOP.CONFIGS.PS_GUEST_CHECKOUT_ENABLED){Fronted.showModal({name:'email_check_modal',type:'normal',content:OnePageCheckoutPS.Msg.error_registered_email_guest,button_close:!0,callback:callback})}else{Fronted.showModal({name:'email_check_modal',type:'normal',content:OnePageCheckoutPS.Msg.error_registered_email,button_close:!0,callback:callback})}}}};$.makeRequest(_json)}},clearFormByObject:function(object){$('div#onepagecheckoutps #onepagecheckoutps_step_one').find('.'+object).each(function(i,field){$field=$(field);if($field.is(':text')){$field.val('')}
|
||
if($field.attr('data-field-name')=='id_country'){$field.val($field.attr('data-default-value')).trigger('change')}})}}
|
||
var Carrier={id_delivery_option_selected:0,launch:function(){if(!is_virtual_cart){$('div#onepagecheckoutps #gift_message').empty();$('div#onepagecheckoutps #onepagecheckoutps_step_two_container').on('click','.delivery_option .delivery_option_logo',function(event){var $option_radio=$(event.currentTarget).parents('.delivery_option').find('.delivery_option_radio');if(!$option_radio.is(':checked')){$option_radio.attr('checked',!0).trigger('change')}}).on('click','.delivery_option .carrier_delay',function(event){var $option_radio=$(event.currentTarget).parents('.delivery_option').find('.delivery_option_radio');if(!$option_radio.is(':checked')){if($(event.currentTarget).find('#selulozenka, #paczkomatyinpost_selected, .btn.btn-warning').length<=0){$option_radio.attr('checked',!0).trigger('change')}}}).on('change','.delivery_option_radio',function(event){$('div#onepagecheckoutps #onepagecheckoutps_step_two .delivery_option').removeClass('selected alert alert-info');$(this).parent().parent().parent().addClass('selected alert alert-info');Carrier.update({delivery_option_selected:$(event.currentTarget),load_carriers:!0,load_payments:!1,load_review:!1})}).on('change','#recyclable',Carrier.update).on('blur','#gift_message',Carrier.update).on('blur','#id_planning_delivery_slot',Carrier.update).on('click','#gift',function(event){Carrier.update({load_payments:!0});if($(event.currentTarget).is(':checked'))
|
||
$('div#onepagecheckoutps #gift_div_opc').removeClass('hidden');else $('div#onepagecheckoutps #gift_div_opc').addClass('hidden')})}},getByCountry:function(params){var param=$.extend({},{callback:''},params);if(OnePageCheckoutPS.REGISTER_CUSTOMER)
|
||
return;if(!is_virtual_cart){var extra_params='';$.each(document.location.search.substr(1).split('&'),function(c,q){if(q!=undefined&&q!=''){var i=q.split('=');if($.isArray(i)){extra_params+='&'+i[0].toString();if(i[1].toString()!=undefined)
|
||
extra_params+='='+i[1].toString()}}});var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime()+extra_params,is_ajax:!0,action:'loadCarrier',dataType:'html'};$address_delivery=AppOPC.$opc_step_one.find('#delivery_id');$address_invoice=AppOPC.$opc_step_one.find('#invoice_id');if($('div#onepagecheckoutps #delivery_id_country option').length>0)
|
||
data.id_country=$('div#onepagecheckoutps #delivery_id_country').val();if($('div#onepagecheckoutps #delivery_id_state option').length>0)
|
||
data.id_state=$('div#onepagecheckoutps #delivery_id_state').val();if($('div#onepagecheckoutps #delivery_postcode').length>0)
|
||
data.postcode=$('div#onepagecheckoutps #delivery_postcode').val();if($('div#onepagecheckoutps #delivery_city').length>0)
|
||
data.city=$('div#onepagecheckoutps #delivery_city').val();if($('div#onepagecheckoutps #id_district').length>0)
|
||
data.id_district=$('div#onepagecheckoutps #id_district').val();if($('div#onepagecheckoutps #id_subdistrict').length>0)
|
||
data.id_subdistrict=$('div#onepagecheckoutps #id_subdistrict').val();if($address_delivery.length>0)
|
||
data.id_address_delivery=$address_delivery.val();if($address_invoice.length>0)
|
||
data.id_address_invoice=$address_invoice.val();if($('div#onepagecheckoutps #delivery_vat_number').length>0)
|
||
data.vat_number=$('div#onepagecheckoutps #delivery_vat_number').val();var _json={data:data,beforeSend:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_two_container .loading_small').show();if(typeof window.prestashopPacketeryInitialized!==typeof undefined)
|
||
window.prestashopPacketeryInitialized=undefined},success:function(html){if(!$.isEmpty(html)){$('div#onepagecheckoutps #onepagecheckoutps_step_two').html(html);if(typeof id_carrier_selected!==typeof undefined)
|
||
$('div#onepagecheckoutps .delivery_option_radio[value="'+id_carrier_selected+',"]').attr('checked',!0);if($('div#onepagecheckoutps #gift').is(':checked'))
|
||
$('div#onepagecheckoutps #gift_div_opc').show();if($('#deliverydays_day option').length>1){$('#deliverydays_day option:eq(1)').attr('selected','true')}
|
||
if($('div#onepagecheckoutps #onepagecheckoutps_step_two').find('.alert-warning').length<=0)
|
||
Carrier.update({load_payments:!0});else{Payment.getByCountry();Review.display()}}},complete:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_two_container .loading_small').hide();$(document).trigger('opc-load-carrier:completed',{});if(typeof param.callback!==typeof undefined&&typeof param.callback==='function')
|
||
param.callback()}};$.makeRequest(_json)}else{Payment.getByCountry();Review.display()}},update:function(params){var param=$.extend({},{delivery_option_selected:$('div#onepagecheckoutps .delivery_option_radio:checked'),load_carriers:!1,load_payments:!1,load_review:!0,callback:''},params);if(!is_virtual_cart){var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime(),is_ajax:!0,action:'updateCarrier',dataType:'html',recyclable:($('#recyclable').is(':checked')?$('#recyclable').val():''),gift:($('#gift').is(':checked')?$('#gift').val():''),gift_message:(!$.isEmpty($('#gift_message').val())?$('#gift_message').val():'')};if($(param.delivery_option_selected).length>0)
|
||
data[$(param.delivery_option_selected).attr('name')]=$(param.delivery_option_selected).val();$('#onepagecheckoutps_step_two input[type="text"]:not(.customer, .delivery, .invoice),#onepagecheckoutps_step_two input[type="hidden"]:not(.customer, .delivery, .invoice), #onepagecheckoutps_step_two select:not(.customer, .delivery, .invoice)').each(function(i,input){var name=$(input).attr('name');var value=$(input).val();if(!$.isEmpty(name))
|
||
data[name]=value});var _json={data:data,beforeSend:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_two_container .loading_small').show()},success:function(json){if(json.hasError){Fronted.showModal({type:'error',message:json.errors})}else if(json.hasWarning){Fronted.showModal({type:'warning',message:json.warnings})}},complete:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_two_container .loading_small').hide();$(document).trigger('opc-update-carrier:completed',{});if(typeof mustCheckOffer!=='undefined'&&event_dispatcher!==undefined&&event_dispatcher==='carrier'&&AppOPC.load_offer){AppOPC.load_offer=!1;mustCheckOffer=undefined;checkOffer(function(){})}
|
||
if(param.load_carriers)
|
||
Carrier.getByCountry();if(param.load_payments)
|
||
Payment.getByCountry();if(param.load_review&&!param.load_payments)
|
||
Review.display();if(typeof param.callback!==typeof undefined&&typeof param.callback==='function')
|
||
param.callback()}};$.makeRequest(_json)}}}
|
||
var Payment={id_payment_selected:'',launch:function(){$("div#onepagecheckoutps #onepagecheckoutps_step_three").on('click','.module_payment_container',function(event){if(!$(event.target).hasClass('payment_radio')){$(event.currentTarget).find('.payment_radio').trigger('click').trigger('change')}}).on("change","input[name=method_payment]",function(event){var $payment_module=$(event.currentTarget);var $payment_module_url=$payment_module.next();var name_module=$payment_module.val();$('div#onepagecheckoutps #onepagecheckoutps_step_review .extra_fee').addClass('hidden');$.each(payment_modules_fee,function(name_module_fee,payment){var various_payment=!1;var name_module_alt=name_module+'_'+payment.id;if(name_module_alt==name_module_fee){if($.strpos(name_module_fee,'custompaymentmethod')!==!1){var url_payment=$payment_module_url.val();var arr_url_payment=url_payment.split('=');var id_payment=arr_url_payment[1];if(id_payment==payment.id){various_payment=!0}}}
|
||
if(name_module==name_module_fee||various_payment){$('div#onepagecheckoutps #onepagecheckoutps_step_review .extra_fee').removeClass('hidden');$('div#onepagecheckoutps #onepagecheckoutps_step_review #extra_fee_label').text(payment.label_fee);$('div#onepagecheckoutps #onepagecheckoutps_step_review #extra_fee_price').text(payment.fee);$('div#onepagecheckoutps #onepagecheckoutps_step_review #extra_fee_total_price_label').text(payment.label_total);$('div#onepagecheckoutps #onepagecheckoutps_step_review #extra_fee_total_price').text(payment.total_fee);if(typeof payment.fee_tax!==typeof undefined&&!$.isEmpty(payment.fee_tax)){$('div#onepagecheckoutps #onepagecheckoutps_step_review .extra_fee_tax').removeClass('hidden');$('div#onepagecheckoutps #onepagecheckoutps_step_review #extra_fee_tax_label').text(payment.label_fee_tax);$('div#onepagecheckoutps #onepagecheckoutps_step_review #extra_fee_tax_price').text(payment.fee_tax)}
|
||
return!1}});Payment.id_payment_selected=$(this).attr('id');$('div#onepagecheckoutps #onepagecheckoutps_step_three .module_payment_container').removeClass('selected alert alert-info');$('div#onepagecheckoutps #onepagecheckoutps_step_three .payment_content_html').addClass('hidden');$(this).parents('.module_payment_container').addClass('selected alert alert-info').find('.payment_content_html').removeClass('hidden')})},getByCountry:function(params){var param=$.extend({},{callback:'',show_loading:!0},params);if(OnePageCheckoutPS.REGISTER_CUSTOMER)
|
||
return;if($('div#onepagecheckoutps #onepagecheckoutps_step_two').find('.alert-warning').length>0){$('div#onepagecheckoutps #onepagecheckoutps_step_three').html('<p class="alert alert-warning col-xs-12">'+OnePageCheckoutPS.Msg.shipping_method_required+'</p>');Review.display();return}
|
||
var extra_params='';$.each(document.location.search.substr(1).split('&'),function(c,q){if(q!=undefined&&q!=''){var i=q.split('=');if($.isArray(i)){extra_params+='&'+i[0].toString();if(i[1].toString()!=undefined)
|
||
extra_params+='='+i[1].toString()}}});var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime()+extra_params,is_ajax:!0,dataType:'html',action:'loadPayment'};var _json={data:data,beforeSend:function(){if(param.show_loading){$('div#onepagecheckoutps #onepagecheckoutps_step_three_container .loading_small').show()}},success:function(html){$('div#onepagecheckoutps #onepagecheckoutps_forms').html('');$('div#onepagecheckoutps #onepagecheckoutps_step_three').html(html);if(!$.isEmpty(Payment.id_payment_selected)){$('div#onepagecheckoutps #onepagecheckoutps_step_three #payment_method_container #'+Payment.id_payment_selected).parent().parent().trigger('click')}else if($('#onepagecheckoutps_step_three #payment_method_container .module_payment_container').length==1){$('#onepagecheckoutps_step_three #payment_method_container .module_payment_container').trigger('click')}else if(!$.isEmpty(OnePageCheckoutPS.CONFIGS.OPC_DEFAULT_PAYMENT_METHOD)){$('div#onepagecheckoutps #onepagecheckoutps_step_three #payment_method_container [value="'+OnePageCheckoutPS.CONFIGS.OPC_DEFAULT_PAYMENT_METHOD+'"]').parent().parent().trigger('click')}
|
||
$('div#onepagecheckoutps #onepagecheckoutps_step_three .module_payment_container.selected').find('.payment_content_html').removeClass('hidden');if(typeof $('#pppro_form')!==typeof undefined&&!OnePageCheckoutPS.IS_LOGGED)
|
||
$('#pppro_form #pppro_cc_fname, #pppro_form #pppro_cc_lname').val('')},complete:function(){if(param.show_loading)
|
||
$('div#onepagecheckoutps #onepagecheckoutps_step_three_container .loading_small').hide();$(document).trigger('opc-load-payment:completed',{});if(typeof param.callback!==typeof undefined&&typeof param.callback==='function'){param.callback()}else{Review.display()}}};$.makeRequest(_json)},change:function(){if(!AppOPC.load_offer||typeof mustCheckOffer==='undefined'||(event_dispatcher!==undefined&&event_dispatcher!=='payment_method')){}else{AppOPC.load_offer=!1;checkOffer(function(){})}}}
|
||
var Review={message_order:'',launch:function(){AppOPC.$opc_step_review.find('.remove-from-cart').off('click');AppOPC.$opc_step_review.on('click','.bootstrap-touchspin-up, .bootstrap-touchspin-down, .remove-from-cart',function(e){e.preventDefault();e.stopPropagation();var url_call='';var $input=$(e.currentTarget).parents('.bootstrap-touchspin').find('.cart-line-product-quantity');if($(e.currentTarget).hasClass('bootstrap-touchspin-up')){url_call=$input.data('up-url')}else if($(e.currentTarget).hasClass('bootstrap-touchspin-down')){url_call=$input.data('down-url')}else{url_call=$(e.currentTarget).attr('href')}
|
||
var _json={data:{url_call:url_call,action:'update',ajax:1,token:static_token},beforeSend:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .loading_small').show()},success:function(json){if(json.success){Review.updateCartSummary(json)}else if(json.hasError&&json.errors.length>0){$(e.currentTarget).val(json.quantity);Fronted.showModal({type:'error',message:'• '+json.errors.join('<br>• ')});$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .loading_small').hide()}}};$.makeRequest(_json)}).on("click","#conditions-to-approve a",function(e){e.preventDefault();e.stopPropagation();Fronted.openCMS({id_cms:OnePageCheckoutPS.CONFIGS.OPC_ID_CMS_TEMRS_CONDITIONS})}).on("click","#submitAddDiscount, .cart_discount .cart_quantity_delete",Review.processDiscount).on("click","#btn_place_order",function(){if(parseInt(OnePageCheckoutPS.CONFIGS.OPC_PAYMENTS_WITHOUT_RADIO)&&$('div#onepagecheckoutps #onepagecheckoutps_step_three #free_order').length<=0){window.scrollTo(0,$('#onepagecheckoutps').offset().top);$('#onepagecheckoutps_step_three').addClass('alert alert-warning');return!1}else{Review.placeOrder()}}).on("change",'#cgv',function(e){if(typeof $.totalStorageOPC!==typeof undefined){if($(e.target).is(':checked')){$.totalStorageOPC('cms_terms_condifitions',!0)}else{$.totalStorageOPC('cms_terms_condifitions',!1)}}
|
||
if(typeof mustCheckOffer!=='undefined'&&event_dispatcher!==undefined&&event_dispatcher==='terms'&&AppOPC.load_offer){if($(e.target).is(':checked')){if(!offerApplied){AppOPC.load_offer=!1;checkOffer(function(){$(e.target).unbind('change')})}}}}).on("click","#payment_paypal_express_checkout",function(){$('#paypal_payment_form').submit()}).on('blur','.cart-line-product-quantity',function(e){var before_qty=$(e.currentTarget).attr('value');var actual_qty=$(e.currentTarget).val();if(actual_qty==0){$(e.currentTarget).val(before_qty)}else{var operation='down';var qty=actual_qty-before_qty;if(qty!=0){var url_call=$(e.currentTarget).data('update-url');if(qty>0){operation='up'}
|
||
var _json={data:{url_call:url_call,action:'update',ajax:1,token:static_token,op:operation,qty:Math.abs(qty)},beforeSend:function(){$('div#onepagecheckoutps #btn_place_order').attr('disabled','true');$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .loading_small').show()},success:function(json){if(json.success){Review.updateCartSummary(json)}else if(json.hasError&&json.errors.length>0){$(e.currentTarget).val(json.quantity);Fronted.showModal({type:'error',message:'• '+json.errors.join('<br>• ')});$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .loading_small').hide()}}};$.makeRequest(_json)}}}).on("blur","#div_leave_message #message",function(){Review.message_order=$(this).val()})},updateCartSummary:function(json){if($('.blockcart').length>0){var refreshURL=$('.blockcart').data('refresh-url');$.post(refreshURL,{}).then(function(resp){$('.blockcart').replaceWith($(resp.preview).find('.blockcart'))})}
|
||
if(typeof json!==typeof undefined){if(json.is_virtual_cart){$('#onepagecheckoutps_step_two_container').remove();$('#onepagecheckoutps_step_three_container').removeClass('col-md-6');if(!OnePageCheckoutPS.SHOW_DELIVERY_VIRTUAL){$('#onepagecheckoutps_step_one #li_delivery_address').remove();$('#onepagecheckoutps_step_one #li_invoice_address').addClass('active');$('#onepagecheckoutps_step_one #delivery_address_container').remove();$('#onepagecheckoutps_step_one #invoice_address_container').addClass('active')}
|
||
OnePageCheckoutPS.IS_VIRTUAL_CART=!0;Payment.getByCountry();Review.display()}else{if(typeof json.load===typeof undefined){$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .loading_small').show();Carrier.getByCountry()}}}},display:function(params){var param=$.extend({},{callback:''},params);if(OnePageCheckoutPS.REGISTER_CUSTOMER)
|
||
return;if(OnePageCheckoutPS.CONFIGS.OPC_ENABLE_TERMS_CONDITIONS)
|
||
var cgv=$('#cgv').is(':checked');var id_country=!$.isEmpty($('#delivery_id_country').val())?$('#delivery_id_country').val():'';var id_state=!$.isEmpty($('#delivery_id_state').val())?$('#delivery_id_state').val():'';var data={url_call:prestashop.urls.current_url+'?rand='+new Date().getTime(),is_ajax:!0,dataType:'html',action:'loadReview',id_country:id_country,id_state:id_state};var _json={data:data,beforeSend:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .loading_small').show()},success:function(html){$("div#onepagecheckoutps #onepagecheckoutps_step_review").html(html);if(OnePageCheckoutPS.CONFIGS.OPC_ENABLE_TERMS_CONDITIONS&&cgv)
|
||
$('div#onepagecheckoutps #cgv').attr('checked','true');$('div#onepagecheckoutps input[name="method_payment"]:checked').trigger('change')},complete:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .loading_small').hide();$(document).trigger('opc-load-review:completed',{});if($('div#onepagecheckoutps #onepagecheckoutps_step_two #shipping_container p.alert-warning').length>0){$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .item_total:not(.cart_total_product)').hide()}
|
||
$('#container_express_checkout').remove();if(OnePageCheckoutPS.CONFIGS.OPC_SHOW_ZOOM_IMAGE_PRODUCT){$('div#onepagecheckoutps #order-detail-content .cart_item a > img').mouseenter(function(event){$('div#onepagecheckoutps #order-detail-content .image_zoom').hide();$(event.currentTarget).parents('.image_product').find('.image_zoom').show()});$('div#onepagecheckoutps #order-detail-content .image_zoom').click(function(event){$(event.currentTarget).toggle()});$('div#onepagecheckoutps #order-detail-content .image_zoom').hover(function(event){$(event.currentTarget).show()},function(event){$(event.currentTarget).hide()})}
|
||
if(typeof $.totalStorageOPC!==typeof undefined){if($.totalStorageOPC('cms_terms_condifitions')){$("#onepagecheckoutps_step_review #cgv").attr('checked','true')}}
|
||
var intervalLoadJavaScriptReview=setInterval(function(){loadJavaScriptReview();clearInterval(intervalLoadJavaScriptReview)},(typeof csoc_prefix!=='undefined'?5001:0));if(typeof mustCheckOffer!=='undefined'&&event_dispatcher!==undefined&&event_dispatcher==='init'&&AppOPC.load_offer){AppOPC.load_offer=!1;mustCheckOffer=undefined;setTimeout(checkOffer,time_load_offer*1000)}
|
||
if(OnePageCheckoutPS.CONFIGS.OPC_CONFIRMATION_BUTTON_FLOAT&&!OnePageCheckoutPS.CONFIGS.OPC_PAYMENTS_WITHOUT_RADIO){var $container_float_review=$("div#onepagecheckoutps div#onepagecheckoutps_step_review #container_float_review");var $container_float_review_point=$("div#onepagecheckoutps div#onepagecheckoutps_step_review #container_float_review_point");$(window).scroll(function(){if(AppOPC.$opc.find('.loading_big').is(':visible')){$container_float_review.removeClass('stick_buttons_footer')}else{if(!$container_float_review_point.visible()&&$(window).height()>640){if($container_float_review_point.offset().top>$(window).scrollTop()){$container_float_review.addClass('stick_buttons_footer').css({width:$('#onepagecheckoutps_step_review').outerWidth()})}}else{$container_float_review.removeClass('stick_buttons_footer').removeAttr('style')}}});$(window).resize(function(){$(window).trigger('scroll')});$(window).trigger('scroll')}
|
||
if(typeof FB!==typeof undefined&&typeof FB.XFBML.parse=='function'){FB.XFBML.parse()}
|
||
$('div#onepagecheckoutps #onepagecheckoutps_step_review_container #message').val(Review.message_order);if(typeof getAppliedOffers!==typeof undefined&&typeof getAppliedOffers==='function'){getAppliedOffers()}
|
||
$(document).trigger('opc-load-review:completed',{});if(typeof param.callback!==typeof undefined&&typeof param.callback==='function')
|
||
param.callback()}};$.makeRequest(_json)},processDiscount:function(e){$element=$(e.currentTarget);var _data={url_call:prestashop.urls.pages.cart,action:'update',ajax:1,token:static_token}
|
||
if($element.is('i')){_data.deleteDiscount=$element.data('id-cart-rule')}else{_data.addDiscount=1;_data.discount_name=AppOPC.$opc_step_review.find('#discount_name').val()}
|
||
var _json={data:_data,beforeSend:function(){$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .loading_small').show()},success:function(json){if(json.hasError){$('div#onepagecheckoutps #onepagecheckoutps_step_review_container .loading_small').hide();Fronted.showModal({type:'error',message:'• '+json.errors.join('<br>• ')})}else{if($('#onepagecheckoutps_step_two #input_virtual_carrier').length>0){Payment.getByCountry()}else{Carrier.getByCountry()}}},complete:function(){$('#onepagecheckoutps_step_review #submitAddDiscount').attr('disabled',!1)}};$.makeRequest(_json)},getFields:function(){var fields=Array();var $paypalpro_payment_form=$('#onepagecheckoutps_step_three #paypalpro-payment-form');$('div#onepagecheckoutps div#onepagecheckoutps_step_one .customer, \n\
|
||
div#onepagecheckoutps div#onepagecheckoutps_step_one .delivery, \n\
|
||
div#onepagecheckoutps div#onepagecheckoutps_step_one .invoice').each(function(i,field){if($(field).is('span'))
|
||
return!0;var name=$(field).attr('data-field-name');var value='';var object='';if($.isEmpty(name))
|
||
return!0;if($(field).hasClass('customer')){object='customer'}else if($(field).hasClass('delivery')){object='delivery'}else if($(field).hasClass('invoice')){object='invoice'}
|
||
if(object=='invoice'&&$('div#onepagecheckoutps #checkbox_create_invoice_address').length>0){if(!$('div#onepagecheckoutps #checkbox_create_invoice_address').is(':checked'))
|
||
return!0}
|
||
if(!$.isEmpty(object)){if($(field).is(':checkbox')){value=$(field).is(':checked')?1:0}else if($(field).is(':radio')){var tmp_value=$('input[name="'+name+'"]:checked').val();if(typeof tmp_value!==typeof undefined)
|
||
value=tmp_value}else{value=$(field).val();if(value===null)
|
||
value=''}
|
||
if($.strpos(value,'\\')){value=addslashes(value)}
|
||
if($.strpos(value,'\n')){value=value.replace(/\n/gi,'\\n')}
|
||
if(!$.isEmpty(value)&&typeof value=='string'){value=value.replace(/\"/g,'\'')}
|
||
value=$.trim(value);fields.push({'object':object,'name':name,'value':value});if(typeof stripe_billing_address!==typeof undefined&&object=='invoice'){stripe_billing_address[name]=value;if(name=='id_country'){stripe_billing_address.country=$(field).find('option:selected').data('text')}}
|
||
if(object=='customer'&&$paypalpro_payment_form.length>0){if(name=='firstname'){$paypalpro_payment_form.find('.paypalpro-firstname').val(value)}
|
||
if(name=='lastname'){$paypalpro_payment_form.find('.paypalpro-lastname').val(value)}}}});return fields},getFieldsExtra:function(_data){$('div#onepagecheckoutps #form_onepagecheckoutps input[type="text"]:not(.customer, .delivery, .invoice), div#onepagecheckoutps #form_onepagecheckoutps input[type="hidden"]:not(.customer, .delivery, .invoice), div#onepagecheckoutps #form_onepagecheckoutps select:not(.customer, .delivery, .invoice)').each(function(i,input){var name=$(input).attr('name');var value=$(input).val();if(name=='action'){return}
|
||
if(name=='shipping_date_raw')
|
||
name='shipping_date';if(!$.isEmpty(name))
|
||
_data[name]=value});$('div#onepagecheckoutps #form_onepagecheckoutps input[type="checkbox"]:not(.customer, .delivery, .invoice)').each(function(i,input){var name=$(input).attr('name');var value=$(input).is(':checked')?$(input).val():'';if(!$.isEmpty(name))
|
||
_data[name]=value});$('div#onepagecheckoutps #form_onepagecheckoutps input[type="radio"]:not(.customer, .delivery, .invoice):checked').each(function(i,input){var name=$(input).attr('name');var value=$(input).val();if(!$.isEmpty(name))
|
||
_data[name]=value});delete _data.id_customer;_data.id_customer;_data.id_customer;return _data},placeOrder:function(params){var param=$.extend({},{validate_payment:!0,position_element:null},params);if($('#onepagecheckoutps_step_two .delivery_option.selected div.extra_info_carrier a.select_pickup_point').length>0){alert(OnePageCheckoutPS.Msg.need_select_pickup_point);$('#onepagecheckoutps_step_two .delivery_option.selected div.extra_info_carrier a.select_pickup_point').trigger('click');return!1}
|
||
if(AppOPC.$opc_step_two.find('.delivery_option.selected #packetery-widget select.js-name').length>0){if($.isEmpty(AppOPC.$opc_step_two.find('#packetery-widget select.js-name option:selected').val())){alert(OnePageCheckoutPS.Msg.need_select_pickup_point);return!1}}
|
||
$('div#onepagecheckoutps #btn_place_order').attr('disabled','true');var fields=Review.validateAllForm({validate_payment:param.validate_payment});if(fields&&AppOPC.is_valid_all_form){var invoice_id='';if(OnePageCheckoutPS.CONFIGS.OPC_ENABLE_INVOICE_ADDRESS&&$('div#onepagecheckoutps #checkbox_create_invoice_address').length>0){if($('div#onepagecheckoutps #checkbox_create_invoice_address').is(':checked')){invoice_id=$('#invoice_id').val()}}else{invoice_id=$('#invoice_id').val()}
|
||
var _extra_data=Review.getFieldsExtra({});var _data=$.extend({},_extra_data,{'url_call':prestashop.urls.current_url+'?rand='+new Date().getTime(),'is_ajax':!0,'action':'placeOrder','id_customer':(!$.isEmpty(AppOPC.$opc_step_one.find('#customer_id').val())?AppOPC.$opc_step_one.find('#customer_id').val():''),'id_address_delivery':(!$.isEmpty(AppOPC.$opc_step_one.find('#delivery_id').val())?AppOPC.$opc_step_one.find('#delivery_id').val():''),'id_address_invoice':invoice_id,'fields_opc':JSON.stringify(fields),'message':(!$.isEmpty(AppOPC.$opc_step_review.find('#message').val())?AppOPC.$opc_step_review.find('#message').val():''),'is_new_customer':(AppOPC.$opc_step_one.find('#checkbox_create_account_guest').is(':checked')?0:1),'token':static_token});var _json={data:_data,beforeSend:function(){Fronted.loadingBig(!0);window.scrollTo(0,AppOPC.$opc.outerHeight()/3)},success:function(data){if(data.isSaved&&(!OnePageCheckoutPS.PS_GUEST_CHECKOUT_ENABLED||$('#checkbox_create_account_guest').is(':checked'))){AppOPC.$opc_step_one.find('#customer_id').val(data.id_customer);AppOPC.$opc_step_one.find('#customer_email, #customer_conf_email, #customer_passwd, #customer_conf_passwd').attr({'disabled':'true','data-validation-optional':'true'}).addClass('disabled').trigger('reset');$('#div_onepagecheckoutps_login, #field_customer_passwd, #field_customer_conf_passwd, div#onepagecheckoutps #onepagecheckoutps_step_one_container .account_creation, #field_choice_group_customer, #field_customer_checkbox_create_account').addClass('hidden')}
|
||
if(data.hasError){Fronted.showModal({type:'error',message:'• '+data.errors.join('<br>• ')})}else if(data.hasWarning){Fronted.showModal({type:'warning',message:'• '+data.warnings.join('<br>• ')})}else{if(typeof $.totalStorageOPC!==typeof undefined){$.totalStorageOPC('id_address_delivery',data.id_address_delivery);$.totalStorageOPC('id_address_invoice',data.id_address_invoice)}
|
||
if(!OnePageCheckoutPS.PRESTASHOP.CONFIGS.PS_GUEST_CHECKOUT_ENABLED||$('#checkbox_create_account_guest').is(':checked')){$('div#onepagecheckoutps #field_delivery_id, div#onepagecheckoutps #field_invoice_id').removeClass('hidden');$('div#onepagecheckoutps #field_customer_checkbox_create_account_guest').addClass('hidden')}
|
||
if(!AppOPC.load_offer||typeof mustCheckOffer==='undefined'||(event_dispatcher!==undefined&&event_dispatcher!=='confirm')){window.checkOffer=function(callback){callback()}}
|
||
if($('div#onepagecheckoutps #onepagecheckoutps_step_three #free_order').length>0){confirmFreeOrder();return}
|
||
if(param.validate_payment===!0){var $payment_selected=AppOPC.$opc_step_three.find('#'+Payment.id_payment_selected+':checked');var url_payment=$payment_selected.next().val();if(!$.isEmpty(url_payment)&&$.isUrlValid(url_payment)){window.location=url_payment}else{$payment_selected.parents('.module_payment_container.selected').find('form')[0].submit()}}}},complete:function(){},error:function(data){alert(data);Fronted.loadingBig(!1)}};$.makeRequest(_json)}},validateAllForm:function(params){var param=$.extend({},{validate_payment:!0},params);$('div#onepagecheckoutps #form_onepagecheckoutps').submit();if(!AppOPC.is_valid_all_form){if($('#delivery_address_container .required.has-error').length==0&&$('#invoice_address_container .required.has-error').length>0){$('#onepagecheckoutps_step_one #li_delivery_address .nav-link, #onepagecheckoutps_step_one #delivery_address_container').removeClass('active');$('#onepagecheckoutps_step_one #li_invoice_address .nav-link, #onepagecheckoutps_step_one #invoice_address_container').removeClass('active');$('#onepagecheckoutps_step_one #li_invoice_address .nav-link, #onepagecheckoutps_step_one #invoice_address_container').addClass('active')}}
|
||
if(AppOPC.is_valid_all_form){$('div#onepagecheckoutps #onepagecheckoutps_step_two').removeClass('alert alert-danger');$('div#onepagecheckoutps #onepagecheckoutps_step_three').removeClass('alert alert-warning');$('div#onepagecheckoutps #onepagecheckoutps_step_review #conditions-to-approve label').removeClass('alert alert-warning');$('div#onepagecheckoutps #onepagecheckoutps_step_one #div_privacy_policy').removeClass('alert alert-warning');if($('div#onepagecheckoutps #onepagecheckoutps_step_two .delivery_options_address').length>=0&&!is_virtual_cart){var id_carrier=$('div#onepagecheckoutps #onepagecheckoutps_step_two .delivery_option_radio:checked').val();if(!$.isEmpty(id_carrier)){Carrier.id_delivery_option_selected=id_carrier;AppOPC.is_valid_all_form=!0}else{Carrier.id_delivery_option_selected=null;$('div#onepagecheckoutps #onepagecheckoutps_step_two #shipping_container').addClass('alert alert-warning');Fronted.showModal({type:'warning',message:OnePageCheckoutPS.Msg.shipping_method_required});AppOPC.is_valid_all_form=!1}}
|
||
if(AppOPC.is_valid_all_form&¶m.validate_payment===!0){if($('div#onepagecheckoutps #onepagecheckoutps_step_three #free_order').length<=0){var payment=$('div#onepagecheckoutps #onepagecheckoutps_step_three input[name="method_payment"]:checked');if(payment.length>0){Payment.id_payment_selected=$(payment).attr('id');AppOPC.is_valid_all_form=!0}else{Payment.id_payment_selected='';if(!$.isEmpty($('#securepay_cardNo').val())&&!$.isEmpty($('#securepay_cardSecurityCode').val())&&!$.isEmpty($('#securepay_cardExpireMonth').val())&&!$.isEmpty($('#securepay_cardExpireYear').val())){AppOPC.is_valid_all_form=!0}else{$('div#onepagecheckoutps #onepagecheckoutps_step_three').addClass('alert alert-warning');Fronted.showModal({type:'warning',message:OnePageCheckoutPS.Msg.payment_method_required});AppOPC.is_valid_all_form=!1}}}}
|
||
if(AppOPC.is_valid_all_form&&AppOPC.$opc_step_review.find('#conditions-to-approve').length){AppOPC.$opc_step_review.find('#conditions-to-approve input').each(function(i,condition){if(!$(condition).is(':checked')){$(condition).parent().addClass('alert alert-warning');AppOPC.is_valid_all_form=!1}});if(!AppOPC.is_valid_all_form){Fronted.showModal({type:'warning',message:OnePageCheckoutPS.Msg.agree_terms_and_conditions})}}
|
||
if(AppOPC.is_valid_all_form&&OnePageCheckoutPS.ENABLE_PRIVACY_POLICY&&!OnePageCheckoutPS.IS_LOGGED&&!$('div#onepagecheckoutps #onepagecheckoutps_step_one #privacy_policy').is(':checked')){$('div#onepagecheckoutps #onepagecheckoutps_step_one #div_privacy_policy').addClass('alert alert-warning');Fronted.showModal({type:'warning',message:OnePageCheckoutPS.Msg.agree_privacy_policy});AppOPC.is_valid_all_form=!1}
|
||
if(AppOPC.is_valid_all_form){$('div#onepagecheckoutps #btn_place_order').removeAttr('disabled');return Review.getFields()}}else{Fronted.showModal({type:'warning',message:OnePageCheckoutPS.Msg.fields_required_to_process_order+'\n'+OnePageCheckoutPS.Msg.check_fields_highlighted})}
|
||
$('div#onepagecheckoutps #btn_place_order').removeAttr('disabled');return!1}}
|
||
function updateExtraCarrier(id_delivery_option,id_address){$.ajax({type:'POST',url:prestashop.urls.current_url+'?rand='+new Date().getTime(),cache:!1,dataType:"json",data:'is_ajax=true'+'&action=updateExtraCarrier'+'&id_address='+id_address+'&id_delivery_option='+id_delivery_option+'&token='+static_token+'&allow_refresh=1',success:function(jsonData){$('#HOOK_EXTRACARRIER_'+id_address).html(jsonData.content)}})}
|
||
function confirmFreeOrder(){$.ajax({type:'POST',headers:{"cache-control":"no-cache"},url:prestashop.urls.current_url+'?rand='+new Date().getTime(),cache:!1,dataType:"html",data:'ajax=true&method=makeFreeOrder&token='+static_token,success:function(html){$('#btn_place_order').removeClass('disabled');var array_split=html.split(':');if(array_split[0]=='freeorder'){if(!$('#checkbox_create_account_guest').is(':checked')&&!OnePageCheckoutPS.IS_LOGGED)
|
||
document.location.href=prestashop.urls.pages.guest_tracking+'?id_order='+encodeURIComponent(array_split[1])+'&email='+encodeURIComponent(array_split[2]);else document.location.href=prestashop.urls.pages.history}else{}},error:function(XMLHttpRequest,textStatus,errorThrown){console.log('ERROR AJAX: '+textStatus,errorThrown)}})}
|
||
function updateCarrierSelectionAndGift(){}
|
||
function updateCarrierList(){}
|
||
function updatePaymentMethods(){}
|
||
function updatePaymentMethodsDisplay(){}
|
||
function cleanSelectAddressDelivery(){}
|
||
function loadJavaScriptReview(){$(function(){$('#onepagecheckoutps_step_review .ajax_add_to_cart_button').unbind('click').click(function(event){var idProduct=0;if(!$.isEmpty($(event.currentTarget).attr('data-id-product')))
|
||
idProduct=$(event.currentTarget).attr('data-id-product');else idProduct=$(this).attr('rel').replace('ajax_id_product_','');if($('#onepagecheckoutps_step_review #gift-products_block').length>0){event.preventDefault();window.location=$(event.currentTarget).attr('href');return!1}
|
||
if(!$.isEmpty(idProduct)){ajaxCart.add(idProduct,null,!1,this);Carrier.getByCountry();return!1}});$('#onepagecheckoutps_step_review .ajax_add_to_cart_button').css({visibility:'visible'});if(typeof checkoutfields!=='undefined')
|
||
checkoutfields.bindAjaxSave();$('#pfform input').click(function(){var value=$('#pfform input:checked').val();var id_cart=$('#pfform #pf_id').val();$.ajax({type:"POST",url:"modules/paragonfaktura/save.php",data:{value:value,id_cart:id_cart}}).done(function(msg){})})})}
|
||
function opc_callback_error_payment(name_module,params){if(name_module=='braintree'){$("div#onepagecheckoutps .loading_big").hide();if(typeof params.errorMsg!==typeof undefined&¶ms.errorMsg){Fronted.showModal({type:'warning',message:params.msg})}}}
|
||
function addslashes(str){return(str+'').replace(/[\\"']/g,'\\$&').replace(/\u0000/g,'\\0')}
|
||
function version_compare(v1,v2,operator){var i
|
||
var x
|
||
var compare=0
|
||
var vm={'dev':-6,'alpha':-5,'a':-5,'beta':-4,'b':-4,'RC':-3,'rc':-3,'#':-2,'p':1,'pl':1}
|
||
var _prepVersion=function(v){v=(''+v).replace(/[_\-+]/g,'.')
|
||
v=v.replace(/([^.\d]+)/g,'.$1.').replace(/\.{2,}/g,'.')
|
||
return(!v.length?[-8]:v.split('.'))}
|
||
var _numVersion=function(v){return!v?0:(isNaN(v)?vm[v]||-7:parseInt(v,10))}
|
||
v1=_prepVersion(v1)
|
||
v2=_prepVersion(v2)
|
||
x=Math.max(v1.length,v2.length)
|
||
for(i=0;i<x;i++){if(v1[i]===v2[i]){continue}
|
||
v1[i]=_numVersion(v1[i])
|
||
v2[i]=_numVersion(v2[i])
|
||
if(v1[i]<v2[i]){compare=-1
|
||
break}else if(v1[i]>v2[i]){compare=1
|
||
break}}
|
||
if(!operator){return compare}
|
||
switch(operator){case '>':case 'gt':return(compare>0)
|
||
case '>=':case 'ge':return(compare>=0)
|
||
case '<=':case 'le':return(compare<=0)
|
||
case '===':case '=':case 'eq':return(compare===0)
|
||
case '<>':case '!==':case 'ne':return(compare!==0)
|
||
case '':case '<':case 'lt':return(compare<0)
|
||
default:return null}}
|
||
var reload_init_opc=setInterval(function(){if(typeof AppOPC!==typeof undefined){if(!AppOPC.initialized)
|
||
AppOPC.init();else clearInterval(reload_init_opc)}},2000);/**
|
||
* We offer the best and most useful modules PrestaShop and modifications for your online store.
|
||
*
|
||
* We are experts and professionals in PrestaShop
|
||
*
|
||
* @author PresTeamShop.com <support@presteamshop.com>
|
||
* @copyright 2011-2017 PresTeamShop
|
||
* @license see file: LICENSE.txt
|
||
* @category PrestaShop
|
||
* @category Module
|
||
*/
|
||
;var sensbitpaczkawruchu=function(l,e,t){var d={module:"",text_choose_point:"",text_point_cod:"",loaded:!1,id_interval:!1,use_desintifier:!1,carriers:[],carriers_cod:[],point:"",point_label:"",carrier_selector:".delivery_option_radio",point_required:!1,validate_cod:0,map_is_open:!1,x13opc:!1,onepagecheckout:!1,supercheckout:!1,onepagecheckoutps:!1,wkonepagecheckout:!1,spstepcheckout:!1,steasycheckout:!1,easypay:!1,bestkit_opc:!1,google_key:"AIzaSyDZc6Ajf0PqhUAzbktozQyHFpi5V7TZW_o",use_interval:!1,conf_btn:"button[name=processCarrier]",ps17:!1,ajax_url:"",show_chooser_below_list:!1};function u(e){return e.text}function _(e){return e.split("").reverse().join("")}function o(){var e=l(d.carrier_selector).filter(":checked"),t=parseInt(e.val());if(d.use_desintifier&&3<t.toString().length&&t.toString().indexOf(",")<=-1&&(t=parseInt(function(e){e=e.toString();var t=parseInt(e[0]);return _((e=_(e.substr(1))).split("0".repeat(t+1)).join(","))}(t))),-1!==l.inArray(t,d.carriers)){d.point_required=!0;var o="append";if(d.show_chooser_below_list){if(d.onepagecheckoutps){var i=e.closest(".delivery-options");o="append"}else if(d.onepagecheckout){i=l("#carriers_section");o="after"}else if(d.supercheckout)i=l("#shipping-method");else if(d.spstepcheckout)i=l("#shipping_container");else if(d.steasycheckout){i=l("#js-delivery");o="after"}else{i=l(d.ps17?".delivery-options-list .delivery-options":".delivery_options_address");o="append"}i.is("table")&&(o="after")}else if(d.x13opc)i=e.closest(".delivery_option");else if(d.onepagecheckout){(i=e.closest("tr")).length||(i=e.closest(".delivery_option"))}else if(d.onepagecheckoutps){i=e.closest(".delivery-option, .delivery_option");o="after"}else if(d.supercheckout)i=e.closest("tr");else if(d.easypay)i=e.closest("tr");else if(d.wkonepagecheckout){i=l(d.carrier_selector).closest(".wk-shipping-list");o="append"}else if(d.bestkit_opc)i=e.closest("tr");else{(i=e.closest(d.ps17?".delivery-option":".delivery_option")).length||(i=e.closest(d.ps17?".delivery_option":".delivery-option")),i.length||(i=e.closest(".form-group")),i.length||(i=e.closest(".tablecart")),i.length||(i=e.next("label")),o="after"}if(d.validate_cod=-1!==l.inArray(t,d.carriers_cod)?1:0,i.is("tr")&&(o="after"),"after"===o)var n=i.parent().find("."+d.module+"."+d.validate_cod).length;else n=i.find("."+d.module+"."+d.validate_cod).length;if(!n){var r=l("#"+d.module).clone(!0);if(r.removeAttr("id"),r.addClass(d.validate_cod.toString()),d.show_chooser_below_list&&d.ps17?r.css("margin-top","0"):d.ps17&&i.is("label")&&r.css("margin-top","20px").css("margin-left",0).css("margin-right",0),d.show_chooser_below_list||!d.x13opc&&!i.is("tr"))"append"===o?i.append(r):"after"===o&&i.after(r);else{var a=i;i.is("tr")||(i=i.find("tr")),r.css("margin","0");var s=i.find("td").length;i.find("td").css("border","0");var c=l('<tr class="'+d.module+'-tr"><td colspan="'+s+'" style="border:0;padding:0;" class="'+d.module+'-td"></td></tr>');c.find("td").append(r),i.after(c);var p=i.next("."+d.module+"-tr").find("."+d.module+"-td");a.width()<p.width()&&!d.supercheckout?p.css("max-width","0"):d.supercheckout?(i.next(".sensbitpaczkawruchu-tr").css("display","block"),p.css("display","block"),p.css("width","100%")):d.bestkit_opc&&p.css("max-width","0")}l(r).find("."+d.module+"-point-select").not(".active").addClass("active").select2sensbitpaczkawruchu({language:"pl",allowClear:!1,closeOnSelect:!0,selectOnClose:!1,width:300,ajax:{url:d.ajax_url,dataType:"json",delay:250,data:function(e){return{ajax:1,action:"searchPoints",q:e.term,is_cod:d.validate_cod,page:e.page||1}},processResults:function(e,t){t.page=t.page||1;var o=l.map(e.items,function(e){return e.id=e.name,e.text=e.label,e});return{results:o,pagination:{more:30*t.page<e.total_count}}},cache:!0},escapeMarkup:function(e){return e},minimumInputLength:1,templateResult:u,templateSelection:u}),d.point.length<=0&&l(d.conf_btn+", input#cgv, input#cgv2, input#privacy_policy, input#kb_super_policy_1, input#kb_super_policy_2, #conditions_to_approve\\[terms-and-conditions\\], input[required][id^=agreement]").filter(":visible").filter(":checkbox").each(function(){l(this).prop("checked",!1),void 0!==l.uniform&&l.uniform.update(this),"function"!=typeof updatePaymentMethodsDisplay||d.bestkit_opc||updatePaymentMethodsDisplay()})}l("."+d.module).not("."+d.validate_cod).hide(),l("."+d.module+"."+d.validate_cod).show(),d.validate_cod&&d.point_required&&0<d.point.length&&f.updatePoint(d.point,"."+d.module+"-point-select")}else l("."+d.module).hide(),d.point_required=!1}function i(e){var t=!1;d.point_required&&d.point.length<=0&&(t=!0,e.preventDefault(),e.stopPropagation(),alert(d.text_choose_point),l("."+d.module+"-map-btn").trigger("click")),t?(l("."+d.module).addClass("error"),l(this).is(":checkbox")&&l(this).is(":visible")&&(l(this).prop("checked",!1),void 0!==l.uniform&&l.uniform.update(this)),l("html, body").animate({scrollTop:l("."+d.module+":visible").offset().top-150},500)):l("."+d.module).removeClass("error")}String.prototype.repeat=function(e){return new Array(e+1).join(this)};var f={setOptions:function(e){void 0!==e.point&&(null!==e.point&&e.point||(e.point="")),l.extend(d,e),0<d.point.length&&f.updatePoint(d.point,"."+d.module+"-point-select"),l("input.multi_carrier_poland").length?d.carrier_selector="input.multi_carrier_poland":l(d.carrier_selector).length<=0&&(l("input[name^='delivery_option']").length&&(d.carrier_selector="input[name^='delivery_option']"),l("input[name^='id_carrier']").length&&(d.carrier_selector="input[name^='id_carrier']")),l(d.conf_btn+", input#cgv, input#cgv2, input#privacy_policy, input#kb_super_policy_1, input#kb_super_policy_2, #conditions_to_approve\\[terms-and-conditions\\], input[required][id^=agreement]").length<=0&&(d.conf_btn="button[name=confirmDeliveryOption]")},debug:function(){console.log(d)},init:function(e){d.loaded||(void 0!==e&&f.setOptions(e),function e(t,o,i){if(document.body){var n=o||"text/javascript",r=document.createElement("script");i&&(r.id=i),r.async=!0,r.type=n,r.src=t,document.body.appendChild(r)}else setTimeout(function(){e(t,o,i)},250)}("https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key="+d.google_key),d.loaded=!0,d.id_interval=setInterval(function(){void 0!==l&&l.active<=0&&(l(function(){if(console.log(d.text_console,"font-size:18px;color:#c00;"),o(),l(document).on("change",d.carrier_selector,function(){o()}),d.use_interval)setInterval(function(){o()},500);l(document).on("change","."+d.module+"-point-select",function(){var e=l(this);f.updatePoint(e.val(),e)}),l(document).on("submit","form[name=carrier_area]",function(e){i(e)}),l(document).on("click",d.conf_btn+", input#cgv, input#cgv2, input#privacy_policy, input#kb_super_policy_1, input#kb_super_policy_2, #conditions_to_approve\\[terms-and-conditions\\], input[required][id^=agreement]",function(e){i(e)})}),clearInterval(d.id_interval))},300))},openMap:function(t,e){var o=l("<button/>"),i=e.toString().split(", ");l(o).sensbitpaczkawruchuWidget("popup",{form:{city:void 0!==i[0]?i[0]:"Warszawa",street:void 0!==i[1]?i[1]:""},auto_start:!0,popup:!0,filter_by_city:!1,autocomplete:!1,max_points:0,CashOnDelivery:!!d.validate_cod||null,locale:{city:"Miasto",street:"Ulica",searchbtn:"Szukaj",no_points:"Nie znaleziono punktów","bad_form-data":"Wypełnij poprawnie pole:"},onselect:function(e){l(t).each(function(){l(this).val(e.DestinationCode),l(t).closest(".sensbitpaczkawruchu").find(".select2sensbitpaczkawruchu-selection__rendered").text(e.DestinationCode+" ("+e.StreetName+", "+e.City+")"),f.updatePoint(e.DestinationCode,t)})}});o.click()},updatePoint:function(o,i){l.ajax({url:d.ajax_url,type:"POST",data:{ajax:1,action:"updatePoint",point:o,check_cod:d.validate_cod},success:function(e){var t;"0"===e?(d.point="",l(i).closest("."+d.module).find("."+d.select2+"-selection__rendered").text(""),t=d.text_point_cod,l.prototype.fancybox?l.fancybox.open([{type:"inline",autoScale:!0,minHeight:30,content:'<p class="fancybox-error">'+t+"</p>"}],{padding:0,helpers:{overlay:{locked:!1}}}):alert(t)):(d.point=o,l("."+d.module).removeClass("error"))}})}};return f}($,window,document);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.select2sensbitpaczkawruchu&&n.fn.select2sensbitpaczkawruchu.amd)var e=n.fn.select2sensbitpaczkawruchu.amd;var t,i,c;return e&&e.requirejs||(e?i=e:e={},function(d){function h(e,t){return n.call(e,t)}function o(e,t){var n,s,i,r,o,a,l,c,u,p,d,h=t&&t.split("/"),f=_.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(o=(e=e.split("/")).length-1,_.nodeIdCompat&&k.test(e[o])&&(e[o]=e[o].replace(k,"")),e=h.slice(0,h.length-1).concat(e),u=0;u<e.length;u+=1)if("."===(d=e[u]))e.splice(u,1),u-=1;else if(".."===d){if(1===u&&(".."===e[2]||".."===e[0]))break;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(s=n.slice(0,u).join("/"),h)for(p=h.length;0<p;p-=1)if((i=f[h.slice(0,p).join("/")])&&(i=i[s])){r=i,a=u;break}if(r)break;!l&&g&&g[s]&&(l=g[s],c=u)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function f(t,n){return function(){var e=s.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),l.apply(d,e.concat([t,n]))}}function g(t){return function(e){w[t]=e}}function m(e){if(h(b,e)){var t=b[e];delete b[e],$[e]=!0,r.apply(d,t)}if(!h(w,e)&&!h($,e))throw new Error("No "+e);return w[e]}function a(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}var r,l,v,y,w={},b={},_={},$={},n=Object.prototype.hasOwnProperty,s=[].slice,k=/\.js$/;v=function(e,t){var n,s,i=a(e),r=i[0];return e=i[1],r&&(n=m(r=o(r,t))),r?e=n&&n.normalize?n.normalize(e,(s=t,function(e){return o(e,s)})):o(e,t):(r=(i=a(e=o(e,t)))[0],e=i[1],r&&(n=m(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},y={require:function(e){return f(e)},exports:function(e){var t=w[e];return void 0!==t?t:w[e]={}},module:function(e){return{id:e,uri:"",exports:w[e],config:(t=e,function(){return _&&_.config&&_.config[t]||{}})};var t}},r=function(e,t,n,s){var i,r,o,a,l,c,u=[],p=typeof n;if(s=s||e,"undefined"===p||"function"===p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(r=(a=v(t[l],s)).f))u[l]=y.require(e);else if("exports"===r)u[l]=y.exports(e),c=!0;else if("module"===r)i=u[l]=y.module(e);else if(h(w,r)||h(b,r)||h($,r))u[l]=m(r);else{if(!a.p)throw new Error(e+" missing "+r);a.p.load(a.n,f(s,!0),g(r),{}),u[l]=w[r]}o=n?n.apply(w[e],u):void 0,e&&(i&&i.exports!==d&&i.exports!==w[e]?w[e]=i.exports:o===d&&c||(w[e]=o))}else e&&(w[e]=n)},t=i=l=function(e,t,n,s,i){if("string"==typeof e)return y[e]?y[e](t):m(v(e,t).f);if(!e.splice){if((_=e).deps&&l(_.deps,_.callback),!t)return;t.splice?(e=t,t=n,n=null):e=d}return t=t||function(){},"function"==typeof n&&(n=s,s=i),s?r(d,e,t,n):setTimeout(function(){r(d,e,t,n)},4),l},l.config=function(e){return l(e)},t._defined=w,(c=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),h(w,e)||h(b,e)||(b[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=i,e.define=c),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2sensbitpaczkawruchu/utils",["jquery"],function(r){function u(e){var t=e.prototype,n=[];for(var s in t){"function"==typeof t[s]&&"constructor"!==s&&n.push(s)}return n}var e={Extend:function(e,t){function n(){this.constructor=e}var s={}.hasOwnProperty;for(var i in t)s.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(s,i){function r(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}var e=u(i),t=u(s);i.displayName=s.displayName,r.prototype=new function(){this.constructor=r};for(var n=0;n<t.length;n++){var o=t[n];r.prototype[o]=s.prototype[o]}for(var a=function(e){var t=function(){};e in r.prototype&&(t=r.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},l=0;l<e.length;l++){var c=e[l];r.prototype[c]=a(c)}return r}},t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,s=e.length;n<s;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),s=e;if(1!==n.length){for(var i=0;i<n.length;i++){var r=n[i];(r=r.substring(0,1).toLowerCase()+r.substring(1))in s||(s[r]={}),i==n.length-1&&(s[r]=e[t]),s=s[r]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=r(t),s=t.style.overflowX,i=t.style.overflowY;return(s!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===s||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},e.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===r.fn.jquery.substr(0,3)){var n=r();r.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e}),e.define("select2sensbitpaczkawruchu/results",["jquery","./utils"],function(d,e){function s(e,t,n){this.$element=e,this.data=n,this.options=t,s.__super__.constructor.call(this)}return e.Extend(s,e.Observable),s.prototype.render=function(){var e=d('<ul class="select2sensbitpaczkawruchu-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=d('<li role="treeitem" aria-live="assertive" class="select2sensbitpaczkawruchu-results__option"></li>'),s=this.options.get("translations").get(e.message);n.append(t(s(e.args))),n[0].className+=" select2sensbitpaczkawruchu-results__message",this.$results.append(n)},s.prototype.hideMessages=function(){this.$results.find(".select2sensbitpaczkawruchu-results__message").remove()},s.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var s=e.results[n],i=this.option(s);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},s.prototype.position=function(e,t){t.find(".select2sensbitpaczkawruchu-results").append(e)},s.prototype.sort=function(e){return this.options.get("sorter")(e)},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2sensbitpaczkawruchu-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=d.map(e,function(e){return e.id.toString()});t.$results.find(".select2sensbitpaczkawruchu-results__option[aria-selected]").each(function(){var e=d(this),t=d.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<d.inArray(n,s)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},s.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(e){var t=document.createElement("li");t.className="select2sensbitpaczkawruchu-results__option";var n={role:"treeitem","aria-selected":"false"};for(var s in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var i=n[s];t.setAttribute(s,i)}if(e.children){var r=d(t),o=document.createElement("strong");o.className="select2sensbitpaczkawruchu-results__group",d(o),this.template(e,o);for(var a=[],l=0;l<e.children.length;l++){var c=e.children[l],u=this.option(c);a.push(u)}var p=d("<ul></ul>",{class:"select2sensbitpaczkawruchu-results__options select2sensbitpaczkawruchu-results__options--nested"});p.append(a),r.append(o),r.append(p)}else this.template(e,t);return d.data(t,"data",e),t},s.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var s=n-1;0===e.length&&(s=0);var i=t.eq(s);i.trigger("mouseenter");var r=l.$results.offset().top,o=i.offset().top,a=l.$results.scrollTop()+(o-r);0===s?l.$results.scrollTop(0):o-r<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var s=t.eq(n);s.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),r=s.offset().top+s.outerHeight(!1),o=l.$results.scrollTop()+r-i;0===n?l.$results.scrollTop(0):i<r&&l.$results.scrollTop(o)}}),t.on("results:focus",function(e){e.element.addClass("select2sensbitpaczkawruchu-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),d.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,s=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();s?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2sensbitpaczkawruchu-results__option[aria-selected]",function(e){var t=d(this),n=t.data("data");return"true"===t.attr("aria-selected")?void(l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})):void l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2sensbitpaczkawruchu-results__option[aria-selected]",function(e){var t=d(this).data("data");l.getHighlightedResults().removeClass("select2sensbitpaczkawruchu-results__option--highlighted"),l.trigger("results:focus",{data:t,element:d(this)})})},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2sensbitpaczkawruchu-results__option--highlighted")},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,s=e.offset().top,i=this.$results.scrollTop()+(s-n),r=s-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(i)}},s.prototype.template=function(e,t){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=s(i):d(t).append(i)},s}),e.define("select2sensbitpaczkawruchu/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2sensbitpaczkawruchu/selection/base",["jquery","../utils","../keys"],function(n,e,i){function s(e,t){this.$element=e,this.options=t,s.__super__.constructor.call(this)}return e.Extend(s,e.Observable),s.prototype.render=function(){var e=n('<span class="select2sensbitpaczkawruchu-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},s.prototype.bind=function(e,t){var n=this,s=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},s.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},s.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2sensbitpaczkawruchu."+e.id,function(e){var t=n(e.target).closest(".select2sensbitpaczkawruchu");n(".select2sensbitpaczkawruchu.select2sensbitpaczkawruchu-container--open").each(function(){var e=n(this);this!=t[0]&&e.data("element").select2sensbitpaczkawruchu("close")})})},s.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2sensbitpaczkawruchu."+e.id)},s.prototype.position=function(e,t){t.find(".selection").append(e)},s.prototype.destroy=function(){this._detachCloseHandler(this.container)},s.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},s}),e.define("select2sensbitpaczkawruchu/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,s){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2sensbitpaczkawruchu-selection--single"),e.html('<span class="select2sensbitpaczkawruchu-selection__rendered"></span><span class="select2sensbitpaczkawruchu-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2sensbitpaczkawruchu-selection__rendered").attr("id",s),this.$selection.attr("aria-labelledby",s),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(e){n.update(e.data)})},i.prototype.clear=function(){this.$selection.find(".select2sensbitpaczkawruchu-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2sensbitpaczkawruchu-selection__rendered"),s=this.display(t,n);n.empty().append(s),n.prop("title",t.title||t.text)}else this.clear()},i}),e.define("select2sensbitpaczkawruchu/selection/multiple",["jquery","./base","../utils"],function(s,e,a){function i(e,t){i.__super__.constructor.apply(this,arguments)}return a.Extend(i,e),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2sensbitpaczkawruchu-selection--multiple"),e.html('<ul class="select2sensbitpaczkawruchu-selection__rendered"></ul>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2sensbitpaczkawruchu-selection__choice__remove",function(e){if(!n.options.get("disabled")){var t=s(this).parent().data("data");n.trigger("unselect",{originalEvent:e,data:t})}})},i.prototype.clear=function(){this.$selection.find(".select2sensbitpaczkawruchu-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return s('<li class="select2sensbitpaczkawruchu-selection__choice"><span class="select2sensbitpaczkawruchu-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var s=e[n],i=this.selectionContainer(),r=this.display(s,i);i.append(r),i.prop("title",s.title||s.text),i.data("data",s),t.push(i)}var o=this.$selection.find(".select2sensbitpaczkawruchu-selection__rendered");a.appendMany(o,t)}},i}),e.define("select2sensbitpaczkawruchu/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2sensbitpaczkawruchu-selection__placeholder").removeClass("select2sensbitpaczkawruchu-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var s=this.createPlaceholder(this.placeholder);this.$selection.find(".select2sensbitpaczkawruchu-selection__rendered").append(s)},t}),e.define("select2sensbitpaczkawruchu/selection/allowClear",["jquery","../keys"],function(s,i){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2sensbitpaczkawruchu-selection__clear",function(e){s._handleClear(e)}),t.on("keypress",function(e){s._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2sensbitpaczkawruchu-selection__clear");if(0!==n.length){t.stopPropagation();for(var s=n.data("data"),i=0;i<s.length;i++){var r={data:s[i]};if(this.trigger("unselect",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||(t.which==i.DELETE||t.which==i.BACKSPACE)&&this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2sensbitpaczkawruchu-selection__placeholder").length||0===t.length)){var n=s('<span class="select2sensbitpaczkawruchu-selection__clear">×</span>');n.data("data",t),this.$selection.find(".select2sensbitpaczkawruchu-selection__rendered").prepend(n)}},e}),e.define("select2sensbitpaczkawruchu/selection/search",["jquery","../utils","../keys"],function(s,e,o){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=s('<li class="select2sensbitpaczkawruchu-search select2sensbitpaczkawruchu-search--inline"><input class="select2sensbitpaczkawruchu-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("open",function(){s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){s.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2sensbitpaczkawruchu-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2sensbitpaczkawruchu-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2sensbitpaczkawruchu-search--inline",function(e){if(e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===o.BACKSPACE&&""===s.$search.val()){var t=s.$searchContainer.prev(".select2sensbitpaczkawruchu-selection__choice");if(0<t.length){var n=t.data("data");s.searchRemoveChoice(n),e.preventDefault()}}});var i=document.documentMode,r=i&&i<=11;this.$selection.on("input.searchcheck",".select2sensbitpaczkawruchu-search--inline",function(e){return r?void s.$selection.off("input.search input.searchcheck"):void s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2sensbitpaczkawruchu-search--inline",function(e){if(r&&"input"===e.type)s.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=o.SHIFT&&t!=o.CTRL&&t!=o.ALT&&t!=o.TAB&&s.handleSearch(e)}})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2sensbitpaczkawruchu-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2sensbitpaczkawruchu-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},t}),e.define("select2sensbitpaczkawruchu/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var s=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting"],r=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==o.inArray(e,i)){t=t||{};var n=o.Event("select2sensbitpaczkawruchu:"+e,{params:t});s.$element.trigger(n),-1!==o.inArray(e,r)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2sensbitpaczkawruchu/translation",["jquery","require"],function(t,n){function s(e){this.dict=e||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(e){return this.dict[e]},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},s._cache={},s.loadPath=function(e){if(!(e in s._cache)){var t=n(e);s._cache[e]=t}return new s(s._cache[e])},s}),e.define("select2sensbitpaczkawruchu/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("select2sensbitpaczkawruchu/data/base",["../utils"],function(s){function n(e,t){n.__super__.constructor.call(this)}return s.Extend(n,s.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return(n+=s.generateChars(4))+(null!=t.id?"-"+t.id.toString():"-"+s.generateChars(4))},n}),e.define("select2sensbitpaczkawruchu/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],s=this;this.$element.find(":selected").each(function(){var e=a(this),t=s.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var r=this;if(i.selected=!0,a(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var s=i[n].id;-1===a.inArray(s,t)&&t.push(s)}r.$element.val(t),r.$element.trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(i){var r=this;if(this.$element.prop("multiple"))return i.selected=!1,a(i.element).is("option")?(i.element.selected=!1,void this.$element.trigger("change")):void this.current(function(e){for(var t=[],n=0;n<e.length;n++){var s=e[n].id;s!==i.id&&-1===a.inArray(s,t)&&t.push(s)}r.$element.val(t),r.$element.trigger("change")})},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})},n.prototype.query=function(s,e){var i=[],r=this;this.$element.children().each(function(){var e=a(this);if(e.is("option")||e.is("optgroup")){var t=r.item(e),n=r.matches(s,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=a(t),s=this._normalizeItem(e);return s.element=t,a.data(t,"data",s),n},n.prototype.item=function(e){var t={};if(null!=(t=a.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),s=[],i=0;i<n.length;i++){var r=a(n[i]),o=this.item(r);s.push(o)}t.children=s}return(t=this._normalizeItem(t)).element=e[0],a.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){a.isPlainObject(e)||(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2sensbitpaczkawruchu/data/array",["./select","../utils","jquery"],function(e,f,g){function s(e,t){var n=t.get("data")||[];s.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return f.Extend(s,e),s.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),s.__super__.select.call(this,n)},s.prototype.convertToOptions=function(e){function t(e){return function(){return g(this).val()==e.id}}for(var n=this,s=this.$element.find("option"),i=s.map(function(){return n.item(g(this)).id}).get(),r=[],o=0;o<e.length;o++){var a=this._normalizeItem(e[o]);if(0<=g.inArray(a.id,i)){var l=s.filter(t(a)),c=this.item(l),u=g.extend(!0,{},a,c),p=this.option(u);l.replaceWith(p)}else{var d=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(d,h)}r.push(d)}}return r},s}),e.define("select2sensbitpaczkawruchu/data/ajax",["./array","../utils","jquery"],function(e,t,r){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return r.extend({},e,{q:e.term})},transport:function(e,t,n){var s=r.ajax(e);return s.then(t),s.fail(n),s}};return r.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,s){function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&r.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),s(t)},function(){e.status&&"0"===e.status||i.trigger("results:message",{message:"errorLoading"})});i._request=e}var i=this;null!=this._request&&(r.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=r.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2sensbitpaczkawruchu/data/tags",["jquery"],function(u){function e(e,t,n){var s=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var r=n.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,t,n),u.isArray(s))for(var o=0;o<s.length;o++){var a=s[o],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var p=this;return this._removeOldTags(),null==c.term||null!=c.page?void e.call(this,c,u):void e.call(this,c,function e(t,n){for(var s=t.results,i=0;i<s.length;i++){var r=s[i],o=null!=r.children&&!e({results:r.children},!0);if(r.text===c.term||o)return!n&&(t.data=s,void u(t))}if(n)return!0;var a=p.createTag(c);if(null!=a){var l=p.option(a);l.attr("data-select2sensbitpaczkawruchu-tag",!0),p.addOptions([l]),p.insertTag(s,a)}t.results=s,u(t)})},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){(this._lastTag,this.$element.find("option[data-select2sensbitpaczkawruchu-tag]")).each(function(){this.selected||u(this).remove()})},e}),e.define("select2sensbitpaczkawruchu/data/tokenizer",["jquery"],function(p){function e(e,t,n){var s=n.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2sensbitpaczkawruchu-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var s=this.tokenizer(t,this.options,function(e){var t,n=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return p(this).val()===n.id}).length){var s=i.option(n);s.attr("data-select2sensbitpaczkawruchu-tag",!0),i._removeOldTags(),i.addOptions([s])}t=n,i.trigger("select",{data:t})});s.term!==t.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.focus()),t.term=s.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,s){for(var i=n.get("tokenSeparators")||[],r=t.term,o=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};o<r.length;){var l=r[o];if(-1!==p.inArray(l,i)){var c=r.substr(0,o),u=a(p.extend({},t,{term:c}));null!=u?(s(u),r=r.substr(o+1)||"",o=0):o++}else o++}return{term:r}},e}),e.define("select2sensbitpaczkawruchu/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2sensbitpaczkawruchu/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2sensbitpaczkawruchu/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,s,i){var r=this;this.current(function(e){var t=null!=e?e.length:0;return 0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void n.call(r,s,i)})},e}),e.define("select2sensbitpaczkawruchu/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2sensbitpaczkawruchu-dropdown"><span class="select2sensbitpaczkawruchu-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2sensbitpaczkawruchu/dropdown/search",["jquery","../utils"],function(i,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=i('<span class="select2sensbitpaczkawruchu-search select2sensbitpaczkawruchu-search--dropdown"><input class="select2sensbitpaczkawruchu-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){i(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.focus(),window.setTimeout(function(){s.$search.focus()},0)}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.val("")}),t.on("focus",function(){t.isOpen()&&s.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer.removeClass("select2sensbitpaczkawruchu-search--hide"):s.$searchContainer.addClass("select2sensbitpaczkawruchu-search--hide"))})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2sensbitpaczkawruchu/dropdown/hidePlaceholder",[],function(){function e(e,t,n,s){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,s)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),s=t.length-1;0<=s;s--){var i=t[s];this.placeholder.id===i.id&&n.splice(s,1)}return n},e}),e.define("select2sensbitpaczkawruchu/dropdown/infiniteScroll",["jquery"],function(i){function e(e,t,n,s){this.lastParams={},e.call(this,t,n,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("query",function(e){s.lastParams=e,s.loading=!0}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",function(){var e=i.contains(document.documentElement,s.$loadingMore[0]);if(!s.loading&&e){var t=s.$results.offset().top+s.$results.outerHeight(!1);s.$loadingMore.offset().top+s.$loadingMore.outerHeight(!1)<=t+50&&s.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=i.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=i('<li class="select2sensbitpaczkawruchu-results__option select2sensbitpaczkawruchu-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2sensbitpaczkawruchu/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this,i=!1;e.call(this,t,n),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),i||(i=!0,t.on("results:all",function(){s._positionDropdown(),s._resizeDropdown()}),t.on("results:append",function(){s._positionDropdown(),s._resizeDropdown()}))}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2sensbitpaczkawruchu"),t.addClass("select2sensbitpaczkawruchu-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,s="scroll.select2sensbitpaczkawruchu."+t.id,i="resize.select2sensbitpaczkawruchu."+t.id,r="orientationchange.select2sensbitpaczkawruchu."+t.id,o=this.$container.parents().filter(a.hasScroll);o.each(function(){f(this).data("select2sensbitpaczkawruchu-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),o.on(s,function(e){var t=f(this).data("select2sensbitpaczkawruchu-scroll-position");f(this).scrollTop(t.y)}),f(window).on(s+" "+i+" "+r,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2sensbitpaczkawruchu."+t.id,s="resize.select2sensbitpaczkawruchu."+t.id,i="orientationchange.select2sensbitpaczkawruchu."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+s+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2sensbitpaczkawruchu-dropdown--above"),n=this.$dropdown.hasClass("select2sensbitpaczkawruchu-dropdown--below"),s=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=i.top,r.bottom=i.top+r.height;var o=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-o,u=l>i.bottom+o,p={left:i.left,top:r.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var h=d.offset();p.top-=h.top,p.left-=h.left,t||n||(s="below"),u||!c||t?!c&&u&&t&&(s="below"):s="above",("above"==s||t&&"below"!==s)&&(p.top=r.top-h.top-o),null!=s&&(this.$dropdown.removeClass("select2sensbitpaczkawruchu-dropdown--below select2sensbitpaczkawruchu-dropdown--above").addClass("select2sensbitpaczkawruchu-dropdown--"+s),this.$container.removeClass("select2sensbitpaczkawruchu-container--below select2sensbitpaczkawruchu-container--above").addClass("select2sensbitpaczkawruchu-container--"+s)),this.$dropdownContainer.css(p)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2sensbitpaczkawruchu/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,s){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,s)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,s=0;s<t.length;s++){var i=t[s];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2sensbitpaczkawruchu/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("close",function(e){s._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var s=this.getHighlightedResults();if(!(s.length<1)){var i=s.data("data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2sensbitpaczkawruchu/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(e){s._selectTriggered(e)}),t.on("unselect",function(e){s._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2sensbitpaczkawruchu/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("select2sensbitpaczkawruchu/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(f,g,m,v,y,w,b,_,$,k,z,t,A,x,E,C,O,S,T,D,q,L,j,P,I,R,M,U,e){function n(){this.reset()}return n.prototype.apply=function(t){if(null==(t=f.extend(!0,{},this.defaults,t)).dataAdapter){if(null!=t.ajax?t.dataAdapter=E:null!=t.data?t.dataAdapter=x:t.dataAdapter=A,0<t.minimumInputLength&&(t.dataAdapter=k.Decorate(t.dataAdapter,S)),0<t.maximumInputLength&&(t.dataAdapter=k.Decorate(t.dataAdapter,T)),0<t.maximumSelectionLength&&(t.dataAdapter=k.Decorate(t.dataAdapter,D)),t.tags&&(t.dataAdapter=k.Decorate(t.dataAdapter,C)),(null!=t.tokenSeparators||null!=t.tokenizer)&&(t.dataAdapter=k.Decorate(t.dataAdapter,O)),null!=t.query){var e=g(t.amdBase+"compat/query");t.dataAdapter=k.Decorate(t.dataAdapter,e)}if(null!=t.initSelection){var n=g(t.amdBase+"compat/initSelection");t.dataAdapter=k.Decorate(t.dataAdapter,n)}}if(null==t.resultsAdapter&&(t.resultsAdapter=m,null!=t.ajax&&(t.resultsAdapter=k.Decorate(t.resultsAdapter,P)),null!=t.placeholder&&(t.resultsAdapter=k.Decorate(t.resultsAdapter,j)),t.selectOnClose&&(t.resultsAdapter=k.Decorate(t.resultsAdapter,M))),null==t.dropdownAdapter){if(t.multiple)t.dropdownAdapter=q;else{var s=k.Decorate(q,L);t.dropdownAdapter=s}if(0!==t.minimumResultsForSearch&&(t.dropdownAdapter=k.Decorate(t.dropdownAdapter,R)),t.closeOnSelect&&(t.dropdownAdapter=k.Decorate(t.dropdownAdapter,U)),null!=t.dropdownCssClass||null!=t.dropdownCss||null!=t.adaptDropdownCssClass){var i=g(t.amdBase+"compat/dropdownCss");t.dropdownAdapter=k.Decorate(t.dropdownAdapter,i)}t.dropdownAdapter=k.Decorate(t.dropdownAdapter,I)}if(null==t.selectionAdapter){if(t.multiple?t.selectionAdapter=y:t.selectionAdapter=v,null!=t.placeholder&&(t.selectionAdapter=k.Decorate(t.selectionAdapter,w)),t.allowClear&&(t.selectionAdapter=k.Decorate(t.selectionAdapter,b)),t.multiple&&(t.selectionAdapter=k.Decorate(t.selectionAdapter,_)),null!=t.containerCssClass||null!=t.containerCss||null!=t.adaptContainerCssClass){var r=g(t.amdBase+"compat/containerCss");t.selectionAdapter=k.Decorate(t.selectionAdapter,r)}t.selectionAdapter=k.Decorate(t.selectionAdapter,$)}if("string"==typeof t.language)if(0<t.language.indexOf("-")){var o=t.language.split("-")[0];t.language=[t.language,o]}else t.language=[t.language];if(f.isArray(t.language)){var a=new z;t.language.push("en");for(var l=t.language,c=0;c<l.length;c++){var u=l[c],p={};try{p=z.loadPath(u)}catch(e){try{u=this.defaults.amdLanguageBase+u,p=z.loadPath(u)}catch(e){t.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+u+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(p)}t.translations=a}else{var d=z.loadPath(this.defaults.amdLanguageBase+"en"),h=new z(t.language);h.extend(d),t.translations=h}return t},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:k.escapeMarkup,language:e,matcher:function e(t,n){if(""===f.trim(t.term))return n;if(n.children&&0<n.children.length){for(var s=f.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&s.children.splice(i,1);return 0<s.children.length?s:e(t,s)}var r=a(n.text).toUpperCase(),o=a(t.term).toUpperCase();return-1<r.indexOf(o)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.set=function(e,t){var n={};n[f.camelCase(e)]=t;var s=k._convertData(n);f.extend(this.defaults,s)},new n}),e.define("select2sensbitpaczkawruchu/options",["require","jquery","./defaults","./utils"],function(s,r,i,o){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=i.apply(this.options),t&&t.is("input")){var n=s(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=o.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2sensbitpaczkawruchu"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2sensbitpaczkawruchuTags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2sensbitpaczkawruchu-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2sensbitpaczkawruchuTags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n;n=r.fn.jquery&&"1."==r.fn.jquery.substr(0,2)&&e[0].dataset?r.extend(!0,{},e[0].dataset,e.data()):e.data();var s=r.extend(!0,{},n);for(var i in s=o._convertData(s))-1<r.inArray(i,t)||(r.isPlainObject(this.options[i])?r.extend(this.options[i],s[i]):this.options[i]=s[i]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2sensbitpaczkawruchu/core",["jquery","./options","./utils","./keys"],function(i,c,n,s){var u=function(e,t){null!=e.data("select2sensbitpaczkawruchu")&&e.data("select2sensbitpaczkawruchu").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),u.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var i=this.render();this._placeContainer(i);var r=this.options.get("selectionAdapter");this.selection=new r(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var o=this.options.get("dropdownAdapter");this.dropdown=new o(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2sensbitpaczkawruchu-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2sensbitpaczkawruchu",this)};return n.Extend(u,n.Observable),u.prototype._generateId=function(e){return"select2sensbitpaczkawruchu-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},u.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},u.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var s=this._resolveWidth(e,"style");return null!=s?s:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return t;var r=e.attr("style");if("string"!=typeof r)return null;for(var o=r.split(";"),a=0,l=o.length;a<l;a+=1){var c=o[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2sensbitpaczkawruchu",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2sensbitpaczkawruchu",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){i.each(e,t._syncA),i.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},u.prototype._registerSelectionEvents=function(){var n=this,s=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.inArray(e,s)&&n.trigger(e,t)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2sensbitpaczkawruchu-container--open")}),this.on("close",function(){n.$container.removeClass("select2sensbitpaczkawruchu-container--open")}),this.on("enable",function(){n.$container.removeClass("select2sensbitpaczkawruchu-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2sensbitpaczkawruchu-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2sensbitpaczkawruchu-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===s.ESC||t===s.TAB||t===s.UP&&e.altKey?(n.close(),e.preventDefault()):t===s.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._syncSubtree=function(e,t){var n=!1,s=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})})}},u.prototype.trigger=function(e,t){var n=u.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in s){var i=s[e],r={prevented:!1,name:e,args:t};if(n.call(this,i,r),r.prevented)return void(t.prevented=!0)}n.call(this,e,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.trigger("query",{})},u.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},u.prototype.isOpen=function(){return this.$container.hasClass("select2sensbitpaczkawruchu-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2sensbitpaczkawruchu-container--focus")},u.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2sensbitpaczkawruchu-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2sensbitpaczkawruchu("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2sensbitpaczkawruchu("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},u.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2sensbitpaczkawruchu("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];i.isArray(t)&&(t=i.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},u.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2sensbitpaczkawruchu"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2sensbitpaczkawruchu-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2sensbitpaczkawruchu"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},u.prototype.render=function(){var e=i('<span class="select2sensbitpaczkawruchu select2sensbitpaczkawruchu-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2sensbitpaczkawruchu-container--"+this.options.get("theme")),e.data("element",this.$element),e},u}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2sensbitpaczkawruchu",["jquery","jquery-mousewheel","./select2sensbitpaczkawruchu/core","./select2sensbitpaczkawruchu/defaults"],function(i,e,r,t){if(null==i.fn.select2sensbitpaczkawruchu){var o=["open","close","destroy"];i.fn.select2sensbitpaczkawruchu=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new r(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=i(this).data("select2sensbitpaczkawruchu");null==e&&window.console&&console.error&&console.error("The select2sensbitpaczkawruchu('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,s)}),-1<i.inArray(t,o)?this:n}}return null==i.fn.select2sensbitpaczkawruchu.defaults&&(i.fn.select2sensbitpaczkawruchu.defaults=t),r}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2sensbitpaczkawruchu");return n.fn.select2sensbitpaczkawruchu.amd=e,t}),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2sensbitpaczkawruchu&&jQuery.fn.select2sensbitpaczkawruchu.amd)var e=jQuery.fn.select2sensbitpaczkawruchu.amd;e.define("select2sensbitpaczkawruchu/i18n/pl",[],function(){var n=["znak","znaki","znaków"],t=["element","elementy","elementów"],s=function(e,t){return 1===e?t[0]:1<e&&e<=4?t[1]:5<=e?t[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Usuń "+t+" "+s(t,n)},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Wprowadź miasto, ulicę lub nazwę punktu odbioru. Min. "+t+" "+s(t,n)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(e){return"Możesz zaznaczyć tylko "+e.maximum+" "+s(e.maximum,t)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"}}}),e.define,e.require}();!function(a,t,e,o){var n="sensbitpaczkawruchuWidget",s={inline:"popup",target:"body",pwr_api_url:"//mapka.paczkawruchu.pl/g/index.php/points/",filter_by_city:!0,popup_template:'<div style="color: black !important;">#{Location}<br><b>#{StreetName}</b><br><b>Godziny otwarcia: #{OpeningHours}</b><br><br><button class="sensbitpaczkawruchuwidget_hover_button">Wybierz</button><br><br></div>',popup:!1,max_points:5,onselect:null,autocomplete:!1,type:"ALL",CashOnDelivery:null,auto_start:!1,locale:{city:"Miasto",street:"Ulica",searchbtn:"szukaj >",no_points:"Nie znaleziono punktów","bad_form-data":"Wypełnij poprawnie pole:"},marker_icons:{mouseover:"//mapka.paczkawruchu.pl/images/darkblue-dot.png",mouseout:"//mapka.paczkawruchu.pl/images/blue-dot.png",mousedown:"//mapka.paczkawruchu.pl/images/green-dot.png",mouseup:"//mapka.paczkawruchu.pl/images/blue-dot.png"},form:{city:"",street:""},map:{center:[51.9077298,19.9526048],zoom:7,scrollwheel:!1,navigationControl:!1,mapTypeControl:!1,scaleControl:!1}};function r(t,e){this.options=a.extend({},s,t),this.__init.call(this)}function g(i,t){var e=new google.maps.LatLng(t.Latitude,t.Longitude),o=t.Location;"string"!=typeof o&&(o="");var s=new google.maps.Marker({position:e,icon:"//mapka.paczkawruchu.pl/images/blue-dot.png",title:o,customData:t});return google.maps.event.addListener(s,"mouseover",function(){s.setIcon(i.options.marker_icons.mouseover)}),google.maps.event.addListener(s,"mouseout",function(){s.setIcon(i.options.marker_icons.mouseout)}),google.maps.event.addListener(s,"mousedown",function(){s.setIcon(i.options.marker_icons.mousedown)}),google.maps.event.addListener(s,"mouseup",function(){s.setIcon(i.options.marker_icons.mouseup)}),!1===i.options.popup?google.maps.event.addListener(s,"click",function(){i.onselectevent.call(i,this.customData),"inline"!=i.options.inline&&i.hide()}):google.maps.event.addListener(s,"click",function(){i._current_infowindow&&i._current_infowindow.close(),i._current_infowindow=new google.maps.InfoWindow({maxWidth:300}),i.Location||(i.Location="");var t,e,o,n=a((t=s,e=i.options.popup_template,(o=t.customData).Location||(o.Location=""),repr=function(t,e){return"string"==typeof o[e]||"number"==typeof o[e]?o[e]:t},e.replace(/#\{([^{}]*)}/g,repr)));n.find("button").on("click",function(t){i.onselectevent.call(i,s.customData),i._current_infowindow.close(),"inline"!=i.options.inline&&i.hide()}),i._current_infowindow.setContent(n[0]),i._current_infowindow.open(i.map,s)}),s.setMap(i.map),s}function f(t,e,o,n){function s(t){return t*Math.PI/180}var a=[],r=-1;for(i=0;i<o.length;i++)if(!(-1<n.indexOf(i))){var p=parseFloat(o[i].Latitude),c=parseFloat(o[i].Longitude),l=s(p-t),u=s(c-e),h=Math.sin(l/2)*Math.sin(l/2)+Math.cos(s(t))*Math.cos(s(t))*Math.sin(u/2)*Math.sin(u/2),d=6371*(2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h)));a[i]=d,(-1==r||d<a[r])&&(r=i)}return r}r.prototype={__init:function(){this.options.onselect?this.onselectevent=this.options.onselect:this.onselectevent=function(t){console.log(t)},this._current_infowindow,this.ondragend=function(){},this.markers=[],this._state=!1,this.form=function(e){var t="";"body"!=e.options.target&&(t="inline");var o={overlay:a('<div class="sensbitpaczkawruchuwidget_overlay"></div>'),map:a('<div class="sensbitpaczkawruchuwidget_map_object"></div>'),pwr:a('<div class="sensbitpaczkawruchuwidget_main '+t+'"></div>'),city:a('<input type="text" class="sensbitpaczkawruchuwidget_input sensbitpaczkawruchuwidget_input_city" placeholder="'+e.options.locale.city+'" value="'+(e.options.form.city?e.options.form.city:"")+'" />'),street:a('<input type="text" class="sensbitpaczkawruchuwidget_input sensbitpaczkawruchuwidget_input_street" placeholder="'+e.options.locale.street+'" value="'+(e.options.form.street?e.options.form.street:"")+'" />'),searchbtn:a('<button class="sensbitpaczkawruchuwidget_input sensbitpaczkawruchuwidget_input_search sensbitpaczkawruchuwidget_hover_button">'+e.options.locale.searchbtn+"</button>")};if("inline"!=e.options.inline&&(o.closebtn=a('<a class="sensbitpaczkawruchuwidget_close_btn"></a>')),o.searchbtn.on("click",a.proxy(e.search,e)),"inline"!=e.options.inline&&o.closebtn.on("click",a.proxy(e.hide,e)),1==e.options.autocomplete){new google.maps.places.Autocomplete(o.city[0],{types:["(cities)"],componentRestrictions:{country:"pl"}});var n=new google.maps.places.Autocomplete(o.street[0],{types:["address"],componentRestrictions:{country:"pl"}});google.maps.event.addListener(n,"place_changed",function(){for(var t=n.getPlace(),e=0;e<t.address_components.length;e++)if("route"==t.address_components[e].types[0]){o.street.val(t.address_components[e].long_name);break}})}return o.city.on("keyup",function(t){13==t.keyCode&&(""==a.trim(a(this).val())?(t.preventDefault(),e.showMessage(e.options.locale["bad_form-data"]+" "+e.options.locale.city)):e.search.call(e))}),o.street.on("keyup",function(t){13==t.keyCode&&(""==a.trim(a(this).val())?(t.preventDefault(),e.showMessage(e.options.locale["bad_form-data"]+" "+e.options.locale.street)):e.search.call(e))}),o.pwr.append(o.city),o.pwr.append(o.street),o.pwr.append(o.searchbtn),o.pwr.append(o.closebtn),o.pwr.append(o.map),o}(this),this.map=null,this.geocoder=new google.maps.Geocoder,"body"!=this.options.target&&this.show()},fitBounds:function(t,e){for(var o=new google.maps.LatLngBounds,n=0;n<t.length;n++)o.extend(t[n].position)},clearMarkers:function(){if(0<this.markers.length){for(var t=0;t<this.markers.length;t++)this.markers[t].setMap(null);this.markers=[]}},collectFormData:function(){return[a.trim(this.form.city.val()),a.trim(this.form.street.val())]},show:function(t){!1===this._state?("body"==this.options.target?(a(this.options.target).append(this.form.overlay),a(this.options.target).append(this.form.pwr)):a(this.options.target).html(this.form.pwr),this.map=function(t){var e=t.options.map;e.center&&2==e.center.length&&(e.center=new google.maps.LatLng(e.center[0],e.center[1]));var o=new google.maps.Map(t.form.map[0],e);return google.maps.event.addListener(o,"dragend",a.proxy(t.ondragend,t)),o}(this),this._state=!0,this.options.auto_start&&this.search()):(this.form.overlay.show(),this.form.pwr.show())},hide:function(t){this.form.overlay.hide(),this.form.pwr.hide()},destroy:function(){},updateForm:function(t,e){},search:function(t){var e=this.collectFormData();if(""!=e[0]||""!=e[1])return this.geocoder.geocode({address:e.join(",")},a.proxy(function(t,e){if(e==google.maps.GeocoderStatus.OK){t[0].geometry.bounds?this.map.fitBounds(t[0].geometry.bounds):(this.map.setCenter(t[0].geometry.location),this.map.setZoom(15));for(var o=null,n=0;n<t.length&&("undefined"!=t[n].address_components&&a.each(t[n].address_components,function(t,e){return this.types&&-1!=this.types.indexOf("locality")?(o=this.long_name,!1):this.types&&-1!=this.types.indexOf("administrative_area_level_2")?(o=this.long_name,!1):void 0}),!o);n++);if(!o&&1==this.options.filter_by_city)return void this.showMessage(this.options.locale["bad_form-data"]+" "+this.options.locale.city);!function p(c,t,l,u,h,d){var m=c.options.max_points,e="ALL";null!==c.options.CashOnDelivery&&(e=1==c.options.CashOnDelivery?"TRUE":"FALSE");var o=c.options.pwr_api_url+"cashondelivery/"+e+"/point/"+c.options.type+"/";1==c.options.filter_by_city&&(o=o+"city/"+t),a.ajax({url:o,cache:!0,accepts:"application/json",contentType:"application/json",crossDomain:!0,dataType:"jsonp",error:function(t,e,o){console.log(t,e,o)},success:function(t,e,o){if(!t||t.length<1)1==d?c.showMessage(c.options.locale.no_points):p(c,"ALL",l,u,h,!0);else{c.clearMarkers();var n,i=[];if(""!=m&&0<m)for(var s,a=[],r=0;r<m;r++)s=f(l,u,t,a),a.push(s),n=g(c,t[s]),i.push(n),c.markers.push(n);else for(r=0;r<t.length;r++)n=g(c,t[r]),c.markers.push(n),i.push(n);c.fitBounds(i,h)}},type:"GET"})}(this,o,t[0].geometry.location.lat(),t[0].geometry.location.lng())}},this)),!0;var o=this.options.locale["bad_form-data"];return""==e[0]&&(o=o+" "+this.options.locale.city),""==e[1]&&(o=o+" "+this.options.locale.street),this.showMessage(o),!1},showMessage:function(t){alert(t)},onSelect:function(t){this.onselectevent=t}},a.sensbitpaczkawruchuWidget=function(t){return new r(t)},a.fn[n]=function(t,e){return this.each(function(){a.data(this,"plugin_"+n)||(t||(t="popup"),e||(e={}),"inline"==(e.inline=t)?e.target=this:a(this).on("click",function(){a(this).data("plugin_"+n).show()}),a.data(this,"plugin_"+n,new r(e)))}),this}}(jQuery,window,document);/**
|
||
* 2007-2020 PrestaShop
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||
* that is bundled with this package in the file LICENSE.txt.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* http://opensource.org/licenses/afl-3.0.php
|
||
* If you did not receive a copy of the license and are unable to
|
||
* obtain it through the world-wide-web, please send an email
|
||
* to license@prestashop.com so we can send you a copy immediately.
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
* versions in the future. If you wish to customize PrestaShop for your
|
||
* needs please refer to http://www.prestashop.com for more information.
|
||
*
|
||
* @author PrestaShop SA <contact@prestashop.com>
|
||
* @copyright 2007-2020 PrestaShop SA
|
||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||
* International Registered Trademark & Property of PrestaShop SA
|
||
*/
|
||
$(document).ready(function(){$('.block_newsletter form').on('submit',function(){var email=$("input[name=email]").val();var action=$("input[name=action]").val();$.ajax({type:"POST",dataType:'JSON',async:!1,url:"/modules/sendinblue/ajaxNewsletter.php",data:{email:email,action:action},success:function(data){}})})});/**
|
||
* 2015-2017 Bonpresta
|
||
*
|
||
* Bonpresta Awesome Image Slider
|
||
*
|
||
* NOTICE OF LICENSE
|
||
*
|
||
* This source file is subject to the General Public License (GPL 2.0)
|
||
* that is bundled with this package in the file LICENSE.txt.
|
||
* It is also available through the world-wide-web at this URL:
|
||
* http://opensource.org/licenses/GPL-2.0
|
||
*
|
||
* DISCLAIMER
|
||
*
|
||
* Do not edit or add to this file if you wish to upgrade the module to newer
|
||
* versions in the future.
|
||
*
|
||
* @author Bonpresta
|
||
* @copyright 2015-2017 Bonpresta
|
||
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
|
||
*/
|
||
$(document).ready(function(){if(BON_SLICK_CAROUSEL_DOTS==1){var BON_SLICK_CAROUSEL_DOTS_SCRIPT=!0}else{var BON_SLICK_CAROUSEL_DOTS_SCRIPT=!1}
|
||
if(BON_SLICK_CAROUSEL_NAV==1){var BON_SLICK_CAROUSEL_NAV_SCRIPT=!0}else{var BON_SLICK_CAROUSEL_NAV_SCRIPT=!1}
|
||
if(BON_SLICK_CAROUSEL_AUTOPLAY==1){var BON_SLICK_CAROUSEL_AUTOPLAY_SCRIPT=!0}else{var BON_SLICK_CAROUSEL_AUTOPLAY_SCRIPT=!1}
|
||
if(BON_SLICK_CAROUSEL_LOOP==1){var BON_SLICK_CAROUSEL_LOOP_SCRIPT=!0}else{var BON_SLICK_CAROUSEL_LOOP_SCRIPT=!1}
|
||
if(BON_SLICK_CAROUSEL_DRAG==1){var BON_SLICK_CAROUSEL_DRAG_SCRIPT=!0}else{var BON_SLICK_CAROUSEL_DRAG_SCRIPT=!1}
|
||
$('.bonslick-slider').slick({infinite:BON_SLICK_CAROUSEL_LOOP_SCRIPT,autoplaySpeed:BON_SLICK_CAROUSEL_TIME,autoplaySpeed:BON_SLICK_CAROUSEL_TIME,draggable:BON_SLICK_CAROUSEL_DRAG_SCRIPT,dots:BON_SLICK_CAROUSEL_DOTS_SCRIPT,arrows:BON_SLICK_CAROUSEL_NAV_SCRIPT,autoplay:BON_SLICK_CAROUSEL_AUTOPLAY_SCRIPT,slidesToShow:1,slidesToScroll:1,})});(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports!=='undefined'){module.exports=factory(require('jquery'))}else{factory(jQuery)}}(function($){'use strict';var Slick=window.Slick||{};Slick=(function(){var instanceUid=0;function Slick(element,settings){var _=this,dataSettings;_.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:$(element),appendDots:$(element),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3000,centerMode:!1,centerPadding:'50px',cssEase:'ease',customPaging:function(slider,i){return $('<button type="button" />').text(i+1)},dots:!1,dotsClass:'slick-dots',draggable:!0,easing:'linear',edgeFriction:0.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:'ondemand',mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:'window',responsive:null,rows:1,rtl:!1,slide:'',slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1000};_.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};$.extend(_,_.initials);_.activeBreakpoint=null;_.animType=null;_.animProp=null;_.breakpoints=[];_.breakpointSettings=[];_.cssTransitions=!1;_.focussed=!1;_.interrupted=!1;_.hidden='hidden';_.paused=!0;_.positionProp=null;_.respondTo=null;_.rowCount=1;_.shouldClick=!0;_.$slider=$(element);_.$slidesCache=null;_.transformType=null;_.transitionType=null;_.visibilityChange='visibilitychange';_.windowWidth=0;_.windowTimer=null;dataSettings=$(element).data('slick')||{};_.options=$.extend({},_.defaults,settings,dataSettings);_.currentSlide=_.options.initialSlide;_.originalSettings=_.options;if(typeof document.mozHidden!=='undefined'){_.hidden='mozHidden';_.visibilityChange='mozvisibilitychange'}else if(typeof document.webkitHidden!=='undefined'){_.hidden='webkitHidden';_.visibilityChange='webkitvisibilitychange'}
|
||
_.autoPlay=$.proxy(_.autoPlay,_);_.autoPlayClear=$.proxy(_.autoPlayClear,_);_.autoPlayIterator=$.proxy(_.autoPlayIterator,_);_.changeSlide=$.proxy(_.changeSlide,_);_.clickHandler=$.proxy(_.clickHandler,_);_.selectHandler=$.proxy(_.selectHandler,_);_.setPosition=$.proxy(_.setPosition,_);_.swipeHandler=$.proxy(_.swipeHandler,_);_.dragHandler=$.proxy(_.dragHandler,_);_.keyHandler=$.proxy(_.keyHandler,_);_.instanceUid=instanceUid++;_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;_.registerBreakpoints();_.init(!0)}
|
||
return Slick}());Slick.prototype.activateADA=function(){var _=this;_.$slideTrack.find('.slick-active').attr({'aria-hidden':'false'}).find('a, input, button, select').attr({'tabindex':'0'})};Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){var _=this;if(typeof(index)==='boolean'){addBefore=index;index=null}else if(index<0||(index>=_.slideCount)){return!1}
|
||
_.unload();if(typeof(index)==='number'){if(index===0&&_.$slides.length===0){$(markup).appendTo(_.$slideTrack)}else if(addBefore){$(markup).insertBefore(_.$slides.eq(index))}else{$(markup).insertAfter(_.$slides.eq(index))}}else{if(addBefore===!0){$(markup).prependTo(_.$slideTrack)}else{$(markup).appendTo(_.$slideTrack)}}
|
||
_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slides.each(function(index,element){$(element).attr('data-slick-index',index)});_.$slidesCache=_.$slides;_.reinit()};Slick.prototype.animateHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===!0&&_.options.vertical===!1){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(!0);_.$list.animate({height:targetHeight},_.options.speed)}};Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;_.animateHeight();if(_.options.rtl===!0&&_.options.vertical===!1){targetLeft=-targetLeft}
|
||
if(_.transformsEnabled===!1){if(_.options.vertical===!1){_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback)}else{_.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback)}}else{if(_.cssTransitions===!1){if(_.options.rtl===!0){_.currentLeft=-(_.currentLeft)}
|
||
$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=Math.ceil(now);if(_.options.vertical===!1){animProps[_.animType]='translate('+now+'px, 0px)';_.$slideTrack.css(animProps)}else{animProps[_.animType]='translate(0px,'+now+'px)';_.$slideTrack.css(animProps)}},complete:function(){if(callback){callback.call()}}})}else{_.applyTransition();targetLeft=Math.ceil(targetLeft);if(_.options.vertical===!1){animProps[_.animType]='translate3d('+targetLeft+'px, 0px, 0px)'}else{animProps[_.animType]='translate3d(0px,'+targetLeft+'px, 0px)'}
|
||
_.$slideTrack.css(animProps);if(callback){setTimeout(function(){_.disableTransition();callback.call()},_.options.speed)}}}};Slick.prototype.getNavTarget=function(){var _=this,asNavFor=_.options.asNavFor;if(asNavFor&&asNavFor!==null){asNavFor=$(asNavFor).not(_.$slider)}
|
||
return asNavFor};Slick.prototype.asNavFor=function(index){var _=this,asNavFor=_.getNavTarget();if(asNavFor!==null&&typeof asNavFor==='object'){asNavFor.each(function(){var target=$(this).slick('getSlick');if(!target.unslicked){target.slideHandler(index,!0)}})}};Slick.prototype.applyTransition=function(slide){var _=this,transition={};if(_.options.fade===!1){transition[_.transitionType]=_.transformType+' '+_.options.speed+'ms '+_.options.cssEase}else{transition[_.transitionType]='opacity '+_.options.speed+'ms '+_.options.cssEase}
|
||
if(_.options.fade===!1){_.$slideTrack.css(transition)}else{_.$slides.eq(slide).css(transition)}};Slick.prototype.autoPlay=function(){var _=this;_.autoPlayClear();if(_.slideCount>_.options.slidesToShow){_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed)}};Slick.prototype.autoPlayClear=function(){var _=this;if(_.autoPlayTimer){clearInterval(_.autoPlayTimer)}};Slick.prototype.autoPlayIterator=function(){var _=this,slideTo=_.currentSlide+_.options.slidesToScroll;if(!_.paused&&!_.interrupted&&!_.focussed){if(_.options.infinite===!1){if(_.direction===1&&(_.currentSlide+1)===(_.slideCount-1)){_.direction=0}else if(_.direction===0){slideTo=_.currentSlide-_.options.slidesToScroll;if(_.currentSlide-1===0){_.direction=1}}}
|
||
_.slideHandler(slideTo)}};Slick.prototype.buildArrows=function(){var _=this;if(_.options.arrows===!0){_.$prevArrow=$(_.options.prevArrow).addClass('slick-arrow');_.$nextArrow=$(_.options.nextArrow).addClass('slick-arrow');if(_.slideCount>_.options.slidesToShow){_.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');_.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');if(_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.prependTo(_.options.appendArrows)}
|
||
if(_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.appendTo(_.options.appendArrows)}
|
||
if(_.options.infinite!==!0){_.$prevArrow.addClass('slick-disabled').attr('aria-disabled','true')}}else{_.$prevArrow.add(_.$nextArrow).addClass('slick-hidden').attr({'aria-disabled':'true','tabindex':'-1'})}}};Slick.prototype.buildDots=function(){var _=this,i,dot;if(_.options.dots===!0){_.$slider.addClass('slick-dotted');dot=$('<ul />').addClass(_.options.dotsClass);for(i=0;i<=_.getDotCount();i+=1){dot.append($('<li />').append(_.options.customPaging.call(this,_,i)))}
|
||
_.$dots=dot.appendTo(_.options.appendDots);_.$dots.find('li').first().addClass('slick-active')}};Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+':not(.slick-cloned)').addClass('slick-slide');_.slideCount=_.$slides.length;_.$slides.each(function(index,element){$(element).attr('data-slick-index',index).data('originalStyling',$(element).attr('style')||'')});_.$slider.addClass('slick-slider');_.$slideTrack=(_.slideCount===0)?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent();_.$list=_.$slideTrack.wrap('<div class="slick-list"/>').parent();_.$slideTrack.css('opacity',0);if(_.options.centerMode===!0||_.options.swipeToSlide===!0){_.options.slidesToScroll=1}
|
||
$('img[data-lazy]',_.$slider).not('[src]').addClass('slick-loading');_.setupInfinite();_.buildArrows();_.buildDots();_.updateDots();_.setSlideClasses(typeof _.currentSlide==='number'?_.currentSlide:0);if(_.options.draggable===!0){_.$list.addClass('draggable')}};Slick.prototype.buildRows=function(){var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;newSlides=document.createDocumentFragment();originalSlides=_.$slider.children();if(_.options.rows>1){slidesPerSection=_.options.slidesPerRow*_.options.rows;numOfSlides=Math.ceil(originalSlides.length/slidesPerSection);for(a=0;a<numOfSlides;a++){var slide=document.createElement('div');for(b=0;b<_.options.rows;b++){var row=document.createElement('div');for(c=0;c<_.options.slidesPerRow;c++){var target=(a*slidesPerSection+((b*_.options.slidesPerRow)+c));if(originalSlides.get(target)){row.appendChild(originalSlides.get(target))}}
|
||
slide.appendChild(row)}
|
||
newSlides.appendChild(slide)}
|
||
_.$slider.empty().append(newSlides);_.$slider.children().children().children().css({'width':(100/_.options.slidesPerRow)+'%','display':'inline-block'})}};Slick.prototype.checkResponsive=function(initial,forceUpdate){var _=this,breakpoint,targetBreakpoint,respondToWidth,triggerBreakpoint=!1;var sliderWidth=_.$slider.width();var windowWidth=window.innerWidth||$(window).width();if(_.respondTo==='window'){respondToWidth=windowWidth}else if(_.respondTo==='slider'){respondToWidth=sliderWidth}else if(_.respondTo==='min'){respondToWidth=Math.min(windowWidth,sliderWidth)}
|
||
if(_.options.responsive&&_.options.responsive.length&&_.options.responsive!==null){targetBreakpoint=null;for(breakpoint in _.breakpoints){if(_.breakpoints.hasOwnProperty(breakpoint)){if(_.originalSettings.mobileFirst===!1){if(respondToWidth<_.breakpoints[breakpoint]){targetBreakpoint=_.breakpoints[breakpoint]}}else{if(respondToWidth>_.breakpoints[breakpoint]){targetBreakpoint=_.breakpoints[breakpoint]}}}}
|
||
if(targetBreakpoint!==null){if(_.activeBreakpoint!==null){if(targetBreakpoint!==_.activeBreakpoint||forceUpdate){_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==='unslick'){_.unslick(targetBreakpoint)}else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===!0){_.currentSlide=_.options.initialSlide}
|
||
_.refresh(initial)}
|
||
triggerBreakpoint=targetBreakpoint}}else{_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==='unslick'){_.unslick(targetBreakpoint)}else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===!0){_.currentSlide=_.options.initialSlide}
|
||
_.refresh(initial)}
|
||
triggerBreakpoint=targetBreakpoint}}else{if(_.activeBreakpoint!==null){_.activeBreakpoint=null;_.options=_.originalSettings;if(initial===!0){_.currentSlide=_.options.initialSlide}
|
||
_.refresh(initial);triggerBreakpoint=targetBreakpoint}}
|
||
if(!initial&&triggerBreakpoint!==!1){_.$slider.trigger('breakpoint',[_,triggerBreakpoint])}}};Slick.prototype.changeSlide=function(event,dontAnimate){var _=this,$target=$(event.currentTarget),indexOffset,slideOffset,unevenOffset;if($target.is('a')){event.preventDefault()}
|
||
if(!$target.is('li')){$target=$target.closest('li')}
|
||
unevenOffset=(_.slideCount%_.options.slidesToScroll!==0);indexOffset=unevenOffset?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll;switch(event.data.message){case 'previous':slideOffset=indexOffset===0?_.options.slidesToScroll:_.options.slidesToShow-indexOffset;if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide-slideOffset,!1,dontAnimate)}
|
||
break;case 'next':slideOffset=indexOffset===0?_.options.slidesToScroll:indexOffset;if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide+slideOffset,!1,dontAnimate)}
|
||
break;case 'index':var index=event.data.index===0?0:event.data.index||$target.index()*_.options.slidesToScroll;_.slideHandler(_.checkNavigable(index),!1,dontAnimate);$target.children().trigger('focus');break;default:return}};Slick.prototype.checkNavigable=function(index){var _=this,navigables,prevNavigable;navigables=_.getNavigableIndexes();prevNavigable=0;if(index>navigables[navigables.length-1]){index=navigables[navigables.length-1]}else{for(var n in navigables){if(index<navigables[n]){index=prevNavigable;break}
|
||
prevNavigable=navigables[n]}}
|
||
return index};Slick.prototype.cleanUpEvents=function(){var _=this;if(_.options.dots&&_.$dots!==null){$('li',_.$dots).off('click.slick',_.changeSlide).off('mouseenter.slick',$.proxy(_.interrupt,_,!0)).off('mouseleave.slick',$.proxy(_.interrupt,_,!1));if(_.options.accessibility===!0){_.$dots.off('keydown.slick',_.keyHandler)}}
|
||
_.$slider.off('focus.slick blur.slick');if(_.options.arrows===!0&&_.slideCount>_.options.slidesToShow){_.$prevArrow&&_.$prevArrow.off('click.slick',_.changeSlide);_.$nextArrow&&_.$nextArrow.off('click.slick',_.changeSlide);if(_.options.accessibility===!0){_.$prevArrow&&_.$prevArrow.off('keydown.slick',_.keyHandler);_.$nextArrow&&_.$nextArrow.off('keydown.slick',_.keyHandler)}}
|
||
_.$list.off('touchstart.slick mousedown.slick',_.swipeHandler);_.$list.off('touchmove.slick mousemove.slick',_.swipeHandler);_.$list.off('touchend.slick mouseup.slick',_.swipeHandler);_.$list.off('touchcancel.slick mouseleave.slick',_.swipeHandler);_.$list.off('click.slick',_.clickHandler);$(document).off(_.visibilityChange,_.visibility);_.cleanUpSlideEvents();if(_.options.accessibility===!0){_.$list.off('keydown.slick',_.keyHandler)}
|
||
if(_.options.focusOnSelect===!0){$(_.$slideTrack).children().off('click.slick',_.selectHandler)}
|
||
$(window).off('orientationchange.slick.slick-'+_.instanceUid,_.orientationChange);$(window).off('resize.slick.slick-'+_.instanceUid,_.resize);$('[draggable!=true]',_.$slideTrack).off('dragstart',_.preventDefault);$(window).off('load.slick.slick-'+_.instanceUid,_.setPosition)};Slick.prototype.cleanUpSlideEvents=function(){var _=this;_.$list.off('mouseenter.slick',$.proxy(_.interrupt,_,!0));_.$list.off('mouseleave.slick',$.proxy(_.interrupt,_,!1))};Slick.prototype.cleanUpRows=function(){var _=this,originalSlides;if(_.options.rows>1){originalSlides=_.$slides.children().children();originalSlides.removeAttr('style');_.$slider.empty().append(originalSlides)}};Slick.prototype.clickHandler=function(event){var _=this;if(_.shouldClick===!1){event.stopImmediatePropagation();event.stopPropagation();event.preventDefault()}};Slick.prototype.destroy=function(refresh){var _=this;_.autoPlayClear();_.touchObject={};_.cleanUpEvents();$('.slick-cloned',_.$slider).detach();if(_.$dots){_.$dots.remove()}
|
||
if(_.$prevArrow&&_.$prevArrow.length){_.$prevArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display','');if(_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.remove()}}
|
||
if(_.$nextArrow&&_.$nextArrow.length){_.$nextArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display','');if(_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.remove()}}
|
||
if(_.$slides){_.$slides.removeClass('slick-slide slick-active slick-center slick-visible slick-current').removeAttr('aria-hidden').removeAttr('data-slick-index').each(function(){$(this).attr('style',$(this).data('originalStyling'))});_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.detach();_.$list.detach();_.$slider.append(_.$slides)}
|
||
_.cleanUpRows();_.$slider.removeClass('slick-slider');_.$slider.removeClass('slick-initialized');_.$slider.removeClass('slick-dotted');_.unslicked=!0;if(!refresh){_.$slider.trigger('destroy',[_])}};Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]='';if(_.options.fade===!1){_.$slideTrack.css(transition)}else{_.$slides.eq(slide).css(transition)}};Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;if(_.cssTransitions===!1){_.$slides.eq(slideIndex).css({zIndex:_.options.zIndex});_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback)}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:1,zIndex:_.options.zIndex});if(callback){setTimeout(function(){_.disableTransition(slideIndex);callback.call()},_.options.speed)}}};Slick.prototype.fadeSlideOut=function(slideIndex){var _=this;if(_.cssTransitions===!1){_.$slides.eq(slideIndex).animate({opacity:0,zIndex:_.options.zIndex-2},_.options.speed,_.options.easing)}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:0,zIndex:_.options.zIndex-2})}};Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){var _=this;if(filter!==null){_.$slidesCache=_.$slides;_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.filter(filter).appendTo(_.$slideTrack);_.reinit()}};Slick.prototype.focusHandler=function(){var _=this;_.$slider.off('focus.slick blur.slick').on('focus.slick blur.slick','*',function(event){event.stopImmediatePropagation();var $sf=$(this);setTimeout(function(){if(_.options.pauseOnFocus){_.focussed=$sf.is(':focus');_.autoPlay()}},0)})};Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){var _=this;return _.currentSlide};Slick.prototype.getDotCount=function(){var _=this;var breakPoint=0;var counter=0;var pagerQty=0;if(_.options.infinite===!0){if(_.slideCount<=_.options.slidesToShow){++pagerQty}else{while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow}}}else if(_.options.centerMode===!0){pagerQty=_.slideCount}else if(!_.options.asNavFor){pagerQty=1+Math.ceil((_.slideCount-_.options.slidesToShow)/_.options.slidesToScroll)}else{while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow}}
|
||
return pagerQty-1};Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0,targetSlide,coef;_.slideOffset=0;verticalHeight=_.$slides.first().outerHeight(!0);if(_.options.infinite===!0){if(_.slideCount>_.options.slidesToShow){_.slideOffset=(_.slideWidth*_.options.slidesToShow)*-1;coef=-1
|
||
if(_.options.vertical===!0&&_.options.centerMode===!0){if(_.options.slidesToShow===2){coef=-1.5}else if(_.options.slidesToShow===1){coef=-2}}
|
||
verticalOffset=(verticalHeight*_.options.slidesToShow)*coef}
|
||
if(_.slideCount%_.options.slidesToScroll!==0){if(slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow){if(slideIndex>_.slideCount){_.slideOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth)*-1;verticalOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight)*-1}else{_.slideOffset=((_.slideCount%_.options.slidesToScroll)*_.slideWidth)*-1;verticalOffset=((_.slideCount%_.options.slidesToScroll)*verticalHeight)*-1}}}}else{if(slideIndex+_.options.slidesToShow>_.slideCount){_.slideOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*_.slideWidth;verticalOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*verticalHeight}}
|
||
if(_.slideCount<=_.options.slidesToShow){_.slideOffset=0;verticalOffset=0}
|
||
if(_.options.centerMode===!0&&_.slideCount<=_.options.slidesToShow){_.slideOffset=((_.slideWidth*Math.floor(_.options.slidesToShow))/2)-((_.slideWidth*_.slideCount)/2)}else if(_.options.centerMode===!0&&_.options.infinite===!0){_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth}else if(_.options.centerMode===!0){_.slideOffset=0;_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)}
|
||
if(_.options.vertical===!1){targetLeft=((slideIndex*_.slideWidth)*-1)+_.slideOffset}else{targetLeft=((slideIndex*verticalHeight)*-1)+verticalOffset}
|
||
if(_.options.variableWidth===!0){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===!1){targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex)}else{targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow)}
|
||
if(_.options.rtl===!0){if(targetSlide[0]){targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1}else{targetLeft=0}}else{targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0}
|
||
if(_.options.centerMode===!0){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===!1){targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex)}else{targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow+1)}
|
||
if(_.options.rtl===!0){if(targetSlide[0]){targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1}else{targetLeft=0}}else{targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0}
|
||
targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2}}
|
||
return targetLeft};Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){var _=this;return _.options[option]};Slick.prototype.getNavigableIndexes=function(){var _=this,breakPoint=0,counter=0,indexes=[],max;if(_.options.infinite===!1){max=_.slideCount}else{breakPoint=_.options.slidesToScroll*-1;counter=_.options.slidesToScroll*-1;max=_.slideCount*2}
|
||
while(breakPoint<max){indexes.push(breakPoint);breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow}
|
||
return indexes};Slick.prototype.getSlick=function(){return this};Slick.prototype.getSlideCount=function(){var _=this,slidesTraversed,swipedSlide,centerOffset;centerOffset=_.options.centerMode===!0?_.slideWidth*Math.floor(_.options.slidesToShow/2):0;if(_.options.swipeToSlide===!0){_.$slideTrack.find('.slick-slide').each(function(index,slide){if(slide.offsetLeft-centerOffset+($(slide).outerWidth()/2)>(_.swipeLeft*-1)){swipedSlide=slide;return!1}});slidesTraversed=Math.abs($(swipedSlide).attr('data-slick-index')-_.currentSlide)||1;return slidesTraversed}else{return _.options.slidesToScroll}};Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){var _=this;_.changeSlide({data:{message:'index',index:parseInt(slide)}},dontAnimate)};Slick.prototype.init=function(creation){var _=this;if(!$(_.$slider).hasClass('slick-initialized')){$(_.$slider).addClass('slick-initialized');_.buildRows();_.buildOut();_.setProps();_.startLoad();_.loadSlider();_.initializeEvents();_.updateArrows();_.updateDots();_.checkResponsive(!0);_.focusHandler()}
|
||
if(creation){_.$slider.trigger('init',[_])}
|
||
if(_.options.accessibility===!0){_.initADA()}
|
||
if(_.options.autoplay){_.paused=!1;_.autoPlay()}};Slick.prototype.initADA=function(){var _=this,numDotGroups=Math.ceil(_.slideCount/_.options.slidesToShow),tabControlIndexes=_.getNavigableIndexes().filter(function(val){return(val>=0)&&(val<_.slideCount)});_.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({'aria-hidden':'true','tabindex':'-1'}).find('a, input, button, select').attr({'tabindex':'-1'});if(_.$dots!==null){_.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i){var slideControlIndex=tabControlIndexes.indexOf(i);$(this).attr({'role':'tabpanel','id':'slick-slide'+_.instanceUid+i,'tabindex':-1});if(slideControlIndex!==-1){$(this).attr({'aria-describedby':'slick-slide-control'+_.instanceUid+slideControlIndex})}});_.$dots.attr('role','tablist').find('li').each(function(i){var mappedSlideIndex=tabControlIndexes[i];$(this).attr({'role':'presentation'});$(this).find('button').first().attr({'role':'tab','id':'slick-slide-control'+_.instanceUid+i,'aria-controls':'slick-slide'+_.instanceUid+mappedSlideIndex,'aria-label':(i+1)+' of '+numDotGroups,'aria-selected':null,'tabindex':'-1'})}).eq(_.currentSlide).find('button').attr({'aria-selected':'true','tabindex':'0'}).end()}
|
||
for(var i=_.currentSlide,max=i+_.options.slidesToShow;i<max;i++){_.$slides.eq(i).attr('tabindex',0)}
|
||
_.activateADA()};Slick.prototype.initArrowEvents=function(){var _=this;if(_.options.arrows===!0&&_.slideCount>_.options.slidesToShow){_.$prevArrow.off('click.slick').on('click.slick',{message:'previous'},_.changeSlide);_.$nextArrow.off('click.slick').on('click.slick',{message:'next'},_.changeSlide);if(_.options.accessibility===!0){_.$prevArrow.on('keydown.slick',_.keyHandler);_.$nextArrow.on('keydown.slick',_.keyHandler)}}};Slick.prototype.initDotEvents=function(){var _=this;if(_.options.dots===!0){$('li',_.$dots).on('click.slick',{message:'index'},_.changeSlide);if(_.options.accessibility===!0){_.$dots.on('keydown.slick',_.keyHandler)}}
|
||
if(_.options.dots===!0&&_.options.pauseOnDotsHover===!0){$('li',_.$dots).on('mouseenter.slick',$.proxy(_.interrupt,_,!0)).on('mouseleave.slick',$.proxy(_.interrupt,_,!1))}};Slick.prototype.initSlideEvents=function(){var _=this;if(_.options.pauseOnHover){_.$list.on('mouseenter.slick',$.proxy(_.interrupt,_,!0));_.$list.on('mouseleave.slick',$.proxy(_.interrupt,_,!1))}};Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents();_.initDotEvents();_.initSlideEvents();_.$list.on('touchstart.slick mousedown.slick',{action:'start'},_.swipeHandler);_.$list.on('touchmove.slick mousemove.slick',{action:'move'},_.swipeHandler);_.$list.on('touchend.slick mouseup.slick',{action:'end'},_.swipeHandler);_.$list.on('touchcancel.slick mouseleave.slick',{action:'end'},_.swipeHandler);_.$list.on('click.slick',_.clickHandler);$(document).on(_.visibilityChange,$.proxy(_.visibility,_));if(_.options.accessibility===!0){_.$list.on('keydown.slick',_.keyHandler)}
|
||
if(_.options.focusOnSelect===!0){$(_.$slideTrack).children().on('click.slick',_.selectHandler)}
|
||
$(window).on('orientationchange.slick.slick-'+_.instanceUid,$.proxy(_.orientationChange,_));$(window).on('resize.slick.slick-'+_.instanceUid,$.proxy(_.resize,_));$('[draggable!=true]',_.$slideTrack).on('dragstart',_.preventDefault);$(window).on('load.slick.slick-'+_.instanceUid,_.setPosition);$(_.setPosition)};Slick.prototype.initUI=function(){var _=this;if(_.options.arrows===!0&&_.slideCount>_.options.slidesToShow){_.$prevArrow.show();_.$nextArrow.show()}
|
||
if(_.options.dots===!0&&_.slideCount>_.options.slidesToShow){_.$dots.show()}};Slick.prototype.keyHandler=function(event){var _=this;if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')){if(event.keyCode===37&&_.options.accessibility===!0){_.changeSlide({data:{message:_.options.rtl===!0?'next':'previous'}})}else if(event.keyCode===39&&_.options.accessibility===!0){_.changeSlide({data:{message:_.options.rtl===!0?'previous':'next'}})}}};Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;function loadImages(imagesScope){$('img[data-lazy]',imagesScope).each(function(){var image=$(this),imageSource=$(this).attr('data-lazy'),imageSrcSet=$(this).attr('data-srcset'),imageSizes=$(this).attr('data-sizes')||_.$slider.attr('data-sizes'),imageToLoad=document.createElement('img');imageToLoad.onload=function(){image.animate({opacity:0},100,function(){if(imageSrcSet){image.attr('srcset',imageSrcSet);if(imageSizes){image.attr('sizes',imageSizes)}}
|
||
image.attr('src',imageSource).animate({opacity:1},200,function(){image.removeAttr('data-lazy data-srcset data-sizes').removeClass('slick-loading')});_.$slider.trigger('lazyLoaded',[_,image,imageSource])})};imageToLoad.onerror=function(){image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error');_.$slider.trigger('lazyLoadError',[_,image,imageSource])};imageToLoad.src=imageSource})}
|
||
if(_.options.centerMode===!0){if(_.options.infinite===!0){rangeStart=_.currentSlide+(_.options.slidesToShow/2+1);rangeEnd=rangeStart+_.options.slidesToShow+2}else{rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1));rangeEnd=2+(_.options.slidesToShow/2+1)+_.currentSlide}}else{rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide;rangeEnd=Math.ceil(rangeStart+_.options.slidesToShow);if(_.options.fade===!0){if(rangeStart>0)rangeStart--;if(rangeEnd<=_.slideCount)rangeEnd++}}
|
||
loadRange=_.$slider.find('.slick-slide').slice(rangeStart,rangeEnd);if(_.options.lazyLoad==='anticipated'){var prevSlide=rangeStart-1,nextSlide=rangeEnd,$slides=_.$slider.find('.slick-slide');for(var i=0;i<_.options.slidesToScroll;i++){if(prevSlide<0)prevSlide=_.slideCount-1;loadRange=loadRange.add($slides.eq(prevSlide));loadRange=loadRange.add($slides.eq(nextSlide));prevSlide--;nextSlide++}}
|
||
loadImages(loadRange);if(_.slideCount<=_.options.slidesToShow){cloneRange=_.$slider.find('.slick-slide');loadImages(cloneRange)}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow){cloneRange=_.$slider.find('.slick-cloned').slice(0,_.options.slidesToShow);loadImages(cloneRange)}else if(_.currentSlide===0){cloneRange=_.$slider.find('.slick-cloned').slice(_.options.slidesToShow*-1);loadImages(cloneRange)}};Slick.prototype.loadSlider=function(){var _=this;_.setPosition();_.$slideTrack.css({opacity:1});_.$slider.removeClass('slick-loading');_.initUI();if(_.options.lazyLoad==='progressive'){_.progressiveLazyLoad()}};Slick.prototype.next=Slick.prototype.slickNext=function(){var _=this;_.changeSlide({data:{message:'next'}})};Slick.prototype.orientationChange=function(){var _=this;_.checkResponsive();_.setPosition()};Slick.prototype.pause=Slick.prototype.slickPause=function(){var _=this;_.autoPlayClear();_.paused=!0};Slick.prototype.play=Slick.prototype.slickPlay=function(){var _=this;_.autoPlay();_.options.autoplay=!0;_.paused=!1;_.focussed=!1;_.interrupted=!1};Slick.prototype.postSlide=function(index){var _=this;if(!_.unslicked){_.$slider.trigger('afterChange',[_,index]);_.animating=!1;if(_.slideCount>_.options.slidesToShow){_.setPosition()}
|
||
_.swipeLeft=null;if(_.options.autoplay){_.autoPlay()}
|
||
if(_.options.accessibility===!0){_.initADA();if(_.options.focusOnChange){var $currentSlide=$(_.$slides.get(_.currentSlide));$currentSlide.attr('tabindex',0).focus()}}}};Slick.prototype.prev=Slick.prototype.slickPrev=function(){var _=this;_.changeSlide({data:{message:'previous'}})};Slick.prototype.preventDefault=function(event){event.preventDefault()};Slick.prototype.progressiveLazyLoad=function(tryCount){tryCount=tryCount||1;var _=this,$imgsToLoad=$('img[data-lazy]',_.$slider),image,imageSource,imageSrcSet,imageSizes,imageToLoad;if($imgsToLoad.length){image=$imgsToLoad.first();imageSource=image.attr('data-lazy');imageSrcSet=image.attr('data-srcset');imageSizes=image.attr('data-sizes')||_.$slider.attr('data-sizes');imageToLoad=document.createElement('img');imageToLoad.onload=function(){if(imageSrcSet){image.attr('srcset',imageSrcSet);if(imageSizes){image.attr('sizes',imageSizes)}}
|
||
image.attr('src',imageSource).removeAttr('data-lazy data-srcset data-sizes').removeClass('slick-loading');if(_.options.adaptiveHeight===!0){_.setPosition()}
|
||
_.$slider.trigger('lazyLoaded',[_,image,imageSource]);_.progressiveLazyLoad()};imageToLoad.onerror=function(){if(tryCount<3){setTimeout(function(){_.progressiveLazyLoad(tryCount+1)},500)}else{image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error');_.$slider.trigger('lazyLoadError',[_,image,imageSource]);_.progressiveLazyLoad()}};imageToLoad.src=imageSource}else{_.$slider.trigger('allImagesLoaded',[_])}};Slick.prototype.refresh=function(initializing){var _=this,currentSlide,lastVisibleIndex;lastVisibleIndex=_.slideCount-_.options.slidesToShow;if(!_.options.infinite&&(_.currentSlide>lastVisibleIndex)){_.currentSlide=lastVisibleIndex}
|
||
if(_.slideCount<=_.options.slidesToShow){_.currentSlide=0}
|
||
currentSlide=_.currentSlide;_.destroy(!0);$.extend(_,_.initials,{currentSlide:currentSlide});_.init();if(!initializing){_.changeSlide({data:{message:'index',index:currentSlide}},!1)}};Slick.prototype.registerBreakpoints=function(){var _=this,breakpoint,currentBreakpoint,l,responsiveSettings=_.options.responsive||null;if($.type(responsiveSettings)==='array'&&responsiveSettings.length){_.respondTo=_.options.respondTo||'window';for(breakpoint in responsiveSettings){l=_.breakpoints.length-1;if(responsiveSettings.hasOwnProperty(breakpoint)){currentBreakpoint=responsiveSettings[breakpoint].breakpoint;while(l>=0){if(_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint){_.breakpoints.splice(l,1)}
|
||
l--}
|
||
_.breakpoints.push(currentBreakpoint);_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings}}
|
||
_.breakpoints.sort(function(a,b){return(_.options.mobileFirst)?a-b:b-a})}};Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass('slick-slide');_.slideCount=_.$slides.length;if(_.currentSlide>=_.slideCount&&_.currentSlide!==0){_.currentSlide=_.currentSlide-_.options.slidesToScroll}
|
||
if(_.slideCount<=_.options.slidesToShow){_.currentSlide=0}
|
||
_.registerBreakpoints();_.setProps();_.setupInfinite();_.buildArrows();_.updateArrows();_.initArrowEvents();_.buildDots();_.updateDots();_.initDotEvents();_.cleanUpSlideEvents();_.initSlideEvents();_.checkResponsive(!1,!0);if(_.options.focusOnSelect===!0){$(_.$slideTrack).children().on('click.slick',_.selectHandler)}
|
||
_.setSlideClasses(typeof _.currentSlide==='number'?_.currentSlide:0);_.setPosition();_.focusHandler();_.paused=!_.options.autoplay;_.autoPlay();_.$slider.trigger('reInit',[_])};Slick.prototype.resize=function(){var _=this;if($(window).width()!==_.windowWidth){clearTimeout(_.windowDelay);_.windowDelay=window.setTimeout(function(){_.windowWidth=$(window).width();_.checkResponsive();if(!_.unslicked){_.setPosition()}},50)}};Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){var _=this;if(typeof(index)==='boolean'){removeBefore=index;index=removeBefore===!0?0:_.slideCount-1}else{index=removeBefore===!0?--index:index}
|
||
if(_.slideCount<1||index<0||index>_.slideCount-1){return!1}
|
||
_.unload();if(removeAll===!0){_.$slideTrack.children().remove()}else{_.$slideTrack.children(this.options.slide).eq(index).remove()}
|
||
_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slidesCache=_.$slides;_.reinit()};Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;if(_.options.rtl===!0){position=-position}
|
||
x=_.positionProp=='left'?Math.ceil(position)+'px':'0px';y=_.positionProp=='top'?Math.ceil(position)+'px':'0px';positionProps[_.positionProp]=position;if(_.transformsEnabled===!1){_.$slideTrack.css(positionProps)}else{positionProps={};if(_.cssTransitions===!1){positionProps[_.animType]='translate('+x+', '+y+')';_.$slideTrack.css(positionProps)}else{positionProps[_.animType]='translate3d('+x+', '+y+', 0px)';_.$slideTrack.css(positionProps)}}};Slick.prototype.setDimensions=function(){var _=this;if(_.options.vertical===!1){if(_.options.centerMode===!0){_.$list.css({padding:('0px '+_.options.centerPadding)})}}else{_.$list.height(_.$slides.first().outerHeight(!0)*_.options.slidesToShow);if(_.options.centerMode===!0){_.$list.css({padding:(_.options.centerPadding+' 0px')})}}
|
||
_.listWidth=_.$list.width();_.listHeight=_.$list.height();if(_.options.vertical===!1&&_.options.variableWidth===!1){_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow);_.$slideTrack.width(Math.ceil((_.slideWidth*_.$slideTrack.children('.slick-slide').length)))}else if(_.options.variableWidth===!0){_.$slideTrack.width(5000*_.slideCount)}else{_.slideWidth=Math.ceil(_.listWidth);_.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(!0)*_.$slideTrack.children('.slick-slide').length)))}
|
||
var offset=_.$slides.first().outerWidth(!0)-_.$slides.first().width();if(_.options.variableWidth===!1)_.$slideTrack.children('.slick-slide').width(_.slideWidth-offset)};Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each(function(index,element){targetLeft=(_.slideWidth*index)*-1;if(_.options.rtl===!0){$(element).css({position:'relative',right:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0})}else{$(element).css({position:'relative',left:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0})}});_.$slides.eq(_.currentSlide).css({zIndex:_.options.zIndex-1,opacity:1})};Slick.prototype.setHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===!0&&_.options.vertical===!1){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(!0);_.$list.css('height',targetHeight)}};Slick.prototype.setOption=Slick.prototype.slickSetOption=function(){var _=this,l,item,option,value,refresh=!1,type;if($.type(arguments[0])==='object'){option=arguments[0];refresh=arguments[1];type='multiple'}else if($.type(arguments[0])==='string'){option=arguments[0];value=arguments[1];refresh=arguments[2];if(arguments[0]==='responsive'&&$.type(arguments[1])==='array'){type='responsive'}else if(typeof arguments[1]!=='undefined'){type='single'}}
|
||
if(type==='single'){_.options[option]=value}else if(type==='multiple'){$.each(option,function(opt,val){_.options[opt]=val})}else if(type==='responsive'){for(item in value){if($.type(_.options.responsive)!=='array'){_.options.responsive=[value[item]]}else{l=_.options.responsive.length-1;while(l>=0){if(_.options.responsive[l].breakpoint===value[item].breakpoint){_.options.responsive.splice(l,1)}
|
||
l--}
|
||
_.options.responsive.push(value[item])}}}
|
||
if(refresh){_.unload();_.reinit()}};Slick.prototype.setPosition=function(){var _=this;_.setDimensions();_.setHeight();if(_.options.fade===!1){_.setCSS(_.getLeft(_.currentSlide))}else{_.setFade()}
|
||
_.$slider.trigger('setPosition',[_])};Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=_.options.vertical===!0?'top':'left';if(_.positionProp==='top'){_.$slider.addClass('slick-vertical')}else{_.$slider.removeClass('slick-vertical')}
|
||
if(bodyStyle.WebkitTransition!==undefined||bodyStyle.MozTransition!==undefined||bodyStyle.msTransition!==undefined){if(_.options.useCSS===!0){_.cssTransitions=!0}}
|
||
if(_.options.fade){if(typeof _.options.zIndex==='number'){if(_.options.zIndex<3){_.options.zIndex=3}}else{_.options.zIndex=_.defaults.zIndex}}
|
||
if(bodyStyle.OTransform!==undefined){_.animType='OTransform';_.transformType='-o-transform';_.transitionType='OTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=!1}
|
||
if(bodyStyle.MozTransform!==undefined){_.animType='MozTransform';_.transformType='-moz-transform';_.transitionType='MozTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.MozPerspective===undefined)_.animType=!1}
|
||
if(bodyStyle.webkitTransform!==undefined){_.animType='webkitTransform';_.transformType='-webkit-transform';_.transitionType='webkitTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=!1}
|
||
if(bodyStyle.msTransform!==undefined){_.animType='msTransform';_.transformType='-ms-transform';_.transitionType='msTransition';if(bodyStyle.msTransform===undefined)_.animType=!1}
|
||
if(bodyStyle.transform!==undefined&&_.animType!==!1){_.animType='transform';_.transformType='transform';_.transitionType='transition'}
|
||
_.transformsEnabled=_.options.useTransform&&(_.animType!==null&&_.animType!==!1)};Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;allSlides=_.$slider.find('.slick-slide').removeClass('slick-active slick-center slick-current').attr('aria-hidden','true');_.$slides.eq(index).addClass('slick-current');if(_.options.centerMode===!0){var evenCoef=_.options.slidesToShow%2===0?1:0;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.infinite===!0){if(index>=centerOffset&&index<=(_.slideCount-1)-centerOffset){_.$slides.slice(index-centerOffset+evenCoef,index+centerOffset+1).addClass('slick-active').attr('aria-hidden','false')}else{indexOffset=_.options.slidesToShow+index;allSlides.slice(indexOffset-centerOffset+1+evenCoef,indexOffset+centerOffset+2).addClass('slick-active').attr('aria-hidden','false')}
|
||
if(index===0){allSlides.eq(allSlides.length-1-_.options.slidesToShow).addClass('slick-center')}else if(index===_.slideCount-1){allSlides.eq(_.options.slidesToShow).addClass('slick-center')}}
|
||
_.$slides.eq(index).addClass('slick-center')}else{if(index>=0&&index<=(_.slideCount-_.options.slidesToShow)){_.$slides.slice(index,index+_.options.slidesToShow).addClass('slick-active').attr('aria-hidden','false')}else if(allSlides.length<=_.options.slidesToShow){allSlides.addClass('slick-active').attr('aria-hidden','false')}else{remainder=_.slideCount%_.options.slidesToShow;indexOffset=_.options.infinite===!0?_.options.slidesToShow+index:index;if(_.options.slidesToShow==_.options.slidesToScroll&&(_.slideCount-index)<_.options.slidesToShow){allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass('slick-active').attr('aria-hidden','false')}else{allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass('slick-active').attr('aria-hidden','false')}}}
|
||
if(_.options.lazyLoad==='ondemand'||_.options.lazyLoad==='anticipated'){_.lazyLoad()}};Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(_.options.fade===!0){_.options.centerMode=!1}
|
||
if(_.options.infinite===!0&&_.options.fade===!1){slideIndex=null;if(_.slideCount>_.options.slidesToShow){if(_.options.centerMode===!0){infiniteCount=_.options.slidesToShow+1}else{infiniteCount=_.options.slidesToShow}
|
||
for(i=_.slideCount;i>(_.slideCount-infiniteCount);i-=1){slideIndex=i-1;$(_.$slides[slideIndex]).clone(!0).attr('id','').attr('data-slick-index',slideIndex-_.slideCount).prependTo(_.$slideTrack).addClass('slick-cloned')}
|
||
for(i=0;i<infiniteCount+_.slideCount;i+=1){slideIndex=i;$(_.$slides[slideIndex]).clone(!0).attr('id','').attr('data-slick-index',slideIndex+_.slideCount).appendTo(_.$slideTrack).addClass('slick-cloned')}
|
||
_.$slideTrack.find('.slick-cloned').find('[id]').each(function(){$(this).attr('id','')})}}};Slick.prototype.interrupt=function(toggle){var _=this;if(!toggle){_.autoPlay()}
|
||
_.interrupted=toggle};Slick.prototype.selectHandler=function(event){var _=this;var targetElement=$(event.target).is('.slick-slide')?$(event.target):$(event.target).parents('.slick-slide');var index=parseInt(targetElement.attr('data-slick-index'));if(!index)index=0;if(_.slideCount<=_.options.slidesToShow){_.slideHandler(index,!1,!0);return}
|
||
_.slideHandler(index)};Slick.prototype.slideHandler=function(index,sync,dontAnimate){var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,_=this,navTarget;sync=sync||!1;if(_.animating===!0&&_.options.waitForAnimate===!0){return}
|
||
if(_.options.fade===!0&&_.currentSlide===index){return}
|
||
if(sync===!1){_.asNavFor(index)}
|
||
targetSlide=index;targetLeft=_.getLeft(targetSlide);slideLeft=_.getLeft(_.currentSlide);_.currentLeft=_.swipeLeft===null?slideLeft:_.swipeLeft;if(_.options.infinite===!1&&_.options.centerMode===!1&&(index<0||index>_.getDotCount()*_.options.slidesToScroll)){if(_.options.fade===!1){targetSlide=_.currentSlide;if(dontAnimate!==!0){_.animateSlide(slideLeft,function(){_.postSlide(targetSlide)})}else{_.postSlide(targetSlide)}}
|
||
return}else if(_.options.infinite===!1&&_.options.centerMode===!0&&(index<0||index>(_.slideCount-_.options.slidesToScroll))){if(_.options.fade===!1){targetSlide=_.currentSlide;if(dontAnimate!==!0){_.animateSlide(slideLeft,function(){_.postSlide(targetSlide)})}else{_.postSlide(targetSlide)}}
|
||
return}
|
||
if(_.options.autoplay){clearInterval(_.autoPlayTimer)}
|
||
if(targetSlide<0){if(_.slideCount%_.options.slidesToScroll!==0){animSlide=_.slideCount-(_.slideCount%_.options.slidesToScroll)}else{animSlide=_.slideCount+targetSlide}}else if(targetSlide>=_.slideCount){if(_.slideCount%_.options.slidesToScroll!==0){animSlide=0}else{animSlide=targetSlide-_.slideCount}}else{animSlide=targetSlide}
|
||
_.animating=!0;_.$slider.trigger('beforeChange',[_,_.currentSlide,animSlide]);oldSlide=_.currentSlide;_.currentSlide=animSlide;_.setSlideClasses(_.currentSlide);if(_.options.asNavFor){navTarget=_.getNavTarget();navTarget=navTarget.slick('getSlick');if(navTarget.slideCount<=navTarget.options.slidesToShow){navTarget.setSlideClasses(_.currentSlide)}}
|
||
_.updateDots();_.updateArrows();if(_.options.fade===!0){if(dontAnimate!==!0){_.fadeSlideOut(oldSlide);_.fadeSlide(animSlide,function(){_.postSlide(animSlide)})}else{_.postSlide(animSlide)}
|
||
_.animateHeight();return}
|
||
if(dontAnimate!==!0){_.animateSlide(targetLeft,function(){_.postSlide(animSlide)})}else{_.postSlide(animSlide)}};Slick.prototype.startLoad=function(){var _=this;if(_.options.arrows===!0&&_.slideCount>_.options.slidesToShow){_.$prevArrow.hide();_.$nextArrow.hide()}
|
||
if(_.options.dots===!0&&_.slideCount>_.options.slidesToShow){_.$dots.hide()}
|
||
_.$slider.addClass('slick-loading')};Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;xDist=_.touchObject.startX-_.touchObject.curX;yDist=_.touchObject.startY-_.touchObject.curY;r=Math.atan2(yDist,xDist);swipeAngle=Math.round(r*180/Math.PI);if(swipeAngle<0){swipeAngle=360-Math.abs(swipeAngle)}
|
||
if((swipeAngle<=45)&&(swipeAngle>=0)){return(_.options.rtl===!1?'left':'right')}
|
||
if((swipeAngle<=360)&&(swipeAngle>=315)){return(_.options.rtl===!1?'left':'right')}
|
||
if((swipeAngle>=135)&&(swipeAngle<=225)){return(_.options.rtl===!1?'right':'left')}
|
||
if(_.options.verticalSwiping===!0){if((swipeAngle>=35)&&(swipeAngle<=135)){return'down'}else{return'up'}}
|
||
return'vertical'};Slick.prototype.swipeEnd=function(event){var _=this,slideCount,direction;_.dragging=!1;_.swiping=!1;if(_.scrolling){_.scrolling=!1;return!1}
|
||
_.interrupted=!1;_.shouldClick=(_.touchObject.swipeLength>10)?!1:!0;if(_.touchObject.curX===undefined){return!1}
|
||
if(_.touchObject.edgeHit===!0){_.$slider.trigger('edge',[_,_.swipeDirection()])}
|
||
if(_.touchObject.swipeLength>=_.touchObject.minSwipe){direction=_.swipeDirection();switch(direction){case 'left':case 'down':slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount();_.currentDirection=0;break;case 'right':case 'up':slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount();_.currentDirection=1;break;default:}
|
||
if(direction!='vertical'){_.slideHandler(slideCount);_.touchObject={};_.$slider.trigger('swipe',[_,direction])}}else{if(_.touchObject.startX!==_.touchObject.curX){_.slideHandler(_.currentSlide);_.touchObject={}}}};Slick.prototype.swipeHandler=function(event){var _=this;if((_.options.swipe===!1)||('ontouchend' in document&&_.options.swipe===!1)){return}else if(_.options.draggable===!1&&event.type.indexOf('mouse')!==-1){return}
|
||
_.touchObject.fingerCount=event.originalEvent&&event.originalEvent.touches!==undefined?event.originalEvent.touches.length:1;_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold;if(_.options.verticalSwiping===!0){_.touchObject.minSwipe=_.listHeight/_.options.touchThreshold}
|
||
switch(event.data.action){case 'start':_.swipeStart(event);break;case 'move':_.swipeMove(event);break;case 'end':_.swipeEnd(event);break}};Slick.prototype.swipeMove=function(event){var _=this,edgeWasHit=!1,curLeft,swipeDirection,swipeLength,positionOffset,touches,verticalSwipeLength;touches=event.originalEvent!==undefined?event.originalEvent.touches:null;if(!_.dragging||_.scrolling||touches&&touches.length!==1){return!1}
|
||
curLeft=_.getLeft(_.currentSlide);_.touchObject.curX=touches!==undefined?touches[0].pageX:event.clientX;_.touchObject.curY=touches!==undefined?touches[0].pageY:event.clientY;_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2)));verticalSwipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2)));if(!_.options.verticalSwiping&&!_.swiping&&verticalSwipeLength>4){_.scrolling=!0;return!1}
|
||
if(_.options.verticalSwiping===!0){_.touchObject.swipeLength=verticalSwipeLength}
|
||
swipeDirection=_.swipeDirection();if(event.originalEvent!==undefined&&_.touchObject.swipeLength>4){_.swiping=!0;event.preventDefault()}
|
||
positionOffset=(_.options.rtl===!1?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1);if(_.options.verticalSwiping===!0){positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1}
|
||
swipeLength=_.touchObject.swipeLength;_.touchObject.edgeHit=!1;if(_.options.infinite===!1){if((_.currentSlide===0&&swipeDirection==='right')||(_.currentSlide>=_.getDotCount()&&swipeDirection==='left')){swipeLength=_.touchObject.swipeLength*_.options.edgeFriction;_.touchObject.edgeHit=!0}}
|
||
if(_.options.vertical===!1){_.swipeLeft=curLeft+swipeLength*positionOffset}else{_.swipeLeft=curLeft+(swipeLength*(_.$list.height()/_.listWidth))*positionOffset}
|
||
if(_.options.verticalSwiping===!0){_.swipeLeft=curLeft+swipeLength*positionOffset}
|
||
if(_.options.fade===!0||_.options.touchMove===!1){return!1}
|
||
if(_.animating===!0){_.swipeLeft=null;return!1}
|
||
_.setCSS(_.swipeLeft)};Slick.prototype.swipeStart=function(event){var _=this,touches;_.interrupted=!0;if(_.touchObject.fingerCount!==1||_.slideCount<=_.options.slidesToShow){_.touchObject={};return!1}
|
||
if(event.originalEvent!==undefined&&event.originalEvent.touches!==undefined){touches=event.originalEvent.touches[0]}
|
||
_.touchObject.startX=_.touchObject.curX=touches!==undefined?touches.pageX:event.clientX;_.touchObject.startY=_.touchObject.curY=touches!==undefined?touches.pageY:event.clientY;_.dragging=!0};Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){var _=this;if(_.$slidesCache!==null){_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.appendTo(_.$slideTrack);_.reinit()}};Slick.prototype.unload=function(){var _=this;$('.slick-cloned',_.$slider).remove();if(_.$dots){_.$dots.remove()}
|
||
if(_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.remove()}
|
||
if(_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.remove()}
|
||
_.$slides.removeClass('slick-slide slick-active slick-visible slick-current').attr('aria-hidden','true').css('width','')};Slick.prototype.unslick=function(fromBreakpoint){var _=this;_.$slider.trigger('unslick',[_,fromBreakpoint]);_.destroy()};Slick.prototype.updateArrows=function(){var _=this,centerOffset;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.arrows===!0&&_.slideCount>_.options.slidesToShow&&!_.options.infinite){_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false');if(_.currentSlide===0){_.$prevArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false')}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow&&_.options.centerMode===!1){_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false')}else if(_.currentSlide>=_.slideCount-1&&_.options.centerMode===!0){_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false')}}};Slick.prototype.updateDots=function(){var _=this;if(_.$dots!==null){_.$dots.find('li').removeClass('slick-active').end();_.$dots.find('li').eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass('slick-active')}};Slick.prototype.visibility=function(){var _=this;if(_.options.autoplay){if(document[_.hidden]){_.interrupted=!0}else{_.interrupted=!1}}};$.fn.slick=function(){var _=this,opt=arguments[0],args=Array.prototype.slice.call(arguments,1),l=_.length,i,ret;for(i=0;i<l;i++){if(typeof opt=='object'||typeof opt=='undefined')
|
||
_[i].slick=new Slick(_[i],opt);else ret=_[i].slick[opt].apply(_[i].slick,args);if(typeof ret!='undefined')return ret}
|
||
return _}}));/*! jQuery UI - v1.10.3 - 2013-05-03
|
||
* http://jqueryui.com
|
||
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
|
||
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
|
||
!function(a,b){function e(b,c){var d,e,g,h=b.nodeName.toLowerCase();return"area"===h?(d=b.parentNode,e=d.name,!(!b.href||!e||"map"!==d.nodeName.toLowerCase())&&(g=a("img[usemap=#"+e+"]")[0],!!g&&f(g))):(/input|select|textarea|button|object/.test(h)?!b.disabled:"a"===h?b.href||c:c)&&f(b)}function f(b){return a.expr.filters.visible(b)&&!a(b).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var c=0,d=/^ui-id-\d+$/;a.ui=a.ui||{},a.extend(a.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({focus:function(b){return function(c,d){return"number"==typeof c?this.each(function(){var b=this;setTimeout(function(){a(b).focus(),d&&d.call(b)},c)}):b.apply(this,arguments)}}(a.fn.focus),scrollParent:function(){var b;return b=a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length)for(var e,f,d=a(this[0]);d.length&&d[0]!==document;){if(e=d.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(f=parseInt(d.css("zIndex"),10),!isNaN(f)&&0!==f))return f;d=d.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++c)})},removeUniqueId:function(){return this.each(function(){d.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return e(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var c=a.attr(b,"tabindex"),d=isNaN(c);return(d||c>=0)&&e(b,!d)}}),a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),f&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var e="Width"===d?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return"number"!=typeof b?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.support.selectstart="onselectstart"in document.createElement("div"),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c){var d,e=a.plugins[b];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(d=0;d<e.length;d++)a.options[e[d][0]]&&e[d][1].apply(a.element,c)}},hasScroll:function(b,c){if("hidden"===a(b).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;return b[d]>0||(b[d]=1,e=b[d]>0,b[d]=0,e)}})}(jQuery),function(a,b){var c=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(b){for(var d,c=0;null!=(d=b[c]);c++)try{a(d).triggerHandler("remove")}catch(a){}e(b)},a.widget=function(b,c,d){var e,f,g,h,i={},j=b.split(".")[0];b=b.split(".")[1],e=j+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)},a[j]=a[j]||{},f=a[j][b],g=a[j][b]=function(a,b){return this._createWidget?void(arguments.length&&this._createWidget(a,b)):new g(a,b)},a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),h=new c,h.options=a.widget.extend({},h.options),a.each(d,function(b,d){return a.isFunction(d)?void(i[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},e=function(a){return c.prototype[b].apply(this,a)};return function(){var f,b=this._super,c=this._superApply;return this._super=a,this._superApply=e,f=d.apply(this,arguments),this._super=b,this._superApply=c,f}}()):void(i[b]=d)}),g.prototype=a.widget.extend(h,{widgetEventPrefix:f?h.widgetEventPrefix:b},i,{constructor:g,namespace:j,widgetName:b,widgetFullName:e}),f?(a.each(f._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)}),delete f._childConstructors):c._childConstructors.push(g),a.widget.bridge(b,g)},a.widget.extend=function(c){for(var h,i,e=d.call(arguments,1),f=0,g=e.length;f<g;f++)for(h in e[f])i=e[f][h],e[f].hasOwnProperty(h)&&i!==b&&(a.isPlainObject(i)?c[h]=a.isPlainObject(c[h])?a.widget.extend({},c[h],i):a.widget.extend({},i):c[h]=i);return c},a.widget.bridge=function(c,e){var f=e.prototype.widgetFullName||c;a.fn[c]=function(g){var h="string"==typeof g,i=d.call(arguments,1),j=this;return g=!h&&i.length?a.widget.extend.apply(null,[g].concat(i)):g,h?this.each(function(){var d,e=a.data(this,f);return e?a.isFunction(e[g])&&"_"!==g.charAt(0)?(d=e[g].apply(e,i),d!==e&&d!==b?(j=d&&d.jquery?j.pushStack(d.get()):d,!1):void 0):a.error("no such method '"+g+"' for "+c+" widget instance"):a.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+g+"'")}):this.each(function(){var b=a.data(this,f);b?b.option(g||{})._init():a.data(this,f,new e(g,this))}),j}},a.Widget=function(){},a.Widget._childConstructors=[],a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=a.widget.extend({},this.options,this._getCreateOptions(),b),this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(c,d){var f,g,h,e=c;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof c)if(e={},f=c.split("."),c=f.shift(),f.length){for(g=e[c]=a.widget.extend({},this.options[c]),h=0;h<f.length-1;h++)g[f[h]]=g[f[h]]||{},g=g[f[h]];if(c=f.pop(),d===b)return g[c]===b?null:g[c];g[c]=d}else{if(d===b)return this.options[c]===b?null:this.options[c];e[c]=d}return this._setOptions(e),this},_setOptions:function(a){var b;for(b in a)this._setOption(b,a[b]);return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,c,d){var e,f=this;"boolean"!=typeof b&&(d=c,c=b,b=!1),d?(c=e=a(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,e=this.widget()),a.each(d,function(d,g){function h(){if(b||f.options.disabled!==!0&&!a(this).hasClass("ui-state-disabled"))return("string"==typeof g?f[g]:g).apply(f,arguments)}"string"!=typeof g&&(h.guid=g.guid=g.guid||h.guid||a.guid++);var i=d.match(/^(\w+)\s*(.*)$/),j=i[1]+f.eventNamespace,k=i[2];k?e.delegate(k,j,h):c.bind(j,h)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,a.unbind(b).undelegate(b)},_delay:function(a,b){function c(){return("string"==typeof a?d[a]:a).apply(d,arguments)}var d=this;return setTimeout(c,b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b),this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b),this._on(b,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,c,d){var e,f,g=this.options[b];if(d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&g.apply(this.element[0],[c].concat(d))===!1||c.isDefaultPrevented())}},a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,f){"string"==typeof e&&(e={effect:e});var g,h=e?e===!0||"number"==typeof e?c:e.effect||c:b;e=e||{},"number"==typeof e&&(e={duration:e}),g=!a.isEmptyObject(e),e.complete=f,e.delay&&d.delay(e.delay),g&&a.effects&&a.effects.effect[h]?d[b](e):h!==b&&d[h]?d[h](e.duration,e.easing,f):d.queue(function(c){a(this)[b](),f&&f.call(d[0]),c()})}})}(jQuery),function(a,b){var c=!1;a(document).mouseup(function(){c=!1}),a.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=1===b.which,f=!("string"!=typeof this.options.cancel||!b.target.nodeName)&&a(b.target).closest(this.options.cancel).length;return!(e&&!f&&this._mouseCapture(b))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(b)!==!1,!this._mouseStarted)?(b.preventDefault(),!0):(!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0,!0))}},_mouseMove:function(b){return a.ui.ie&&(!document.documentMode||document.documentMode<9)&&!b.button?this._mouseUp(b):this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target===this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(a,b){a.widget("ui.draggable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;return!(this.helper||c.disabled||a(b.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(b),!!this.handle&&(a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0))},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_mouseDrag:function(b,c){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1)return this._mouseUp({}),!1;this.position=d.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=this,d=!1;return a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,b)),this.dropped&&(d=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!a.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",b)!==!1&&c._clear()}):this._trigger("stop",b)!==!1&&this._clear(),!1)},_mouseUp:function(b){return a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){return!this.options.handle||!!a(b.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):"clone"===c.helper?this.element.clone().removeAttr("id"):this.element;return d.parents("body").length||d.appendTo("parent"===c.appendTo?this.element[0].parentNode:c.appendTo),d[0]===this.element[0]||/(fixed|absolute)/.test(d.css("position"))||d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;return e.containment?"window"===e.containment?void(this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,a(document).width()-this.helperProportions.width-this.margins.left,(a(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),c=a(e.containment),d=c[0],void(d&&(b="hidden"!==c.css("overflow"),this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c))):void(this.containment=null)},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:e.scrollTop(),left:e.scrollLeft()}),{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*d}},_generatePosition:function(b){var c,d,e,f,g=this.options,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=b.pageX,j=b.pageY;return this.offset.scroll||(this.offset.scroll={top:h.scrollTop(),left:h.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(d=this.relative_container.offset(),c=[this.containment[0]+d.left,this.containment[1]+d.top,this.containment[2]+d.left,this.containment[3]+d.top]):c=this.containment,b.pageX-this.offset.click.left<c[0]&&(i=c[0]+this.offset.click.left),b.pageY-this.offset.click.top<c[1]&&(j=c[1]+this.offset.click.top),b.pageX-this.offset.click.left>c[2]&&(i=c[2]+this.offset.click.left),b.pageY-this.offset.click.top>c[3]&&(j=c[3]+this.offset.click.top)),g.grid&&(e=g.grid[1]?this.originalPageY+Math.round((j-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,j=c?e-this.offset.click.top>=c[1]||e-this.offset.click.top>c[3]?e:e-this.offset.click.top>=c[1]?e-g.grid[1]:e+g.grid[1]:e,f=g.grid[0]?this.originalPageX+Math.round((i-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,i=c?f-this.offset.click.left>=c[0]||f-this.offset.click.left>c[2]?f:f-this.offset.click.left>=c[0]?f-g.grid[0]:f+g.grid[0]:f)),{top:j-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(b,c,d){return d=d||this._uiHash(),a.ui.plugin.call(this,b,[c,d]),"drag"===b&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c){var d=a(this).data("ui-draggable"),e=d.options,f=a.extend({},c,{item:d.element});d.sortables=[],a(e.connectToSortable).each(function(){var c=a.data(this,"ui-sortable");c&&!c.options.disabled&&(d.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",b,f))})},stop:function(b,c){var d=a(this).data("ui-draggable"),e=a.extend({},c,{item:d.element});a.each(d.sortables,function(){this.instance.isOver?(this.instance.isOver=0,d.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,"original"===d.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,e))})},drag:function(b,c){var d=a(this).data("ui-draggable"),e=this;a.each(d.sortables,function(){var f=!1,g=this;this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(f=!0,a.each(d.sortables,function(){return this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this!==g&&this.instance._intersectsWith(this.instance.containerCache)&&a.contains(g.instance.element[0],this.instance.element[0])&&(f=!1),f})),f?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(e).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=d.offset.click.top,this.instance.offset.click.left=d.offset.click.left,this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top,d._trigger("toSortable",b),d.dropped=this.instance.element,d.currentItem=d.element,this.instance.fromOutside=d),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),d._trigger("fromSortable",b),d.dropped=!1)})}}),a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("ui-draggable").options;b.css("cursor")&&(c._cursor=b.css("cursor")),b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("ui-draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("opacity")&&(e._opacity=d.css("opacity")),d.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._opacity&&a(c.helper).css("opacity",d._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("ui-draggable");b.scrollParent[0]!==document&&"HTML"!==b.scrollParent[0].tagName&&(b.overflowOffset=b.scrollParent.offset())},drag:function(b){var c=a(this).data("ui-draggable"),d=c.options,e=!1;c.scrollParent[0]!==document&&"HTML"!==c.scrollParent[0].tagName?(d.axis&&"x"===d.axis||(c.overflowOffset.top+c.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity?c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop+d.scrollSpeed:b.pageY-c.overflowOffset.top<d.scrollSensitivity&&(c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop-d.scrollSpeed)),d.axis&&"y"===d.axis||(c.overflowOffset.left+c.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity?c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft+d.scrollSpeed:b.pageX-c.overflowOffset.left<d.scrollSensitivity&&(c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft-d.scrollSpeed))):(d.axis&&"x"===d.axis||(b.pageY-a(document).scrollTop()<d.scrollSensitivity?e=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<d.scrollSensitivity&&(e=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed))),d.axis&&"y"===d.axis||(b.pageX-a(document).scrollLeft()<d.scrollSensitivity?e=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<d.scrollSensitivity&&(e=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)))),e!==!1&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,b)}}),a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("ui-draggable"),c=b.options;b.snapElements=[],a(c.snap.constructor!==String?c.snap.items||":data(ui-draggable)":c.snap).each(function(){var c=a(this),d=c.offset();this!==b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})})},drag:function(b,c){var d,e,f,g,h,i,j,k,l,m,n=a(this).data("ui-draggable"),o=n.options,p=o.snapTolerance,q=c.offset.left,r=q+n.helperProportions.width,s=c.offset.top,t=s+n.helperProportions.height;for(l=n.snapElements.length-1;l>=0;l--)h=n.snapElements[l].left,i=h+n.snapElements[l].width,j=n.snapElements[l].top,k=j+n.snapElements[l].height,r<h-p||q>i+p||t<j-p||s>k+p||!a.contains(n.snapElements[l].item.ownerDocument,n.snapElements[l].item)?(n.snapElements[l].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=!1):("inner"!==o.snapMode&&(d=Math.abs(j-t)<=p,e=Math.abs(k-s)<=p,f=Math.abs(h-r)<=p,g=Math.abs(i-q)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j-n.helperProportions.height,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i}).left-n.margins.left)),m=d||e||f||g,"outer"!==o.snapMode&&(d=Math.abs(j-s)<=p,e=Math.abs(k-t)<=p,f=Math.abs(h-q)<=p,g=Math.abs(i-r)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k-n.helperProportions.height,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i-n.helperProportions.width}).left-n.margins.left)),!n.snapElements[l].snapping&&(d||e||f||g||m)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=d||e||f||g||m)}}),a.ui.plugin.add("draggable","stack",{start:function(){var b,c=this.data("ui-draggable").options,d=a.makeArray(a(c.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});d.length&&(b=parseInt(a(d[0]).css("zIndex"),10)||0,a(d).each(function(c){a(this).css("zIndex",b+c)}),this.css("zIndex",b+d.length))}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("zIndex")&&(e._zIndex=d.css("zIndex")),d.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._zIndex&&a(c.helper).css("zIndex",d._zIndex)}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}a.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var b=this.options,c=b.accept;this.isover=!1,this.isout=!0,this.accept=a.isFunction(c)?c:function(a){return a.is(c)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[],a.ui.ddmanager.droppables[b.scope].push(this),b.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var b=0,c=a.ui.ddmanager.droppables[this.options.scope];b<c.length;b++)c[b]===this&&c.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(b,c){"accept"===b&&(this.accept=a.isFunction(c)?c:function(a){return a.is(c)}),a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),c&&this._trigger("activate",b,this.ui(c))},_deactivate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),c&&this._trigger("deactivate",b,this.ui(c))},_over:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",b,this.ui(c)))},_out:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",b,this.ui(c)))},_drop:function(b,c){var d=c||a.ui.ddmanager.current,e=!1;return!(!d||(d.currentItem||d.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"ui-droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope===d.options.scope&&b.accept.call(b.element[0],d.currentItem||d.element)&&a.ui.intersect(d,a.extend(b,{offset:b.element.offset()}),b.options.tolerance))return e=!0,!1}),!e&&(!!this.accept.call(this.element[0],d.currentItem||d.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",b,this.ui(d)),this.element)))},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}}),a.ui.intersect=function(a,b,d){if(!b.offset)return!1;var e,f,g=(a.positionAbs||a.position.absolute).left,h=g+a.helperProportions.width,i=(a.positionAbs||a.position.absolute).top,j=i+a.helperProportions.height,k=b.offset.left,l=k+b.proportions.width,m=b.offset.top,n=m+b.proportions.height;switch(d){case"fit":return k<=g&&h<=l&&m<=i&&j<=n;case"intersect":return k<g+a.helperProportions.width/2&&h-a.helperProportions.width/2<l&&m<i+a.helperProportions.height/2&&j-a.helperProportions.height/2<n;case"pointer":return e=(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,f=(a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,c(f,m,b.proportions.height)&&c(e,k,b.proportions.width);case"touch":return(i>=m&&i<=n||j>=m&&j<=n||i<m&&j>n)&&(g>=k&&g<=l||h>=k&&h<=l||g<k&&h>l);default:return!1}},a.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(b,c){var d,e,f=a.ui.ddmanager.droppables[b.options.scope]||[],g=c?c.type:null,h=(b.currentItem||b.element).find(":data(ui-droppable)").addBack();a:for(d=0;d<f.length;d++)if(!(f[d].options.disabled||b&&!f[d].accept.call(f[d].element[0],b.currentItem||b.element))){for(e=0;e<h.length;e++)if(h[e]===f[d].element[0]){f[d].proportions.height=0;continue a}f[d].visible="none"!==f[d].element.css("display"),f[d].visible&&("mousedown"===g&&f[d]._activate.call(f[d],c),f[d].offset=f[d].element.offset(),f[d].proportions={width:f[d].element[0].offsetWidth,height:f[d].element[0].offsetHeight})}},drop:function(b,c){var d=!1;return a.each((a.ui.ddmanager.droppables[b.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)&&(d=this._drop.call(this,c)||d),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,c)))}),d},dragStart:function(b,c){b.element.parentsUntil("body").bind("scroll.droppable",function(){b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c),a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var d,e,f,g=a.ui.intersect(b,this,this.options.tolerance),h=!g&&this.isover?"isout":g&&!this.isover?"isover":null;h&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return a.data(this,"ui-droppable").options.scope===e}),f.length&&(d=a.data(f[0],"ui-droppable"),d.greedyChild="isover"===h)),d&&"isover"===h&&(d.isover=!1,d.isout=!0,d._out.call(d,c)),this[h]=!0,this["isout"===h?"isover":"isout"]=!1,this["isover"===h?"_over":"_out"].call(this,c),d&&"isout"===h&&(d.isout=!1,d.isover=!0,d._over.call(d,c)))}})},dragStop:function(b,c){b.element.parentsUntil("body").unbind("scroll.droppable"),b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)}}}(jQuery),function(a,b){function c(a){return parseInt(a,10)||0}function d(a){return!isNaN(parseInt(a,10))}a.widget("ui.resizable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var b,c,d,e,f,g=this,h=this.options;if(this.element.addClass("ui-resizable"),a.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(a("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=h.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),b=this.handles.split(","),this.handles={},c=0;c<b.length;c++)d=a.trim(b[c]),f="ui-resizable-"+d,e=a("<div class='ui-resizable-handle "+f+"'></div>"),e.css({zIndex:h.zIndex}),"se"===d&&e.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[d]=".ui-resizable-"+d,this.element.append(e);this._renderAxis=function(b){var c,d,e,f;b=b||this.element;for(c in this.handles)this.handles[c].constructor===String&&(this.handles[c]=a(this.handles[c],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(d=a(this.handles[c],this.element),f=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth(),e=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join(""),b.css(e,f),this._proportionallyResize()),a(this.handles[c]).length},this._renderAxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){g.resizing||(this.className&&(e=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),g.axis=e&&e[1]?e[1]:"se")}),h.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").mouseenter(function(){h.disabled||(a(this).removeClass("ui-resizable-autohide"),g._handles.show())}).mouseleave(function(){h.disabled||g.resizing||(a(this).addClass("ui-resizable-autohide"),g._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var b,c=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(c(this.element),b=this.element,this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")}).insertAfter(b),b.remove()),this.originalElement.css("resize",this.originalResizeStyle),c(this.originalElement),this},_mouseCapture:function(b){var c,d,e=!1;for(c in this.handles)d=a(this.handles[c])[0],(d===b.target||a.contains(d,b.target))&&(e=!0);return!this.options.disabled&&e},_mouseStart:function(b){var d,e,f,g=this.options,h=this.element.position(),i=this.element;return this.resizing=!0,/absolute/.test(i.css("position"))?i.css({position:"absolute",top:i.css("top"),left:i.css("left")}):i.is(".ui-draggable")&&i.css({position:"absolute",top:h.top,left:h.left}),this._renderProxy(),d=c(this.helper.css("left")),e=c(this.helper.css("top")),g.containment&&(d+=a(g.containment).scrollLeft()||0,e+=a(g.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:d,top:e},this.size=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalPosition={left:d,top:e},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalMousePosition={left:b.pageX,top:b.pageY},this.aspectRatio="number"==typeof g.aspectRatio?g.aspectRatio:this.originalSize.width/this.originalSize.height||1,f=a(".ui-resizable-"+this.axis).css("cursor"),a("body").css("cursor","auto"===f?this.axis+"-resize":f),i.addClass("ui-resizable-resizing"),this._propagate("start",b),!0},_mouseDrag:function(b){var c,d=this.helper,e={},f=this.originalMousePosition,g=this.axis,h=this.position.top,i=this.position.left,j=this.size.width,k=this.size.height,l=b.pageX-f.left||0,m=b.pageY-f.top||0,n=this._change[g];return!!n&&(c=n.apply(this,[b,l,m]),this._updateVirtualBoundaries(b.shiftKey),(this._aspectRatio||b.shiftKey)&&(c=this._updateRatio(c,b)),c=this._respectSize(c,b),this._updateCache(c),this._propagate("resize",b),this.position.top!==h&&(e.top=this.position.top+"px"),this.position.left!==i&&(e.left=this.position.left+"px"),this.size.width!==j&&(e.width=this.size.width+"px"),this.size.height!==k&&(e.height=this.size.height+"px"),d.css(e),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),a.isEmptyObject(e)||this._trigger("resize",b,this.ui()),!1)},_mouseStop:function(b){this.resizing=!1;var c,d,e,f,g,h,i,j=this.options,k=this;return this._helper&&(c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),e=d&&a.ui.hasScroll(c[0],"left")?0:k.sizeDiff.height,f=d?0:k.sizeDiff.width,g={width:k.helper.width()-f,height:k.helper.height()-e},h=parseInt(k.element.css("left"),10)+(k.position.left-k.originalPosition.left)||null,i=parseInt(k.element.css("top"),10)+(k.position.top-k.originalPosition.top)||null,j.animate||this.element.css(a.extend(g,{top:i,left:h})),k.helper.height(k.size.height),k.helper.width(k.size.width),this._helper&&!j.animate&&this._proportionallyResize()),a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(a){var b,c,e,f,g,h=this.options;g={minWidth:d(h.minWidth)?h.minWidth:0,maxWidth:d(h.maxWidth)?h.maxWidth:1/0,minHeight:d(h.minHeight)?h.minHeight:0,maxHeight:d(h.maxHeight)?h.maxHeight:1/0},(this._aspectRatio||a)&&(b=g.minHeight*this.aspectRatio,e=g.minWidth/this.aspectRatio,c=g.maxHeight*this.aspectRatio,f=g.maxWidth/this.aspectRatio,b>g.minWidth&&(g.minWidth=b),e>g.minHeight&&(g.minHeight=e),c<g.maxWidth&&(g.maxWidth=c),f<g.maxHeight&&(g.maxHeight=f)),this._vBoundaries=g},_updateCache:function(a){this.offset=this.helper.offset(),d(a.left)&&(this.position.left=a.left),d(a.top)&&(this.position.top=a.top),d(a.height)&&(this.size.height=a.height),d(a.width)&&(this.size.width=a.width)},_updateRatio:function(a){var b=this.position,c=this.size,e=this.axis;return d(a.height)?a.width=a.height*this.aspectRatio:d(a.width)&&(a.height=a.width/this.aspectRatio),"sw"===e&&(a.left=b.left+(c.width-a.width),a.top=null),"nw"===e&&(a.top=b.top+(c.height-a.height),a.left=b.left+(c.width-a.width)),a},_respectSize:function(a){var b=this._vBoundaries,c=this.axis,e=d(a.width)&&b.maxWidth&&b.maxWidth<a.width,f=d(a.height)&&b.maxHeight&&b.maxHeight<a.height,g=d(a.width)&&b.minWidth&&b.minWidth>a.width,h=d(a.height)&&b.minHeight&&b.minHeight>a.height,i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,k=/sw|nw|w/.test(c),l=/nw|ne|n/.test(c);return g&&(a.width=b.minWidth),h&&(a.height=b.minHeight),e&&(a.width=b.maxWidth),f&&(a.height=b.maxHeight),g&&k&&(a.left=i-b.minWidth),e&&k&&(a.left=i-b.maxWidth),h&&l&&(a.top=j-b.minHeight),f&&l&&(a.top=j-b.maxHeight),a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left||(a.left=null):a.top=null,a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var a,b,c,d,e,f=this.helper||this.element;for(a=0;a<this._proportionallyResizeElements.length;a++){if(e=this._proportionallyResizeElements[a],!this.borderDif)for(this.borderDif=[],c=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],d=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")],b=0;b<c.length;b++)this.borderDif[b]=(parseInt(c[b],10)||0)+(parseInt(d[b],10)||0);e.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var b=this.element,c=this.options;this.elementOffset=b.offset(),this._helper?(this.helper=this.helper||a("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++c.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){var c=this.originalSize,d=this.originalPosition;return{left:d.left+b,width:c.width-b}},n:function(a,b,c){var d=this.originalSize,e=this.originalPosition;return{top:e.top+c,height:d.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),"resize"!==b&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),a.ui.plugin.add("resizable","animate",{stop:function(b){var c=a(this).data("ui-resizable"),d=c.options,e=c._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&a.ui.hasScroll(e[0],"left")?0:c.sizeDiff.height,h=f?0:c.sizeDiff.width,i={width:c.size.width-h,height:c.size.height-g},j=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,k=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(a.extend(i,k&&j?{top:k,left:j}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};e&&e.length&&a(e[0]).css({width:d.width,height:d.height}),c._updateCache(d),c._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(){var b,d,e,f,g,h,i,j=a(this).data("ui-resizable"),k=j.options,l=j.element,m=k.containment,n=m instanceof a?m.get(0):/parent/.test(m)?l.parent().get(0):m;n&&(j.containerElement=a(n),/document/.test(m)||m===document?(j.containerOffset={left:0,top:0},j.containerPosition={left:0,top:0},j.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}):(b=a(n),d=[],a(["Top","Right","Left","Bottom"]).each(function(a,e){d[a]=c(b.css("padding"+e))}),j.containerOffset=b.offset(),j.containerPosition=b.position(),j.containerSize={height:b.innerHeight()-d[3],width:b.innerWidth()-d[1]},e=j.containerOffset,f=j.containerSize.height,g=j.containerSize.width,h=a.ui.hasScroll(n,"left")?n.scrollWidth:g,i=a.ui.hasScroll(n)?n.scrollHeight:f,j.parentData={element:n,left:e.left,top:e.top,width:h,height:i}))},resize:function(b){var c,d,e,f,g=a(this).data("ui-resizable"),h=g.options,i=g.containerOffset,j=g.position,k=g._aspectRatio||b.shiftKey,l={top:0,left:0},m=g.containerElement;m[0]!==document&&/static/.test(m.css("position"))&&(l=i),j.left<(g._helper?i.left:0)&&(g.size.width=g.size.width+(g._helper?g.position.left-i.left:g.position.left-l.left),k&&(g.size.height=g.size.width/g.aspectRatio),g.position.left=h.helper?i.left:0),j.top<(g._helper?i.top:0)&&(g.size.height=g.size.height+(g._helper?g.position.top-i.top:g.position.top),k&&(g.size.width=g.size.height*g.aspectRatio),g.position.top=g._helper?i.top:0),g.offset.left=g.parentData.left+g.position.left,g.offset.top=g.parentData.top+g.position.top,c=Math.abs((g._helper?g.offset.left-l.left:g.offset.left-l.left)+g.sizeDiff.width),d=Math.abs((g._helper?g.offset.top-l.top:g.offset.top-i.top)+g.sizeDiff.height),e=g.containerElement.get(0)===g.element.parent().get(0),f=/relative|absolute/.test(g.containerElement.css("position")),e&&f&&(c-=g.parentData.left),c+g.size.width>=g.parentData.width&&(g.size.width=g.parentData.width-c,k&&(g.size.height=g.size.width/g.aspectRatio)),d+g.size.height>=g.parentData.height&&(g.size.height=g.parentData.height-d,k&&(g.size.width=g.size.height*g.aspectRatio))},stop:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.containerOffset,e=b.containerPosition,f=b.containerElement,g=a(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width,j=g.outerHeight()-b.sizeDiff.height;b._helper&&!c.animate&&/relative/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j}),b._helper&&!c.animate&&/static/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j})}}),a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=function(b){a(b).each(function(){var b=a(this);b.data("ui-resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10)})})};"object"!=typeof c.alsoResize||c.alsoResize.parentNode?d(c.alsoResize):c.alsoResize.length?(c.alsoResize=c.alsoResize[0],d(c.alsoResize)):a.each(c.alsoResize,function(a){d(a)})},resize:function(b,c){var d=a(this).data("ui-resizable"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("ui-resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);c&&c>=0&&(f[b]=c||null)}),b.css(f)})};"object"!=typeof e.alsoResize||e.alsoResize.nodeType?i(e.alsoResize):a.each(e.alsoResize,function(a,b){i(a,b)})},stop:function(){a(this).removeData("resizable-alsoresize")}}),a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size;b.ghost=b.originalElement.clone(),b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof c.ghost?c.ghost:""),b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("ui-resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("ui-resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size,e=b.originalSize,f=b.originalPosition,g=b.axis,h="number"==typeof c.grid?[c.grid,c.grid]:c.grid,i=h[0]||1,j=h[1]||1,k=Math.round((d.width-e.width)/i)*i,l=Math.round((d.height-e.height)/j)*j,m=e.width+k,n=e.height+l,o=c.maxWidth&&c.maxWidth<m,p=c.maxHeight&&c.maxHeight<n,q=c.minWidth&&c.minWidth>m,r=c.minHeight&&c.minHeight>n;c.grid=h,q&&(m+=i),r&&(n+=j),o&&(m-=i),p&&(n-=j),/^(se|s|e)$/.test(g)?(b.size.width=m,b.size.height=n):/^(ne)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.top=f.top-l):/^(sw)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.left=f.left-k):(b.size.width=m,b.size.height=n,b.position.top=f.top-l,b.position.left=f.left-k)}})}(jQuery),function(a,b){a.widget("ui.selectable",a.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var b,c=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){b=a(c.options.filter,c.element[0]),b.addClass("ui-selectee"),b.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=b.addClass("ui-selectee"),this._mouseInit(),this.helper=a("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(b){var c=this,d=this.options;this.opos=[b.pageX,b.pageY],this.options.disabled||(this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.pageX,top:b.pageY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,b.metaKey||b.ctrlKey||(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().addBack().each(function(){var d,e=a.data(this,"selectable-item");if(e)return d=!b.metaKey&&!b.ctrlKey||!e.$element.hasClass("ui-selected"),e.$element.removeClass(d?"ui-unselecting":"ui-selected").addClass(d?"ui-selecting":"ui-unselecting"),e.unselecting=!d,e.selecting=d,e.selected=d,d?c._trigger("selecting",b,{selecting:e.element}):c._trigger("unselecting",b,{unselecting:e.element}),!1}))},_mouseDrag:function(b){if(this.dragged=!0,!this.options.disabled){var c,d=this,e=this.options,f=this.opos[0],g=this.opos[1],h=b.pageX,i=b.pageY;return f>h&&(c=h,h=f,f=c),g>i&&(c=i,i=g,g=c),this.helper.css({left:f,top:g,width:h-f,height:i-g}),this.selectees.each(function(){var c=a.data(this,"selectable-item"),j=!1;c&&c.element!==d.element[0]&&("touch"===e.tolerance?j=!(c.left>h||c.right<f||c.top>i||c.bottom<g):"fit"===e.tolerance&&(j=c.left>f&&c.right<h&&c.top>g&&c.bottom<i),j?(c.selected&&(c.$element.removeClass("ui-selected"),c.selected=!1),c.unselecting&&(c.$element.removeClass("ui-unselecting"),c.unselecting=!1),c.selecting||(c.$element.addClass("ui-selecting"),c.selecting=!0,d._trigger("selecting",b,{selecting:c.element}))):(c.selecting&&((b.metaKey||b.ctrlKey)&&c.startselected?(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.$element.addClass("ui-selected"),c.selected=!0):(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.startselected&&(c.$element.addClass("ui-unselecting"),c.unselecting=!0),d._trigger("unselecting",b,{unselecting:c.element}))),c.selected&&(b.metaKey||b.ctrlKey||c.startselected||(c.$element.removeClass("ui-selected"),c.selected=!1,c.$element.addClass("ui-unselecting"),c.unselecting=!0,d._trigger("unselecting",b,{unselecting:c.element})))))}),!1}},_mouseStop:function(b){var c=this;return this.dragged=!1,a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting"),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove(),!1}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}function d(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))}a.widget("ui.sortable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===a.axis||d(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,c){"disabled"===b?(this.options[b]=c,this.widget().toggleClass("ui-sortable-disabled",!!c)):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){var d=null,e=!1,f=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(b),a(b.target).parents().each(function(){if(a.data(this,f.widgetName+"-item")===f)return d=a(this),!1}),a.data(b.target,f.widgetName+"-item")===f&&(d=a(b.target)),!!d&&(!(this.options.handle&&!c&&(a(this.options.handle,d).find("*").addBack().each(function(){this===b.target&&(e=!0)}),!e))&&(this.currentItem=d,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(b,c,d){var e,f,g=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),g.containment&&this._setContainment(),g.cursor&&"auto"!==g.cursor&&(f=this.document.find("body"),this.storedCursor=f.css("cursor"),f.css("cursor",g.cursor),this.storedStylesheet=a("<style>*{ cursor: "+g.cursor+" !important; }</style>").appendTo(f)),g.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",g.opacity)),g.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",g.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!d)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,this._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){var c,d,e,f,g=this.options,h=!1;for(this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<g.scrollSensitivity?this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+g.scrollSpeed:b.pageY-this.overflowOffset.top<g.scrollSensitivity&&(this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-g.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<g.scrollSensitivity?this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+g.scrollSpeed:b.pageX-this.overflowOffset.left<g.scrollSensitivity&&(this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-g.scrollSpeed)):(b.pageY-a(document).scrollTop()<g.scrollSensitivity?h=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<g.scrollSensitivity&&(h=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)),b.pageX-a(document).scrollLeft()<g.scrollSensitivity?h=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<g.scrollSensitivity&&(h=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed))),h!==!1&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),c=this.items.length-1;c>=0;c--)if(d=this.items[c],e=d.item[0],f=this._intersectsWithPointer(d),f&&d.instance===this.currentContainer&&!(e===this.currentItem[0]||this.placeholder[1===f?"next":"prev"]()[0]===e||a.contains(this.placeholder[0],e)||"semi-dynamic"===this.options.type&&a.contains(this.element[0],e))){if(this.direction=1===f?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(d))break;this._rearrange(b,d),this._trigger("change",b,this._uiHash());break}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){if(a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b),this.options.revert){var d=this,e=this.placeholder.offset(),f=this.options.axis,g={};f&&"x"!==f||(g.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),f&&"y"!==f||(g.top=e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,a(this.helper).animate(g,parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--)this.containers[b]._trigger("deactivate",null,this._uiHash(this)),this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[\-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l="x"===this.options.axis||d+j>h&&d+j<i,m="y"===this.options.axis||b+k>f&&b+k<g,n=l&&m;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?n:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(a){var b="x"===this.options.axis||c(this.positionAbs.top+this.offset.click.top,a.top,a.height),d="y"===this.options.axis||c(this.positionAbs.left+this.offset.click.left,a.left,a.width),e=b&&d,f=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return!!e&&(this.floating?g&&"right"===g||"down"===f?2:1:f&&("down"===f?2:1))},_intersectsWithSides:function(a){var b=c(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height),d=c(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width),e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?"right"===f&&d||"left"===f&&!d:e&&("down"===e&&b||"up"===e&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!==a&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!==a&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c,d,e,f,g=[],h=[],i=this._connectWith();if(i&&b)for(c=i.length-1;c>=0;c--)for(e=a(i[c]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&h.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),f]);for(h.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),c=h.length-1;c>=0;c--)h[c][0].each(function(){g.push(this)});return a(g)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var c=0;c<b.length;c++)if(b[c]===a.item[0])return!1;return!0})},_refreshItems:function(b){this.items=[],this.containers=[this];var c,d,e,f,g,h,i,j,k=this.items,l=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],m=this._connectWith();if(m&&this.ready)for(c=m.length-1;c>=0;c--)for(e=a(m[c]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&(l.push([a.isFunction(f.options.items)?f.options.items.call(f.element[0],b,{item:this.currentItem}):a(f.options.items,f.element),f]),this.containers.push(f));for(c=l.length-1;c>=0;c--)for(g=l[c][1],h=l[c][0],d=0,j=h.length;d<j;d++)i=a(h[d]),i.data(this.widgetName+"-item",g),k.push({item:i,instance:g,width:0,height:0,left:0,top:0})},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var c,d,e,f;for(c=this.items.length-1;c>=0;c--)d=this.items[c],d.instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]||(e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item,b||(d.width=e.outerWidth(),d.height=e.outerHeight()),f=e.offset(),d.left=f.left,d.top=f.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)f=this.containers[c].element.offset(),this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(b){b=b||this;var c,d=b.options;d.placeholder&&d.placeholder.constructor!==String||(c=d.placeholder,d.placeholder={element:function(){var d=b.currentItem[0].nodeName.toLowerCase(),e=a("<"+d+">",b.document[0]).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===d?b.currentItem.children().each(function(){a("<td> </td>",b.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(e)}):"img"===d&&e.attr("src",b.currentItem.attr("src")),c||e.css("visibility","hidden"),e},update:function(a,e){c&&!d.forcePlaceholderSize||(e.height()||e.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10)))}}),b.placeholder=a(d.placeholder.element.call(b.element,b.currentItem)),b.currentItem.after(b.placeholder),d.placeholder.update(b,b.placeholder)},_contactContainers:function(b){var e,f,g,h,i,j,k,l,m,n,o=null,p=null;for(e=this.containers.length-1;e>=0;e--)if(!a.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(o&&a.contains(this.containers[e].element[0],o.element[0]))continue;o=this.containers[e],p=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0);if(o)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(g=1e4,h=null,n=o.floating||d(this.currentItem),i=n?"left":"top",j=n?"width":"height",k=this.positionAbs[i]+this.offset.click[i],f=this.items.length-1;f>=0;f--)a.contains(this.containers[p].element[0],this.items[f].item[0])&&this.items[f].item[0]!==this.currentItem[0]&&(n&&!c(this.positionAbs.top+this.offset.click.top,this.items[f].top,this.items[f].height)||(l=this.items[f].item.offset()[i],m=!1,Math.abs(l-k)>Math.abs(l+this.items[f][j]-k)&&(m=!0,l+=this.items[f][j]),Math.abs(l-k)<g&&(g=Math.abs(l-k),h=this.items[f],this.direction=m?"up":"down")));if(!h&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return;h?this._rearrange(b,h,null,!0):this._rearrange(b,null,this.containers[p].element,!0),this._trigger("change",b,this._uiHash()),this.containers[p]._trigger("change",b,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):"clone"===c.helper?this.currentItem.clone():this.currentItem;return d.parents("body").length||a("parent"!==c.appendTo?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),d[0].style.width&&!c.forceHelperSize||d.width(this.currentItem.width()),d[0].style.height&&!c.forceHelperSize||d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;"parent"===e.containment&&(e.containment=this.helper[0].parentNode),"document"!==e.containment&&"window"!==e.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a("document"===e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(a("document"===e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||(b=a(e.containment)[0],c=a(e.containment).offset(),d="hidden"!==a(b).css("overflow"),this.containment=[c.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:e.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*d}},_generatePosition:function(b){var c,d,e=this.options,f=b.pageX,g=b.pageY,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(h[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(g=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top)),e.grid&&(c=this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1],g=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-e.grid[1]:c+e.grid[1]:c,d=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[0])*e.grid[0],f=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-e.grid[0]:d+e.grid[0]:d)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this.counter;this._delay(function(){e===this.counter&&this.refreshPositions(!d)})},_clear:function(a,b){this.reverting=!1;var c,d=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(c in this._storedCSS)"auto"!==this._storedCSS[c]&&"static"!==this._storedCSS[c]||(this._storedCSS[c]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!b&&d.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||b||d.push(function(a){this._trigger("update",a,this._uiHash())}),this!==this.currentContainer&&(b||(d.push(function(a){this._trigger("remove",a,this._uiHash())}),d.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer)),d.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer)))),c=this.containers.length-1;c>=0;c--)b||d.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[c])),this.containers[c].containerCache.over&&(d.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[c])),this.containers[c].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!b){for(this._trigger("beforeStop",a,this._uiHash()),c=0;c<d.length;c++)d[c].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!1}if(b||this._trigger("beforeStop",a,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!b){for(c=0;c<d.length;c++)d[c].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}})}(jQuery),function(a,b){var c="ui-effects-";a.effects={effect:{}},function(a,b){function m(a,b,c){var d=h[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function n(b){var c=f(),d=c._rgba=[];return b=b.toLowerCase(),l(e,function(a,e){var f,h=e.re.exec(b),i=h&&e.parse(h),j=e.space||"rgba";if(i)return f=c[j](i),c[g[j].cache]=f[g[j].cache],d=c._rgba=f._rgba,!1}),d.length?("0,0,0,0"===d.join()&&a.extend(d,k.transparent),c):k[b]}function o(a,b,c){return c=(c+1)%1,6*c<1?a+(b-a)*c*6:2*c<1?b:3*c<2?a+(b-a)*(2/3-c)*6:a}var k,c="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",d=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],f=a.Color=function(b,c,d,e){return new a.Color.fn.parse(b,c,d,e)},g={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},i=f.support={},j=a("<p>")[0],l=a.each;j.style.cssText="background-color:rgba(1,1,1,.5)",i.rgba=j.style.backgroundColor.indexOf("rgba")>-1,l(g,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),f.fn=a.extend(f.prototype,{parse:function(c,d,e,h){if(c===b)return this._rgba=[null,null,null,null],this;(c.jquery||c.nodeType)&&(c=a(c).css(d),d=b);var i=this,j=a.type(c),o=this._rgba=[];return d!==b&&(c=[c,d,e,h],j="array"),"string"===j?this.parse(n(c)||k._default):"array"===j?(l(g.rgba.props,function(a,b){o[b.idx]=m(c[b.idx],b)}),this):"object"===j?(c instanceof f?l(g,function(a,b){c[b.cache]&&(i[b.cache]=c[b.cache].slice())}):l(g,function(b,d){var e=d.cache;l(d.props,function(a,b){if(!i[e]&&d.to){if("alpha"===a||null==c[a])return;i[e]=d.to(i._rgba)}i[e][b.idx]=m(c[a],b,!0)}),i[e]&&a.inArray(null,i[e].slice(0,3))<0&&(i[e][3]=1,d.from&&(i._rgba=d.from(i[e])))}),this):void 0},is:function(a){var b=f(a),c=!0,d=this;return l(g,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],l(e.props,function(a,b){if(null!=g[b.idx])return c=g[b.idx]===f[b.idx]})),c}),c},_space:function(){var a=[],b=this;return l(g,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var c=f(a),d=c._space(),e=g[d],i=0===this.alpha()?f("transparent"):this,j=i[e.cache]||e.to(i._rgba),k=j.slice();return c=c[e.cache],l(e.props,function(a,d){var e=d.idx,f=j[e],g=c[e],i=h[d.type]||{};null!==g&&(null===f?k[e]=g:(i.mod&&(g-f>i.mod/2?f+=i.mod:f-g>i.mod/2&&(f-=i.mod)),k[e]=m((g-f)*b+f,d)))}),this[d](k)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=f(b)._rgba;return f(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&b<3&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),f.fn.parse.prototype=f.fn,g.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var k,l,b=a[0]/255,c=a[1]/255,d=a[2]/255,e=a[3],f=Math.max(b,c,d),g=Math.min(b,c,d),h=f-g,i=f+g,j=.5*i;return k=g===f?0:b===f?60*(c-d)/h+360:c===f?60*(d-b)/h+120:60*(b-c)/h+240,l=0===h?0:j<=.5?h/i:h/(2-i),[Math.round(k)%360,l,j,null==e?1:e]},g.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],e=a[3],f=d<=.5?d*(1+c):d+c-d*c,g=2*d-f;return[Math.round(255*o(g,f,b+1/3)),Math.round(255*o(g,f,b)),Math.round(255*o(g,f,b-1/3)),e]},l(g,function(c,e){var g=e.props,h=e.cache,i=e.to,j=e.from;f.fn[c]=function(c){if(i&&!this[h]&&(this[h]=i(this._rgba)),c===b)return this[h].slice();var d,e=a.type(c),k="array"===e||"object"===e?c:arguments,n=this[h].slice();return l(g,function(a,b){var c=k["object"===e?a:b.idx];null==c&&(c=n[b.idx]),n[b.idx]=m(c,b)}),j?(d=f(j(n)),d[h]=n,d):f(n)},l(g,function(b,e){f.fn[b]||(f.fn[b]=function(f){var k,g=a.type(f),h="alpha"===b?this._hsla?"hsla":"rgba":c,i=this[h](),j=i[e.idx];return"undefined"===g?j:("function"===g&&(f=f.call(this,j),g=a.type(f)),null==f&&e.empty?this:("string"===g&&(k=d.exec(f),k&&(f=j+parseFloat(k[2])*("+"===k[1]?1:-1))),i[e.idx]=f,this[h](i)))})})}),f.hook=function(b){var c=b.split(" ");l(c,function(b,c){a.cssHooks[c]={set:function(b,d){var e,g,h="";if("transparent"!==d&&("string"!==a.type(d)||(e=n(d)))){if(d=f(e||d),!i.rgba&&1!==d._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(a){}d=d.blend(h&&"transparent"!==h?h:"_default")}d=d.toRgbaString()}try{b.style[c]=d}catch(a){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=f(b.elem,c),b.end=f(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},f.hook(c),a.cssHooks.borderColor={expand:function(a){var b={};return l(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},k=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function e(b){var c,d,e=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,f={};if(e&&e.length&&e[0]&&e[e[0]])for(d=e.length;d--;)c=e[d],"string"==typeof e[c]&&(f[a.camelCase(c)]=e[c]);else for(c in e)"string"==typeof e[c]&&(f[c]=e[c]);return f}function f(b,c){var f,g,e={};for(f in c)g=c[f],b[f]!==g&&(d[f]||!a.fx.step[f]&&isNaN(parseFloat(g))||(e[f]=g));return e}var c=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){a.fx.step[c]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(jQuery.style(a.elem,c,a.end),a.setAttr=!0)}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a.effects.animateClass=function(b,d,g,h){var i=a.speed(d,g,h);return this.queue(function(){var h,d=a(this),g=d.attr("class")||"",j=i.children?d.find("*").addBack():d;j=j.map(function(){var b=a(this);return{el:b,start:e(this)}}),h=function(){a.each(c,function(a,c){b[c]&&d[c+"Class"](b[c])})},h(),j=j.map(function(){return this.end=e(this.el[0]),this.diff=f(this.start,this.end),this}),d.attr("class",g),j=j.map(function(){var b=this,c=a.Deferred(),d=a.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){h(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})}),i.complete.call(d[0])})})},a.fn.extend({addClass:function(b){return function(c,d,e,f){return d?a.effects.animateClass.call(this,{add:c},d,e,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(c,d,e,f){return arguments.length>1?a.effects.animateClass.call(this,{remove:c},d,e,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(c){return function(d,e,f,g,h){return"boolean"==typeof e||e===b?f?a.effects.animateClass.call(this,e?{add:d}:{remove:d},f,g,h):c.apply(this,arguments):a.effects.animateClass.call(this,{toggle:d},e,f,g)}}(a.fn.toggleClass),switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function d(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function e(b){return!(b&&"number"!=typeof b&&!a.fx.speeds[b])||("string"==typeof b&&!a.effects.effect[b]||(!!a.isFunction(b)||"object"==typeof b&&!b.effect))}a.extend(a.effects,{version:"1.10.3",save:function(a,b){for(var d=0;d<b.length;d++)null!==b[d]&&a.data(c+b[d],a[0].style[b[d]])},restore:function(a,d){var e,f;for(f=0;f<d.length;f++)null!==d[f]&&(e=a.data(c+d[f]),e===b&&(e=""),a.css(d[f],e))},setMode:function(a,b){return"toggle"===b&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),float:b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(a){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).focus(),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).focus()),b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function g(c){function h(){a.isFunction(e)&&e.call(d[0]),a.isFunction(c)&&c()}var d=a(this),e=b.complete,g=b.mode;(d.is(":hidden")?"hide"===g:"show"===g)?(d[g](),h()):f.call(d[0],b,h)}var b=d.apply(this,arguments),c=b.mode,e=b.queue,f=a.effects.effect[b.effect];return a.fx.off||!f?c?this[c](b.duration,b.complete):this.each(function(){b.complete&&b.complete.call(this)}):e===!1?this.each(g):this.queue(e||"fx",g)},show:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="show",this.effect.call(this,c)}}(a.fn.show),hide:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="hide",this.effect.call(this,c)}}(a.fn.hide),toggle:function(a){return function(b){if(e(b)||"boolean"==typeof b)return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="toggle",this.effect.call(this,c)}}(a.fn.toggle),cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(2*a)/2:1-c(a*-2+2)/2}})}()}(jQuery),function(a,b){var c=0,d={},e={};d.height=d.paddingTop=d.paddingBottom=d.borderTopWidth=d.borderBottomWidth="hide",e.height=e.paddingTop=e.paddingBottom=e.borderTopWidth=e.borderBottomWidth="show",a.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var b=this.options;this.prevShow=this.prevHide=a(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),b.collapsible||b.active!==!1&&null!=b.active||(b.active=0),this._processPanels(),b.active<0&&(b.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():a(),content:this.active.length?this.active.next():a()}},_createIcons:function(){var b=this.options.icons;b&&(a("<span>").addClass("ui-accordion-header-icon ui-icon "+b.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(b.header).addClass(b.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var a;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),a=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,b){return"active"===a?void this._activate(b):("event"===a&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(b)),this._super(a,b),"collapsible"!==a||b||this.options.active!==!1||this._activate(0),"icons"===a&&(this._destroyIcons(),b&&this._createIcons()),void("disabled"===a&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!b)))},_keydown:function(b){if(!b.altKey&&!b.ctrlKey){var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._eventHandler(b);break;case c.HOME:f=this.headers[0];break;case c.END:f=this.headers[d-1]}f&&(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),b.preventDefault())}},_panelKeyDown:function(b){b.keyCode===a.ui.keyCode.UP&&b.ctrlKey&&a(b.currentTarget).prev().focus()},refresh:function(){var b=this.options;this._processPanels(),b.active===!1&&b.collapsible===!0||!this.headers.length?(b.active=!1,this.active=a()):b.active===!1?this._activate(0):this.active.length&&!a.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(b.active=!1,this.active=a()):this._activate(Math.max(0,b.active-1)):b.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var b,d=this.options,e=d.heightStyle,f=this.element.parent(),g=this.accordionId="ui-accordion-"+(this.element.attr("id")||++c);this.active=this._findActive(d.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(b){var c=a(this),d=c.attr("id"),e=c.next(),f=e.attr("id");d||(d=g+"-header-"+b,c.attr("id",d)),f||(f=g+"-panel-"+b,e.attr("id",f)),c.attr("aria-controls",f),e.attr("aria-labelledby",d)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(d.event),"fill"===e?(b=f.height(),this.element.siblings(":visible").each(function(){var c=a(this),d=c.css("position");"absolute"!==d&&"fixed"!==d&&(b-=c.outerHeight(!0))}),this.headers.each(function(){b-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===e&&(b=0,this.headers.next().each(function(){b=Math.max(b,a(this).css("height","").height())}).height(b))},_activate:function(b){var c=this._findActive(b)[0];c!==this.active[0]&&(c=c||this.active[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return"number"==typeof b?this.headers.eq(b):a()},_setupEvents:function(b){var c={keydown:"_keydown"};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,c),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e[0]===d[0],g=f&&c.collapsible,h=g?a():e.next(),i=d.next(),j={oldHeader:d,oldPanel:i,newHeader:g?a():e,newPanel:h};b.preventDefault(),f&&!c.collapsible||this._trigger("beforeActivate",b,j)===!1||(c.active=!g&&this.headers.index(e),this.active=f?a():e,this._toggle(j),d.removeClass("ui-accordion-header-active ui-state-active"),c.icons&&d.children(".ui-accordion-header-icon").removeClass(c.icons.activeHeader).addClass(c.icons.header),f||(e.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),c.icons&&e.children(".ui-accordion-header-icon").removeClass(c.icons.header).addClass(c.icons.activeHeader),e.next().addClass("ui-accordion-content-active")))},_toggle:function(b){var c=b.newPanel,d=this.prevShow.length?this.prevShow:b.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=c,this.prevHide=d,this.options.animate?this._animate(c,d,b):(d.hide(),c.show(),this._toggleComplete(b)),d.attr({"aria-expanded":"false","aria-hidden":"true"}),d.prev().attr("aria-selected","false"),c.length&&d.length?d.prev().attr("tabIndex",-1):c.length&&this.headers.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),c.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(a,b,c){var f,g,h,i=this,j=0,k=a.length&&(!b.length||a.index()<b.index()),l=this.options.animate||{},m=k&&l.down||l,n=function(){i._toggleComplete(c)};return"number"==typeof m&&(h=m),"string"==typeof m&&(g=m),g=g||m.easing||l.easing,h=h||m.duration||l.duration,b.length?a.length?(f=a.show().outerHeight(),b.animate(d,{duration:h,easing:g,step:function(a,b){b.now=Math.round(a)}}),void a.hide().animate(e,{duration:h,easing:g,complete:n,step:function(a,c){c.now=Math.round(a),"height"!==c.prop?j+=c.now:"content"!==i.options.heightStyle&&(c.now=Math.round(f-b.outerHeight()-j),j=0)}})):b.animate(d,h,g,n):a.animate(e,h,g,n)},_toggleComplete:function(a){var b=a.oldPanel;b.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),b.length&&(b.parent()[0].className=b.parent()[0].className),this._trigger("activate",null,a)}})}(jQuery),function(a,b){var c=0;a.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var b,c,d,e=this.element[0].nodeName.toLowerCase(),f="textarea"===e,g="input"===e;this.isMultiLine=!!f||!g&&this.element.prop("isContentEditable"),this.valueMethod=this.element[f||g?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))return b=!0,d=!0,void(c=!0);b=!1,d=!1,c=!1;var f=a.ui.keyCode;switch(e.keyCode){case f.PAGE_UP:b=!0,this._move("previousPage",e);break;case f.PAGE_DOWN:b=!0,this._move("nextPage",e);break;case f.UP:b=!0,this._keyEvent("previous",e);break;case f.DOWN:b=!0,this._keyEvent("next",e);break;case f.ENTER:case f.NUMPAD_ENTER:this.menu.active&&(b=!0,e.preventDefault(),this.menu.select(e));break;case f.TAB:this.menu.active&&this.menu.select(e);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(e),e.preventDefault());break;default:c=!0,this._searchTimeout(e)}},keypress:function(d){if(b)return b=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||d.preventDefault());if(!c){var e=a.ui.keyCode;switch(d.keyCode){case e.PAGE_UP:this._move("previousPage",d);break;case e.PAGE_DOWN:this._move("nextPage",d);break;case e.UP:this._keyEvent("previous",d);break;case e.DOWN:this._keyEvent("next",d)}}},input:function(a){return d?(d=!1,void a.preventDefault()):void this._searchTimeout(a)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(a),void this._change(a))}}),this._initSource(),this.menu=a("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(b){b.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var c=this.menu.element[0];a(b.target).closest(".ui-menu-item").length||this._delay(function(){var b=this;this.document.one("mousedown",function(d){d.target===b.element[0]||d.target===c||a.contains(c,d.target)||b.close()})})},menufocus:function(b,c){if(this.isNewMenu&&(this.isNewMenu=!1,b.originalEvent&&/^mouse/.test(b.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){a(b.target).trigger(b.originalEvent)});var d=c.item.data("ui-autocomplete-item");!1!==this._trigger("focus",b,{item:d})?b.originalEvent&&/^key/.test(b.originalEvent.type)&&this._value(d.value):this.liveRegion.text(d.value)},menuselect:function(a,b){var c=b.item.data("ui-autocomplete-item"),d=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=d,this._delay(function(){this.previous=d,this.selectedItem=c})),!1!==this._trigger("select",a,{item:c})&&this._value(c.value),this.term=this._value(),this.close(a),this.selectedItem=c}}),this.liveRegion=a("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(a,b){this._super(a,b),"source"===a&&this._initSource(),"appendTo"===a&&this.menu.element.appendTo(this._appendTo()),"disabled"===a&&b&&this.xhr&&this.xhr.abort()},_appendTo:function(){var b=this.options.appendTo;return b&&(b=b.jquery||b.nodeType?a(b):this.document.find(b).eq(0)),b||(b=this.element.closest(".ui-front")),b.length||(b=this.document[0].body),b},_initSource:function(){var b,c,d=this;a.isArray(this.options.source)?(b=this.options.source,this.source=function(c,d){d(a.ui.autocomplete.filter(b,c.term))}):"string"==typeof this.options.source?(c=this.options.source,this.source=function(b,e){d.xhr&&d.xhr.abort(),d.xhr=a.ajax({url:c,data:b,dataType:"json",success:function(a){e(a)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,a))},this.options.delay)},search:function(a,b){return a=null!=a?a:this._value(),this.term=this._value(),a.length<this.options.minLength?this.close(b):this._trigger("search",b)!==!1?this._search(a):void 0},_search:function(a){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:a},this._response())},_response:function(){var a=this,b=++c;return function(d){b===c&&a.__response(d),a.pending--,a.pending||a.element.removeClass("ui-autocomplete-loading")}},__response:function(a){a&&(a=this._normalize(a)),this._trigger("response",null,{content:a}),!this.options.disabled&&a&&a.length&&!this.cancelSearch?(this._suggest(a),this._trigger("open")):this._close()},close:function(a){this.cancelSearch=!0,this._close(a)},_close:function(a){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",a))},_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return"string"==typeof b?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(b){var c=this.menu.element.empty();this._renderMenu(c,b),this.isNewMenu=!0,this.menu.refresh(),c.show(),this._resizeMenu(),c.position(a.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(b,c){var d=this;a.each(c,function(a,c){d._renderItemData(b,c)})},_renderItemData:function(a,b){return this._renderItem(a,b).data("ui-autocomplete-item",b)},_renderItem:function(b,c){return a("<li>").append(a("<a>").text(c.label)).appendTo(b)},_move:function(a,b){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a)?(this._value(this.term),void this.menu.blur()):void this.menu[a](b):void this.search(null,b)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,b){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(a,b),b.preventDefault())}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}}),a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(a>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(a){var b;this._superApply(arguments),this.options.disabled||this.cancelSearch||(b=a&&a.length?this.options.messages.results(a.length):this.options.messages.noResults,this.liveRegion.text(b))}})}(jQuery),function(a,b){var c,d,e,f,g="ui-button ui-widget ui-state-default ui-corner-all",h="ui-state-hover ui-state-active ",i="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",j=function(){var b=a(this);setTimeout(function(){b.find(":ui-button").button("refresh")},1)},k=function(b){var c=b.name,d=b.form,e=a([]);return c&&(c=c.replace(/'/g,"\\'"),e=d?a(d).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form})),e};a.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,j),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var b=this,h=this.options,i="checkbox"===this.type||"radio"===this.type,l=i?"":"ui-state-active",m="ui-state-focus";null===h.label&&(h.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(g).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){h.disabled||this===c&&a(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){h.disabled||a(this).removeClass(l)}).bind("click"+this.eventNamespace,function(a){h.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){b.buttonElement.addClass(m)}).bind("blur"+this.eventNamespace,function(){b.buttonElement.removeClass(m)}),i&&(this.element.bind("change"+this.eventNamespace,function(){f||b.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(a){h.disabled||(f=!1,d=a.pageX,e=a.pageY)}).bind("mouseup"+this.eventNamespace,function(a){h.disabled||d===a.pageX&&e===a.pageY||(f=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(h.disabled||f)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(h.disabled||f)return!1;a(this).addClass("ui-state-active"),b.buttonElement.attr("aria-pressed","true");var c=b.element[0];k(c).not(c).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return!h.disabled&&(a(this).addClass("ui-state-active"),c=this,void b.document.one("mouseup",function(){c=null}))}).bind("mouseup"+this.eventNamespace,function(){return!h.disabled&&void a(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(b){return!h.disabled&&void(b.keyCode!==a.ui.keyCode.SPACE&&b.keyCode!==a.ui.keyCode.ENTER||a(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()})),this._setOption("disabled",h.disabled),this._resetButton()},_determineButtonType:function(){var a,b,c;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(a=this.element.parents().last(),b="label[for='"+this.element.attr("id")+"']",this.buttonElement=a.find(b),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(b),this.buttonElement.length||(this.buttonElement=a.find(b))),this.element.addClass("ui-helper-hidden-accessible"),c=this.element.is(":checked"),c&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",c)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(g+" "+h+" "+i).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(a,b){return this._super(a,b),"disabled"===a?void(b?this.element.prop("disabled",!0):this.element.prop("disabled",!1)):void this._resetButton()},refresh:function(){var b=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");b!==this.options.disabled&&this._setOption("disabled",b),"radio"===this.type?k(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&&this.element.val(this.options.label));var b=this.buttonElement.removeClass(i),c=a("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary,f=[];d.primary||d.secondary?(this.options.text&&f.push("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary")),d.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||(f.push(e?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||b.attr("title",a.trim(c)))):f.push("ui-button-text-only"),b.addClass(f.join(" "))}}),a.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,b){"disabled"===a&&this.buttons.button("option",a,b),this._super(a,b)},refresh:function(){var b="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(b?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(a,b){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.dpDiv=f(a("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function f(b){var c="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return b.delegate(c,"mouseout",function(){a(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).removeClass("ui-datepicker-next-hover")}).delegate(c,"mouseover",function(){a.datepicker._isDisabledDatepicker(d.inline?b.parent()[0]:d.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),a(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).addClass("ui-datepicker-next-hover"))})}function g(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.extend(a.ui,{datepicker:{version:"1.10.3"}});var d,c="datepicker";a.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return g(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){var d=b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:d,input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?f(a("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(b,d){var e=a(b);d.append=a([]),d.trigger=a([]),e.hasClass(this.markerClassName)||(this._attachments(e,d),e.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(d),a.data(b,c,d),d.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a("<span class='"+this._appendClass+"'>"+g+"</span>"),b[h?"before":"after"](c.append)),b.unbind("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),"focus"!==d&&"both"!==d||b.focus(this._showDatepicker),"button"!==d&&"both"!==d||(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),c.trigger=a(this._get(c,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):a("<button type='button'></button>").addClass(this._triggerClass).html(f?a("<img/>").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;e<a.length;e++)a[e].length>c&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,d){var e=a(b);e.hasClass(this.markerClassName)||(e.addClass(this.markerClassName).append(d.dpDiv),a.data(b,c,d),this._setDate(d,this._getDefaultDate(d),!0),this._updateDatepicker(d),this._updateAlternate(d),d.settings.disabled&&this._disableDatepicker(b),d.dpDiv.css("display","block"))},_dialogDatepicker:function(b,d,e,f,h){var i,j,k,l,m,n=this._dialogInst;return n||(this.uuid+=1,i="dp"+this.uuid,this._dialogInput=a("<input type='text' id='"+i+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),n=this._dialogInst=this._newInst(this._dialogInput,!1),n.settings={},a.data(this._dialogInput[0],c,n)),g(n.settings,f||{}),d=d&&d.constructor===Date?this._formatDate(n,d):d,this._dialogInput.val(d),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(j=document.documentElement.clientWidth,k=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,m=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[j/2-100+l,k/2-150+m]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=e,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],c,n),this},_destroyDatepicker:function(b){var d,e=a(b),f=a.data(b,c);e.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),a.removeData(b,c),"input"===d?(f.append.remove(),f.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==d&&"span"!==d||e.removeClass(this.markerClassName).empty())},_enableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!1,g.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!0,g.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return!0;return!1},_getInst:function(b){try{return a.data(b,c)}catch(a){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(c,d,e){var f,h,i,j,k=this._getInst(c);return 2===arguments.length&&"string"==typeof d?"defaults"===d?a.extend({},a.datepicker._defaults):k?"all"===d?a.extend({},k.settings):this._get(k,d):null:(f=d||{},"string"==typeof d&&(f={},f[d]=e),void(k&&(this._curInst===k&&this._hideDatepicker(),h=this._getDateDatepicker(c,!0),i=this._getMinMaxDate(k,"min"),j=this._getMinMaxDate(k,"max"),g(k.settings,f),null!==i&&f.dateFormat!==b&&f.minDate===b&&(k.settings.minDate=this._formatDate(k,i)),null!==j&&f.dateFormat!==b&&f.maxDate===b&&(k.settings.maxDate=this._formatDate(k,j)),"disabled"in f&&(f.disabled?this._disableDatepicker(c):this._enableDatepicker(c)),this._attachments(a(c),k),this._autoSize(k),this._setDate(k,h),this._updateAlternate(k),this._updateDatepicker(k))))},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(b){var c,d,e,f=a.datepicker._getInst(b.target),g=!0,h=f.dpDiv.is(".ui-datepicker-rtl");if(f._keyEvent=!0,a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker(),g=!1;break;case 13:return e=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",f.dpDiv),e[0]&&a.datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,e[0]),c=a.datepicker._get(f,"onSelect"),c?(d=a.datepicker._formatDate(f),c.apply(f.input?f.input[0]:null,[d,f])):a.datepicker._hideDatepicker(),!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.datepicker._clearDate(b.target),g=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.datepicker._gotoToday(b.target),g=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?1:-1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,-7,"D"),g=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?-1:1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,7,"D"),g=b.ctrlKey||b.metaKey;break;default:g=!1}else 36===b.keyCode&&b.ctrlKey?a.datepicker._showDatepicker(this):g=!1;g&&(b.preventDefault(),b.stopPropagation())},_doKeyPress:function(b){var c,d,e=a.datepicker._getInst(b.target);if(a.datepicker._get(e,"constrainInput"))return c=a.datepicker._possibleChars(a.datepicker._get(e,"dateFormat")),d=String.fromCharCode(null==b.charCode?b.keyCode:b.charCode),b.ctrlKey||b.metaKey||d<" "||!c||c.indexOf(d)>-1},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d))}catch(a){}return!0},_showDatepicker:function(b){if(b=b.target||b,"input"!==b.nodeName.toLowerCase()&&(b=a("input",b.parentNode)[0]),!a.datepicker._isDisabledDatepicker(b)&&a.datepicker._lastInput!==b){var c,d,e,f,h,i,j;c=a.datepicker._getInst(b),a.datepicker._curInst&&a.datepicker._curInst!==c&&(a.datepicker._curInst.dpDiv.stop(!0,!0),c&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),d=a.datepicker._get(c,"beforeShow"),e=d?d.apply(b,[b,c]):{},e!==!1&&(g(c.settings,e),c.lastVal=null,a.datepicker._lastInput=b,a.datepicker._setDateFromField(c),a.datepicker._inDialog&&(b.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight),f=!1,a(b).parents().each(function(){return f|="fixed"===a(this).css("position"),!f}),h={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(c),h=a.datepicker._checkOffset(c,h,f),c.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),c.inline||(i=a.datepicker._get(c,"showAnim"),j=a.datepicker._get(c,"duration"),c.dpDiv.zIndex(a(b).zIndex()+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[i]?c.dpDiv.show(i,a.datepicker._get(c,"showOptions"),j):c.dpDiv[i||"show"](i?j:null),a.datepicker._shouldFocusInput(c)&&c.input.focus(),a.datepicker._curInst=c))}},_updateDatepicker:function(b){this.maxRows=4,d=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b),b.dpDiv.find("."+this._dayOverClass+" a").mouseover();var c,e=this._getNumberOfMonths(b),f=e[1],g=17;b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&b.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",g*f+"em"),b.dpDiv[(1!==e[0]||1!==e[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.focus(),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var d,e,f,g,h=this._curInst;!h||b&&h!==a.data(b,c)||this._datepickerShowing&&(d=this._get(h,"showAnim"),e=this._get(h,"duration"),f=function(){a.datepicker._tidyDialog(h)},a.effects&&(a.effects.effect[d]||a.effects[d])?h.dpDiv.hide(d,a.datepicker._get(h,"showOptions"),e,f):h.dpDiv["slideDown"===d?"slideUp":"fadeIn"===d?"fadeOut":"hide"](d?e:null,f),d||f(),this._datepickerShowing=!1,g=this._get(h,"onClose"),g&&g.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id===a.datepicker._mainDivId||0!==c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)&&(!c.hasClass(a.datepicker.markerClassName)||a.datepicker._curInst===d)||a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).each(function(){a(this).val(e)}))},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,t,h=0,i=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,j="string"!=typeof i?i:(new Date).getFullYear()%100+parseInt(i,10),k=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,l=(d?d.dayNames:null)||this._defaults.dayNames,m=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,n=(d?d.monthNames:null)||this._defaults.monthNames,o=-1,p=-1,q=-1,r=-1,s=!1,u=function(a){var c=e+1<b.length&&b.charAt(e+1)===a;return c&&e++,c},v=function(a){var b=u(a),d="@"===a?14:"!"===a?20:"y"===a&&b?4:"o"===a?3:2,e=new RegExp("^\\d{1,"+d+"}"),f=c.substring(h).match(e);if(!f)throw"Missing number at position "+h;return h+=f[0].length,parseInt(f[0],10)},w=function(b,d,e){var f=-1,g=a.map(u(b)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});if(a.each(g,function(a,b){var d=b[1];if(c.substr(h,d.length).toLowerCase()===d.toLowerCase())return f=b[0],h+=d.length,!1}),f!==-1)return f+1;throw"Unknown name at position "+h},x=function(){if(c.charAt(h)!==b.charAt(e))throw"Unexpected literal at position "+h;h++};for(e=0;e<b.length;e++)if(s)"'"!==b.charAt(e)||u("'")?x():s=!1;else switch(b.charAt(e)){case"d":q=v("d");break;case"D":w("D",k,l);break;case"o":r=v("o");break;case"m":p=v("m");break;case"M":p=w("M",m,n);break;case"y":o=v("y");break;case"@":t=new Date(v("@")),o=t.getFullYear(),p=t.getMonth()+1,q=t.getDate();break;case"!":t=new Date((v("!")-this._ticksTo1970)/1e4),o=t.getFullYear(),p=t.getMonth()+1,q=t.getDate();break;case"'":u("'")?x():s=!0;break;default:x()}if(h<c.length&&(g=c.substr(h),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(o===-1?o=(new Date).getFullYear():o<100&&(o+=(new Date).getFullYear()-(new Date).getFullYear()%100+(o<=j?0:-100)),r>-1)for(p=1,q=r;;){if(f=this._getDaysInMonth(o,p-1),q<=f)break;p++,q-=f}if(t=this._daylightSavingAdjust(new Date(o,p-1,q)),t.getFullYear()!==o||t.getMonth()+1!==p||t.getDate()!==q)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+1<a.length&&a.charAt(d+1)===b;return c&&d++,c},j=function(a,b,c){var d=""+b;if(i(a))for(;d.length<c;)d="0"+d;return d},k=function(a,b,c,d){return i(a)?d[b]:c[b]},l="",m=!1;if(b)for(d=0;d<a.length;d++)if(m)"'"!==a.charAt(d)||i("'")?l+=a.charAt(d):m=!1;else switch(a.charAt(d)){case"d":l+=j("d",b.getDate(),2);break;case"D":l+=k("D",b.getDay(),e,f);break;case"o":l+=j("o",Math.round((new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()-new Date(b.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=j("m",b.getMonth()+1,2);break;case"M":l+=k("M",b.getMonth(),g,h);break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=1e4*b.getTime()+this._ticksTo1970;break;case"'":i("'")?l+="'":m=!0;break;default:l+=a.charAt(d)}return l},_possibleChars:function(a){var b,c="",d=!1,e=function(c){var d=b+1<a.length&&a.charAt(b+1)===c;return d&&b++,d};for(b=0;b<a.length;b++)if(d)"'"!==a.charAt(b)||e("'")?c+=a.charAt(b):d=!1;else switch(a.charAt(b)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":e("'")?c+="'":d=!0;break;default:c+=a.charAt(b)}return c},_get:function(a,c){return a.settings[c]!==b?a.settings[c]:this._defaults[c]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var c=this._get(a,"dateFormat"),d=a.lastVal=a.input?a.input.val():null,e=this._getDefaultDate(a),f=e,g=this._getFormatConfig(a);try{f=this.parseDate(c,d,g)||e}catch(a){d=b?"":d}a.selectedDay=f.getDate(),a.drawMonth=a.selectedMonth=f.getMonth(),a.drawYear=a.selectedYear=f.getFullYear(),a.currentDay=d?f.getDate():0,a.currentMonth=d?f.getMonth():0,a.currentYear=d?f.getFullYear():0,this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(b,c,d){var e=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},f=function(c){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),c,a.datepicker._getFormatConfig(b))}catch(a){}for(var d=(c.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,e=d.getFullYear(),f=d.getMonth(),g=d.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=h.exec(c);i;){switch(i[2]||"d"){case"d":case"D":g+=parseInt(i[1],10);break;case"w":case"W":g+=7*parseInt(i[1],10);break;case"m":case"M":f+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f));break;case"y":case"Y":e+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f))}i=h.exec(c)}return new Date(e,f,g)},g=null==c||""===c?d:"string"==typeof c?f(c):"number"==typeof c?isNaN(c)?d:e(c):new Date(c.getTime());return g=g&&"Invalid Date"===g.toString()?d:g,g&&(g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0)),this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).bind(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(_<0&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&b<Z?Z:b;this._daylightSavingAdjust(new Date(aa,_,1))>b;)_--,_<0&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>":S?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>":S?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(a,"closeText")+"</button>",j=R?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Q?i:"")+(this._isInRange(a,h)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+g+"</button>":"")+(Q?"":i)+"</div>":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w<U[0];w++){for(x="",this.maxRows=4,y=0;y<U[1];y++){if(z=this._daylightSavingAdjust(new Date(aa,_,a.selectedDay)),A=" ui-corner-all",B="",X){if(B+="<div class='ui-datepicker-group",U[1]>1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+A+"'>"+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>0,o,p)+"</div><table class='ui-datepicker-calendar'><thead><tr>",C=l?"<th class='ui-datepicker-week-col'>"+this._get(a,"weekHeader")+"</th>":"",v=0;v<7;v++)D=(v+k)%7,C+="<th"+((v+k+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+m[D]+"'>"+n[D]+"</span></th>";for(B+=C+"</tr></thead><tbody>",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;J<H;J++){for(B+="<tr>",K=l?"<td class='ui-datepicker-week-col'>"+this._get(a,"calculateWeek")(I)+"</td>":"",v=0;v<7;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&I<Z||$&&I>$,K+="<td class='"+((v+k+6)%7>=5?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(I.getTime()===z.getTime()&&_===a.selectedMonth&&a._keyEvent||t.getTime()===I.getTime()&&t.getTime()===z.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!r?"":" "+L[1]+(I.getTime()===Y.getTime()?" "+this._currentClass:"")+(I.getTime()===P.getTime()?" ui-datepicker-today":""))+"'"+(M&&!r||!L[2]?"":" title='"+L[2].replace(/'/g,"'")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(M&&!r?" ":N?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===P.getTime()?" ui-state-highlight":"")+(I.getTime()===Y.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+"</tr>"}_++,_>11&&(_=0,aa++),B+="</tbody></table>"+(X?"</div>"+(U[0]>0&&y===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="<div class='ui-datepicker-title'>",u="";if(f||!q)u+="<span class='ui-datepicker-month'>"+g[b]+"</span>";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",k=0;k<12;k++)(!i||k>=d.getMonth())&&(!j||k<=e.getMonth())&&(u+="<option value='"+k+"'"+(k===b?" selected='selected'":"")+">"+h[k]+"</option>");u+="</select>"}if(s||(t+=u+(!f&&q&&r?"":" ")),!a.yearshtml)if(a.yearshtml="",f||!r)t+="<span class='ui-datepicker-year'>"+c+"</span>";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";o<=p;o++)a.yearshtml+="<option value='"+o+"'"+(o===c?" selected='selected'":"")+">"+o+"</option>";a.yearshtml+="</select>",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":" ")+u),t+="</div>"},_adjustInstDate:function(a,b,c){var d=a.drawYear+("Y"===c?b:0),e=a.drawMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),"M"!==c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&b<c?c:b;return d&&e>d?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new e,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.10.3"}(jQuery),function(a,b){var c={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},d={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&a.fn.draggable&&this._makeDraggable(),this.options.resizable&&a.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var b=this.options.appendTo;return b&&(b.jquery||b.nodeType)?a(b):this.document.find(b||"body").eq(0)},_destroy:function(){var a,b=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),a=b.parent.children().eq(b.index),a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)},widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(b){var c=this;this._isOpen&&this._trigger("beforeClose",b)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||a(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",b)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(a,b){var c=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return c&&!b&&this._trigger("focus",a),c},open:function(){var b=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=a(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){b._focusTabbable(),b._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var a=this.element.find("[autofocus]");a.length||(a=this.element.find(":tabbable")),a.length||(a=this.uiDialogButtonPane.find(":tabbable")),a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable")),a.length||(a=this.uiDialog),a.eq(0).focus()},_keepFocus:function(b){function c(){var b=this.document[0].activeElement,c=this.uiDialog[0]===b||a.contains(this.uiDialog[0],b);c||this._focusTabbable()}b.preventDefault(),c.call(this),this._delay(c)},_createWrapper:function(){this.uiDialog=a("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(b){if(this.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE)return b.preventDefault(),void this.close(b);if(b.keyCode===a.ui.keyCode.TAB){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");b.target!==e[0]&&b.target!==this.uiDialog[0]||b.shiftKey?b.target!==d[0]&&b.target!==this.uiDialog[0]||!b.shiftKey||(e.focus(1),b.preventDefault()):(d.focus(1),b.preventDefault())}},mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var b;this.uiDialogTitlebar=a("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(b){a(b.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=a("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault(),this.close(a)}}),b=a("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(b),this.uiDialog.attr({"aria-labelledby":b.attr("id")})},_title:function(a){this.options.title||a.html(" "),a.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=a("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=a("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var b=this,c=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),a.isEmptyObject(c)||a.isArray(c)&&!c.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(a.each(c,function(c,d){var e,f;d=a.isFunction(d)?{click:d,text:c}:d,d=a.extend({type:"button"},d),e=d.click,d.click=function(){e.apply(b.element[0],arguments)},f={icons:d.icons,text:d.showText},delete d.icons,delete d.showText,a("<button></button>",d).button(f).appendTo(b.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function d(a){return{position:a.position,offset:a.offset}}var b=this,c=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(c,e){a(this).addClass("ui-dialog-dragging"),b._blockFrames(),b._trigger("dragStart",c,d(e))},drag:function(a,c){b._trigger("drag",a,d(c))},stop:function(e,f){c.position=[f.position.left-b.document.scrollLeft(),f.position.top-b.document.scrollTop()],a(this).removeClass("ui-dialog-dragging"),b._unblockFrames(),b._trigger("dragStop",e,d(f))}})},_makeResizable:function(){function g(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var b=this,c=this.options,d=c.resizable,e=this.uiDialog.css("position"),f="string"==typeof d?d:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:this._minHeight(),handles:f,start:function(c,d){a(this).addClass("ui-dialog-resizing"),b._blockFrames(),b._trigger("resizeStart",c,g(d))},resize:function(a,c){b._trigger("resize",a,g(c))},stop:function(d,e){c.height=a(this).height(),c.width=a(this).width(),a(this).removeClass("ui-dialog-resizing"),b._unblockFrames(),b._trigger("resizeStop",d,g(e))}}).css("position",e)},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show(),this.uiDialog.position(this.options.position),a||this.uiDialog.hide()},_setOptions:function(b){var e=this,f=!1,g={};a.each(b,function(a,b){e._setOption(a,b),a in c&&(f=!0),a in d&&(g[a]=b)}),f&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(a,b){var c,d,e=this.uiDialog;"dialogClass"===a&&e.removeClass(this.options.dialogClass).addClass(b),"disabled"!==a&&(this._super(a,b),"appendTo"===a&&this.uiDialog.appendTo(this._appendTo()),"buttons"===a&&this._createButtons(),"closeText"===a&&this.uiDialogTitlebarClose.button({label:""+b}),"draggable"===a&&(c=e.is(":data(ui-draggable)"),c&&!b&&e.draggable("destroy"),!c&&b&&this._makeDraggable()),"position"===a&&this._position(),"resizable"===a&&(d=e.is(":data(ui-resizable)"),d&&!b&&e.resizable("destroy"),d&&"string"==typeof b&&e.resizable("option","handles",b),d||b===!1||this._makeResizable()),"title"===a&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var a,b,c,d=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),d.minWidth>d.width&&(d.width=d.minWidth),a=this.uiDialog.css({height:"auto",width:d.width}).outerHeight(),b=Math.max(0,d.minHeight-a),c="number"==typeof d.maxHeight?Math.max(0,d.maxHeight-a):"none","auto"===d.height?this.element.css({minHeight:b,maxHeight:c,height:"auto"}):this.element.height(Math.max(0,d.height-a)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var b=a(this);return a("<div>").css({position:"absolute",width:b.outerWidth(),height:b.outerHeight()}).appendTo(b.parent()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(b){return!!a(b.target).closest(".ui-dialog").length||!!a(b.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var b=this,c=this.widgetFullName;a.ui.dialog.overlayInstances||this._delay(function(){a.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(d){b._allowInteraction(d)||(d.preventDefault(),a(".ui-dialog:visible:last .ui-dialog-content").data(c)._focusTabbable())})}),this.overlay=a("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),a.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(a.ui.dialog.overlayInstances--,a.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),a.ui.dialog.overlayInstances=0,a.uiBackCompat!==!1&&a.widget("ui.dialog",a.ui.dialog,{_position:function(){var e,b=this.options.position,c=[],d=[0,0];b?(("string"==typeof b||"object"==typeof b&&"0"in b)&&(c=b.split?b.split(" "):[b[0],b[1]],1===c.length&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c[0]+(d[0]<0?d[0]:"+"+d[0])+" "+c[1]+(d[1]<0?d[1]:"+"+d[1]),at:c.join(" ")}),b=a.extend({},a.ui.dialog.prototype.options.position,b)):b=a.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(b),e||this.uiDialog.hide()}})}(jQuery),function(a,b){var c=/up|down|vertical/,d=/up|left|vertical|horizontal/;a.effects.effect.blind=function(b,e){var p,q,r,f=a(this),g=["position","top","bottom","left","right","height","width"],h=a.effects.setMode(f,b.mode||"hide"),i=b.direction||"up",j=c.test(i),k=j?"height":"width",l=j?"top":"left",m=d.test(i),n={},o="show"===h;f.parent().is(".ui-effects-wrapper")?a.effects.save(f.parent(),g):a.effects.save(f,g),f.show(),p=a.effects.createWrapper(f).css({overflow:"hidden"}),q=p[k](),r=parseFloat(p.css(l))||0,n[k]=o?q:0,m||(f.css(j?"bottom":"right",0).css(j?"top":"left","auto").css({position:"absolute"}),n[l]=o?r:q+r),o&&(p.css(k,0),m||p.css(l,r+q)),p.animate(n,{duration:b.duration,easing:b.easing,queue:!1,complete:function(){"hide"===h&&f.hide(),a.effects.restore(f,g),a.effects.removeWrapper(f),e()}})}}(jQuery),function(a,b){a.effects.effect.bounce=function(b,c){var q,r,s,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g="hide"===f,h="show"===f,i=b.direction||"up",j=b.distance,k=b.times||5,l=2*k+(h||g?1:0),m=b.duration/l,n=b.easing,o="up"===i||"down"===i?"top":"left",p="up"===i||"left"===i,t=d.queue(),u=t.length;for((h||g)&&e.push("opacity"),a.effects.save(d,e),d.show(),a.effects.createWrapper(d),j||(j=d["top"===o?"outerHeight":"outerWidth"]()/3),h&&(s={opacity:1},s[o]=0,d.css("opacity",0).css(o,p?2*-j:2*j).animate(s,m,n)),g&&(j/=Math.pow(2,k-1)),s={},s[o]=0,q=0;q<k;q++)r={},r[o]=(p?"-=":"+=")+j,d.animate(r,m,n).animate(s,m,n),j=g?2*j:j/2;g&&(r={opacity:0},r[o]=(p?"-=":"+=")+j,d.animate(r,m,n)),d.queue(function(){g&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}),u>1&&t.splice.apply(t,[1,0].concat(t.splice(u,l+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.clip=function(b,c){var m,n,o,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"vertical",i="vertical"===h,j=i?"height":"width",k=i?"top":"left",l={};a.effects.save(d,e),d.show(),m=a.effects.createWrapper(d).css({overflow:"hidden"}),n="IMG"===d[0].tagName?m:d,o=n[j](),g&&(n.css(j,0),n.css(k,o/2)),l[j]=g?o:0,l[k]=g?0:o/2,n.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){g||d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.drop=function(b,c){var l,d=a(this),e=["position","top","bottom","left","right","opacity","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h?"pos":"neg",k={opacity:g?1:0};a.effects.save(d,e),d.show(),a.effects.createWrapper(d),l=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0)/2,g&&d.css("opacity",0).css(i,"pos"===j?-l:l),k[i]=(g?"pos"===j?"+=":"-=":"pos"===j?"-=":"+=")+l,d.animate(k,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.explode=function(b,c){function s(){l.push(this),l.length===d*e&&t()}function t(){f.css({visibility:"visible"}),a(l).remove(),h||f.hide(),c()}var m,n,o,p,q,r,d=b.pieces?Math.round(Math.sqrt(b.pieces)):3,e=d,f=a(this),g=a.effects.setMode(f,b.mode||"hide"),h="show"===g,i=f.show().css("visibility","hidden").offset(),j=Math.ceil(f.outerWidth()/e),k=Math.ceil(f.outerHeight()/d),l=[];for(m=0;m<d;m++)for(p=i.top+m*k,r=m-(d-1)/2,n=0;n<e;n++)o=i.left+n*j,q=n-(e-1)/2,f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*j,top:-m*k}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j,height:k,left:o+(h?q*j:0),top:p+(h?r*k:0),opacity:h?0:1}).animate({left:o+(h?0:q*j),top:p+(h?0:r*k),opacity:h?1:0},b.duration||500,b.easing,s)}}(jQuery),function(a,b){a.effects.effect.fade=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"toggle");d.animate({opacity:e},{queue:!1,duration:b.duration,easing:b.easing,complete:c})}}(jQuery),function(a,b){a.effects.effect.fold=function(b,c){var o,p,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h="hide"===f,i=b.size||15,j=/([0-9]+)%/.exec(i),k=!!b.horizFirst,l=g!==k,m=l?["width","height"]:["height","width"],n=b.duration/2,q={},r={};a.effects.save(d,e),d.show(),o=a.effects.createWrapper(d).css({overflow:"hidden"}),p=l?[o.width(),o.height()]:[o.height(),o.width()],j&&(i=parseInt(j[1],10)/100*p[h?0:1]),g&&o.css(k?{height:0,width:i}:{height:i,width:0}),q[m[0]]=g?p[0]:i,r[m[1]]=g?p[1]:0,o.animate(q,n,b.easing).animate(r,n,b.easing,function(){h&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()})}}(jQuery),function(a,b){a.effects.effect.highlight=function(b,c){var d=a(this),e=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(d,b.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===f&&(g.opacity=0),a.effects.save(d,e),d.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(g,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),c()}})}}(jQuery),function(a,b){a.effects.effect.pulsate=function(b,c){var n,d=a(this),e=a.effects.setMode(d,b.mode||"show"),f="show"===e,g="hide"===e,h=f||"hide"===e,i=2*(b.times||5)+(h?1:0),j=b.duration/i,k=0,l=d.queue(),m=l.length;for(!f&&d.is(":visible")||(d.css("opacity",0).show(),k=1),n=1;n<i;n++)d.animate({opacity:k},j,b.easing),k=1-k;d.animate({opacity:k},j,b.easing),d.queue(function(){g&&d.hide(),c()}),m>1&&l.splice.apply(l,[1,0].concat(l.splice(m,i+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.puff=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"hide"),f="hide"===e,g=parseInt(b.percent,10)||150,h=g/100,i={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()};a.extend(b,{effect:"scale",queue:!1,fade:!0,mode:e,complete:c,percent:f?g:100,from:f?i:{height:i.height*h,width:i.width*h,outerHeight:i.outerHeight*h,outerWidth:i.outerWidth*h}}),d.effect(b)},a.effects.effect.scale=function(b,c){var d=a(this),e=a.extend(!0,{},b),f=a.effects.setMode(d,b.mode||"effect"),g=parseInt(b.percent,10)||(0===parseInt(b.percent,10)?0:"hide"===f?0:100),h=b.direction||"both",i=b.origin,j={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()},k={y:"horizontal"!==h?g/100:1,x:"vertical"!==h?g/100:1};e.effect="size",e.queue=!1,e.complete=c,"effect"!==f&&(e.origin=i||["middle","center"],e.restore=!0),e.from=b.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:j),e.to={height:j.height*k.y,width:j.width*k.x,outerHeight:j.outerHeight*k.y,outerWidth:j.outerWidth*k.x},e.fade&&("show"===f&&(e.from.opacity=0,e.to.opacity=1),"hide"===f&&(e.from.opacity=1,e.to.opacity=0)),d.effect(e)},a.effects.effect.size=function(b,c){var d,e,f,g=a(this),h=["position","top","bottom","left","right","width","height","overflow","opacity"],i=["position","top","bottom","left","right","overflow","opacity"],j=["width","height","overflow"],k=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],m=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=a.effects.setMode(g,b.mode||"effect"),o=b.restore||"effect"!==n,p=b.scale||"both",q=b.origin||["middle","center"],r=g.css("position"),s=o?h:i,t={height:0,width:0,outerHeight:0,outerWidth:0};"show"===n&&g.show(),d={height:g.height(),width:g.width(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth()},"toggle"===b.mode&&"show"===n?(g.from=b.to||t,g.to=b.from||d):(g.from=b.from||("show"===n?t:d),g.to=b.to||("hide"===n?t:d)),f={from:{y:g.from.height/d.height,x:g.from.width/d.width},to:{y:g.to.height/d.height,x:g.to.width/d.width}},"box"!==p&&"both"!==p||(f.from.y!==f.to.y&&(s=s.concat(l),g.from=a.effects.setTransition(g,l,f.from.y,g.from),g.to=a.effects.setTransition(g,l,f.to.y,g.to)),f.from.x!==f.to.x&&(s=s.concat(m),g.from=a.effects.setTransition(g,m,f.from.x,g.from),g.to=a.effects.setTransition(g,m,f.to.x,g.to))),"content"!==p&&"both"!==p||f.from.y!==f.to.y&&(s=s.concat(k).concat(j),g.from=a.effects.setTransition(g,k,f.from.y,g.from),g.to=a.effects.setTransition(g,k,f.to.y,g.to)),a.effects.save(g,s),g.show(),a.effects.createWrapper(g),g.css("overflow","hidden").css(g.from),q&&(e=a.effects.getBaseline(q,d),g.from.top=(d.outerHeight-g.outerHeight())*e.y,g.from.left=(d.outerWidth-g.outerWidth())*e.x,g.to.top=(d.outerHeight-g.to.outerHeight)*e.y,g.to.left=(d.outerWidth-g.to.outerWidth)*e.x),g.css(g.from),"content"!==p&&"both"!==p||(l=l.concat(["marginTop","marginBottom"]).concat(k),m=m.concat(["marginLeft","marginRight"]),j=h.concat(l).concat(m),g.find("*[width]").each(function(){var c=a(this),d={height:c.height(),width:c.width(),outerHeight:c.outerHeight(),outerWidth:c.outerWidth()};o&&a.effects.save(c,j),c.from={height:d.height*f.from.y,width:d.width*f.from.x,outerHeight:d.outerHeight*f.from.y,outerWidth:d.outerWidth*f.from.x},c.to={height:d.height*f.to.y,width:d.width*f.to.x,outerHeight:d.height*f.to.y,outerWidth:d.width*f.to.x},f.from.y!==f.to.y&&(c.from=a.effects.setTransition(c,l,f.from.y,c.from),c.to=a.effects.setTransition(c,l,f.to.y,c.to)),f.from.x!==f.to.x&&(c.from=a.effects.setTransition(c,m,f.from.x,c.from),c.to=a.effects.setTransition(c,m,f.to.x,c.to)),c.css(c.from),c.animate(c.to,b.duration,b.easing,function(){o&&a.effects.restore(c,j)})})),g.animate(g.to,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){0===g.to.opacity&&g.css("opacity",g.from.opacity),"hide"===n&&g.hide(),a.effects.restore(g,s),o||("static"===r?g.css({position:"relative",top:g.to.top,left:g.to.left}):a.each(["top","left"],function(a,b){g.css(b,function(b,c){var d=parseInt(c,10),e=a?g.to.left:g.to.top;return"auto"===c?e+"px":d+e+"px"})})),a.effects.removeWrapper(g),c()}})}}(jQuery),function(a,b){a.effects.effect.shake=function(b,c){var q,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g=b.direction||"left",h=b.distance||20,i=b.times||3,j=2*i+1,k=Math.round(b.duration/j),l="up"===g||"down"===g?"top":"left",m="up"===g||"left"===g,n={},o={},p={},r=d.queue(),s=r.length;for(a.effects.save(d,e),d.show(),a.effects.createWrapper(d),n[l]=(m?"-=":"+=")+h,o[l]=(m?"+=":"-=")+2*h,p[l]=(m?"-=":"+=")+2*h,d.animate(n,k,b.easing),q=1;q<i;q++)d.animate(o,k,b.easing).animate(p,k,b.easing);d.animate(o,k,b.easing).animate(n,k/2,b.easing).queue(function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}),s>1&&r.splice.apply(r,[1,0].concat(r.splice(s,j+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.slide=function(b,c){var k,d=a(this),e=["position","top","bottom","left","right","width","height"],f=a.effects.setMode(d,b.mode||"show"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h,l={};a.effects.save(d,e),d.show(),k=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(d).css({overflow:"hidden"}),g&&d.css(i,j?isNaN(k)?"-"+k:-k:k),l[i]=(g?j?"+=":"-=":j?"-=":"+=")+k,d.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.transfer=function(b,c){var d=a(this),e=a(b.to),f="fixed"===e.css("position"),g=a("body"),h=f?g.scrollTop():0,i=f?g.scrollLeft():0,j=e.offset(),k={top:j.top-h,left:j.left-i,height:e.innerHeight(),width:e.innerWidth()},l=d.offset(),m=a("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(b.className).css({top:l.top-h,left:l.left-i,height:d.innerHeight(),width:d.innerWidth(),position:f?"fixed":"absolute"}).animate(k,b.duration,b.easing,function(){m.remove(),c()})}}(jQuery),function(a,b){a.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(a){this.options.disabled&&a.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(b){var c=a(b.target).closest(".ui-menu-item");!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(b),c.has(".ui-menu").length?this.expand(b):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(b){var c=a(b.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(b,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,c)},blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(b){function i(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var c,d,e,f,g,h=!0;switch(b.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(b);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(b);break;case a.ui.keyCode.HOME:this._move("first","first",b);break;case a.ui.keyCode.END:this._move("last","last",b);break;case a.ui.keyCode.UP:this.previous(b);break;case a.ui.keyCode.DOWN:this.next(b);break;case a.ui.keyCode.LEFT:this.collapse(b);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(b);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(b);break;case a.ui.keyCode.ESCAPE:this.collapse(b);break;default:h=!1,d=this.previousFilter||"",e=String.fromCharCode(b.keyCode),f=!1,clearTimeout(this.filterTimer),e===d?f=!0:e=d+e,g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())}),c=f&&c.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):c,c.length||(e=String.fromCharCode(b.keyCode),g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())})),c.length?(this.focus(b,c),c.length>1?(this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&b.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var b,c=this.options.icons.submenu,d=this.element.find(this.options.menus);d.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var b=a(this),d=b.prev("a"),e=a("<span>").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(e),b.attr("aria-labelledby",d.attr("id"))}),b=d.add(this.element),b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),b.children(":not(.ui-menu-item)").each(function(){var b=a(this);/[^\-\u2014\u2013\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")}),b.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(a,b){"icons"===a&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(b.submenu),this._super(a,b)},focus:function(a,b){var c,d;this.blur(a,a&&"focus"===a.type),this._scrollIntoView(b),this.active=b.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),c=b.children(".ui-menu"),c.length&&/^mouse/.test(a.type)&&this._startOpening(c),this.activeMenu=b.parent(),this._trigger("focus",a,{item:b})},_scrollIntoView:function(b){var c,d,e,f,g,h;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,e=b.offset().top-this.activeMenu.offset().top-c-d,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=b.height(),e<0?this.activeMenu.scrollTop(f+e):e+h>g&&this.activeMenu.scrollTop(f+e-g+h))},blur:function(a,b){b||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer),"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(a)},this.delay))},_open:function(b){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true"),b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(b,c){clearTimeout(this.timer),this.timer=this._delay(function(){var d=c?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(b),this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element),a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var d;this.active&&(d="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[b]()),this.focus(c,d)},nextPage:function(b){var c,d,e;return this.active?void(this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d-e<0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(b)},previousPage:function(b){var c,d,e;return this.active?void(this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d+e>0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item").first()))):void this.next(b)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(b){this.active=this.active||a(b.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(b,!0),this._trigger("select",b,c)}})}(jQuery),function(a,b){function m(a,b,c){return[parseFloat(a[0])*(k.test(a[0])?b/100:1),parseFloat(a[1])*(k.test(a[1])?c/100:1)]}function n(b,c){return parseInt(a.css(b,c),10)||0}function o(b){var c=b[0];return 9===c.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:a.isWindow(c)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}a.ui=a.ui||{};var c,d=Math.max,e=Math.abs,f=Math.round,g=/left|center|right/,h=/top|center|bottom/,i=/[\+\-]\d+(\.[\d]+)?%?/,j=/^\w+/,k=/%$/,l=a.fn.position;a.position={scrollbarWidth:function(){if(c!==b)return c;var d,e,f=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),g=f.children()[0];return a("body").append(f),d=g.offsetWidth,f.css("overflow","scroll"),e=g.offsetWidth,d===e&&(e=f[0].clientWidth),f.remove(),c=d-e},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width<b.element[0].scrollWidth,f="scroll"===d||"auto"===d&&b.height<b.element[0].scrollHeight;return{width:f?a.position.scrollbarWidth():0,height:e?a.position.scrollbarWidth():0}},getWithinInfo:function(b){var c=a(b||window),d=a.isWindow(c[0]);return{element:c,isWindow:d,offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:d?c.width():c.outerWidth(),height:d?c.height():c.outerHeight()}}},a.fn.position=function(b){if(!b||!b.of)return l.apply(this,arguments);b=a.extend({},b);var c,k,p,q,r,s,t=a(b.of),u=a.position.getWithinInfo(b.within),v=a.position.getScrollInfo(u),w=(b.collision||"flip").split(" "),x={};return s=o(t),t[0].preventDefault&&(b.at="left top"),k=s.width,p=s.height,q=s.offset,r=a.extend({},q),a.each(["my","at"],function(){var c,d,a=(b[this]||"").split(" ");1===a.length&&(a=g.test(a[0])?a.concat(["center"]):h.test(a[0])?["center"].concat(a):["center","center"]),a[0]=g.test(a[0])?a[0]:"center",a[1]=h.test(a[1])?a[1]:"center",c=i.exec(a[0]),d=i.exec(a[1]),x[this]=[c?c[0]:0,d?d[0]:0],b[this]=[j.exec(a[0])[0],j.exec(a[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===b.at[0]?r.left+=k:"center"===b.at[0]&&(r.left+=k/2),"bottom"===b.at[1]?r.top+=p:"center"===b.at[1]&&(r.top+=p/2),c=m(x.at,k,p),r.left+=c[0],r.top+=c[1],this.each(function(){var g,h,i=a(this),j=i.outerWidth(),l=i.outerHeight(),o=n(this,"marginLeft"),s=n(this,"marginTop"),y=j+o+n(this,"marginRight")+v.width,z=l+s+n(this,"marginBottom")+v.height,A=a.extend({},r),B=m(x.my,i.outerWidth(),i.outerHeight());"right"===b.my[0]?A.left-=j:"center"===b.my[0]&&(A.left-=j/2),"bottom"===b.my[1]?A.top-=l:"center"===b.my[1]&&(A.top-=l/2),A.left+=B[0],A.top+=B[1],a.support.offsetFractions||(A.left=f(A.left),A.top=f(A.top)),g={marginLeft:o,marginTop:s},a.each(["left","top"],function(d,e){a.ui.position[w[d]]&&a.ui.position[w[d]][e](A,{targetWidth:k,targetHeight:p,elemWidth:j,elemHeight:l,collisionPosition:g,collisionWidth:y,collisionHeight:z,offset:[c[0]+B[0],c[1]+B[1]],my:b.my,at:b.at,within:u,elem:i})}),b.using&&(h=function(a){var c=q.left-A.left,f=c+k-j,g=q.top-A.top,h=g+p-l,m={target:{element:t,left:q.left,top:q.top,width:k,height:p},element:{element:i,left:A.left,top:A.top,width:j,height:l},horizontal:f<0?"left":c>0?"right":"center",vertical:h<0?"top":g>0?"bottom":"middle"};k<j&&e(c+f)<k&&(m.horizontal="center"),p<l&&e(g+h)<p&&(m.vertical="middle"),d(e(c),e(f))>d(e(g),e(h))?m.important="horizontal":m.important="vertical",b.using.call(this,a,m)}),i.offset(a.extend(A,{using:h}))})},a.ui.position={fit:{left:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollLeft:c.offset.left,f=c.width,g=a.left-b.collisionPosition.marginLeft,h=e-g,i=g+b.collisionWidth-f-e;b.collisionWidth>f?h>0&&i<=0?(j=a.left+h+b.collisionWidth-f-e,a.left+=h-j):i>0&&h<=0?a.left=e:h>i?a.left=e+f-b.collisionWidth:a.left=e:h>0?a.left+=h:i>0?a.left-=i:a.left=d(a.left-g,a.left)},top:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollTop:c.offset.top,f=b.within.height,g=a.top-b.collisionPosition.marginTop,h=e-g,i=g+b.collisionHeight-f-e;b.collisionHeight>f?h>0&&i<=0?(j=a.top+h+b.collisionHeight-f-e,a.top+=h-j):i>0&&h<=0?a.top=e:h>i?a.top=e+f-b.collisionHeight:a.top=e:h>0?a.top+=h:i>0?a.top-=i:a.top=d(a.top-g,a.top)}},flip:{left:function(a,b){var n,o,c=b.within,d=c.offset.left+c.scrollLeft,f=c.width,g=c.isWindow?c.scrollLeft:c.offset.left,h=a.left-b.collisionPosition.marginLeft,i=h-g,j=h+b.collisionWidth-f-g,k="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,l="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,m=-2*b.offset[0];i<0?(n=a.left+k+l+m+b.collisionWidth-f-d,(n<0||n<e(i))&&(a.left+=k+l+m)):j>0&&(o=a.left-b.collisionPosition.marginLeft+k+l+m-g,(o>0||e(o)<j)&&(a.left+=k+l+m))},top:function(a,b){var o,p,c=b.within,d=c.offset.top+c.scrollTop,f=c.height,g=c.isWindow?c.scrollTop:c.offset.top,h=a.top-b.collisionPosition.marginTop,i=h-g,j=h+b.collisionHeight-f-g,k="top"===b.my[1],l=k?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,m="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,n=-2*b.offset[1];i<0?(p=a.top+l+m+n+b.collisionHeight-f-d,a.top+l+m+n>i&&(p<0||p<e(i))&&(a.top+=l+m+n)):j>0&&(o=a.top-b.collisionPosition.marginTop+l+m+n-g,a.top+l+m+n>j&&(o>0||e(o)<j)&&(a.top+=l+m+n))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments),a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments),a.ui.position.fit.top.apply(this,arguments)}}},function(){var b,c,d,e,f,g=document.getElementsByTagName("body")[0],h=document.createElement("div");b=document.createElement(g?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},g&&a.extend(d,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in d)b.style[f]=d[f];b.appendChild(h),c=g||document.documentElement,c.insertBefore(b,c.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",e=a(h).offset().left,a.support.offsetFractions=e>10&&e<11,b.innerHTML="",c.removeChild(b)}()}(jQuery),function(a,b){a.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(a){return a===b?this.options.value:(this.options.value=this._constrainedValue(a),void this._refreshValue())},_constrainedValue:function(a){return a===b&&(a=this.options.value),this.indeterminate=a===!1,"number"!=typeof a&&(a=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var b=a.value;delete a.value,this._super(a),this.options.value=this._constrainedValue(b),this._refreshValue()},_setOption:function(a,b){"max"===a&&(b=Math.max(this.min,b)),this._super(a,b)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var b=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||b>this.min).toggleClass("ui-corner-right",b===this.options.max).width(c.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=a("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":b}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==b&&(this.oldValue=b,this._trigger("change")),b===this.options.max&&this._trigger("complete")}})}(jQuery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var b,c,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",g=[];for(c=d.values&&d.values.length||1,e.length>c&&(e.slice(c).remove(),e=e.slice(0,c)),b=e.length;b<c;b++)g.push(f);this.handles=e.add(a(g.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(b){a(this).data("ui-slider-handle-index",b)})},_createRange:function(){var b=this.options,c="";b.range?(b.range===!0&&(b.values?b.values.length&&2!==b.values.length?b.values=[b.values[0],b.values[0]]:a.isArray(b.values)&&(b.values=b.values.slice(0)):b.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=a("<div></div>").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===b.range||"max"===b.range?" ui-slider-range-"+b.range:""))):this.range=a([])},_setupEvents:function(){var a=this.handles.add(this.range).filter("a");this._off(a),this._on(a,this._handleEvents),this._hoverable(a),this._focusable(a)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(b){var c,d,e,f,g,h,i,j,k=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:b.pageX,y:b.pageY},d=this._normValueFromMouse(c),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(b){var c=Math.abs(d-k.values(b));(e>c||e===c&&(b===k._lastChangedValue||k.values(b)===l.min))&&(e=c,f=a(this),g=b)}),h=this._start(b,g),h!==!1&&(this._mouseSliding=!0,this._handleIndex=g,f.addClass("ui-state-active").focus(),i=f.offset(),j=!a(b.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}:{left:b.pageX-i.left-f.width()/2,top:b.pageY-i.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,g,d),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return"horizontal"===this.orientation?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),"vertical"===this.orientation&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),2===this.options.values.length&&this.options.range===!0&&(0===b&&c>d||1===b&&c<d)&&(c=d),c!==this.values(b)&&(e=this.values(),e[b]=c,f=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e}),d=this.values(b?0:1),f!==!1&&this.values(b,c,!0))):c!==this.value()&&(f=this._trigger("slide",a,{handle:this.handles[b],value:c}),f!==!1&&this.value(c))},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._lastChangedValue=b,this._trigger("change",a,c)}},value:function(a){return arguments.length?(this.options.value=this._trimAlignValue(a),this._refreshValue(),void this._change(null,0)):this._value()},values:function(b,c){var d,e,f;if(arguments.length>1)return this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),void this._change(null,b);if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();for(d=this.options.values,e=arguments[0],f=0;f<d.length;f+=1)d[f]=this._trimAlignValue(e[f]),this._change(null,f);this._refreshValue()},_setOption:function(b,c){var d,e=0;switch("range"===b&&this.options.range===!0&&("min"===c?(this.options.value=this._values(0),this.options.values=null):"max"===c&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),a.isArray(this.options.values)&&(e=this.options.values.length),a.Widget.prototype._setOption.apply(this,arguments),b){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),d=0;d<e;d+=1)this._change(null,d);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c,d;if(arguments.length)return b=this.options.values[a],b=this._trimAlignValue(b);if(this.options.values&&this.options.values.length){for(c=this.options.values.slice(),d=0;d<c.length;d+=1)c[d]=this._trimAlignValue(c[d]);return c}return[]},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return 2*Math.abs(c)>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b,c,d,e,f,g=this.options.range,h=this.options,i=this,j=!this._animateOff&&h.animate,k={};this.options.values&&this.options.values.length?this.handles.each(function(d){c=(i.values(d)-i._valueMin())/(i._valueMax()-i._valueMin())*100,k["horizontal"===i.orientation?"left":"bottom"]=c+"%",a(this).stop(1,1)[j?"animate":"css"](k,h.animate),i.options.range===!0&&("horizontal"===i.orientation?(0===d&&i.range.stop(1,1)[j?"animate":"css"]({left:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({width:c-b+"%"},{queue:!1,duration:h.animate})):(0===d&&i.range.stop(1,1)[j?"animate":"css"]({bottom:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({height:c-b+"%"},{queue:!1,duration:h.animate}))),b=c}):(d=this.value(),e=this._valueMin(),f=this._valueMax(),c=f!==e?(d-e)/(f-e)*100:0,k["horizontal"===this.orientation?"left":"bottom"]=c+"%",this.handle.stop(1,1)[j?"animate":"css"](k,h.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({width:c+"%"},h.animate),"max"===g&&"horizontal"===this.orientation&&this.range[j?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:h.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({height:c+"%"},h.animate),"max"===g&&"vertical"===this.orientation&&this.range[j?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:h.animate}))},_handleEvents:{keydown:function(b){var d,e,f,g,h=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),d=this._start(b,h),d===!1))return}switch(g=this.options.step,e=f=this.options.values&&this.options.values.length?this.values(h):this.value(),b.keyCode){case a.ui.keyCode.HOME:f=this._valueMin();break;case a.ui.keyCode.END:f=this._valueMax();break;case a.ui.keyCode.PAGE_UP:f=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.PAGE_DOWN:f=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(e===this._valueMax())return;f=this._trimAlignValue(e+g);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(e===this._valueMin())return;f=this._trimAlignValue(e-g)}this._slide(b,h,f)},click:function(a){a.preventDefault()},keyup:function(b){var c=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,c),this._change(b,c),a(b.target).removeClass("ui-state-active"))}}})}(jQuery),function(a){function b(a){return function(){var b=this.element.val();a.apply(this,arguments),this._refresh(),b!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.10.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var b={},c=this.element;return a.each(["min","max","step"],function(a,d){var e=c.attr(d);void 0!==e&&e.length&&(b[d]=e)}),b},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",a)))},mousewheel:function(a,b){if(b){if(!this.spinning&&!this._start(a))return!1;this._spin((b>0?1:-1)*this.options.step,a),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100),a.preventDefault()}},"mousedown .ui-spinner-button":function(b){function d(){var a=this.element[0]===this.document[0].activeElement;a||(this.element.focus(),this.previous=c,this._delay(function(){this.previous=c}))}var c;c=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),b.preventDefault(),d.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,d.call(this)}),this._start(b)!==!1&&this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(b){if(a(b.currentTarget).hasClass("ui-state-active"))return this._start(b)!==!1&&void this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var a=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=a.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*a.height())&&a.height()>0&&a.height(a.height()),this.options.disabled&&this.disable()},_keydown:function(b){var c=this.options,d=a.ui.keyCode;switch(b.keyCode){case d.UP:return this._repeat(null,1,b),!0;case d.DOWN:return this._repeat(null,-1,b),!0;case d.PAGE_UP:return this._repeat(null,c.page,b),!0;case d.PAGE_DOWN:return this._repeat(null,-c.page,b),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>▲</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>▼</span></a>"},_start:function(a){return!(!this.spinning&&this._trigger("start",a)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(a,b,c){a=a||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,b,c)},a),this._spin(b*this.options.step,c)},_spin:function(a,b){var c=this.value()||0;this.counter||(this.counter=1),c=this._adjustValue(c+a*this._increment(this.counter)),this.spinning&&this._trigger("spin",b,{value:c})===!1||(this._value(c),this.counter++)},_increment:function(b){var c=this.options.incremental;return c?a.isFunction(c)?c(b):Math.floor(b*b*b/5e4-b*b/500+17*b/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(a){var b=a.toString(),c=b.indexOf(".");return c===-1?0:b.length-c-1},_adjustValue:function(a){var b,c,d=this.options;return b=null!==d.min?d.min:0,c=a-b,c=Math.round(c/d.step)*d.step,a=b+c,a=parseFloat(a.toFixed(this._precision())),null!==d.max&&a>d.max?d.max:null!==d.min&&a<d.min?d.min:a},_stop:function(a){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",a))},_setOption:function(a,b){if("culture"===a||"numberFormat"===a){var c=this._parse(this.element.val());return this.options[a]=b,void this.element.val(this._format(c))}"max"!==a&&"min"!==a&&"step"!==a||"string"==typeof b&&(b=this._parse(b)),"icons"===a&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(b.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(b.down)),this._super(a,b),"disabled"===a&&(b?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:b(function(a){this._super(a),this._value(this.element.val())}),_parse:function(a){return"string"==typeof a&&""!==a&&(a=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(a,10,this.options.culture):+a),""===a||isNaN(a)?null:a},_format:function(a){return""===a?"":window.Globalize&&this.options.numberFormat?Globalize.format(a,this.options.numberFormat,this.options.culture):a},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(a,b){var c;""!==a&&(c=this._parse(a),null!==c&&(b||(c=this._adjustValue(c)),a=this._format(c))),this.element.val(a),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(a){this._stepUp(a)}),_stepUp:function(a){this._start()&&(this._spin((a||1)*this.options.step),this._stop())},stepDown:b(function(a){this._stepDown(a)}),_stepDown:function(a){this._start()&&(this._spin((a||1)*-this.options.step),this._stop())},pageUp:b(function(a){this._stepUp((a||1)*this.options.page)}),pageDown:b(function(a){this._stepDown((a||1)*this.options.page)}),value:function(a){return arguments.length?void b(this._value).call(this,a):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(jQuery),function(a,b){function e(){return++c}function f(a){return a.hash.length>1&&decodeURIComponent(a.href.replace(d,""))===decodeURIComponent(location.href.replace(d,""))}var c=0,d=/#.*$/;a.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var b=this,c=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",c.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(b){a(this).is(".ui-state-disabled")&&b.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),c.active=this._initialActive(),a.isArray(c.disabled)&&(c.disabled=a.unique(c.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return b.tabs.index(a)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(c.active):this.active=a(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var b=this.options.active,c=this.options.collapsible,d=location.hash.substring(1);return null===b&&(d&&this.tabs.each(function(c,e){if(a(e).attr("aria-controls")===d)return b=c,!1}),null===b&&(b=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==b&&b!==-1||(b=!!this.tabs.length&&0)),b!==!1&&(b=this.tabs.index(this.tabs.eq(b)),b===-1&&(b=!c&&0)),!c&&b===!1&&this.anchors.length&&(b=0),b},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(b){var c=a(this.document[0].activeElement).closest("li"),d=this.tabs.index(c),e=!0;if(!this._handlePageNav(b)){switch(b.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:d++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:e=!1,d--;break;case a.ui.keyCode.END:d=this.anchors.length-1;break;case a.ui.keyCode.HOME:d=0;break;case a.ui.keyCode.SPACE:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d);case a.ui.keyCode.ENTER:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d!==this.options.active&&d);default:return}b.preventDefault(),clearTimeout(this.activating),d=this._focusNextTab(d,e),b.ctrlKey||(c.attr("aria-selected","false"),this.tabs.eq(d).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",d)},this.delay))}},_panelKeydown:function(b){this._handlePageNav(b)||b.ctrlKey&&b.keyCode===a.ui.keyCode.UP&&(b.preventDefault(),this.active.focus())},_handlePageNav:function(b){return b.altKey&&b.keyCode===a.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):b.altKey&&b.keyCode===a.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(b,c){function e(){return b>d&&(b=0),b<0&&(b=d),b}for(var d=this.tabs.length-1;a.inArray(e(),this.options.disabled)!==-1;)b=c?b+1:b-1;return b},_focusNextTab:function(a,b){return a=this._findNextTab(a,b),this.tabs.eq(a).focus(),a},_setOption:function(a,b){return"active"===a?void this._activate(b):"disabled"===a?void this._setupDisabled(b):(this._super(a,b),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",b),b||this.options.active!==!1||this._activate(0)),"event"===a&&this._setupEvents(b),void("heightStyle"===a&&this._setupHeightStyle(b)))},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+e()},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var b=this.options,c=this.tablist.children(":has(a[href])");b.disabled=a.map(c.filter(".ui-state-disabled"),function(a){return c.index(a)}),this._processTabs(),b.active!==!1&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===b.disabled.length?(b.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,b.active-1),!1)):b.active=this.tabs.index(this.active):(b.active=!1,this.active=a()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var b=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=a(),this.anchors.each(function(c,d){var e,g,h,i=a(d).uniqueId().attr("id"),j=a(d).closest("li"),k=j.attr("aria-controls");f(d)?(e=d.hash,g=b.element.find(b._sanitizeSelector(e))):(h=b._tabId(j),e="#"+h,g=b.element.find(e),g.length||(g=b._createPanel(h),g.insertAfter(b.panels[c-1]||b.tablist)),g.attr("aria-live","polite")),g.length&&(b.panels=b.panels.add(g)),k&&j.data("ui-tabs-aria-controls",k),j.attr({"aria-controls":e.substring(1),"aria-labelledby":i}),g.attr("aria-labelledby",i)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(b){return a("<div>").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var d,c=0;d=this.tabs[c];c++)b===!0||a.inArray(c,b)!==-1?a(d).addClass("ui-state-disabled").attr("aria-disabled","true"):a(d).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=b},_setupEvents:function(b){var c={click:function(a){a.preventDefault()}};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(b){var c,d=this.element.parent();"fill"===b?(c=d.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var b=a(this),d=b.css("position");"absolute"!==d&&"fixed"!==d&&(c-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(c=0,this.panels.each(function(){c=Math.max(c,a(this).height("").height())}).height(c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e.closest("li"),g=f[0]===d[0],h=g&&c.collapsible,i=h?a():this._getPanelForTab(f),j=d.length?this._getPanelForTab(d):a(),k={oldTab:d,oldPanel:j,newTab:h?a():f,newPanel:i};b.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!c.collapsible||this._trigger("beforeActivate",b,k)===!1||(c.active=!h&&this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),j.length||i.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),i.length&&this.load(this.tabs.index(f),b),this._toggle(b,k))},_toggle:function(b,c){function g(){d.running=!1,d._trigger("activate",b,c)}function h(){c.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),e.length&&d.options.show?d._show(e,d.options.show,g):(e.show(),g())}var d=this,e=c.newPanel,f=c.oldPanel;this.running=!0,f.length&&this.options.hide?this._hide(f,this.options.hide,function(){c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),h()}):(c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),h()),f.attr({"aria-expanded":"false","aria-hidden":"true"}),c.oldTab.attr("aria-selected","false"),e.length&&f.length?c.oldTab.attr("tabIndex",-1):e.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),e.attr({"aria-expanded":"true","aria-hidden":"false"}),c.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(b){var c,d=this._findActive(b);d[0]!==this.active[0]&&(d.length||(d=this.active),c=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return b===!1?a():this.tabs.eq(b)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var b=a(this),c=b.data("ui-tabs-aria-controls");c?b.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(c){var d=this.options.disabled;d!==!1&&(c===b?d=!1:(c=this._getIndex(c),d=a.isArray(d)?a.map(d,function(a){return a!==c?a:null}):a.map(this.tabs,function(a,b){return b!==c?b:null})),this._setupDisabled(d))},disable:function(c){var d=this.options.disabled;if(d!==!0){if(c===b)d=!0;else{if(c=this._getIndex(c),a.inArray(c,d)!==-1)return;d=a.isArray(d)?a.merge([c],d).sort():[c]}this._setupDisabled(d)}},load:function(b,c){b=this._getIndex(b);var d=this,e=this.tabs.eq(b),g=e.find(".ui-tabs-anchor"),h=this._getPanelForTab(e),i={tab:e,panel:h};f(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,c,i)),this.xhr&&"canceled"!==this.xhr.statusText&&(e.addClass("ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){h.html(a),d._trigger("load",c,i)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&d.panels.stop(!1,!0),e.removeClass("ui-tabs-loading"),h.removeAttr("aria-busy"),a===d.xhr&&delete d.xhr},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}(jQuery),function(a){function c(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c),b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))}function d(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),e=a.inArray(c,d);e!==-1&&d.splice(e,1),b.removeData("ui-tooltip-id"),d=a.trim(d.join(" ")),d?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")}var b=0;a.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var b=a(this).attr("title")||"";return a("<a>").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(b,c){var d=this;return"disabled"===b?(this[c?"_disable":"_enable"](),void(this.options[b]=c)):(this._super(b,c),void("content"===b&&a.each(this.tooltips,function(a,b){d._updateContent(b)})))},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0)}),this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.is("[title]")&&b.data("ui-tooltip-title",b.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))})},open:function(b){var c=this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var d,b=a(this);b.data("ui-tooltip-open")&&(d=a.Event("blur"),d.target=d.currentTarget=this,c.close(d,!0)),b.attr("title")&&(b.uniqueId(),c.parents[this.id]={element:this,title:b.attr("title")},b.attr("title",""))}),this._updateContent(d,b))},_updateContent:function(a,b){var c,d=this.options.content,e=this,f=b?b.type:null;return"string"==typeof d?this._open(b,a,d):(c=d.call(a[0],function(c){a.data("ui-tooltip-open")&&e._delay(function(){b&&(b.type=f),this._open(b,a,c)})}),void(c&&this._open(b,a,c)))},_open:function(b,d,e){function j(a){i.of=a,f.is(":hidden")||f.position(i)}var f,g,h,i=a.extend({},this.options.position);if(e){if(f=this._find(d),f.length)return void f.find(".ui-tooltip-content").html(e);d.is("[title]")&&(b&&"mouseover"===b.type?d.attr("title",""):d.removeAttr("title")),f=this._tooltip(d),c(d,f.attr("id")),f.find(".ui-tooltip-content").html(e),this.options.track&&b&&/^mouse/.test(b.type)?(this._on(this.document,{mousemove:j}),j(b)):f.position(a.extend({of:d},this.options.position)),f.hide(),this._show(f,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){f.is(":visible")&&(j(i.of),clearInterval(h))},a.fx.interval)),this._trigger("open",b,{tooltip:f}),g={keyup:function(b){if(b.keyCode===a.ui.keyCode.ESCAPE){var c=a.Event(b);c.currentTarget=d[0],this.close(c,!0)}},remove:function(){this._removeTooltip(f)}},b&&"mouseover"!==b.type||(g.mouseleave="close"),b&&"focusin"!==b.type||(g.focusout="close"),this._on(!0,d,g)}},close:function(b){var c=this,e=a(b?b.currentTarget:this.element),f=this._find(e);this.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),d(e),f.stop(!0),this._hide(f,this.options.hide,function(){c._removeTooltip(a(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(b,d){a(d.element).attr("title",d.title),delete c.parents[b]}),this.closing=!0,this._trigger("close",b,{tooltip:f}),this.closing=!1)},_tooltip:function(c){var d="ui-tooltip-"+b++,e=a("<div>").attr({id:d,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return a("<div>").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[d]=c,e},_find:function(b){var c=b.data("ui-tooltip-id");return c?a("#"+c):a()},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0),a("#"+c).remove(),d.data("ui-tooltip-title")&&(d.attr("title",d.data("ui-tooltip-title")),d.removeData("ui-tooltip-title"))})}})}(jQuery);!function(t){var e={},s={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(n){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"==o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!=o.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(o.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),c()},c=function(){r.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),o.viewport=r.parent(),o.loader=t('<div class="bx-loading" />'),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?r.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:p()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({"float":"horizontal"==o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",u()),"horizontal"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:"block"})),o.controls.el=t('<div class="bx-controls" />'),o.settings.captions&&P(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);"all"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&T(),o.settings.controls&&C(),o.settings.auto&&o.settings.autoControls&&E(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find("img, iframe").length;if(0==s)return i(),void 0;var n=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteLoop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass("bx-clone"),s=o.children.slice(-e).clone().addClass("bx-clone");r.append(i).prepend(s)}o.loader.remove(),S(),"vertical"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(v()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",Z),o.settings.auto&&o.settings.autoStart&&H(),o.settings.ticker&&L(),o.settings.pager&&q(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&O()},v=function(){var e=0,s=t();if("vertical"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var n=1==o.settings.moveSlides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxSlides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return"vertical"==o.settings.mode?(s.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,s.map(function(){return t(this).outerHeight(!1)}).get()),e},p=function(){var t="100%";return o.settings.slideWidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},u=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxSlides>1&&"horizontal"==o.settings.mode&&(e>o.maxThreshold||e<o.minThreshold&&(t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides)),t},f=function(){var t=1;if("horizontal"==o.settings.mode&&o.settings.slideWidth>0)if(o.viewport.width()<o.minThreshold)t=o.settings.minSlides;else if(o.viewport.width()>o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/m();else for(var e=0,i=0;e<o.children.length;)++t,e=i+f(),i+=o.settings.moveSlides<=f()?o.settings.moveSlides:f();else t=Math.ceil(o.children.length/f());return t},m=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},S=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if("horizontal"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minSlides,e=o.children.eq(i).position();b(-e.top,"reset",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,i,s){if(o.usingCSS){var n="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),D()})):"reset"==e?r.css(o.animProp,n):"ticker"==e&&(r.css("-"+o.cssPrefix+"-transition-timing-function","linear"),r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(s.resetValue,"reset",0),N()}))}else{var a={};a[o.animProp]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){D()}):"reset"==e?r.css(o.animProp,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(s.resetValue,"reset",0),N()})}},w=function(){for(var e="",i=x(),s=0;i>s;s++){var n="";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(n=o.settings.buildPager(s),o.pagerEl.addClass("bx-custom-pager")):(n=s+1,o.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+s+'" class="bx-pager-link">'+n+"</a></div>"}o.pagerEl.html(e)},T=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class="bx-pager" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),w()),o.pagerEl.on("click","a",I)},C=function(){o.controls.next=t('<a class="bx-next" href="">'+o.settings.nextText+"</a>"),o.controls.prev=t('<a class="bx-prev" href="">'+o.settings.prevText+"</a>"),o.controls.next.bind("click",y),o.controls.prev.bind("click",z),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class="bx-controls-direction" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},E=function(){o.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+o.settings.startText+"</a></div>"),o.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+o.settings.stopText+"</a></div>"),o.controls.autoEl=t('<div class="bx-controls-auto" />'),o.controls.autoEl.on("click",".bx-start",k),o.controls.autoEl.on("click",".bx-stop",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),A(o.settings.autoStart?"stop":"start")},P=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");void 0!=e&&(""+e).length&&t(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},I=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr("data-slide-index"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},q=function(e){var i=o.children.length;return"short"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find("a").removeClass("active"),o.pagerEl.each(function(i,s){t(s).find("a").eq(e).addClass("active")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0))}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},W=function(){1==x()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index==x()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if("next"==o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone"));else{r.prepend(o.children.clone().addClass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autoDirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,"ticker",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind("touchmove",Y),o.viewport.bind("touchend",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,"reset",0)}},V=function(t){o.viewport.unbind("touchmove",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,"fade"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)}o.viewport.unbind("touchend",V)},Z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),"next"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):"prev"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&W(),"fade"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css("zIndex",o.settings.slideZIndex),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A("stop"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A("start"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(u()),o.viewport.css("height",v()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),q(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind("resize",Z))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery);$(document).ready(function(){prestashop.blockcart=prestashop.blockcart||{};var showModal=prestashop.blockcart.showModal||function(modal){var $body=$('body');$body.append(modal);$body.one('click','#blockcart-modal',function(event){if(event.target.id==='blockcart-modal'){$(event.target).remove()}})};prestashop.on('updateCart',function(event){var refreshURL=$('.blockcart').data('refresh-url');var requestData={};if(event&&event.reason&&typeof event.resp!=='undefined'&&!event.resp.hasError){requestData={id_customization:event.reason.idCustomization,id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction};$.post(refreshURL,requestData).then(function(resp){$('.blockcart').replaceWith($(resp.preview).find('.blockcart'));if(resp.modal){showModal(resp.modal)}}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateShoppingCart',resp:resp})})}
|
||
if(event&&event.resp&&event.resp.hasError){prestashop.emit('showErrorNextToAddtoCartButton',{errorMessage:event.resp.errors.join('<br/>')})}})});$(document).ready(function(){var $searchWidget=$('#search_widget');var $searchBox=$searchWidget.find('input[type=text]');var searchURL=$searchWidget.attr('data-search-controller-url');$.widget('prestashop.psBlockSearchAutocomplete',$.ui.autocomplete,{_renderItem:function(ul,product){return $("<li>").append($("<a>").append($("<span>").html(product.category_name).addClass("category")).append($("<span>").html(' > ').addClass("separator")).append($("<span>").html(product.name).addClass("product"))).appendTo(ul)}});$searchBox.psBlockSearchAutocomplete({source:function(query,response){$.post(searchURL,{s:query.term,resultsPerPage:10},null,'json').then(function(resp){response(resp.products)}).fail(response)},select:function(event,ui){var url=ui.item.url;window.location.href=url},})});if($('#back-to-top').length){var scrollTrigger=100,backToTop=function(){var scrollTop=$(window).scrollTop();if(scrollTop>scrollTrigger){$('#back-to-top').addClass('show')}else{$('#back-to-top').removeClass('show')}};backToTop();$(window).on('scroll',function(){backToTop()});$('#back-to-top').on('click',function(e){e.preventDefault();$('html,body').animate({scrollTop:0},700)})}
|
||
$('#module-amazzingblog-blog .PM_ASBlockOutput').remove();$('#module-amazzingblog-blog .block-categories').remove();$('img').addClass('img-fluid');$('.blog.blocks.displayHome .post-item .post-item-cover img').addClass('img-fluid') |