diff --git a/dist/client/index.html b/dist/client/index.html index 76310813..873f5211 100644 --- a/dist/client/index.html +++ b/dist/client/index.html @@ -7,5 +7,5 @@ transition: opacity 0.25s 0.25s ease-in-out; }
Loading -
\ No newline at end of file +
diff --git a/dist/client/js/main.js b/dist/client/js/main.js index 4050e34a..84b82ac2 100644 --- a/dist/client/js/main.js +++ b/dist/client/js/main.js @@ -1,5 +1,5 @@ /*! For license information please see main.js.LICENSE.txt */ -var silex;(()=>{var t={482:(t,e,n)=>{var r,o,i;i="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g,r=[n(23),n(651),e],o=function(t,e,n){i.Backbone=function(t,e,n,r){var o=t.Backbone,i=Array.prototype.slice;e.VERSION="1.4.1",e.$=r,e.noConflict=function(){return t.Backbone=o,this},e.emulateHTTP=!1,e.emulateJSON=!1;var s,a=e.Events={},l=/\s+/,c=function(t,e,r,o,i){var s,a=0;if(r&&"object"==typeof r){void 0!==o&&"context"in i&&void 0===i.context&&(i.context=o);for(s=n.keys(r);athis.length&&(o=this.length),o<0&&(o+=this.length+1);var i,s,a=[],l=[],c=[],u=[],p={},d=e.add,h=e.merge,f=e.remove,g=!1,v=this.comparator&&null==o&&!1!==e.sort,m=n.isString(this.comparator)?this.comparator:null;for(s=0;s7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(V,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,o=r.insertBefore(this.iframe,r.firstChild).contentWindow;o.document.open(),o.document.close(),o.location.hash="#"+this.fragment}var i=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?i("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?i("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),H.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!H.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+t;t=t.replace(F,"");var o=this.decodeFragment(t);if(this.fragment!==o){if(this.fragment=o,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;e.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new H;m.extend=y.extend=N.extend=A.extend=H.extend=function(t,e){var r,o=this;return r=t&&n.has(t,"constructor")?t.constructor:function(){return o.apply(this,arguments)},n.extend(r,o,e),r.prototype=n.create(o.prototype,t),r.prototype.constructor=r,r.__super__=o.prototype,r};var z=function(){throw new Error('A "url" property or function must be specified')},W=function(t,e){var n=e.error;e.error=function(r){n&&n.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return e}(i,n,t,e)}.apply(e,r),void 0===o||(t.exports=o)},106:t=>{function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const n=this._callbacks.get(t)??[];return n.push(e),this._callbacks.set(t,n),this},e.prototype.once=function(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return n.fn=e,this.on(t,n),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const n=this._callbacks.get(t);if(n){for(const[t,r]of n.entries())if(r===e||r.fn===e){n.splice(t,1);break}0===n.length?this._callbacks.delete(t):this._callbacks.set(t,n)}return this},e.prototype.emit=function(t,...e){const n=this._callbacks.get(t);if(n){const t=[...n];for(const n of t)n.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e},14:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>o});var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0&&t.set("private",1)}));var _=function(t){var e=[];for(var n in t){var r=t[n];r=r instanceof Array||r instanceof Object?JSON.stringify(r):r,e.push("".concat(n,"=").concat("'".concat(r,"'")))}return e.length?" ".concat(e.join(" ")):""},x=function(t){return i.indexOf(t)>=0},S=_(y),C=_(b),O={category:o,select:!0};x("column1")&&r.add("column1",n(n({},O),{label:e.labelColumn1,media:'\n \n ',content:"
\n
\n
\n ").concat(c?""):"")})),x("column2")&&r.add("column2",n(n({},O),{label:e.labelColumn2,media:'\n \n ',content:"
\n
\n
\n
\n ").concat(c?""):"")})),x("column3")&&r.add("column3",n(n({},O),{label:e.labelColumn3,media:'\n \n ',content:"
\n
\n
\n
\n
\n ").concat(c?""):"")})),x("column3-7")&&r.add("column3-7",n(n({},O),{label:e.labelColumn37,media:'\n \n ',content:"
\n
\n
\n
\n ").concat(c?""):"")})),x("text")&&r.add("text",n(n({},O),{activate:!0,label:e.labelText,media:'\n \n ',content:{type:"text",content:"Insert your text here",style:{padding:"10px"}}})),x("link")&&r.add("link",n(n({},O),{label:e.labelLink,media:'\n \n ',content:{type:"link",content:"Link",style:{color:"#d983a6"}}})),x("image")&&r.add("image",n(n({},O),{activate:!0,label:e.labelImage,media:'\n \n ',content:{style:{color:"black"},type:"image"}})),x("video")&&r.add("video",n(n({},O),{label:e.labelVideo,media:'\n \n ',content:{type:"video",src:"img/video2.webm",style:{height:"350px",width:"615px"}}})),x("map")&&r.add("map",n(n({},O),{label:e.labelMap,media:'\n \n ',content:{type:"map",style:{height:"350px"}}}))}(t,r({blocks:["column1","column2","column3","column3-7","text","link","image","video","map"],flexGrid:!1,stylePrefix:"gjs-",addBasicStyle:!0,category:"Basic",labelColumn1:"1 Column",labelColumn2:"2 Columns",labelColumn3:"3 Columns",labelColumn37:"2 Columns 3/7",labelText:"Text",labelLink:"Link",labelImage:"Image",labelVideo:"Video",labelMap:"Map",rowHeight:75},e))};return e})(),t.exports=e()},484:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>c});var n="custom-code-plugin__code",r="custom-code",o="custom-code:open-modal",i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n\n \n \n \n Custom code with <script> can\'t be rendered on the canvas\n ',modalTitle:"Insert your code",codeViewOptions:{},buttonLabel:"Save",commandCustomCode:{}},e);!function(t,e){void 0===e&&(e={});var i,s=t.Components,l=e.toolbarBtnCustomCode;s.addType("script",{view:{onRender:function(){var t=this.model,e=this.el;t.closestType(r)&&(e.innerHTML="")}}}),s.addType(r,{model:{defaults:a({name:"Custom Code",editable:!0,components:{tagName:"span",components:{type:"textnode",content:"Insert here your custom code"}}},e.propsCustomCode),init:function(){this.on("change:".concat(n),this.onCustomCodeChange);var t=this.get(n);!this.components().length&&this.components(t);var e=this.get("toolbar"),r="custom-code";l&&!e.filter((function(t){return t.id===r})).length&&e.unshift(a({id:r,command:o,label:'\n \n '},l))},onCustomCodeChange:function(){this.components(this.get(n))}},view:{events:{dblclick:"onActive"},init:function(){this.listenTo(this.model.components(),"add remove reset",this.onComponentsChange),this.onComponentsChange()},onComponentsChange:function(){var t=this;i&&clearInterval(i),i=setTimeout((function(){var r=t,o=r.model,i=r.el,s=!0;(o.get(n)||"").indexOf("=0&&e.placeholderScript&&(i.innerHTML=e.placeholderScript,s=!1),o.set({droppable:s})}),0)},onActive:function(){var t=this.model;this.em.get("Commands").run(o,{target:t})}}})}(t,c),function(t,e){var n=(void 0===e?{}:e).blockCustomCode,o=t.Blocks;n&&o.add(r,i({label:"Custom Code",media:'\n \n \n \n ',category:"Extra",activate:!0,select:!0,content:{type:r}},n))}(t,c),function(t,e){void 0===e&&(e={});var r=e.modalTitle,i=e.codeViewOptions,a=e.commandCustomCode,l=function(t,e){e instanceof HTMLElement?t.appendChild(e):e&&t.insertAdjacentHTML("beforeend",e)};t.Commands.add(o,s({keyCustomCode:n,target:null,codeViewer:null,run:function(t,e,n){void 0===n&&(n={});var r=n.target||t.getSelected();this.target=r,(null==r?void 0:r.get("editable"))&&this.showCustomCode(r,n)},stop:function(t){t.Modal.close()},showCustomCode:function(e,i){var s=i.title||r,a=e.get(n)||"",l=this.getContent();t.Modal.open({title:s,content:l}).onceClose((function(){return t.stopCommand(o)})),this.getCodeViewer().setContent(a)},getPreContent:function(){},getPostContent:function(){},getContent:function(){var e=this.getCodeViewer(),n=document.createElement("div"),r=t.getConfig("stylePrefix");return n.className="".concat(r,"custom-code"),l(n,this.getPreContent()),n.appendChild(e.getElement()),l(n,this.getPostContent()),l(n,this.getContentActions()),e.refresh(),setTimeout((function(){return e.focus()}),0),n},getContentActions:function(){var n=this,r=document.createElement("button");r.setAttribute("type","button");var o=t.getConfig("stylePrefix");return r.innerHTML=e.buttonLabel,r.className="".concat(o,"btn-prim ").concat(o,"btn-import__custom-code"),r.onclick=function(){return n.handleSave()},r},handleSave:function(){var e=this.target,r=this.getCodeViewer().getContent();null==e||e.set(n,r),t.Modal.close()},getCodeViewer:function(){return this.codeViewer||(this.codeViewer=t.CodeManager.createViewer(s({codeName:"htmlmixed",theme:"hopscotch",readOnly:0},i))),this.codeViewer}},a))}(t,c)};return e})(),t.exports=e()},898:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>h});var n="form",r="input",o="textarea",i="select",s="checkbox",a="radio",l="button",c="label",u="option",p=function(){return p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0&&d.add(t,p(p(p({},n),{category:u.category,select:!0}),e.block(t)))};h(n,{label:"Form",media:'',content:{type:n,components:[{components:[{type:c,components:"Name"},{type:r}]},{components:[{type:c,components:"Email"},{type:r,attributes:{type:"email"}}]},{components:[{type:c,components:"Gender"},{type:s,attributes:{value:"M"}},{type:c,components:"M"},{type:s,attributes:{value:"F"}},{type:c,components:"F"}]},{components:[{type:c,components:"Message"},{type:o}]},{components:[{type:l}]}]}}),h(r,{label:"Input",media:'',content:{type:r}}),h(o,{label:"Textarea",media:'',content:{type:o}}),h(i,{label:"Select",media:'',content:{type:i}}),h(l,{label:"Button",media:'',content:{type:l}}),h(c,{label:"Label",media:'',content:{type:c}}),h(s,{label:"Checkbox",media:'',content:{type:s}}),h(a,{label:"Radio",media:'',content:{type:a}})}(t,h)};return e})(),t.exports=e()},16:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{var t={180:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{var t={9:function(t){"undefined"!=typeof self&&self,t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=1)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.on=function(t,e,n){e=e.split(/\s+/);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));t=Object.assign({},t);var r={pfx:"grp",el:".grp",colorEl:"",min:0,max:100,direction:"90deg",type:"linear",height:"30px",width:"100%",emptyColor:"#000",onValuePos:function(t){return parseInt(t)}};for(var o in r)o in t||(t[o]=r[o]);var i=t.el;if(!((i="string"==typeof i?document.querySelector(i):i)instanceof HTMLElement))throw"Element not found, given "+i;return n.el=i,n.handlers=[],n.options=t,n.on("handler:color:change",(function(t,e){return n.change(e)})),n.on("handler:position:change",(function(t,e){return n.change(e)})),n.on("handler:remove",(function(t){return n.change(1)})),n.on("handler:add",(function(t){return n.change(1)})),n.render(),n}return function(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)}(e,t),o(e,[{key:"destroy",value:function(){var t=this;this.clear(),this.e={},["el","handlers","options","colorPicker"].forEach((function(e){return t[e]=0})),["previewEl","wrapperEl","sandEl"].forEach((function(e){var n=t[e];n&&n.parentNode&&n.parentNode.removeChild(n),delete t[e]}))}},{key:"setColorPicker",value:function(t){this.colorPicker=t}},{key:"getValue",value:function(t,e){var n=this.getColorValue(),r=t||this.getType(),o=["top","left","bottom","right","center"],i=e||this.getDirection();return["linear","repeating-linear"].indexOf(r)>=0&&o.indexOf(i)>=0&&(i="center"===i?"to right":"to "+i),["radial","repeating-radial"].indexOf(r)>=0&&o.indexOf(i)>=0&&(i="circle at "+i),n?r+"-gradient("+i+", "+n+")":""}},{key:"getSafeValue",value:function(t,e){var n=this.previewEl,r=this.getValue(t,e);if(!this.sandEl&&(this.sandEl=document.createElement("div")),!n||!r)return"";for(var o=this.sandEl.style,i=[r].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.type,o=this.direction,i=e.indexOf("(")+1,s=e.lastIndexOf(")"),a=e.substring(i,s),l=a.split(/,(?![^(]*\)) /);if(this.clear(n),a){l.length>2&&(o=l.shift());var c=void 0;["repeating-linear","repeating-radial","linear","radial"].forEach((function(t){e.indexOf(function(t){return t+"-gradient("}(t))>-1&&!c&&(c=1,r=t)})),this.setDirection(o,n),this.setType(r,n),l.forEach((function(e){var r=e.split(" "),o=parseFloat(r.pop()),i=r.join("");t.addHandler(o,i,0,n)})),this.updatePreview()}else this.updatePreview()}},{key:"getColorValue",value:function(){var t=this.handlers;return t.sort(l),(t=1==t.length?[t[0],t[0]]:t).map((function(t){return t.getValue()})).join(", ")}},{key:"getPrefixedValues",value:function(t,e){var n=this.getValue(t,e);return["-moz-","-webkit-","-o-","-ms-"].map((function(t){return""+t+n}))}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.updatePreview(),!e.silent&&this.emit("change",t)}},{key:"setDirection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options.direction=t;var n=e.complete,r=void 0===n?1:n;this.change(r,e)}},{key:"getDirection",value:function(){return this.options.direction}},{key:"setType",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options.type=t;var n=e.complete,r=void 0===n?1:n;this.change(r,e)}},{key:"getType",value:function(){return this.options.type}},{key:"addHandler",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new s.default(this,t,e,n,r);return!r.silent&&this.emit("handler:add",o),o}},{key:"getHandler",value:function(t){return this.handlers[t]}},{key:"getHandlers",value:function(){return this.handlers}},{key:"clear",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.handlers,n=e.length-1;n>=0;n--)e[n].remove(t)}},{key:"getSelected",value:function(){for(var t=this.getHandlers(),e=0;ei||cs.h||l<0)){var u=document.createElement("canvas"),p=u.getContext("2d");u.width=s.w,u.height=s.h;var d=p.createLinearGradient(0,0,s.w,s.h);t.getHandlers().forEach((function(t){return d.addColorStop(t.position/100,t.color)})),p.fillStyle=d,p.fillRect(0,0,u.width,u.height),u.style.background="black";var h=u.getContext("2d").getImageData(a,l,1,1).data,f="rgba("+h[0]+", "+h[1]+", "+h[2]+", "+h[3]+")",g="rgba(0, 0, 0, 0)"==f?r.emptyColor:f;t.addHandler(c,g)}}))}},{key:"render",value:function(){var t=this.options,e=this.el,n=t.pfx,r=t.height,o=t.width;if(e){var i=n+"-wrapper",s=n+"-preview";e.innerHTML='\n
\n
\n
\n ';var a=e.querySelector("."+i),l=e.querySelector("."+s),c=a.style;c.position="relative",this.wrapperEl=a,this.previewEl=l,r&&(c.height=r),o&&(c.width=o),this.initEvents(),this.updatePreview()}}}]),e}(i.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"black",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),e.getHandlers().push(this),this.gp=e,this.position=n,this.color=r,this.selected=0,this.render(),o&&this.select(i)}return r(t,[{key:"toJSON",value:function(){return{position:this.position,selected:this.selected,color:this.color}}},{key:"setColor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.color=t,this.emit("handler:color:change",this,e)}},{key:"setPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getEl();this.position=t,n&&(n.style.left=t+"%"),this.emit("handler:position:change",this,e)}},{key:"getColor",value:function(){return this.color}},{key:"getPosition",value:function(){var t=this.position,e=this.gp.options.onValuePos;return(0,o.isFunction)(e)?e(t):t}},{key:"isSelected",value:function(){return!!this.selected}},{key:"getValue",value:function(){return this.getColor()+" "+this.getPosition()+"%"}},{key:"select",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.getEl(),n=this.gp.getHandlers();!t.keepSelect&&n.forEach((function(t){return t.deselect()})),this.selected=1;var r=this.getSelectedCls();e&&(e.className+=" "+r),this.emit("handler:select",this)}},{key:"deselect",value:function(){var t=this.getEl();this.selected=0;var e=this.getSelectedCls();t&&(t.className=t.className.replace(e,"").trim()),this.emit("handler:deselect",this)}},{key:"getSelectedCls",value:function(){return this.gp.options.pfx+"-handler-selected"}},{key:"remove",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.cpFn,r=this.getEl(),i=this.gp.getHandlers(),s=i.splice(i.indexOf(this),1)[0];return r&&r.parentNode.removeChild(r),!e.silent&&this.emit("handler:remove",s),(0,o.isFunction)(n)&&n(this),["el","gp"].forEach((function(e){return t[e]=0})),s}},{key:"getEl",value:function(){return this.el}},{key:"initEvents",value:function(){var t=this,e=this.getEl(),n=this.gp.previewEl,r=this.gp.options,i=r.min,s=r.max,a=e.querySelector("[data-toggle=handler-close]"),l=e.querySelector("[data-toggle=handler-color-c]"),c=e.querySelector("[data-toggle=handler-color-wrap]"),u=e.querySelector("[data-toggle=handler-color]"),p=e.querySelector("[data-toggle=handler-drag]"),d=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=e.target.value;t.setColor(r,n),c&&(c.style.backgroundColor=r)};if(l&&(0,o.on)(l,"click",(function(t){return t.stopPropagation()})),a&&(0,o.on)(a,"click",(function(e){e.stopPropagation(),t.remove()})),u&&((0,o.on)(u,"change",d),(0,o.on)(u,"input",(function(t){return d(t,0)}))),p){var h=0,f=0,g=0,v={},m={},y={},b=function(e){var n=(0,o.getPointerEvent)(e);g=1,y.x=n.clientX-m.x,y.y=n.clientY-m.y,h=100*y.x,h/=v.w,h=(h=(h=f+h)s?s:h,t.setPosition(h,0),t.emit("handler:drag",t,h),(0,o.isDef)(e.button)&&0===e.which&&w(e)},w=function e(n){(0,o.off)(document,"touchmove mousemove",b),(0,o.off)(document,"touchend mouseup",e),g&&(g=0,t.setPosition(h),t.emit("handler:drag:end",t,h))};(0,o.on)(p,"touchstart mousedown",(function(e){if(!(0,o.isDef)(e.button)||0===e.button){t.select();var r=(0,o.getPointerEvent)(e);f=t.position,v.w=n.clientWidth,v.h=n.clientHeight,m.x=r.clientX,m.y=r.clientY,(0,o.on)(document,"touchmove mousemove",b),(0,o.on)(document,"touchend mouseup",w),t.emit("handler:drag:start",t)}})),(0,o.on)(p,"click",(function(t){return t.stopPropagation()}))}}},{key:"emit",value:function(){var t;(t=this.gp).emit.apply(t,arguments)}},{key:"render",value:function(){var t=this.gp,e=t.options,n=t.previewEl,r=t.colorPicker,o=e.pfx,i=e.colorEl,s=this.getColor();if(n){var a=document.createElement("div"),l=a.style,c=o+"-handler";return a.className=c,a.innerHTML='\n
\n
\n
\n
\n
\n '+(i||'\n
\n \n
')+"\n
\n ",l.position="absolute",l.top=0,l.left=this.position+"%",n.appendChild(a),this.el=a,this.initEvents(),this.cpFn=r&&r(this),a}}}]),t}();e.default=i}])}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{GRAD_DIRS:()=>c,GRAD_TYPES:()=>u,default:()=>v,getValidDir:()=>l,parseGradient:()=>s,toGradient:()=>a});var t=n(9),e=n.n(t),o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n2&&(i.direction=o.shift(),i.colors=o.join(",").trim());var s=!1;return["repeating-linear","repeating-radial","linear","radial"].forEach((function(e){t.indexOf(function(t){return"".concat(t,"-gradient(")}(e))>-1&&!s&&(s=!0,i.type=e)})),i.stops=o.map((function(t){var e=t.split(" "),n=(e.length>1?e.pop():"").trim();return{color:e.join(" ").trim(),position:n}})),i},a=function(t,e,n){var r=i(i([],c,!0),["center"],!1),o=e;return["linear","repeating-linear"].indexOf(t)>=0&&r.indexOf(o)>=0&&(o="center"===o?"to right":"to ".concat(o)),["radial","repeating-radial"].indexOf(t)>=0&&r.indexOf(o)>=0&&(o="circle at ".concat(o)),n?"".concat(t,"-gradient(").concat(o,", ").concat(n,")"):""},l=function(t){return c.filter((function(e){return t.indexOf(e)>-1}))[0]},c=["right","bottom","left","top"],u=["linear","radial","repeating-linear","repeating-radial"],p='[data-toggle="handler-color-wrap"]',d="background-image-gradient",h="".concat(d,"-dir"),f="".concat(d,"-type"),g=function(){return g=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{BackgroundType:()=>t,default:()=>m});var t,e=n(180),o=n.n(e),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n-1)o[p]=n;else if(n.indexOf("gradient(")>-1){var i=(0,e.parseGradient)(n),s=i.stops;if(2===s.length&&"linear"===i.type&&s[0].color===s[1].color)o[u]=t.Color,o[d]=s[0].color;else{var a=(0,e.getValidDir)(i.direction)||e.GRAD_DIRS[0],l=i.type||e.GRAD_TYPES[0];o[u]=t.Grad,o[h]=(0,e.toGradient)(l,a,i.colors),o[g]=l,o[f]=a}}return o},l='style="max-height: 16px; display: block; margin: 0 auto" viewBox="0 0 24 24"',c="background-image",u="__background-type",p=c,d="".concat(p,"-color"),h="".concat(p,"-gradient"),f="".concat(h,"-dir"),g="".concat(h,"-type"),v="none";const m=function(n,r){void 0===r&&(r={});var m=i({styleGradientOpts:{},propExtender:function(t){return t}},r);o()(n,i({colorPicker:"default"},m.styleGradientOpts)),n.Styles.addBuiltIn("background",{type:"stack",layerSeparator:/(?=0)&&(o=!0),e.up({visible:o}))}))},options:[{id:t.Image,title:"Image",label:"')},{id:t.Color,title:"Color",label:"')},{id:t.Grad,title:"Gradient",label:"')}]},{label:"Image",property:p,default:"none",functionName:"url",type:"file",full:!0},{property:"background-repeat",default:"repeat",type:"select",options:[{id:"repeat",label:"Repeat"},{id:"repeat-x",label:"Repeat x"},{id:"repeat-y",label:"Repeat y"},{id:"no-repeat",label:"No repeat"},{id:"space",label:"Space"},{id:"round",label:"Round"}]},{property:"background-position",default:"left top",type:"select",options:s(["left top","left center","left bottom","right top","right center","right bottom","center top","center center","center bottom"])},{property:"background-attachment",default:"scroll",type:"select",options:s(["scroll","fixed","local"])},{type:"select",default:"auto",property:"background-size",options:s(["auto","cover","contain"])},{label:"Color",property:d,default:"none",type:"color",full:!0},{label:"Gradient",property:h,default:"linear-gradient(right, black 0%, white 100%)",type:"gradient",full:!0},{name:"Direction",property:f,type:"select",default:"right",options:s(e.GRAD_DIRS)},{name:"Type",property:g,default:"linear",type:"select",options:s(e.GRAD_TYPES)}].map((function(t){var e;return(null===(e=m.propExtender)||void 0===e?void 0:e.call(m,t))||t}))})}})(),r})(),t.exports=e()},571:function(t){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;ei});const i=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o(o({},{sector:"decorations",originalBorder:{sector:"decorations",name:"border"},extendType:{},extendWidth:{},extendStyle:{},extendColor:{},extendBorder:{},extendBorderTop:{},extendBorderLeft:{},extendBorderBottom:{},extendBorderRight:{},at:!1}),n),i=t.Styles,s=[],a=t.getConfig("stylePrefix"),l=".".concat(a,"sm-property"),c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";s.forEach((function(n){var r=(n.view||{}).$el;r&&(r.show(),n.get("property")==="border".concat(t)?e.view.$el.insertBefore(r.find(l).first()):r.hide())})),s.forEach((function(e){e.get("property")!=="border".concat(t)?e.set("requires",{display:"invisible"}):e.set("requires",null)}))},u=o({property:"border-type",type:"composite",properties:[o({property:"border-options",type:"radio",name:" ",default:"all",options:[{value:"all",title:"all",className:"fa fa-arrows"},{value:"top",title:"top",className:"fa fa-long-arrow-up"},{value:"right",title:"right",className:"fa fa-long-arrow-right"},{value:"bottom",title:"bottom",className:"fa fa-long-arrow-down"},{value:"left",title:"left",className:"fa fa-long-arrow-left"}],onChange:function(t){t.property;var e=t.to.value;if(null!=e){var n=e&&"all"!==e?"-".concat(e):"";c(n)}}},r.extendType)],toStyle:function(t,e){return e.name,{}}},r.extendType),p=o({property:"border-style",type:"select",default:"solid",full:"true",options:[{value:"none"},{value:"solid"},{value:"dotted"},{value:"dashed"},{value:"double"},{value:"groove"},{value:"ridge"},{value:"inset"},{value:"outset"}]},r.extendStyle),d=[o({property:"border-width",units:["px","em","rem","vh","vw"],unit:"px",type:"slider",defaults:1,min:0,max:20},r.extendWidth),p,o({property:"border-color",type:"color"},r.extendColor)],h=[o({property:"border",type:"composite",properties:d},r.extendBorder),o({property:"border-top",type:"composite",properties:d},r.extendBorderTop),o({property:"border-right",type:"composite",properties:d},r.extendBorderRight),o({property:"border-bottom",type:"composite",properties:d},r.extendBorderBottom),o({property:"border-left",type:"composite",properties:d},r.extendBorderLeft)];t.on("load",(function(){var t=r.originalBorder,n=r.sector,o=r.at;i.removeProperty(t.sector,t.name),e=i.addProperty(n,u,o?{at:o}:{}),h.forEach((function(t){s.push(i.addProperty(n,t,o?{at:o}:{}))})),c()}))};return e})()},391:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>r});var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&e-1 in t)}function A(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}O.fn=O.prototype={jquery:S,constructor:O,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=O.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return O.each(this,t)},map:function(t){return this.pushStack(O.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(O.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(O.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+j+")"+j+"*"),V=new RegExp(j+"|>"),F=new RegExp(D),z=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+D),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+T+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},B=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),J=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){lt()},Z=dt((function(t){return!0===t.disabled&&A(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(i=a.call(L.childNodes),L.childNodes),i[L.childNodes.length].nodeType}catch(t){g={apply:function(t,e){I.apply(t,a.call(e))},call:function(t){I.apply(t,a.call(arguments,1))}}}function Q(t,e,n,r){var o,i,s,a,c,u,h,f=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!r&&(lt(e),e=e||l,p)){if(11!==y&&(c=G.exec(t)))if(o=c[1]){if(9===y){if(!(s=e.getElementById(o)))return n;if(s.id===o)return g.call(n,s),n}else if(f&&(s=f.getElementById(o))&&Q.contains(e,s)&&s.id===o)return g.call(n,s),n}else{if(c[2])return g.apply(n,e.getElementsByTagName(t)),n;if((o=c[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(o)),n}if(!(S[t+" "]||d&&d.test(t))){if(h=t,f=e,1===y&&(V.test(t)||U.test(t))){for((f=K.test(t)&&at(e.parentNode)||e)==e&&v.scope||((a=e.getAttribute("id"))?a=O.escapeSelector(a):e.setAttribute("id",a=m)),i=(u=ut(t)).length;i--;)u[i]=(a?"#"+a:":scope")+" "+pt(u[i]);h=u.join(",")}try{return g.apply(n,f.querySelectorAll(h)),n}catch(e){S(t,!0)}finally{a===m&&e.removeAttribute("id")}}}return yt(t.replace($,"$1"),e,n,r)}function tt(){var t=[];return function n(r,o){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=o}}function et(t){return t[m]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t){return function(e){return A(e,"input")&&e.type===t}}function ot(t){return function(e){return(A(e,"input")||A(e,"button"))&&e.type===t}}function it(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Z(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et((function(e){return e=+e,et((function(n,r){for(var o,i=t([],n.length,e),s=i.length;s--;)n[o=i[s]]&&(n[o]=!(r[o]=n[o]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,r=t?t.ownerDocument||t:L;return r!=l&&9===r.nodeType&&r.documentElement?(c=(l=r).documentElement,p=!O.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&L!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",X),v.getById=nt((function(t){return c.appendChild(t).id=O.expando,!l.getElementsByName||!l.getElementsByName(O.expando).length})),v.disconnectedMatch=nt((function(t){return f.call(t,"*")})),v.scope=nt((function(){return l.querySelectorAll(":scope")})),v.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),v.getById?(e.filter.ID=function(t){var e=t.replace(Y,J);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Y,J);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var n,r,o,i=e.getElementById(t);if(i){if((n=i.getAttributeNode("id"))&&n.value===t)return[i];for(o=e.getElementsByName(t),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===t)return[i]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&p)return e.getElementsByClassName(t)},d=[],nt((function(t){var e;c.appendChild(t).innerHTML="",t.querySelectorAll("[selected]").length||d.push("\\["+j+"*(?:value|"+T+")"),t.querySelectorAll("[id~="+m+"-]").length||d.push("~="),t.querySelectorAll("a#"+m+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")")})),v.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),C=function(t,e){if(t===e)return s=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!v.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==L&&Q.contains(L,t)?-1:e===l||e.ownerDocument==L&&Q.contains(L,e)?1:o?u.call(o,t)-u.call(o,e):0:4&n?-1:1)},l):l}for(t in Q.matches=function(t,e){return Q(t,null,null,e)},Q.matchesSelector=function(t,e){if(lt(t),p&&!S[e+" "]&&(!d||!d.test(e)))try{var n=f.call(t,e);if(n||v.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){S(e,!0)}return Q(e,l,null,[t]).length>0},Q.contains=function(t,e){return(t.ownerDocument||t)!=l&<(t),O.contains(t,e)},Q.attr=function(t,n){(t.ownerDocument||t)!=l&<(t);var r=e.attrHandle[n.toLowerCase()],o=r&&h.call(e.attrHandle,n.toLowerCase())?r(t,n,!p):void 0;return void 0!==o?o:t.getAttribute(n)},Q.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},O.uniqueSort=function(t){var e,n=[],r=0,i=0;if(s=!v.sortStable,o=!v.sortStable&&a.call(t,0),k.call(t,C),s){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)P.call(t,n[r],1)}return o=null,t},O.fn.uniqueSort=function(){return this.pushStack(O.uniqueSort(a.apply(this)))},e=O.expr={cacheLength:50,createPseudo:et,match:W,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(Y,J),t[3]=(t[3]||t[4]||t[5]||"").replace(Y,J),"~="===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]||Q.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]&&Q.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return W.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&F.test(n)&&(e=ut(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(Y,J).toLowerCase();return"*"===t?function(){return!0}:function(t){return A(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&w(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var o=Q.attr(r,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(R," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,o){var i="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var c,u,p,d,h,f=i!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(g){if(i){for(;f;){for(p=e;p=p[f];)if(a?A(p,v):1===p.nodeType)return!1;h=f="only"===t&&!h&&"nextSibling"}return!0}if(h=[s?g.firstChild:g.lastChild],s&&b){for(w=(d=(c=(u=g[m]||(g[m]={}))[t]||[])[0]===y&&c[1])&&c[2],p=d&&g.childNodes[d];p=++d&&p&&p[f]||(w=d=0)||h.pop();)if(1===p.nodeType&&++w&&p===e){u[t]=[y,d,w];break}}else if(b&&(w=d=(c=(u=e[m]||(e[m]={}))[t]||[])[0]===y&&c[1]),!1===w)for(;(p=++d&&p&&p[f]||(w=d=0)||h.pop())&&(!(a?A(p,v):1===p.nodeType)||!++w||(b&&((u=p[m]||(p[m]={}))[t]=[y,w]),p!==e)););return(w-=o)===r||w%r==0&&w/r>=0}}},PSEUDO:function(t,n){var r,o=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Q.error("unsupported pseudo: "+t);return o[m]?o(n):o.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var r,i=o(t,n),s=i.length;s--;)t[r=u.call(t,i[s])]=!(e[r]=i[s])})):function(t){return o(t,0,r)}):o}},pseudos:{not:et((function(t){var e=[],n=[],r=mt(t.replace($,"$1"));return r[m]?et((function(t,e,n,o){for(var i,s=r(t,null,o,[]),a=t.length;a--;)(i=s[a])&&(t[a]=!(e[a]=i))})):function(t,o,i){return e[0]=t,r(e,null,i,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return Q(t,e).length>0}})),contains:et((function(t){return t=t.replace(Y,J),function(e){return(e.textContent||O.text(e)).indexOf(t)>-1}})),lang:et((function(t){return z.test(t||"")||Q.error("unsupported lang: "+t),t=t.replace(Y,J).toLowerCase(),function(e){var n;do{if(n=p?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:it(!1),disabled:it(!0),checked:function(t){return A(t,"input")&&!!t.checked||A(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return q.test(t.nodeName)},input:function(t){return B.test(t.nodeName)},button:function(t){return A(t,"input")&&"button"===t.type||A(t,"button")},text:function(t){var e;return A(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st((function(){return[0]})),last:st((function(t,e){return[e-1]})),eq:st((function(t,e,n){return[n<0?n+e:n]})),even:st((function(t,e){for(var n=0;ne?e:n;--r>=0;)t.push(r);return t})),gt:st((function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var o=t.length;o--;)if(!t[o](e,n,r))return!1;return!0}:t[0]}function ft(t,e,n,r,o){for(var i,s=[],a=0,l=t.length,c=null!=e;a-1&&(i[c]=!(s[c]=d))}}else h=ft(h===s?h.splice(m,h.length):h),o?o(null,s,h,l):g.apply(s,h)}))}function vt(t){for(var r,o,i,s=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],c=a?1:0,p=dt((function(t){return t===r}),l,!0),d=dt((function(t){return u.call(r,t)>-1}),l,!0),h=[function(t,e,o){var i=!a&&(o||e!=n)||((r=e).nodeType?p(t,e,o):d(t,e,o));return r=null,i}];c1&&ht(h),c>1&&pt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace($,"$1"),o,c0,i=t.length>0,s=function(s,a,c,u,d){var h,f,v,m=0,b="0",w=s&&[],_=[],x=n,S=s||i&&e.find.TAG("*",d),C=y+=null==x?1:Math.random()||.1,T=S.length;for(d&&(n=a==l||a||d);b!==T&&null!=(h=S[b]);b++){if(i&&h){for(f=0,a||h.ownerDocument==l||(lt(h),c=!p);v=t[f++];)if(v(h,a||l,c)){g.call(u,h);break}d&&(y=C)}o&&((h=!v&&h)&&m--,s&&w.push(h))}if(m+=b,o&&b!==m){for(f=0;v=r[f++];)v(w,_,a,c);if(s){if(m>0)for(;b--;)w[b]||_[b]||(_[b]=E.call(u));_=ft(_)}g.apply(u,_),d&&!s&&_.length>0&&m+r.length>1&&O.uniqueSort(u)}return d&&(y=C,n=x),w};return o?et(s):s}(s,i)),a.selector=t}return a}function yt(t,n,r,o){var i,s,a,l,c,u="function"==typeof t&&t,d=!o&&ut(t=u.selector||t);if(r=r||[],1===d.length){if((s=d[0]=d[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&p&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(Y,J),n)||[])[0]))return r;u&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(i=W.needsContext.test(t)?0:s.length;i--&&(a=s[i],!e.relative[l=a.type]);)if((c=e.find[l])&&(o=c(a.matches[0].replace(Y,J),K.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(i,1),!(t=o.length&&pt(s)))return g.apply(r,o),r;break}}return(u||mt(t,d))(o,n,!p,r,!n||K.test(t)&&at(n.parentNode)||n),r}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,v.sortStable=m.split("").sort(C).join("")===m,lt(),v.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),O.find=Q,O.expr[":"]=O.expr.pseudos,O.unique=O.uniqueSort,Q.compile=mt,Q.select=yt,Q.setDocument=lt,Q.tokenize=ut,Q.escape=O.escapeSelector,Q.getText=O.text,Q.isXML=O.isXMLDoc,Q.selectors=O.expr,Q.support=O.support,Q.uniqueSort=O.uniqueSort}();var D=function(t,e,n){for(var r=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&O(t).is(n))break;r.push(t)}return r},R=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},H=O.expr.match.needsContext,U=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function V(t,e,n){return m(e)?O.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?O.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?O.grep(t,(function(t){return u.call(e,t)>-1!==n})):O.filter(e,t,n)}O.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?O.find.matchesSelector(r,t)?[r]:[]:O.find.matches(t,O.grep(e,(function(t){return 1===t.nodeType})))},O.fn.extend({find:function(t){var e,n,r=this.length,o=this;if("string"!=typeof t)return this.pushStack(O(t).filter((function(){for(e=0;e1?O.uniqueSort(n):n},filter:function(t){return this.pushStack(V(this,t||[],!1))},not:function(t){return this.pushStack(V(this,t||[],!0))},is:function(t){return!!V(this,"string"==typeof t&&H.test(t)?O(t):t||[],!1).length}});var F,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(O.fn.init=function(t,e,n){var r,o;if(!t)return this;if(n=n||F,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:z.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof O?e[0]:e,O.merge(this,O.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),U.test(r[1])&&O.isPlainObject(e))for(r in e)m(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(o=b.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==n.ready?n.ready(t):t(O):O.makeArray(t,this)}).prototype=O.fn,F=O(b);var W=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function q(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}O.fn.extend({has:function(t){var e=O(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&O.find.matchesSelector(n,t))){i.push(n);break}return this.pushStack(i.length>1?O.uniqueSort(i):i)},index:function(t){return t?"string"==typeof t?u.call(O(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(O.uniqueSort(O.merge(this.get(),O(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),O.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return D(t,"parentNode")},parentsUntil:function(t,e,n){return D(t,"parentNode",n)},next:function(t){return q(t,"nextSibling")},prev:function(t){return q(t,"previousSibling")},nextAll:function(t){return D(t,"nextSibling")},prevAll:function(t){return D(t,"previousSibling")},nextUntil:function(t,e,n){return D(t,"nextSibling",n)},prevUntil:function(t,e,n){return D(t,"previousSibling",n)},siblings:function(t){return R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(A(t,"template")&&(t=t.content||t),O.merge([],t.childNodes))}},(function(t,e){O.fn[t]=function(n,r){var o=O.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=O.filter(r,o)),this.length>1&&(B[t]||O.uniqueSort(o),W.test(t)&&o.reverse()),this.pushStack(o)}}));var G=/[^\x20\t\r\n\f]+/g;function K(t){return t}function Y(t){throw t}function J(t,e,n,r){var o;try{t&&m(o=t.promise)?o.call(t).done(e).fail(n):t&&m(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}O.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return O.each(t.match(G)||[],(function(t,n){e[n]=!0})),e}(t):O.extend({},t);var e,n,r,o,i=[],s=[],a=-1,l=function(){for(o=o||t.once,r=e=!0;s.length;a=-1)for(n=s.shift();++a-1;)i.splice(n,1),n<=a&&a--})),this},has:function(t){return t?O.inArray(t,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=s=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=s=[],n||e||(i=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},O.extend({Deferred:function(t){var e=[["notify","progress",O.Callbacks("memory"),O.Callbacks("memory"),2],["resolve","done",O.Callbacks("once memory"),O.Callbacks("once memory"),0,"resolved"],["reject","fail",O.Callbacks("once memory"),O.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return O.Deferred((function(n){O.each(e,(function(e,r){var o=m(t[r[4]])&&t[r[4]];i[r[1]]((function(){var t=o&&o.apply(this,arguments);t&&m(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,o){var i=0;function s(t,e,n,o){return function(){var a=this,l=arguments,c=function(){var r,c;if(!(t=i&&(n!==Y&&(a=void 0,l=[r]),e.rejectWith(a,l))}};t?u():(O.Deferred.getErrorHook?u.error=O.Deferred.getErrorHook():O.Deferred.getStackHook&&(u.error=O.Deferred.getStackHook()),r.setTimeout(u))}}return O.Deferred((function(r){e[0][3].add(s(0,r,m(o)?o:K,r.notifyWith)),e[1][3].add(s(0,r,m(t)?t:K)),e[2][3].add(s(0,r,m(n)?n:Y))})).promise()},promise:function(t){return null!=t?O.extend(t,o):o}},i={};return O.each(e,(function(t,r){var s=r[2],a=r[5];o[r[1]]=s.add,a&&s.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=s.fireWith})),o.promise(i),t&&t.call(i,i),i},when:function(t){var e=arguments.length,n=e,r=Array(n),o=a.call(arguments),i=O.Deferred(),s=function(t){return function(n){r[t]=this,o[t]=arguments.length>1?a.call(arguments):n,--e||i.resolveWith(r,o)}};if(e<=1&&(J(t,i.done(s(n)).resolve,i.reject,!e),"pending"===i.state()||m(o[n]&&o[n].then)))return i.then();for(;n--;)J(o[n],s(n),i.reject);return i.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;O.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&X.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},O.readyException=function(t){r.setTimeout((function(){throw t}))};var Z=O.Deferred();function Q(){b.removeEventListener("DOMContentLoaded",Q),r.removeEventListener("load",Q),O.ready()}O.fn.ready=function(t){return Z.then(t).catch((function(t){O.readyException(t)})),this},O.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--O.readyWait:O.isReady)||(O.isReady=!0,!0!==t&&--O.readyWait>0||Z.resolveWith(b,[O]))}}),O.ready.then=Z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(O.ready):(b.addEventListener("DOMContentLoaded",Q),r.addEventListener("load",Q));var tt=function(t,e,n,r,o,i,s){var a=0,l=t.length,c=null==n;if("object"===x(n))for(a in o=!0,n)tt(t,e,a,n[a],!0,i,s);else if(void 0!==r&&(o=!0,m(r)||(s=!0),c&&(s?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(O(t),n)})),e))for(;a1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),O.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=at.get(t,e),n&&(!r||Array.isArray(n)?r=at.access(t,e,O.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=O.queue(t,e),r=n.length,o=n.shift(),i=O._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===e&&n.unshift("inprogress"),delete i.stop,o.call(t,(function(){O.dequeue(t,e)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:O.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),O.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,At=/^$|^module$|\/(?:java|ecma)script/i;St=b.createDocumentFragment().appendChild(b.createElement("div")),(Ct=b.createElement("input")).setAttribute("type","radio"),Ct.setAttribute("checked","checked"),Ct.setAttribute("name","t"),St.appendChild(Ct),v.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="",v.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="",v.option=!!St.lastChild;var Et={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function kt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&A(t,e)?O.merge([t],n):n}function Pt(t,e){for(var n=0,r=t.length;n",""]);var jt=/<|&#?\w+;/;function $t(t,e,n,r,o){for(var i,s,a,l,c,u,p=e.createDocumentFragment(),d=[],h=0,f=t.length;h-1)o&&o.push(i);else if(c=vt(i),s=kt(p.appendChild(i),"script"),c&&Pt(s),n)for(u=0;i=s[u++];)At.test(i.type||"")&&n.push(i);return p}var Mt=/^([^.]*)(?:\.(.+)|)/;function Nt(){return!0}function Lt(){return!1}function It(t,e,n,r,o,i){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)It(t,a,n,r,e[a],i);return t}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Lt;else if(!o)return t;return 1===i&&(s=o,o=function(t){return O().off(t),s.apply(this,arguments)},o.guid=s.guid||(s.guid=O.guid++)),t.each((function(){O.event.add(this,e,o,r,n)}))}function Dt(t,e,n){n?(at.set(t,e,!1),O.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(O.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,O.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Nt)}})):void 0===at.get(t,e)&&O.event.add(t,e,Nt)}O.event={global:{},add:function(t,e,n,r,o){var i,s,a,l,c,u,p,d,h,f,g,v=at.get(t);if(it(t))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&O.find.matchesSelector(gt,o),n.guid||(n.guid=O.guid++),(l=v.events)||(l=v.events=Object.create(null)),(s=v.handle)||(s=v.handle=function(e){return void 0!==O&&O.event.triggered!==e.type?O.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(G)||[""]).length;c--;)h=g=(a=Mt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),h&&(p=O.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=O.event.special[h]||{},u=O.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&O.expr.match.needsContext.test(o),namespace:f.join(".")},i),(d=l[h])||((d=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(t,r,f,s)||t.addEventListener&&t.addEventListener(h,s)),p.add&&(p.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),O.event.global[h]=!0)},remove:function(t,e,n,r,o){var i,s,a,l,c,u,p,d,h,f,g,v=at.hasData(t)&&at.get(t);if(v&&(l=v.events)){for(c=(e=(e||"").match(G)||[""]).length;c--;)if(h=g=(a=Mt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),h){for(p=O.event.special[h]||{},d=l[h=(r?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=d.length;i--;)u=d[i],!o&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(i,1),u.selector&&d.delegateCount--,p.remove&&p.remove.call(t,u));s&&!d.length&&(p.teardown&&!1!==p.teardown.call(t,f,v.handle)||O.removeEvent(t,h,v.handle),delete l[h])}else for(h in l)O.event.remove(t,h+e[c],n,r,!0);O.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,o,i,s,a=new Array(arguments.length),l=O.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],u=O.event.special[l.type]||{};for(a[0]=l,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(i=[],s={},n=0;n-1:O.find(o,this,null,[c]).length),s[o]&&i.push(r);i.length&&a.push({elem:c,handlers:i})}return c=this,l\s*$/g;function Vt(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&O(t).children("tbody")[0]||t}function Ft(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function zt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Wt(t,e){var n,r,o,i,s,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(o in at.remove(e,"handle events"),a)for(n=0,r=a[o].length;n1&&"string"==typeof f&&!v.checkClone&&Ht.test(f))return t.each((function(o){var i=t.eq(o);g&&(e[0]=f.call(this,o,i.html())),qt(i,e,n,r)}));if(d&&(i=(o=$t(e,t[0].ownerDocument,!1,t,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(a=(s=O.map(kt(o,"script"),Ft)).length;p0&&Pt(s,!l&&kt(t,"script")),a},cleanData:function(t){for(var e,n,r,o=O.event.special,i=0;void 0!==(n=t[i]);i++)if(it(n)){if(e=n[at.expando]){if(e.events)for(r in e.events)o[r]?O.event.remove(n,r):O.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),O.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?O.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 qt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Vt(this,t).appendChild(t)}))},prepend:function(){return qt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Vt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return qt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return qt(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&&(O.cleanData(kt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return O.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Rt.test(t)&&!Et[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=O.htmlPrefilter(t);try{for(;n=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-i-l-a-.5))||0),l+c}function ue(t,e,n){var r=Jt(t),o=(!v.boxSizingReliable()||n)&&"border-box"===O.css(t,"boxSizing",!1,r),i=o,s=Qt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Kt.test(s)){if(!n)return s;s="auto"}return(!v.boxSizingReliable()&&o||!v.reliableTrDimensions()&&A(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===O.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===O.css(t,"boxSizing",!1,r),(i=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ce(t,e,n||(o?"border":"content"),i,r,s)+"px"}function pe(t,e,n,r,o){return new pe.prototype.init(t,e,n,r,o)}O.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Qt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,i,s,a=ot(e),l=Yt.test(e),c=t.style;if(l||(e=oe(a)),s=O.cssHooks[e]||O.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,r))?o:c[e];"string"==(i=typeof n)&&(o=ht.exec(n))&&o[1]&&(n=bt(t,e,o),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=o&&o[3]||(O.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var o,i,s,a=ot(e);return Yt.test(e)||(e=oe(a)),(s=O.cssHooks[e]||O.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=Qt(t,e,r)),"normal"===o&&e in ae&&(o=ae[e]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),O.each(["height","width"],(function(t,e){O.cssHooks[e]={get:function(t,n,r){if(n)return!ie.test(O.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,r):Xt(t,se,(function(){return ue(t,e,r)}))},set:function(t,n,r){var o,i=Jt(t),s=!v.scrollboxSize()&&"absolute"===i.position,a=(s||r)&&"border-box"===O.css(t,"boxSizing",!1,i),l=r?ce(t,e,r,a,i):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(i[e])-ce(t,e,"border",!1,i)-.5)),l&&(o=ht.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=O.css(t,e)),le(0,n,l)}}})),O.cssHooks.marginLeft=te(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-Xt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),O.each({margin:"",padding:"",border:"Width"},(function(t,e){O.cssHooks[t+e]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[t+ft[r]+e]=i[r]||i[r-2]||i[0];return o}},"margin"!==t&&(O.cssHooks[t+e].set=le)})),O.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var r,o,i={},s=0;if(Array.isArray(e)){for(r=Jt(t),o=e.length;s1)}}),O.Tween=pe,pe.prototype={constructor:pe,init:function(t,e,n,r,o,i){this.elem=t,this.prop=n,this.easing=o||O.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=i||(O.cssNumber[n]?"":"px")},cur:function(){var t=pe.propHooks[this.prop];return t&&t.get?t.get(this):pe.propHooks._default.get(this)},run:function(t){var e,n=pe.propHooks[this.prop];return this.options.duration?this.pos=e=O.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):pe.propHooks._default.set(this),this}},pe.prototype.init.prototype=pe.prototype,pe.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=O.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){O.fx.step[t.prop]?O.fx.step[t.prop](t):1!==t.elem.nodeType||!O.cssHooks[t.prop]&&null==t.elem.style[oe(t.prop)]?t.elem[t.prop]=t.now:O.style(t.elem,t.prop,t.now+t.unit)}}},pe.propHooks.scrollTop=pe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},O.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},O.fx=pe.prototype.init,O.fx.step={};var de,he,fe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function ve(){he&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ve):r.setTimeout(ve,O.fx.interval),O.fx.tick())}function me(){return r.setTimeout((function(){de=void 0})),de=Date.now()}function ye(t,e){var n,r=0,o={height:t};for(e=e?1:0;r<4;r+=2-e)o["margin"+(n=ft[r])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function be(t,e,n){for(var r,o=(we.tweeners[e]||[]).concat(we.tweeners["*"]),i=0,s=o.length;i1)},removeAttr:function(t){return this.each((function(){O.removeAttr(this,t)}))}}),O.extend({attr:function(t,e,n){var r,o,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===t.getAttribute?O.prop(t,e,n):(1===i&&O.isXMLDoc(t)||(o=O.attrHooks[e.toLowerCase()]||(O.expr.match.bool.test(e)?_e:void 0)),void 0!==n?null===n?void O.removeAttr(t,e):o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(r=o.get(t,e))?r:null==(r=O.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&A(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,o=e&&e.match(G);if(o&&1===t.nodeType)for(;n=o[r++];)t.removeAttribute(n)}}),_e={set:function(t,e,n){return!1===e?O.removeAttr(t,n):t.setAttribute(n,n),n}},O.each(O.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=xe[e]||O.find.attr;xe[e]=function(t,e,r){var o,i,s=e.toLowerCase();return r||(i=xe[s],xe[s]=o,o=null!=n(t,e,r)?s:null,xe[s]=i),o}}));var Se=/^(?:input|select|textarea|button)$/i,Ce=/^(?:a|area)$/i;function Oe(t){return(t.match(G)||[]).join(" ")}function Te(t){return t.getAttribute&&t.getAttribute("class")||""}function Ae(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(G)||[]}O.fn.extend({prop:function(t,e){return tt(this,O.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[O.propFix[t]||t]}))}}),O.extend({prop:function(t,e,n){var r,o,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&O.isXMLDoc(t)||(e=O.propFix[e]||e,o=O.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:t[e]=n:o&&"get"in o&&null!==(r=o.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=O.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||Ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(O.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)}}),O.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){O.propFix[this.toLowerCase()]=this})),O.fn.extend({addClass:function(t){var e,n,r,o,i,s;return m(t)?this.each((function(e){O(this).addClass(t.call(this,e,Te(this)))})):(e=Ae(t)).length?this.each((function(){if(r=Te(this),n=1===this.nodeType&&" "+Oe(r)+" "){for(i=0;i-1;)n=n.replace(" "+o+" "," ");s=Oe(n),r!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,r,o,i,s=typeof t,a="string"===s||Array.isArray(t);return m(t)?this.each((function(n){O(this).toggleClass(t.call(this,n,Te(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ae(t),this.each((function(){if(a)for(i=O(this),o=0;o-1)return!0;return!1}});var Ee=/\r/g;O.fn.extend({val:function(t){var e,n,r,o=this[0];return arguments.length?(r=m(t),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?t.call(this,n,O(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=O.map(o,(function(t){return null==t?"":t+""}))),(e=O.valHooks[this.type]||O.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=O.valHooks[o.type]||O.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Ee,""):null==n?"":n:void 0}}),O.extend({valHooks:{option:{get:function(t){var e=O.find.attr(t,"value");return null!=e?e:Oe(O.text(t))}},select:{get:function(t){var e,n,r,o=t.options,i=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?i+1:o.length;for(r=i<0?l:s?i:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),i}}}}),O.each(["radio","checkbox"],(function(){O.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=O.inArray(O(t).val(),e)>-1}},v.checkOn||(O.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var ke=r.location,Pe={guid:Date.now()},je=/\?/;O.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||O.error("Invalid XML: "+(n?O.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var $e=/^(?:focusinfocus|focusoutblur)$/,Me=function(t){t.stopPropagation()};O.extend(O.event,{trigger:function(t,e,n,o){var i,s,a,l,c,u,p,d,f=[n||b],g=h.call(t,"type")?t.type:t,v=h.call(t,"namespace")?t.namespace.split("."):[];if(s=d=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!$e.test(g+O.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[O.expando]?t:new O.Event(g,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:O.makeArray(e,[t]),p=O.event.special[g]||{},o||!p.trigger||!1!==p.trigger.apply(n,e))){if(!o&&!p.noBubble&&!y(n)){for(l=p.delegateType||g,$e.test(l+g)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||r)}for(i=0;(s=f[i++])&&!t.isPropagationStopped();)d=s,t.type=i>1?l:p.bindType||g,(u=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&u.apply(s,e),(u=c&&s[c])&&u.apply&&it(s)&&(t.result=u.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(f.pop(),e)||!it(n)||c&&m(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),O.event.triggered=g,t.isPropagationStopped()&&d.addEventListener(g,Me),n[g](),t.isPropagationStopped()&&d.removeEventListener(g,Me),O.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var r=O.extend(new O.Event,n,{type:t,isSimulated:!0});O.event.trigger(r,null,e)}}),O.fn.extend({trigger:function(t,e){return this.each((function(){O.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return O.event.trigger(t,e,n,!0)}});var Ne=/\[\]$/,Le=/\r?\n/g,Ie=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,r){var o;if(Array.isArray(e))O.each(e,(function(e,o){n||Ne.test(t)?r(t,o):Re(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,r)}));else if(n||"object"!==x(e))r(t,e);else for(o in e)Re(t+"["+o+"]",e[o],n,r)}O.param=function(t,e){var n,r=[],o=function(t,e){var n=m(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!O.isPlainObject(t))O.each(t,(function(){o(this.name,this.value)}));else for(n in t)Re(n,t[n],e,o);return r.join("&")},O.fn.extend({serialize:function(){return O.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=O.prop(this,"elements");return t?O.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!O(this).is(":disabled")&&De.test(this.nodeName)&&!Ie.test(t)&&(this.checked||!Ot.test(t))})).map((function(t,e){var n=O(this).val();return null==n?null:Array.isArray(n)?O.map(n,(function(t){return{name:e.name,value:t.replace(Le,"\r\n")}})):{name:e.name,value:n.replace(Le,"\r\n")}})).get()}});var He=/%20/g,Ue=/#.*$/,Ve=/([?&])_=[^&]*/,Fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,ze=/^(?:GET|HEAD)$/,We=/^\/\//,Be={},qe={},Ge="*/".concat("*"),Ke=b.createElement("a");function Ye(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,o=0,i=e.toLowerCase().match(G)||[];if(m(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Je(t,e,n,r){var o={},i=t===qe;function s(a){var l;return o[a]=!0,O.each(t[a]||[],(function(t,a){var c=a(e,n,r);return"string"!=typeof c||i||o[c]?i?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)})),l}return s(e.dataTypes[0])||!o["*"]&&s("*")}function Xe(t,e){var n,r,o=O.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:r||(r={}))[n]=e[n]);return r&&O.extend(!0,t,r),t}Ke.href=ke.href,O.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,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":O.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Xe(Xe(t,O.ajaxSettings),e):Xe(O.ajaxSettings,t)},ajaxPrefilter:Ye(Be),ajaxTransport:Ye(qe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,o,i,s,a,l,c,u,p,d,h=O.ajaxSetup({},e),f=h.context||h,g=h.context&&(f.nodeType||f.jquery)?O(f):O.event,v=O.Deferred(),m=O.Callbacks("once memory"),y=h.statusCode||{},w={},_={},x="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=Fe.exec(i);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||x;return n&&n.abort(e),C(0,e),this}};if(v.promise(S),h.url=((t||h.url||ke.href)+"").replace(We,ke.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(G)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ke.protocol+"//"+Ke.host!=l.protocol+"//"+l.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=O.param(h.data,h.traditional)),Je(Be,h,e,S),c)return S;for(p in(u=O.event&&h.global)&&0==O.active++&&O.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!ze.test(h.type),o=h.url.replace(Ue,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(He,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(je.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ve,"$1"),d=(je.test(o)?"&":"?")+"_="+Pe.guid+++d),h.url=o+d),h.ifModified&&(O.lastModified[o]&&S.setRequestHeader("If-Modified-Since",O.lastModified[o]),O.etag[o]&&S.setRequestHeader("If-None-Match",O.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ge+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(f,S,h)||c))return S.abort();if(x="abort",m.add(h.complete),S.done(h.success),S.fail(h.error),n=Je(qe,h,e,S)){if(S.readyState=1,u&&g.trigger("ajaxSend",[S,h]),c)return S;h.async&&h.timeout>0&&(a=r.setTimeout((function(){S.abort("timeout")}),h.timeout));try{c=!1,n.send(w,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,s,l){var p,d,b,w,_,x=e;c||(c=!0,a&&r.clearTimeout(a),n=void 0,i=l||"",S.readyState=t>0?4:0,p=t>=200&&t<300||304===t,s&&(w=function(t,e,n){for(var r,o,i,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(o in a)if(a[o]&&a[o].test(r)){l.unshift(o);break}if(l[0]in n)i=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){i=o;break}s||(s=o)}i=i||s}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,S,s)),!p&&O.inArray("script",h.dataTypes)>-1&&O.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),w=function(t,e,n,r){var o,i,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(i=u.shift();i;)if(t.responseFields[i]&&(n[t.responseFields[i]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(s=c[l+" "+i]||c["* "+i]))for(o in c)if((a=o.split(" "))[1]===i&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(i=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+i}}}return{state:"success",data:e}}(h,w,S,p),p?(h.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(O.lastModified[o]=_),(_=S.getResponseHeader("etag"))&&(O.etag[o]=_)),204===t||"HEAD"===h.type?x="nocontent":304===t?x="notmodified":(x=w.state,d=w.data,p=!(b=w.error))):(b=x,!t&&x||(x="error",t<0&&(t=0))),S.status=t,S.statusText=(e||x)+"",p?v.resolveWith(f,[d,x,S]):v.rejectWith(f,[S,x,b]),S.statusCode(y),y=void 0,u&&g.trigger(p?"ajaxSuccess":"ajaxError",[S,h,p?d:b]),m.fireWith(f,[S,x]),u&&(g.trigger("ajaxComplete",[S,h]),--O.active||O.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return O.get(t,e,n,"json")},getScript:function(t,e){return O.get(t,void 0,e,"script")}}),O.each(["get","post"],(function(t,e){O[e]=function(t,n,r,o){return m(n)&&(o=o||r,r=n,n=void 0),O.ajax(O.extend({url:t,type:e,dataType:o,data:n,success:r},O.isPlainObject(t)&&t))}})),O.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),O._evalUrl=function(t,e,n){return O.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){O.globalEval(t,e,n)}})},O.fn.extend({wrapAll:function(t){var e;return this[0]&&(m(t)&&(t=t.call(this[0])),e=O(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 m(t)?this.each((function(e){O(this).wrapInner(t.call(this,e))})):this.each((function(){var e=O(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=m(t);return this.each((function(n){O(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){O(this).replaceWith(this.childNodes)})),this}}),O.expr.pseudos.hidden=function(t){return!O.expr.pseudos.visible(t)},O.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},O.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},Qe=O.ajaxSettings.xhr();v.cors=!!Qe&&"withCredentials"in Qe,v.ajax=Qe=!!Qe,O.ajaxTransport((function(t){var e,n;if(v.cors||Qe&&!t.crossDomain)return{send:function(o,i){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];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?i(0,"error"):i(a.status,a.statusText):i(Ze[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(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),O.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),O.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 O.globalEval(t),t}}}),O.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),O.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,o){e=O("