├── .babelrc
├── .editorconfig
├── .gitignore
├── .npmignore
├── LICENSE
├── dist
├── 4a37f8008959c75f619bf0a3a4e2d7a2.png
├── v-owl-carousel.js
└── v-owl-carousel.min.js
├── package-lock.json
├── package.json
├── readme.md
├── src
├── Carousel.vue
└── plugin.js
└── webpack.config.js
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["es2015", "stage-2"],
3 | "plugins": ["transform-runtime"],
4 | "comments": false
5 | }
6 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | npm-debug.log*
4 | yarn-debug.log*
5 | yarn-error.log*
6 | test/unit/coverage
7 |
8 | # Editor directories and files
9 | .idea
10 | *.suo
11 | *.ntvs*
12 | *.njsproj
13 | *.sln
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .idea
3 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Gaurav Deshpande
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/dist/4a37f8008959c75f619bf0a3a4e2d7a2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/93gaurav93/v-owl-carousel/6bd24f4e2a4ddd7d093dcd57401759c0861a7e2f/dist/4a37f8008959c75f619bf0a3a4e2d7a2.png
--------------------------------------------------------------------------------
/dist/v-owl-carousel.min.js:
--------------------------------------------------------------------------------
1 | window.VOwlCarousel=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}var r=n(1),o=i(r);t.exports={install:function(t,e){t.component("v-owl-carousel",o["default"])}}},function(t,e,n){var i=n(2)(n(3),n(15),null,null);t.exports=i.exports},function(t,e){t.exports=function(t,e,n,i){var r,o=t=t||{},s=typeof t["default"];"object"!==s&&"function"!==s||(r=t,o=t["default"]);var a="function"==typeof o?o.options:o;if(e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),n&&(a._scopeId=n),i){var l=Object.create(a.computed||null);Object.keys(i).forEach(function(t){var e=i[t];l[t]=function(){return e}}),a.computed=l}return{esModule:r,exports:o,options:a}}},function(t,e,n){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(5),n(12),n(14),e["default"]={name:"VOwlCarousel",data:function(){return{prevHandler:"carousel_prev_"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),elementHandle:"carousel_"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),nextHandler:"carousel_next_"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),owl:null}},props:{items:{"default":3},margin:{"default":0},loop:{"default":!1},center:{"default":!1},nav:{"default":!0},autoplay:{"default":!1},autoplaySpeed:{"default":!1},rewind:{"default":!0},mouseDrag:{"default":!0},touchDrag:{"default":!0},pullDrag:{"default":!0},freeDrag:{"default":!1},stagePadding:{"default":0},autoWidth:{"default":!1},autoHeight:{"default":!1},dots:{"default":!0},autoplayTimeout:{"default":5e3},autoplayHoverPause:{"default":!1},responsive:{"default":function(){return{}}}},mounted:function(){this.setOwlInstance(),this.addListeners()},methods:{setOwlInstance:function(){this.owl=t("#"+this.elementHandle).owlCarousel({items:this.items,margin:this.margin,loop:this.loop,center:this.center,nav:this.nav,autoplay:this.autoplay,autoplaySpeed:this.autoplaySpeed,rewind:this.rewind,mouseDrag:this.mouseDrag,touchDrag:this.touchDrag,pullDrag:this.pullDrag,freeDrag:this.freeDrag,stagePadding:this.stagePadding,autoWidth:this.autoWidth,autoHeight:this.autoHeight,dots:this.dots,autoplayTimeout:this.autoplayTimeout,autoplayHoverPause:this.autoplayHoverPause,responsive:this.responsive})},addListeners:function(){var e=this;t("#"+this.prevHandler).click(function(){e.owl.trigger("prev.owl.carousel")}),t("#"+this.nextHandler).click(function(){e.owl.trigger("next.owl.carousel")}),this.owl.on("changed.owl.carousel",this.onChange)},onChange:function(t){this.$emit("change",t)}}}}).call(e,n(4))},function(t,e,n){var i,r;/*!
2 | * jQuery JavaScript Library v3.5.1
3 | * https://jquery.com/
4 | *
5 | * Includes Sizzle.js
6 | * https://sizzlejs.com/
7 | *
8 | * Copyright JS Foundation and other contributors
9 | * Released under the MIT license
10 | * https://jquery.org/license
11 | *
12 | * Date: 2020-05-04T22:49Z
13 | */
14 | !function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){"use strict";function s(t,e,n){n=n||Et;var i,r,o=n.createElement("script");if(o.text=t,e)for(i in kt)r=e[i]||e.getAttribute&&e.getAttribute(i),r&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function a(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?vt[yt.call(t)]||"object":typeof t}function l(t){var e=!!t&&"length"in t&&t.length,n=a(t);return!Ct(t)&&!Tt(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function u(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function c(t,e,n){return Ct(e)?Dt.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?Dt.grep(t,function(t){return t===e!==n}):"string"!=typeof e?Dt.grep(t,function(t){return mt.call(e,t)>-1!==n}):Dt.filter(e,t,n)}function h(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function p(t){var e={};return Dt.each(t.match(Mt)||[],function(t,n){e[n]=!0}),e}function d(t){return t}function f(t){throw t}function g(t,e,n,i){var r;try{t&&Ct(r=t.promise)?r.call(t).done(e).fail(n):t&&Ct(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function m(){Et.removeEventListener("DOMContentLoaded",m),n.removeEventListener("load",m),Dt.ready()}function v(t,e){return e.toUpperCase()}function y(t){return t.replace(Ft,"ms-").replace(Bt,v)}function w(){this.expando=Dt.expando+w.uid++}function x(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Yt.test(t)?JSON.parse(t):t)}function b(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Gt,"-$&").toLowerCase(),n=t.getAttribute(i),"string"==typeof n){try{n=x(n)}catch(r){}Xt.set(t,e,n)}else n=void 0;return n}function _(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return Dt.css(t,e,"")},l=a(),u=n&&n[3]||(Dt.cssNumber[e]?"":"px"),c=t.nodeType&&(Dt.cssNumber[e]||"px"!==u&&+l)&&Jt.exec(Dt.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)Dt.style(t,e,c+u),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c=2*c,Dt.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function C(t){var e,n=t.ownerDocument,i=t.nodeName,r=ie[i];return r?r:(e=n.body.appendChild(n.createElement(i)),r=Dt.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),ie[i]=r,r)}function T(t,e){for(var n,i,r=[],o=0,s=t.length;o-1)r&&r.push(o);else if(c=te(o),s=E(p.appendChild(o),"script"),c&&k(s),n)for(h=0;o=s[h++];)se.test(o.type||"")&&n.push(o);return p}function D(){return!0}function A(){return!1}function j(t,e){return t===N()==("focus"===e)}function N(){try{return Et.activeElement}catch(t){}}function $(t,e,n,i,r,o){var s,a;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(a in e)$(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),r===!1)r=A;else if(!r)return t;return 1===o&&(s=r,r=function(t){return Dt().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=Dt.guid++)),t.each(function(){Dt.event.add(this,e,r,i,n)})}function L(t,e,n){return n?(Vt.set(t,e,!1),void Dt.event.add(t,e,{namespace:!1,handler:function(t){var i,r,o=Vt.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(Dt.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=dt.call(arguments),Vt.set(this,e,o),i=n(this,e),this[e](),r=Vt.get(this,e),o!==r||i?Vt.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r.value}else o.length&&(Vt.set(this,e,{value:Dt.event.trigger(Dt.extend(o[0],Dt.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void(void 0===Vt.get(t,e)&&Dt.event.add(t,e,D))}function z(t,e){return u(t,"table")&&u(11!==e.nodeType?e:e.firstChild,"tr")?Dt(t).children("tbody")[0]||t:t}function O(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function H(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function P(t,e){var n,i,r,o,s,a,l;if(1===e.nodeType){if(Vt.hasData(t)&&(o=Vt.get(t),l=o.events)){Vt.remove(e,"handle events");for(r in l)for(n=0,i=l[r].length;n1&&"string"==typeof f&&!_t.checkClone&&de.test(f))return t.each(function(r){var o=t.eq(r);g&&(e[0]=f.call(this,r,o.html())),M(o,e,n,i)});if(p&&(r=S(e,t[0].ownerDocument,!1,t,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=Dt.map(E(r,"script"),O),l=a.length;h
=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l}function X(t,e,n){var i=me(t),r=!_t.boxSizingReliable()||n,o=r&&"border-box"===Dt.css(t,"boxSizing",!1,i),s=o,a=I(t,e,i),l="offset"+e[0].toUpperCase()+e.slice(1);if(ge.test(a)){if(!n)return a;a="auto"}return(!_t.boxSizingReliable()&&o||!_t.reliableTrDimensions()&&u(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===Dt.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===Dt.css(t,"boxSizing",!1,i),s=l in t,s&&(a=t[l])),a=parseFloat(a)||0,a+V(t,e,n||(o?"border":"content"),s,i,a)+"px"}function Y(t,e,n,i,r){return new Y.prototype.init(t,e,n,i,r)}function G(){Se&&(Et.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(G):n.setTimeout(G,Dt.fx.interval),Dt.fx.tick())}function Z(){return n.setTimeout(function(){ke=void 0}),ke=Date.now()}function J(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)n=Qt[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function Q(t,e,n){for(var i,r=(et.tweeners[e]||[]).concat(et.tweeners["*"]),o=0,s=r.length;o=0&&nC.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[R]=!0,t}function r(t){var e=L.createElement("fieldset");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)C.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return function(e){return"form"in e?e.parentNode&&e.disabled===!1?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&kt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function c(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function h(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function p(){}function d(t){for(var e=0,n=t.length,i="";e1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var r=0,o=n.length;r-1&&(i[u]=!(s[u]=h))}}else w=v(w===s?w.splice(f,w.length):w),o?o(null,s,w,l):K.apply(s,w)})}function w(t){for(var e,n,i,r=t.length,o=C.relative[t[0].type],s=o||C.relative[" "],a=o?1:0,l=f(function(t){return t===e},s,!0),u=f(function(t){return et(e,t)>-1},s,!0),c=[function(t,n,i){var r=!o&&(i||n!==A)||((e=n).nodeType?l(t,n,i):u(t,n,i));return e=null,r}];a1&&g(c),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(lt,"$1"),n,a0,o=t.length>0,s=function(i,s,a,l,u){var c,h,p,d=0,f="0",g=i&&[],m=[],y=A,w=i||o&&C.find.TAG("*",u),x=W+=null==y?1:Math.random()||.1,b=w.length;for(u&&(A=s==L||s||u);f!==b&&null!=(c=w[f]);f++){if(o&&c){for(h=0,s||c.ownerDocument==L||($(c),a=!O);p=t[h++];)if(p(c,s||L,a)){l.push(c);break}u&&(W=x)}r&&((c=!p&&c)&&d--,i&&g.push(c))}if(d+=f,r&&f!==d){for(h=0;p=n[h++];)p(g,m,s,a);if(i){if(d>0)for(;f--;)g[f]||m[f]||(m[f]=J.call(l));m=v(m)}K.apply(l,m),u&&!i&&m.length>0&&d+n.length>1&&e.uniqueSort(l)}return u&&(W=x,A=y),g};return r?i(s):s}var b,_,C,T,E,k,S,D,A,j,N,$,L,z,O,H,P,q,M,R="sizzle"+1*new Date,I=t.document,W=0,F=0,B=n(),U=n(),V=n(),X=n(),Y=function(t,e){return t===e&&(N=!0),0},G={}.hasOwnProperty,Z=[],J=Z.pop,Q=Z.push,K=Z.push,tt=Z.slice,et=function(t,e){for(var n=0,i=t.length;n+~]|"+it+")"+it+"*"),ht=new RegExp(it+"|>"),pt=new RegExp(st),dt=new RegExp("^"+rt+"$"),ft={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},gt=/HTML$/i,mt=/^(?:input|select|textarea|button)$/i,vt=/^h\d$/i,yt=/^[^{]+\{\s*\[native \w/,wt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xt=/[+~]/,bt=new RegExp("\\\\[\\da-fA-F]{1,6}"+it+"?|\\\\([^\\r\\n\\f])","g"),_t=function(t,e){var n="0x"+t.slice(1)-65536;return e?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},Ct=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Tt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Et=function(){$()},kt=f(function(t){return t.disabled===!0&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{K.apply(Z=tt.call(I.childNodes),I.childNodes),Z[I.childNodes.length].nodeType}catch(St){K={apply:Z.length?function(t,e){Q.apply(t,tt.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}_=e.support={},E=e.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!gt.test(e||n&&n.nodeName||"HTML")},$=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:I;return i!=L&&9===i.nodeType&&i.documentElement?(L=i,z=L.documentElement,O=!E(L),I!=L&&(n=L.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Et,!1):n.attachEvent&&n.attachEvent("onunload",Et)),_.scope=r(function(t){return z.appendChild(t).appendChild(L.createElement("div")),"undefined"!=typeof t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),_.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=r(function(t){return t.appendChild(L.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=yt.test(L.getElementsByClassName),_.getById=r(function(t){return z.appendChild(t).id=R,!L.getElementsByName||!L.getElementsByName(R).length}),_.getById?(C.filter.ID=function(t){var e=t.replace(bt,_t);return function(t){return t.getAttribute("id")===e}},C.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&O){var n=e.getElementById(t);return n?[n]:[]}}):(C.filter.ID=function(t){var e=t.replace(bt,_t);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},C.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&O){var n,i,r,o=e.getElementById(t);if(o){if(n=o.getAttributeNode("id"),n&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if(n=o.getAttributeNode("id"),n&&n.value===t)return[o]}return[]}}),C.find.TAG=_.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):_.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},C.find.CLASS=_.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&O)return e.getElementsByClassName(t)},P=[],H=[],(_.qsa=yt.test(L.querySelectorAll))&&(r(function(t){var e;z.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||H.push("\\["+it+"*(?:value|"+nt+")"),t.querySelectorAll("[id~="+R+"-]").length||H.push("~="),e=L.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||H.push("\\["+it+"*name"+it+"*="+it+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||H.push(":checked"),t.querySelectorAll("a#"+R+"+*").length||H.push(".#.+[+~]"),t.querySelectorAll("\\\f"),H.push("[\\r\\n\\f]")}),r(function(t){t.innerHTML="";var e=L.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&H.push("name"+it+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&H.push(":enabled",":disabled"),z.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&H.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),H.push(",.*:")})),(_.matchesSelector=yt.test(q=z.matches||z.webkitMatchesSelector||z.mozMatchesSelector||z.oMatchesSelector||z.msMatchesSelector))&&r(function(t){_.disconnectedMatch=q.call(t,"*"),q.call(t,"[s!='']:x"),P.push("!=",st)}),H=H.length&&new RegExp(H.join("|")),P=P.length&&new RegExp(P.join("|")),e=yt.test(z.compareDocumentPosition),M=e||yt.test(z.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},Y=e?function(t,e){if(t===e)return N=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!_.sortDetached&&e.compareDocumentPosition(t)===n?t==L||t.ownerDocument==I&&M(I,t)?-1:e==L||e.ownerDocument==I&&M(I,e)?1:j?et(j,t)-et(j,e):0:4&n?-1:1)}:function(t,e){if(t===e)return N=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!r||!o)return t==L?-1:e==L?1:r?-1:o?1:j?et(j,t)-et(j,e):0;if(r===o)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]==I?-1:l[i]==I?1:0},L):L},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if($(t),_.matchesSelector&&O&&!X[n+" "]&&(!P||!P.test(n))&&(!H||!H.test(n)))try{var i=q.call(t,n);if(i||_.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(r){X(n,!0)}return e(n,L,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!=L&&$(t),M(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!=L&&$(t);var n=C.attrHandle[e.toLowerCase()],i=n&&G.call(C.attrHandle,e.toLowerCase())?n(t,e,!O):void 0;return void 0!==i?i:_.attributes||!O?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(Ct,Tt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(N=!_.detectDuplicates,j=!_.sortStable&&t.slice(0),t.sort(Y),N){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return j=null,t},T=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=T(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=T(e);return n},C=e.selectors={cacheLength:50,createPseudo:i,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,_t),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,_t),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&pt.test(n)&&(e=k(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,_t).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(at," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,h,p,d,f,g=o!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,w=!1;if(m){if(o){for(;g;){for(p=e;p=p[g];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&y){for(p=m,h=p[R]||(p[R]={}),c=h[p.uniqueID]||(h[p.uniqueID]={}),u=c[t]||[],d=u[0]===W&&u[1],w=d&&u[2],p=d&&m.childNodes[d];p=++d&&p&&p[g]||(w=d=0)||f.pop();)if(1===p.nodeType&&++w&&p===e){c[t]=[W,d,w];break}}else if(y&&(p=e,h=p[R]||(p[R]={}),c=h[p.uniqueID]||(h[p.uniqueID]={}),u=c[t]||[],d=u[0]===W&&u[1],w=d),w===!1)for(;(p=++d&&p&&p[g]||(w=d=0)||f.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++w||(y&&(h=p[R]||(p[R]={}),c=h[p.uniqueID]||(h[p.uniqueID]={}),c[t]=[W,w]),p!==e)););return w-=r,w===i||w%i===0&&w/i>=0}}},PSEUDO:function(t,n){var r,o=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[R]?o(n):o.length>1?(r=[t,t,"",n],C.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),s=r.length;s--;)i=et(t,r[s]),t[i]=!(e[i]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=S(t.replace(lt,"$1"));return r[R]?i(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(bt,_t),function(e){return(e.textContent||T(e)).indexOf(t)>-1}}),lang:i(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,_t).toLowerCase(),function(e){var n;do if(n=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===z},focus:function(t){return t===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:u(!1),disabled:u(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!C.pseudos.empty(t)},header:function(t){return vt.test(t.nodeName)},input:function(t){return mt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[n<0?n+e:n]}),even:c(function(t,e){for(var n=0;ne?e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=n<0?n+e:n;++i2&&"ID"===(s=o[0]).type&&9===e.nodeType&&O&&C.relative[o[1].type]){if(e=(C.find.ID(s.matches[0].replace(bt,_t),e)||[])[0],!e)return n;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ft.needsContext.test(t)?0:o.length;r--&&(s=o[r],!C.relative[a=s.type]);)if((l=C.find[a])&&(i=l(s.matches[0].replace(bt,_t),xt.test(o[0].type)&&h(e.parentNode)||e))){if(o.splice(r,1),t=i.length&&d(o),!t)return K.apply(n,i),n;break}}return(u||S(t,c))(i,e,!O,n,!e||xt.test(t)&&h(e.parentNode)||e),n},_.sortStable=R.split("").sort(Y).join("")===R,_.detectDuplicates=!!N,$(),_.sortDetached=r(function(t){return 1&t.compareDocumentPosition(L.createElement("fieldset"))}),r(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),_.attributes&&r(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(nt,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(n);Dt.find=At,Dt.expr=At.selectors,Dt.expr[":"]=Dt.expr.pseudos,Dt.uniqueSort=Dt.unique=At.uniqueSort,Dt.text=At.getText,Dt.isXMLDoc=At.isXML,Dt.contains=At.contains,Dt.escapeSelector=At.escape;var jt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&Dt(t).is(n))break;i.push(t)}return i},Nt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},$t=Dt.expr.match.needsContext,Lt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Dt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?Dt.find.matchesSelector(i,t)?[i]:[]:Dt.find.matches(t,Dt.grep(e,function(t){return 1===t.nodeType}))},Dt.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(Dt(t).filter(function(){for(e=0;e1?Dt.uniqueSort(n):n},filter:function(t){return this.pushStack(c(this,t||[],!1))},not:function(t){return this.pushStack(c(this,t||[],!0))},is:function(t){return!!c(this,"string"==typeof t&&$t.test(t)?Dt(t):t||[],!1).length}});var zt,Ot=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ht=Dt.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||zt,"string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Ot.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof Dt?e[0]:e,Dt.merge(this,Dt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:Et,!0)),Lt.test(i[1])&&Dt.isPlainObject(e))for(i in e)Ct(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=Et.getElementById(i[2]),r&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):Ct(t)?void 0!==n.ready?n.ready(t):t(Dt):Dt.makeArray(t,this)};Ht.prototype=Dt.fn,zt=Dt(Et);var Pt=/^(?:parents|prev(?:Until|All))/,qt={children:!0,contents:!0,next:!0,prev:!0};Dt.fn.extend({has:function(t){var e=Dt(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&Dt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?Dt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?mt.call(Dt(t),this[0]):mt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Dt.uniqueSort(Dt.merge(this.get(),Dt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Dt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return jt(t,"parentNode")},parentsUntil:function(t,e,n){return jt(t,"parentNode",n)},next:function(t){return h(t,"nextSibling")},prev:function(t){return h(t,"previousSibling")},nextAll:function(t){return jt(t,"nextSibling")},prevAll:function(t){return jt(t,"previousSibling")},nextUntil:function(t,e,n){return jt(t,"nextSibling",n)},prevUntil:function(t,e,n){return jt(t,"previousSibling",n)},siblings:function(t){return Nt((t.parentNode||{}).firstChild,t)},children:function(t){return Nt(t.firstChild)},contents:function(t){return null!=t.contentDocument&&pt(t.contentDocument)?t.contentDocument:(u(t,"template")&&(t=t.content||t),Dt.merge([],t.childNodes))}},function(t,e){Dt.fn[t]=function(n,i){var r=Dt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=Dt.filter(i,r)),this.length>1&&(qt[t]||Dt.uniqueSort(r),Pt.test(t)&&r.reverse()),this.pushStack(r)}});var Mt=/[^\x20\t\r\n\f]+/g;Dt.Callbacks=function(t){t="string"==typeof t?p(t):Dt.extend({},t);var e,n,i,r,o=[],s=[],l=-1,u=function(){for(r=r||t.once,i=e=!0;s.length;l=-1)for(n=s.shift();++l-1;)o.splice(n,1),n<=l&&l--}),this},has:function(t){return t?Dt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},Dt.extend({Deferred:function(t){var e=[["notify","progress",Dt.Callbacks("memory"),Dt.Callbacks("memory"),2],["resolve","done",Dt.Callbacks("once memory"),Dt.Callbacks("once memory"),0,"resolved"],["reject","fail",Dt.Callbacks("once memory"),Dt.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(t){return r.then(null,t)},pipe:function(){var t=arguments;return Dt.Deferred(function(n){Dt.each(e,function(e,i){var r=Ct(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&Ct(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,i,r){function o(t,e,i,r){return function(){var a=this,l=arguments,u=function(){var n,u;if(!(t=s&&(i!==f&&(a=void 0,l=[n]),e.rejectWith(a,l))}};t?c():(Dt.Deferred.getStackHook&&(c.stackTrace=Dt.Deferred.getStackHook()),n.setTimeout(c))}}var s=0;return Dt.Deferred(function(n){e[0][3].add(o(0,n,Ct(r)?r:d,n.notifyWith)),e[1][3].add(o(0,n,Ct(t)?t:d)),e[2][3].add(o(0,n,Ct(i)?i:f))}).promise()},promise:function(t){return null!=t?Dt.extend(t,r):r}},o={};return Dt.each(e,function(t,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add(function(){i=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=dt.call(arguments),o=Dt.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?dt.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(g(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||Ct(r[n]&&r[n].then)))return o.then();for(;n--;)g(r[n],s(n),o.reject);return o.promise()}});var Rt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Dt.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&Rt.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},Dt.readyException=function(t){n.setTimeout(function(){throw t})};var It=Dt.Deferred();Dt.fn.ready=function(t){return It.then(t)["catch"](function(t){Dt.readyException(t)}),this},Dt.extend({isReady:!1,readyWait:1,ready:function(t){(t===!0?--Dt.readyWait:Dt.isReady)||(Dt.isReady=!0,t!==!0&&--Dt.readyWait>0||It.resolveWith(Et,[Dt]))}}),Dt.ready.then=It.then,"complete"===Et.readyState||"loading"!==Et.readyState&&!Et.documentElement.doScroll?n.setTimeout(Dt.ready):(Et.addEventListener("DOMContentLoaded",m),n.addEventListener("load",m));var Wt=function(t,e,n,i,r,o,s){var l=0,u=t.length,c=null==n;if("object"===a(n)){r=!0;for(l in n)Wt(t,e,l,n[l],!0,o,s)}else if(void 0!==i&&(r=!0,Ct(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(Dt(t),n)})),e))for(;l1,null,!0)},removeData:function(t){return this.each(function(){Xt.remove(this,t)})}}),Dt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Vt.get(t,e),n&&(!i||Array.isArray(n)?i=Vt.access(t,e,Dt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=Dt.queue(t,e),i=n.length,r=n.shift(),o=Dt._queueHooks(t,e),s=function(){Dt.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Vt.get(t,n)||Vt.access(t,n,{empty:Dt.Callbacks("once memory").add(function(){Vt.remove(t,[e+"queue",n])})})}}),Dt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,se=/^$|^module$|\/(?:java|ecma)script/i;
25 | !function(){var t=Et.createDocumentFragment(),e=t.appendChild(Et.createElement("div")),n=Et.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),_t.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",_t.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",_t.option=!!e.lastChild}();var ae={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};ae.tbody=ae.tfoot=ae.colgroup=ae.caption=ae.thead,ae.th=ae.td,_t.option||(ae.optgroup=ae.option=[1,""]);var le=/<|?\w+;/,ue=/^key/,ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,he=/^([^.]*)(?:\.(.+)|)/;Dt.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,h,p,d,f,g,m=Vt.get(t);if(Ut(t))for(n.handler&&(o=n,n=o.handler,r=o.selector),r&&Dt.find.matchesSelector(Kt,r),n.guid||(n.guid=Dt.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return"undefined"!=typeof Dt&&Dt.event.triggered!==e.type?Dt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Mt)||[""],u=e.length;u--;)a=he.exec(e[u])||[],d=g=a[1],f=(a[2]||"").split(".").sort(),d&&(h=Dt.event.special[d]||{},d=(r?h.delegateType:h.bindType)||d,h=Dt.event.special[d]||{},c=Dt.extend({type:d,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&Dt.expr.match.needsContext.test(r),namespace:f.join(".")},o),(p=l[d])||(p=l[d]=[],p.delegateCount=0,h.setup&&h.setup.call(t,i,f,s)!==!1||t.addEventListener&&t.addEventListener(d,s)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),Dt.event.global[d]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,u,c,h,p,d,f,g,m=Vt.hasData(t)&&Vt.get(t);if(m&&(l=m.events)){for(e=(e||"").match(Mt)||[""],u=e.length;u--;)if(a=he.exec(e[u])||[],d=g=a[1],f=(a[2]||"").split(".").sort(),d){for(h=Dt.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,p=l[d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,h.remove&&h.remove.call(t,c));s&&!p.length&&(h.teardown&&h.teardown.call(t,f,m.handle)!==!1||Dt.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)Dt.event.remove(t,d+e[u],n,i,!0);Dt.isEmptyObject(l)&&Vt.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),l=Dt.event.fix(t),u=(Vt.get(this,"events")||Object.create(null))[l.type]||[],c=Dt.event.special[l.type]||{};for(a[0]=l,e=1;e=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||u.disabled!==!0)){for(o=[],s={},n=0;n-1:Dt.find(r,this,null,[u]).length),s[r]&&o.push(i);o.length&&a.push({elem:u,handlers:o})}return u=this,l\s*$/g;Dt.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=te(t);if(!(_t.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Dt.isXMLDoc(t)))for(s=E(a),o=E(t),i=0,r=o.length;i0&&k(s,!l&&E(t,"script")),a},cleanData:function(t){for(var e,n,i,r=Dt.event.special,o=0;void 0!==(n=t[o]);o++)if(Ut(n)){if(e=n[Vt.expando]){if(e.events)for(i in e.events)r[i]?Dt.event.remove(n,i):Dt.removeEvent(n,i,e.handle);n[Vt.expando]=void 0}n[Xt.expando]&&(n[Xt.expando]=void 0)}}}),Dt.fn.extend({detach:function(t){return R(this,t,!0)},remove:function(t){return R(this,t)},text:function(t){return Wt(this,function(t){return void 0===t?Dt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return M(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=z(this,t);e.appendChild(t)}})},prepend:function(){return M(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=z(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return M(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return M(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Dt.cleanData(E(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return Dt.clone(this,t,e)})},html:function(t){return Wt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!pe.test(t)&&!ae[(oe.exec(t)||["",""])[1].toLowerCase()]){t=Dt.htmlPrefilter(t);try{for(;n3,Kt.removeChild(t)),a}}))}();var we=["Webkit","Moz","ms"],xe=Et.createElement("div").style,be={},_e=/^(none|table(?!-c[ea]).+)/,Ce=/^--/,Te={position:"absolute",visibility:"hidden",display:"block"},Ee={letterSpacing:"0",fontWeight:"400"};Dt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=I(t,"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(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=y(e),l=Ce.test(e),u=t.style;return l||(e=B(a)),s=Dt.cssHooks[e]||Dt.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:u[e]:(o=typeof n,"string"===o&&(r=Jt.exec(n))&&r[1]&&(n=_(t,e,r),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=r&&r[3]||(Dt.cssNumber[a]?"":"px")),_t.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n)),void 0)}},css:function(t,e,n,i){var r,o,s,a=y(e),l=Ce.test(e);return l||(e=B(a)),s=Dt.cssHooks[e]||Dt.cssHooks[a],s&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=I(t,e,i)),"normal"===r&&e in Ee&&(r=Ee[e]),""===n||n?(o=parseFloat(r),n===!0||isFinite(o)?o||0:r):r}}),Dt.each(["height","width"],function(t,e){Dt.cssHooks[e]={get:function(t,n,i){if(n)return!_e.test(Dt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?X(t,e,i):ve(t,Te,function(){return X(t,e,i)})},set:function(t,n,i){var r,o=me(t),s=!_t.scrollboxSize()&&"absolute"===o.position,a=s||i,l=a&&"border-box"===Dt.css(t,"boxSizing",!1,o),u=i?V(t,e,i,l,o):0;return l&&s&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-V(t,e,"border",!1,o)-.5)),u&&(r=Jt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=Dt.css(t,e)),U(t,n,u)}}}),Dt.cssHooks.marginLeft=W(_t.reliableMarginLeft,function(t,e){if(e)return(parseFloat(I(t,"marginLeft"))||t.getBoundingClientRect().left-ve(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),Dt.each({margin:"",padding:"",border:"Width"},function(t,e){Dt.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+Qt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(Dt.cssHooks[t+e].set=U)}),Dt.fn.extend({css:function(t,e){return Wt(this,function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=me(t),r=e.length;s1)}}),Dt.Tween=Y,Y.prototype={constructor:Y,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||Dt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(Dt.cssNumber[n]?"":"px")},cur:function(){var t=Y.propHooks[this.prop];return t&&t.get?t.get(this):Y.propHooks._default.get(this)},run:function(t){var e,n=Y.propHooks[this.prop];return this.options.duration?this.pos=e=Dt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Y.propHooks._default.set(this),this}},Y.prototype.init.prototype=Y.prototype,Y.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=Dt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){Dt.fx.step[t.prop]?Dt.fx.step[t.prop](t):1!==t.elem.nodeType||!Dt.cssHooks[t.prop]&&null==t.elem.style[B(t.prop)]?t.elem[t.prop]=t.now:Dt.style(t.elem,t.prop,t.now+t.unit)}}},Y.propHooks.scrollTop=Y.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Dt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},Dt.fx=Y.prototype.init,Dt.fx.step={};var ke,Se,De=/^(?:toggle|show|hide)$/,Ae=/queueHooks$/;Dt.Animation=Dt.extend(et,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return _(n.elem,t,Jt.exec(e),n),n}]},tweener:function(t,e){Ct(t)?(e=t,t=["*"]):t=t.match(Mt);for(var n,i=0,r=t.length;i1)},removeAttr:function(t){return this.each(function(){Dt.removeAttr(this,t)})}}),Dt.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?Dt.prop(t,e,n):(1===o&&Dt.isXMLDoc(t)||(r=Dt.attrHooks[e.toLowerCase()]||(Dt.expr.match.bool.test(e)?je:void 0)),void 0!==n?null===n?void Dt.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=Dt.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!_t.radioValue&&"radio"===e&&u(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(Mt);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),je={set:function(t,e,n){return e===!1?Dt.removeAttr(t,n):t.setAttribute(n,n),n}},Dt.each(Dt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Ne[e]||Dt.find.attr;Ne[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=Ne[s],Ne[s]=r,r=null!=n(t,e,i)?s:null,Ne[s]=o),r}});var $e=/^(?:input|select|textarea|button)$/i,Le=/^(?:a|area)$/i;Dt.fn.extend({prop:function(t,e){return Wt(this,Dt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Dt.propFix[t]||t]})}}),Dt.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Dt.isXMLDoc(t)||(e=Dt.propFix[e]||e,r=Dt.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=Dt.find.attr(t,"tabindex");return e?parseInt(e,10):$e.test(t.nodeName)||Le.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),_t.optSelected||(Dt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),Dt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Dt.propFix[this.toLowerCase()]=this}),Dt.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,l=0;if(Ct(t))return this.each(function(e){Dt(this).addClass(t.call(this,e,it(this)))});if(e=rt(t),e.length)for(;n=this[l++];)if(r=it(n),i=1===n.nodeType&&" "+nt(r)+" "){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a=nt(i),r!==a&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,l=0;if(Ct(t))return this.each(function(e){Dt(this).removeClass(t.call(this,e,it(this)))});if(!arguments.length)return this.attr("class","");if(e=rt(t),e.length)for(;n=this[l++];)if(r=it(n),i=1===n.nodeType&&" "+nt(r)+" "){for(s=0;o=e[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");a=nt(i),r!==a&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):Ct(t)?this.each(function(n){Dt(this).toggleClass(t.call(this,n,it(this),e),e)}):this.each(function(){var e,r,o,s;if(i)for(r=0,o=Dt(this),s=rt(t);e=s[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||(e=it(this),e&&Vt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":Vt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+nt(it(n))+" ").indexOf(e)>-1)return!0;return!1}});var ze=/\r/g;Dt.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=Ct(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,Dt(this).val()):t,null==r?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=Dt.map(r,function(t){return null==t?"":t+""})),e=Dt.valHooks[this.type]||Dt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=Dt.valHooks[r.type]||Dt.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(ze,""):null==n?"":n)}}}),Dt.extend({valHooks:{option:{get:function(t){var e=Dt.find.attr(t,"value");return null!=e?e:nt(Dt.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),Dt.each(["radio","checkbox"],function(){Dt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=Dt.inArray(Dt(t).val(),e)>-1}},_t.checkOn||(Dt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),_t.focusin="onfocusin"in n;var Oe=/^(?:focusinfocus|focusoutblur)$/,He=function(t){t.stopPropagation()};Dt.extend(Dt.event,{trigger:function(t,e,i,r){var o,s,a,l,u,c,h,p,d=[i||Et],f=wt.call(t,"type")?t.type:t,g=wt.call(t,"namespace")?t.namespace.split("."):[];if(s=p=a=i=i||Et,3!==i.nodeType&&8!==i.nodeType&&!Oe.test(f+Dt.event.triggered)&&(f.indexOf(".")>-1&&(g=f.split("."),f=g.shift(),g.sort()),u=f.indexOf(":")<0&&"on"+f,t=t[Dt.expando]?t:new Dt.Event(f,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:Dt.makeArray(e,[t]),h=Dt.event.special[f]||{},r||!h.trigger||h.trigger.apply(i,e)!==!1)){if(!r&&!h.noBubble&&!Tt(i)){for(l=h.delegateType||f,Oe.test(l+f)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(i.ownerDocument||Et)&&d.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)p=s,t.type=o>1?l:h.bindType||f,c=(Vt.get(s,"events")||Object.create(null))[t.type]&&Vt.get(s,"handle"),c&&c.apply(s,e),c=u&&s[u],c&&c.apply&&Ut(s)&&(t.result=c.apply(s,e),t.result===!1&&t.preventDefault());return t.type=f,r||t.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),e)!==!1||!Ut(i)||u&&Ct(i[f])&&!Tt(i)&&(a=i[u],a&&(i[u]=null),Dt.event.triggered=f,t.isPropagationStopped()&&p.addEventListener(f,He),i[f](),t.isPropagationStopped()&&p.removeEventListener(f,He),Dt.event.triggered=void 0,a&&(i[u]=a)),t.result}},simulate:function(t,e,n){var i=Dt.extend(new Dt.Event,n,{type:t,isSimulated:!0});Dt.event.trigger(i,null,e)}}),Dt.fn.extend({trigger:function(t,e){return this.each(function(){Dt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return Dt.event.trigger(t,e,n,!0)}}),_t.focusin||Dt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){Dt.event.simulate(e,t.target,Dt.event.fix(t))};Dt.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=Vt.access(i,e);r||i.addEventListener(t,n,!0),Vt.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=Vt.access(i,e)-1;r?Vt.access(i,e,r):(i.removeEventListener(t,n,!0),Vt.remove(i,e))}}});var Pe=n.location,qe={guid:Date.now()},Me=/\?/;Dt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(i){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||Dt.error("Invalid XML: "+t),e};var Re=/\[\]$/,Ie=/\r?\n/g,We=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;Dt.param=function(t,e){var n,i=[],r=function(t,e){var n=Ct(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!Dt.isPlainObject(t))Dt.each(t,function(){r(this.name,this.value)});else for(n in t)ot(n,t[n],e,r);return i.join("&")},Dt.fn.extend({serialize:function(){return Dt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Dt.prop(this,"elements");return t?Dt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Dt(this).is(":disabled")&&Fe.test(this.nodeName)&&!We.test(t)&&(this.checked||!re.test(t))}).map(function(t,e){var n=Dt(this).val();return null==n?null:Array.isArray(n)?Dt.map(n,function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}}):{name:e.name,value:n.replace(Ie,"\r\n")}}).get()}});var Be=/%20/g,Ue=/#.*$/,Ve=/([?&])_=[^&]*/,Xe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ye=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ge=/^(?:GET|HEAD)$/,Ze=/^\/\//,Je={},Qe={},Ke="*/".concat("*"),tn=Et.createElement("a");tn.href=Pe.href,Dt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pe.href,type:"GET",isLocal:Ye.test(Pe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ke,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":Dt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?lt(lt(t,Dt.ajaxSettings),e):lt(Dt.ajaxSettings,t)},ajaxPrefilter:st(Je),ajaxTransport:st(Qe),ajax:function(t,e){function i(t,e,i,a){var u,p,d,x,b,_=e;c||(c=!0,l&&n.clearTimeout(l),r=void 0,s=a||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(x=ut(f,C,i)),!u&&Dt.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),x=ct(f,x,C,u),u?(f.ifModified&&(b=C.getResponseHeader("Last-Modified"),b&&(Dt.lastModified[o]=b),b=C.getResponseHeader("etag"),b&&(Dt.etag[o]=b)),204===t||"HEAD"===f.type?_="nocontent":304===t?_="notmodified":(_=x.state,p=x.data,d=x.error,u=!d)):(d=_,!t&&_||(_="error",t<0&&(t=0))),C.status=t,C.statusText=(e||_)+"",u?v.resolveWith(g,[p,_,C]):v.rejectWith(g,[C,_,d]),C.statusCode(w),w=void 0,h&&m.trigger(u?"ajaxSuccess":"ajaxError",[C,f,u?p:d]),y.fireWith(g,[C,_]),h&&(m.trigger("ajaxComplete",[C,f]),--Dt.active||Dt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,o,s,a,l,u,c,h,p,d,f=Dt.ajaxSetup({},e),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?Dt(g):Dt.event,v=Dt.Deferred(),y=Dt.Callbacks("once memory"),w=f.statusCode||{},x={},b={},_="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Xe.exec(s);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)C.always(t[C.status]);else for(e in t)w[e]=[w[e],t[e]];return this},abort:function(t){var e=t||_;return r&&r.abort(e),i(0,e),this}};if(v.promise(C),f.url=((t||f.url||Pe.href)+"").replace(Ze,Pe.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Mt)||[""],null==f.crossDomain){u=Et.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=tn.protocol+"//"+tn.host!=u.protocol+"//"+u.host}catch(T){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Dt.param(f.data,f.traditional)),at(Je,f,e,C),c)return C;h=Dt.event&&f.global,h&&0===Dt.active++&&Dt.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ge.test(f.type),o=f.url.replace(Ue,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Be,"+")):(d=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Me.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(Ve,"$1"),d=(Me.test(o)?"&":"?")+"_="+qe.guid++ +d),f.url=o+d),f.ifModified&&(Dt.lastModified[o]&&C.setRequestHeader("If-Modified-Since",Dt.lastModified[o]),Dt.etag[o]&&C.setRequestHeader("If-None-Match",Dt.etag[o])),(f.data&&f.hasContent&&f.contentType!==!1||e.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ke+"; q=0.01":""):f.accepts["*"]);for(p in f.headers)C.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(f.beforeSend.call(g,C,f)===!1||c))return C.abort();if(_="abort",y.add(f.complete),C.done(f.success),C.fail(f.error),r=at(Qe,f,e,C)){if(C.readyState=1,h&&m.trigger("ajaxSend",[C,f]),c)return C;f.async&&f.timeout>0&&(l=n.setTimeout(function(){C.abort("timeout")},f.timeout));try{c=!1,r.send(x,i)}catch(T){if(c)throw T;i(-1,T)}}else i(-1,"No Transport");return C},getJSON:function(t,e,n){return Dt.get(t,e,n,"json")},getScript:function(t,e){return Dt.get(t,void 0,e,"script")}}),Dt.each(["get","post"],function(t,e){
26 | Dt[e]=function(t,n,i,r){return Ct(n)&&(r=r||i,i=n,n=void 0),Dt.ajax(Dt.extend({url:t,type:e,dataType:r,data:n,success:i},Dt.isPlainObject(t)&&t))}}),Dt.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),Dt._evalUrl=function(t,e,n){return Dt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){Dt.globalEval(t,e,n)}})},Dt.fn.extend({wrapAll:function(t){var e;return this[0]&&(Ct(t)&&(t=t.call(this[0])),e=Dt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return Ct(t)?this.each(function(e){Dt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Dt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=Ct(t);return this.each(function(n){Dt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){Dt(this).replaceWith(this.childNodes)}),this}}),Dt.expr.pseudos.hidden=function(t){return!Dt.expr.pseudos.visible(t)},Dt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},Dt.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var en={0:200,1223:204},nn=Dt.ajaxSettings.xhr();_t.cors=!!nn&&"withCredentials"in nn,_t.ajax=nn=!!nn,Dt.ajaxTransport(function(t){var e,i;if(_t.cors||nn&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(en[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){e&&i()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(l){if(e)throw l}},abort:function(){e&&e()}}}),Dt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),Dt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return Dt.globalEval(t),t}}}),Dt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Dt.ajaxTransport("script",function(t){if(t.crossDomain||t.scriptAttrs){var e,n;return{send:function(i,r){e=Dt("
136 |
--------------------------------------------------------------------------------
/src/plugin.js:
--------------------------------------------------------------------------------
1 | import VOwlCarousel from './Carousel.vue';
2 |
3 | module.exports = {
4 | install: function (Vue, options) {
5 | Vue.component('v-owl-carousel', VOwlCarousel);
6 | }
7 | };
8 |
--------------------------------------------------------------------------------
/webpack.config.js:
--------------------------------------------------------------------------------
1 | const webpack = require('webpack');
2 | const merge = require('webpack-merge');
3 | const path = require('path');
4 |
5 | var config = {
6 | output: {
7 | path: path.resolve(__dirname + '/dist/'),
8 | },
9 | module: {
10 | loaders: [
11 | {
12 | test: /\.js$/,
13 | loader: 'babel',
14 | include: __dirname,
15 | exclude: /node_modules/
16 | },
17 | {
18 | test: /\.vue$/,
19 | loader: 'vue'
20 | },
21 | {
22 | test: /\.css$/,
23 | loaders: [
24 | 'vue-style-loader',
25 | 'css-loader'
26 | ]
27 | },
28 | {
29 | test: /\.(png|jpg|gif|svg)$/,
30 | loader: 'file-loader',
31 | options: {
32 | name: '[name].[ext]?[hash]'
33 | }
34 | }
35 | ]
36 | },
37 | externals: {
38 | moment: 'moment'
39 | },
40 | plugins: [
41 | new webpack.optimize.UglifyJsPlugin( {
42 | minimize : true,
43 | sourceMap : false,
44 | mangle: true,
45 | compress: {
46 | warnings: false
47 | }
48 | } ),
49 | new webpack.ProvidePlugin({
50 | $: 'jquery',
51 | jQuery: 'jquery',
52 | 'window.jQuery': 'jquery'
53 | })
54 | ]
55 | };
56 |
57 |
58 | module.exports = [
59 | merge(config, {
60 | entry: path.resolve(__dirname + '/src/plugin.js'),
61 | output: {
62 | filename: 'v-owl-carousel.min.js',
63 | libraryTarget: 'window',
64 | library: 'VOwlCarousel',
65 | }
66 | }),
67 | merge(config, {
68 | entry: path.resolve(__dirname + '/src/Carousel.vue'),
69 | output: {
70 | filename: 'v-owl-carousel.js',
71 | libraryTarget: 'umd',
72 | library: 'v-owl-carousel',
73 | umdNamedDefine: true
74 | }
75 | })
76 | ];
77 |
--------------------------------------------------------------------------------