(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a5b4dbe"],{"0052":function(t,e,n){"use strict";function r(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach((function(e){e&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t}function i(t){return Object.prototype.toString.call(t)}function o(t){return"[object String]"===i(t)}function a(t){return"[object Object]"===i(t)}function s(t){return"[object RegExp]"===i(t)}function l(t){return"[object Function]"===i(t)}function c(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var u={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function d(t){return Object.keys(t||{}).reduce((function(t,e){return t||u.hasOwnProperty(e)}),!1)}var h={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&":"===t[e-3]||e>=3&&"/"===t[e-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},p="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",f="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function g(t){t.__index__=-1,t.__text_cache__=""}function m(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function v(){return function(t,e){e.normalize(t)}}function b(t){var e=t.re=n("e15d")(t.__opts__),r=t.__tlds__.slice();function i(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||r.push(p),r.push(e.src_xn),e.src_tlds=r.join("|"),e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");var u=[];function d(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach((function(e){var n=t.__schemas__[e];if(null!==n){var r={validate:null,link:null};if(t.__compiled__[e]=r,a(n))return s(n.validate)?r.validate=m(n.validate):l(n.validate)?r.validate=n.validate:d(e,n),void(l(n.normalize)?r.normalize=n.normalize:n.normalize?d(e,n):r.normalize=v());o(n)?u.push(e):d(e,n)}})),u.forEach((function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)})),t.__compiled__[""]={validate:null,normalize:v()};var h=Object.keys(t.__compiled__).filter((function(e){return e.length>0&&t.__compiled__[e]})).map(c).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+h+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+h+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),g(t)}function y(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function w(t,e){var n=new y(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function x(t,e){if(!(this instanceof x))return new x(t,e);e||d(t)&&(e=t,t={}),this.__opts__=r({},u,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},h,t),this.__compiled__={},this.__tlds__=f,this.__tlds_replaced__=!1,this.re={},b(this)}x.prototype.add=function(t,e){return this.__schemas__[t]=e,b(this),this},x.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},x.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,i,o,a,s,l,c;if(this.re.schema_test.test(t)){s=this.re.schema_search,s.lastIndex=0;while(null!==(e=s.exec(t)))if(i=this.testSchemaAt(t,e[2],s.lastIndex),i){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(r=t.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},x.prototype.pretest=function(t){return this.re.pretest.test(t)},x.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},x.prototype.match=function(t){var e=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(w(this,e)),e=this.__last_index__);var r=e?t.slice(e):t;while(this.test(r))n.push(w(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},x.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;var e=this.re.schema_at_start.exec(t);if(!e)return null;var n=this.testSchemaAt(t,e[2],e[0].length);return n?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+n,w(this,0)):null},x.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,n){return t!==n[e-1]})).reverse(),b(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,b(this),this)},x.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},x.prototype.onCompile=function(){},t.exports=x},"0094":function(t,e,n){"use strict";var r,i=n("da84"),o=n("e330"),a=n("6964"),s=n("f183"),l=n("6d61"),c=n("acac"),u=n("861d"),d=n("4fad"),h=n("69f3").enforce,p=n("cdce"),f=!i.ActiveXObject&&"ActiveXObject"in i,g=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},m=l("WeakMap",g,c);if(p&&f){r=c.getConstructor(g,"WeakMap",!0),s.enable();var v=m.prototype,b=o(v["delete"]),y=o(v.has),w=o(v.get),x=o(v.set);a(v,{delete:function(t){if(u(t)&&!d(t)){var e=h(this);return e.frozen||(e.frozen=new r),b(this,t)||e.frozen["delete"](t)}return b(this,t)},has:function(t){if(u(t)&&!d(t)){var e=h(this);return e.frozen||(e.frozen=new r),y(this,t)||e.frozen.has(t)}return y(this,t)},get:function(t){if(u(t)&&!d(t)){var e=h(this);return e.frozen||(e.frozen=new r),y(this,t)?w(this,t):e.frozen.get(t)}return w(this,t)},set:function(t,e){if(u(t)&&!d(t)){var n=h(this);n.frozen||(n.frozen=new r),y(this,t)?x(this,t,e):n.frozen.set(t,e)}else x(this,t,e);return this}})}},"0381":function(t,e,n){"use strict";var r=n("7ec2").default,i=n("7037").default;n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4"),n("d9e2"),n("131a"),n("3410"),n("f8c9"),n("4ae1"),n("5d41"),n("b0c0"),n("99af"),n("7db0"),n("ac1f"),n("1276"),n("498a"),n("a15b"),n("5319"),n("25f0"),n("b680"),n("2cfe"),Object.defineProperty(e,"__esModule",{value:!0});var o=n("a57f");function a(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 s(t){for(var e=1;e\n ',spin:'',warn:'
',error:'X'};if("error"===n)return'\n
\n
\n
\n
'.concat(o.escape(e),'
\n
\n ').concat(l.error,"\n ").concat(i||s["loadError"],"\n
\n
\n
\n
");var c=r?o.getFileSize(r):"";if("uploading"===n)return'\n
\n
\n
\n '.concat(l.audio,'\n
\n ').concat(o.escape(e)," (").concat(o.escape(c),')\n
\n
\n ').concat(l.spin,'\n ').concat(a||0,"%\n
\n
\n
\n
");var u="undefined"===typeof n;return"transcoding"===n||u?'\n
\n
\n
\n '.concat(l.audio,'\n
\n ').concat(o.escape(e)," (").concat(o.escape(c),')\n
\n
\n ').concat(l.spin,'\n ').concat(u?s["loading"]:s["transcoding"],"%\n
\n
\n
\n
\n "):'\n
\n
\n
\n '}},{key:"initPlayer",value:function(){var t,e=this,n=this.getValue();if(n){var r=o.sanitizeUrl(this.onBeforeRender("query",n.url)),i=document.createElement("div"),a=document.createElement("audio");if(i.className="audio_box",a.preload="auto",a.setAttribute("src",window.$fileLinkTransfer(r)),a.setAttribute("webkit-playsinline","webkit-playsinline"),a.setAttribute("playsinline","playsinline"),i.append(a),this.editor._readonly){var s=document.createElement("span");s.innerHTML=n.name,i.append(s),null===(t=this.container)||void 0===t||t.find(".data-audio-content").append(i)}else{var l=document.createElement("input");l.value=n.name,l.onblur=function(t){n.name=l.value,e.setValue(n)},null===(t=this.container)||void 0===t||t.find(".data-audio-content").append(i),i.append(l)}a.oncontextmenu=function(){return!1},setTimeout((function(){a.controls=!0}),0)}}},{key:"toolbar",value:function(){var t=[],e=this.getValue();if(!e)return t;var n=e.status,r=e.download,i=this.getLocales();return"done"===n&&(r&&t.push({type:"button",content:'',title:i.download,onClick:this.downloadFile}),o.isEngine(this.editor)&&!this.editor.readonly&&(t.push({type:"copy"}),t.push({type:"separator"}))),o.isEngine(this.editor)&&!this.editor.readonly&&t.push({type:"delete"}),t}},{key:"setProgressPercent",value:function(t){var e;null===(e=this.container)||void 0===e||e.find(".percent").html("".concat(t,"%"))}},{key:"onActivate",value:function(t){var e,n;t?null===(e=this.container)||void 0===e||e.addClass("data-audio-active"):null===(n=this.container)||void 0===n||n.removeClass("data-audio-active")}},{key:"checker",value:function(t,e,n){var r=this.editor.command,i=function i(){r.executeMethod("audio-uploader","query",t,(function(t){t&&"done"!==t.status?setTimeout(i,3e3):e(t)}),(function(t){n(t)}))};i()}},{key:"render",value:function(){var t=this,e=this.getValue();if(e){var n=this.getCenter();n.empty();var r=this.editor,i=r.command,a=r.plugin,l=e.audio_id,c=e.status,u=this.getLocales();if(o.isEngine(this.editor)){if("transcoding"===c){if(this.container=o.$(this.renderTemplate(e)),!l)throw"audio id is undefined";return this.checker(l,(function(r){var i=s(s({},e),{},{url:(null===r||void 0===r?void 0:r.url)?r.url:e.url,name:(null===r||void 0===r?void 0:r.name)?r.name:e.name,download:(null===r||void 0===r?void 0:r.download)?r.download:e.download,status:"done"});t.setValue(i),t.container=o.$(t.renderTemplate(i)),n.empty(),n.append(t.container),t.initPlayer()}),(function(r){var i=s(s({},e),{},{status:"error",message:r||u["loadError"]});t.setValue(i),t.container=o.$(t.renderTemplate(i)),n.empty(),n.append(t.container)})),this.container}return"done"===c?(this.container=o.$(this.renderTemplate(s(s({},e),{},{status:void 0}))),i.executeMethod("audio-uploader","query",l,(function(r){var i=s(s({},e),{},{url:(null===r||void 0===r?void 0:r.url)?r.url:e.url,name:(null===r||void 0===r?void 0:r.name)?r.name:e.name,download:(null===r||void 0===r?void 0:r.download)?r.download:e.download});t.container=o.$(t.renderTemplate(i)),n.empty(),n.append(t.container),t.initPlayer()}),(function(r){t.container=o.$(t.renderTemplate(s(s({},e),{},{status:"error",message:r||u["loadError"]}))),n.empty(),n.append(t.container)})),this.container):o.$(this.renderTemplate(e))}if("done"===c){this.container=o.$(this.renderTemplate(s(s({},e),{},{status:void 0})));var d=function(r){var i=s(s({},e),{},{url:(null===r||void 0===r?void 0:r.url)?r.url:e.url,name:(null===r||void 0===r?void 0:r.name)?r.name:e.name,download:(null===r||void 0===r?void 0:r.download)?r.download:e.download});t.container=o.$(t.renderTemplate(i)),n.empty(),n.append(t.container),t.initPlayer()};return a.components["audio-uploader"]?i.executeMethod("audio-uploader","query",l,(function(t){d(t)}),(function(r){t.container=o.$(t.renderTemplate(s(s({},e),{},{status:"error",message:r||u["loadError"]}))),n.empty(),n.append(t.container)})):d(),this.container}return"error"===c?o.$(this.renderTemplate(s(s({},e),{},{message:e.message||u["loadError"]}))):void 0}}},{key:"didRender",value:function(){var t,e=this;C(g(n.prototype),"didRender",this).call(this),null===(t=this.container)||void 0===t||t.on(o.isMobile?"touchstart":"click",(function(){o.isEngine(e.editor)&&!e.activated&&e.editor.card.activate(e.root)}))}}],[{key:"cardName",get:function(){return"audio"}},{key:"cardType",get:function(){return o.CardType.BLOCK}},{key:"autoSelected",get:function(){return!1}}]),n}(o.Card),E=function(t){f(n,t);var e=w(n);function n(){var t;return u(this,n),t=e.apply(this,arguments),t.cardComponents={},t.extensionNames=["mp3"],t}return h(n,[{key:"init",value:function(){var t=this;o.isEngine(this.editor)&&(this.editor.on("drop:files",(function(e){return t.dropFiles(e)})),this.editor.on("paste:event",(function(e){var n=e.files;return t.pasteFiles(n)})),this.editor.on("paste:each",(function(e){return t.pasteEach(e)})));var e=this.options.accept,n=[];"string"===typeof e&&(e=e.split(",")),(e||[]).forEach((function(t){t=t.trim();var e=t.split(".").pop();e&&n.push(e)})),n.length>0&&(this.extensionNames=n)}},{key:"isAudio",value:function(t){var e=o.getExtensionName(t);return this.extensionNames.indexOf(e)>=0}},{key:"execute",value:function(){var t=c(r().mark((function t(e){var n,i,a,l,c,u,d,h,p,f,g,m,v,b,y,w=this,x=arguments;return r().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"!==typeof e){t.next=6;break}t.t0=e,t.next="query"===t.t0?4:5;break;case 4:return t.abrupt("return",this.query(x.length<=1?void 0:x[1],x.length<=2?void 0:x[2],x.length<=3?void 0:x[3]));case 5:return t.abrupt("return");case 6:if(n=this.editor,i=n.request,a=n.card,l=n.language,c=this.options,u=c.action,d=c.data,h=c.type,p=c.contentType,f=c.multiple,g=c.crossOrigin,m=c.headers,v=c.name,b=this.options.parse,y=this.options.limitSize||5242880,Array.isArray(e)){t.next=14;break}return t.next=13,i.getFiles({event:e,accept:o.isAndroid?"audio/*":this.extensionNames.length>0?"."+this.extensionNames.join(",."):"",multiple:f});case 13:e=t.sent;case 14:if(0!==e.length){t.next=16;break}return t.abrupt("return");case 16:return i.upload({url:u,data:d,type:h,contentType:p,crossOrigin:g,headers:"function"===typeof m?m():m,onBefore:function(t){return!(t.size>y)||(w.editor.messageError(l.get("audio","uploadLimitError").toString().replace("$size",(y/1024/1024).toFixed(0)+"M")),!1)},onReady:function(t){if(o.isEngine(w.editor)&&!w.cardComponents[t.uid]){var e=a.insert("audio",{status:"uploading",name:t.name,size:t.size});w.cardComponents[t.uid]=e}},onUploading:function(t,e){var n=e.percent,r=w.cardComponents[t.uid||""];r&&r.setProgressPercent(n)},onSuccess:function(t,e){var n=w.cardComponents[e.uid||""];if(n){var r=t.id||t.data&&t.data.id,i=t.url||t.data&&t.data.url,o=t.cover||t.data&&t.data.cover,l=t.download||t.data&&t.data.download,c=t.status||t.data&&t.data.status;c="transcoding"===c?"transcoding":"done";var u={result:!0,data:{audio_id:r,url:i,cover:o,download:l,status:c}};if(b){var d=b(t);if(d.result){var h=u.data;"string"===typeof d.data?u.data=s(s({},h),{},{url:d.data}):(h.url=d.data.url,void 0!==d.data.status&&(h=s(s({},h),{},{status:d.data.status})),void 0!==d.data.id&&(h=s(s({},h),{},{audio_id:d.data.id})),u.data=s({},h))}else u={result:!1,data:d.data.toString()}}else i||(u={result:!1,data:t.data});u.result?w.editor.card.update(n.id,"string"===typeof u.data?{url:u.data}:s({},u.data)):a.update(n.id,{status:"error",message:u.data||w.editor.language.get("audio","uploadError")}),delete w.cardComponents[e.uid||""]}},onError:function(t,e){var n=w.cardComponents[e.uid||""];n&&(a.update(n.id,{status:"error",message:t.message||w.editor.language.get("audio","uploadError")}),delete w.cardComponents[e.uid||""])}},e,v),t.abrupt("return");case 18:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"query",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=this.editor.request,o=this.options,a=o.query,l=o.parse;if(!a||!t)return e();var c=a.action,u=a.type,d=a.contentType,h=a.data;i.ajax({url:c,contentType:d||"",type:void 0===u?"json":u,data:s(s({},h),{},{id:t}),success:function(t){var i=t.result,o=t.data;if(i){var a=l?l(t):t;!1===a.result?r(a.data||n.editor.language.get("audio","loadError")):e(s(s({},a.data),{},{status:"transcoding"!==a.data.status?"done":"transcoding"}))}else r(o)},error:function(t){r(t.message||n.editor.language.get("audio","loadError"))},method:"GET"})}},{key:"dropFiles",value:function(t){var e=this;if(o.isEngine(this.editor)&&(t=t.filter((function(t){return e.isAudio(t)})),0!==t.length))return this.editor.command.execute("audio-uploader",t),!1}},{key:"pasteFiles",value:function(t){var e=this;if(o.isEngine(this.editor)&&(t=t.filter((function(t){return e.isAudio(t)})),0!==t.length))return this.editor.command.execute("audio-uploader",t.filter((function(t){return e.isAudio(t)})),t),!1}},{key:"pasteEach",value:function(t){if(t.isCard()&&t.attributes(o.READY_CARD_KEY)){if("audio"!==t.attributes(o.READY_CARD_KEY))return;var e=o.decodeCardValue(t.attributes(o.CARD_VALUE_KEY));return e&&e.url?void("uploading"===e.status&&(e.percent=0,t.attributes(o.CARD_VALUE_KEY,o.encodeCardValue(s(s({},e),{},{status:"done"}))))):void t.remove()}}}],[{key:"pluginName",get:function(){return"audio-uploader"}}]),n}(o.Plugin),O={audio:{errorMessageCopy:"Copy error message",loadError:"The audio failed to load!",uploadError:"The audio failed to upload!",uploadLimitError:"Upload audio size is limited to $size",download:"Download",preview:"Preview",loading:"Loading...",transcoding:"Transcoding..."}},T={audio:{errorMessageCopy:"复制错误信息",loadError:"音频加载失败!",uploadError:"上传音频失败!",uploadLimitError:"上传音频大小限制为 $size",download:"下载",preview:"预览",loading:"加载中...",transcoding:"转码中..."}},_={"en-US":O,"zh-CN":T},M=function(t){f(n,t);var e=w(n);function n(){return u(this,n),e.apply(this,arguments)}return h(n,[{key:"init",value:function(){var t=this;this.editor.language.add(_),o.isEngine(this.editor)&&(this.editor.on("parse:html",(function(e){return t.parseHtml(e)})),this.editor.on("paste:each",(function(e){return t.pasteHtml(e)})),this.editor.on("paste:schema",(function(e){return t.pasteSchema(e)})))}},{key:"execute",value:function(t,e,n,r,i,o){var a={status:t,audio_id:r,url:e,name:n||e,size:i,download:o};"error"===t&&(a.url="",a.message=e),this.editor.card.insert("audio",a)}},{key:"waiting",value:function(){var t=c(r().mark((function t(e){var n,i,o,a,s=this;return r().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=this.editor.card,i=function(t){var e;return t.root.inEditor()&&t.constructor.cardName===S.cardName&&"uploading"===(null===(e=t.getValue())||void 0===e?void 0:e.status)},o=function(){return n.components.find(i)},a=function(t){var n=6e4;return new Promise((function(r,o){if(e){var a=e(s.constructor.pluginName,t);if(!1===a)return o({name:s.constructor.pluginName,card:t});"number"===typeof a&&(n=a)}var l=(new Date).getTime(),c=(new Date).getTime(),u=function e(){if(c-l>=n)return r();setTimeout((function(){i(t)?e():r()}),10)};u()}))},t.abrupt("return",new Promise((function(t,e){var n=o(),r=function n(r){a(r).then((function(){var e=o();e?n(e):t()})).catch(e)};n?r(n):t()})));case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"pasteSchema",value:function(t){t.add({type:"block",name:"div",attributes:{"data-value":"*","data-type":{required:!0,value:S.cardName}}})}},{key:"pasteHtml",value:function(t){if(o.isEngine(this.editor)){if(t.isElement()){var e=t.attributes("data-type");if(e===S.cardName){var n=t.attributes("data-value"),r=o.decodeCardValue(n);if(!r.url)return;return this.editor.card.replaceNode(t,S.cardName,r),t.remove(),!1}}return!0}}},{key:"parseHtml",value:function(t){var e=this;t.find("[".concat(o.CARD_KEY,"=").concat(S.cardName)).each((function(t){var n=o.$(t),r=e.editor.card.find(n),i=null===r||void 0===r?void 0:r.getValue();if((null===i||void 0===i?void 0:i.url)&&"done"===i.status){var a=e.options.onBeforeRender,s=i.url,l='
');n.empty(),n.replaceWith(o.$(l))}else n.remove()}))}}],[{key:"pluginName",get:function(){return"audio"}}]),n}(o.Plugin);e.AudioComponent=S,e.AudioUploader=E,e["default"]=M},"0538":function(t,e,n){"use strict";var r=n("e330"),i=n("59ed"),o=n("861d"),a=n("1a2d"),s=n("f36a"),l=n("40d5"),c=Function,u=r([].concat),d=r([].join),h={},p=function(t,e,n){if(!a(h,e)){for(var r=[],i=0;ie.cursorCoords(n,"window").top&&((u=r).style.opacity=.4)})))};a(e,m(e),c,h,(function(n,i){var o=t.keyName(n),a=e.getOption("extraKeys"),s=a&&a[o]||t.keyMap[e.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(t.e_stop(n),d(e,r(e),i),e.execCommand(s)):"find"!=s&&"findPersistent"!=s||(t.e_stop(n),h(i,n))})),o&&c&&(d(e,l,c),p(e,n))}else s(e,m(e),"Search for:",c,(function(t){t&&!l.query&&e.operation((function(){d(e,l,t),l.posFrom=l.posTo=e.getCursor(),p(e,n)}))}))}function p(e,n,i){e.operation((function(){var a=r(e),s=o(e,a.query,n?a.posFrom:a.posTo);(s.find(n)||(s=o(e,a.query,n?t.Pos(e.lastLine()):t.Pos(e.firstLine(),0)),s.find(n)))&&(e.setSelection(s.from(),s.to()),e.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),i&&i(s.from(),s.to()))}))}function f(t){t.operation((function(){var e=r(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))}))}function g(t,e){var n=t?document.createElement(t):document.createDocumentFragment();for(var r in e)n[r]=e[r];for(var i=2;i0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},1157:function(t,e,n){var r,i; /*! * jQuery JavaScript Library v3.6.1 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2022-08-26T17:52Z */(function(e,n){"use strict";"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";var a=[],s=Object.getPrototypeOf,l=a.slice,c=a.flat?function(t){return a.flat.call(t)}:function(t){return a.concat.apply([],t)},u=a.push,d=a.indexOf,h={},p=h.toString,f=h.hasOwnProperty,g=f.toString,m=g.call(Object),v={},b=function(t){return"function"===typeof t&&"number"!==typeof t.nodeType&&"function"!==typeof t.item},y=function(t){return null!=t&&t===t.window},w=n.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function C(t,e,n){n=n||w;var r,i,o=n.createElement("script");if(o.text=t,e)for(r in x)i=e[r]||e.getAttribute&&e.getAttribute(r),i&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function k(t){return null==t?t+"":"object"===typeof t||"function"===typeof t?h[p.call(t)]||"object":typeof t}var A="3.6.1",S=function(t,e){return new S.fn.init(t,e)};function E(t){var e=!!t&&"length"in t&&t.length,n=k(t);return!b(t)&&!y(t)&&("array"===n||0===e||"number"===typeof e&&e>0&&e-1 in t)}S.fn=S.prototype={jquery:A,constructor:S,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(S.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+~]|"+R+")"+R+"*"),W=new RegExp(R+"|>"),$=new RegExp(z),G=new RegExp("^"+F+"$"),Y={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),nt=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))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(M=D.call(x.childNodes),x.childNodes),M[x.childNodes.length].nodeType}catch(Ot){L={apply:M.length?function(t,e){P.apply(t,D.call(e))}:function(t,e){var n=t.length,r=0;while(t[n++]=e[r++]);t.length=n-1}}}function st(t,e,r,i){var o,s,c,u,d,f,v,b=e&&e.ownerDocument,x=e?e.nodeType:9;if(r=r||[],"string"!==typeof t||!t||1!==x&&9!==x&&11!==x)return r;if(!i&&(h(e),e=e||p,g)){if(11!==x&&(d=Q.exec(t)))if(o=d[1]){if(9===x){if(!(c=e.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(b&&(c=b.getElementById(o))&&y(e,c)&&c.id===o)return r.push(c),r}else{if(d[2])return L.apply(r,e.getElementsByTagName(t)),r;if((o=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return L.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!O[t+" "]&&(!m||!m.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(v=t,b=e,1===x&&(W.test(t)||U.test(t))){b=tt.test(t)&&vt(e.parentNode)||e,b===e&&n.scope||((u=e.getAttribute("id"))?u=u.replace(rt,it):e.setAttribute("id",u=w)),f=a(t),s=f.length;while(s--)f[s]=(u?"#"+u:":scope")+" "+yt(f[s]);v=f.join(",")}try{return L.apply(r,b.querySelectorAll(v)),r}catch(C){O(t,!0)}finally{u===w&&e.removeAttribute("id")}}}return l(t.replace(V,"$1"),e,r,i)}function lt(){var t=[];function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}return e}function ct(t){return t[w]=!0,t}function ut(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(Ot){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){var n=t.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===e)return-1;return t?1:-1}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(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&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct((function(e){return e=+e,ct((function(n,r){var i,o=t([],n.length,e),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function vt(t){return t&&"undefined"!==typeof t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!X.test(e||n&&n.nodeName||"HTML")},h=st.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:x;return a!=p&&9===a.nodeType&&a.documentElement?(p=a,f=p.documentElement,g=!o(p),x!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=ut((function(t){return f.appendChild(t).appendChild(p.createElement("div")),"undefined"!==typeof t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ut((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ut((function(t){return f.appendChild(t).id=w,!p.getElementsByName||!p.getElementsByName(w).length})),n.getById?(r.filter["ID"]=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter["ID"]=function(t){var e=t.replace(et,nt);return function(t){var n="undefined"!==typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&g){var n,r,i,o=e.getElementById(t);if(o){if(n=o.getAttributeNode("id"),n&&n.value===t)return[o];i=e.getElementsByName(t),r=0;while(o=i[r++])if(n=o.getAttributeNode("id"),n&&n.value===t)return[o]}return[]}}),r.find["TAG"]=n.getElementsByTagName?function(t,e){return"undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find["CLASS"]=n.getElementsByClassName&&function(t,e){if("undefined"!==typeof e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(n.qsa=J.test(p.querySelectorAll))&&(ut((function(t){var e;f.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+R+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e=p.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ut((function(t){t.innerHTML="";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+R+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(b=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut((function(t){n.disconnectedMatch=b.call(t,"*"),b.call(t,"[s!='']:x"),v.push("!=",z)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(f.compareDocumentPosition),y=e||J.test(f.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)while(e=e.parentNode)if(e===t)return!0;return!1},T=e?function(t,e){if(t===e)return d=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==p||t.ownerDocument==x&&y(x,t)?-1:e==p||e.ownerDocument==x&&y(x,e)?1:u?j(u,t)-j(u,e):0:4&r?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t==p?-1:e==p?1:i?-1:o?1:u?j(u,t)-j(u,e):0;if(i===o)return ht(t,e);n=t;while(n=n.parentNode)a.unshift(n);n=e;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?ht(a[r],s[r]):a[r]==x?-1:s[r]==x?1:0},p):p},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&g&&!O[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var r=b.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(Ot){O(e,!0)}return st(e,p,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=p&&h(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=p&&h(t);var i=r.attrHandle[e.toLowerCase()],o=i&&_.call(r.attrHandle,e.toLowerCase())?i(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(rt,it)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(T),d){while(e=t[o++])e===t[o]&&(i=r.push(o));while(i--)t.splice(r[i],1)}return u=null,t},i=st.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else while(e=t[r++])n+=i(e);return n},r=st.selectors={cacheLength:50,createPseudo:ct,match:Y,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(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===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]||st.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]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y["CHILD"].test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&$.test(n)&&(e=a(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(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=A[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&A(t,(function(t){return e.test("string"===typeof t.className&&t.className||"undefined"!==typeof t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=st.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),b=!l&&!s,y=!1;if(m){if(o){while(g){h=e;while(h=h[g])if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&b){h=m,d=h[w]||(h[w]={}),u=d[h.uniqueID]||(d[h.uniqueID]={}),c=u[t]||[],p=c[0]===C&&c[1],y=p&&c[2],h=p&&m.childNodes[p];while(h=++p&&h&&h[g]||(y=p=0)||f.pop())if(1===h.nodeType&&++y&&h===e){u[t]=[C,p,y];break}}else if(b&&(h=e,d=h[w]||(h[w]={}),u=d[h.uniqueID]||(d[h.uniqueID]={}),c=u[t]||[],p=c[0]===C&&c[1],y=p),!1===y)while(h=++p&&h&&h[g]||(y=p=0)||f.pop())if((s?h.nodeName.toLowerCase()===v:1===h.nodeType)&&++y&&(b&&(d=h[w]||(h[w]={}),u=d[h.uniqueID]||(d[h.uniqueID]={}),u[t]=[C,y]),h===e))break;return y-=i,y===r||y%r===0&&y/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return i[w]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){var r,o=i(t,e),a=o.length;while(a--)r=j(t,o[a]),t[r]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:ct((function(t){var e=[],n=[],r=s(t.replace(V,"$1"));return r[w]?ct((function(t,e,n,i){var o,a=r(t,null,i,[]),s=t.length;while(s--)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:ct((function(t){return G.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?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===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!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,!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!r.pseudos["empty"](t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return K.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:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,n){return[n<0?n+e:n]})),even:mt((function(t,e){for(var n=0;ne?e:n;--r>=0;)t.push(r);return t})),gt:mt((function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){var i=t.length;while(i--)if(!t[i](e,n,r))return!1;return!0}:t[0]}function Ct(t,e,n){for(var r=0,i=e.length;r-1&&(o[c]=!(a[c]=d))}}else v=kt(v===a?v.splice(f,v.length):v),i?i(null,a,v,l):L.apply(a,v)}))}function St(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],l=a?1:0,u=wt((function(t){return t===e}),s,!0),d=wt((function(t){return j(e,t)>-1}),s,!0),h=[function(t,n,r){var i=!a&&(r||n!==c)||((e=n).nodeType?u(t,n,r):d(t,n,r));return e=null,i}];l1&&xt(h),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(V,"$1"),n,l0,i=t.length>0,o=function(o,a,s,l,u){var d,f,m,v=0,b="0",y=o&&[],w=[],x=c,k=o||i&&r.find["TAG"]("*",u),A=C+=null==x?1:Math.random()||.1,S=k.length;for(u&&(c=a==p||a||u);b!==S&&null!=(d=k[b]);b++){if(i&&d){f=0,a||d.ownerDocument==p||(h(d),s=!g);while(m=t[f++])if(m(d,a||p,s)){l.push(d);break}u&&(C=A)}n&&((d=!m&&d)&&v--,o&&y.push(d))}if(v+=b,n&&b!==v){f=0;while(m=e[f++])m(y,w,a,s);if(o){if(v>0)while(b--)y[b]||w[b]||(w[b]=N.call(l));w=kt(w)}L.apply(l,w),u&&!o&&w.length>0&&v+e.length>1&&st.uniqueSort(l)}return u&&(C=A,c=x),y};return n?ct(o):o}return bt.prototype=r.filters=r.pseudos,r.setFilters=new bt,a=st.tokenize=function(t,e){var n,i,o,a,s,l,c,u=S[t+" "];if(u)return e?0:u.slice(0);s=t,l=[],c=r.preFilter;while(s){for(a in n&&!(i=q.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(V," ")}),s=s.slice(n.length)),r.filter)!(i=Y[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):S(t,l).slice(0)},s=st.compile=function(t,e){var n,r=[],i=[],o=E[t+" "];if(!o){e||(e=a(t)),n=e.length;while(n--)o=St(e[n]),o[w]?r.push(o):i.push(o);o=E(t,Et(i,r)),o.selector=t}return o},l=st.select=function(t,e,n,i){var o,l,c,u,d,h="function"===typeof t&&t,p=!i&&a(t=h.selector||t);if(n=n||[],1===p.length){if(l=p[0]=p[0].slice(0),l.length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&g&&r.relative[l[1].type]){if(e=(r.find["ID"](c.matches[0].replace(et,nt),e)||[])[0],!e)return n;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}o=Y["needsContext"].test(t)?0:l.length;while(o--){if(c=l[o],r.relative[u=c.type])break;if((d=r.find[u])&&(i=d(c.matches[0].replace(et,nt),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),t=i.length&&yt(l),!t)return L.apply(n,i),n;break}}}return(h||s(t,p))(i,e,!g,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=w.split("").sort(T).join("")===w,n.detectDuplicates=!!d,h(),n.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ut((function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ut((function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||dt(I,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),st}(n);S.find=O,S.expr=O.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=O.uniqueSort,S.text=O.getText,S.isXMLDoc=O.isXML,S.contains=O.contains,S.escapeSelector=O.escape;var T=function(t,e,n){var r=[],i=void 0!==n;while((t=t[e])&&9!==t.nodeType)if(1===t.nodeType){if(i&&S(t).is(n))break;r.push(t)}return r},_=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},M=S.expr.match.needsContext;function N(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(t,e,n){return b(e)?S.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?S.grep(t,(function(t){return t===e!==n})):"string"!==typeof e?S.grep(t,(function(t){return d.call(e,t)>-1!==n})):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!==typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(L(this,t||[],!1))},not:function(t){return this.pushStack(L(this,t||[],!0))},is:function(t){return!!L(this,"string"===typeof t&&M.test(t)?S(t):t||[],!1).length}});var D,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,I=S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||D,"string"===typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:j.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),P.test(r[1])&&S.isPlainObject(e))for(r in e)b(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=w.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)};I.prototype=S.fn,D=S(w);var R=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function B(t,e){while((t=t[e])&&1!==t.nodeType);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&S.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(t){return t?"string"===typeof t?d.call(S(t),this[0]):d.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,n){return T(t,"parentNode",n)},next:function(t){return B(t,"nextSibling")},prev:function(t){return B(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,n){return T(t,"nextSibling",n)},prevUntil:function(t,e,n){return T(t,"previousSibling",n)},siblings:function(t){return _((t.parentNode||{}).firstChild,t)},children:function(t){return _(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(N(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=S.filter(r,i)),this.length>1&&(F[t]||S.uniqueSort(i),R.test(t)&&i.reverse()),this.pushStack(i)}}));var z=/[^\x20\t\r\n\f]+/g;function H(t){var e={};return S.each(t.match(z)||[],(function(t,n){e[n]=!0})),e}function V(t){return t}function q(t){throw t}function U(t,e,n,r){var i;try{t&&b(i=t.promise)?i.call(t).done(e).fail(n):t&&b(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){t="string"===typeof t?H(t):S.extend({},t);var e,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||t.once,r=e=!0;a.length;s=-1){n=a.shift();while(++s-1)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?S.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return S.Deferred((function(n){S.each(e,(function(e,r){var i=b(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&b(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(t=o&&(r!==q&&(s=void 0,l=[n]),e.rejectWith(s,l))}};t?u():(S.Deferred.getStackHook&&(u.stackTrace=S.Deferred.getStackHook()),n.setTimeout(u))}}return S.Deferred((function(n){e[0][3].add(a(0,n,b(i)?i:V,n.notifyWith)),e[1][3].add(a(0,n,b(t)?t:V)),e[2][3].add(a(0,n,b(r)?r:q))})).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},o={};return S.each(e,(function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=l.call(arguments),o=S.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?l.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(U(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||b(i[n]&&i[n].then)))return o.then();while(n--)U(i[n],a(n),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&W.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){n.setTimeout((function(){throw t}))};var $=S.Deferred();function G(){w.removeEventListener("DOMContentLoaded",G),n.removeEventListener("load",G),S.ready()}S.fn.ready=function(t){return $.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||$.resolveWith(w,[S]))}}),S.ready.then=$.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?n.setTimeout(S.ready):(w.addEventListener("DOMContentLoaded",G),n.addEventListener("load",G));var Y=function(t,e,n,r,i,o,a){var s=0,l=t.length,c=null==n;if("object"===k(n))for(s in i=!0,n)Y(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,b(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(S(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each((function(){nt.remove(this,t)}))}}),S.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=et.get(t,e),n&&(!r||Array.isArray(n)?r=et.access(t,e,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),o=S._queueHooks(t,e),a=function(){S.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return et.get(t,n)||et.access(t,n,{empty:S.Callbacks("once memory").add((function(){et.remove(t,[e+"queue",n])}))})}}),S.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,wt=/^$|^module$|\/(?:java|ecma)script/i;(function(){var t=w.createDocumentFragment(),e=t.appendChild(w.createElement("div")),n=w.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),v.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",v.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",v.option=!!e.lastChild})();var xt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Ct(t,e){var n;return n="undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!==typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&N(t,e)?S.merge([t],n):n}function kt(t,e){for(var n=0,r=t.length;n",""]);var At=/<|&#?\w+;/;function St(t,e,n,r,i){for(var o,a,s,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p-1)i&&i.push(o);else if(c=dt(o),a=Ct(d.appendChild(o),"script"),c&&kt(a),n){u=0;while(o=a[u++])wt.test(o.type||"")&&n.push(o)}return d}var Et=/^([^.]*)(?:\.(.+)|)/;function Ot(){return!0}function Tt(){return!1}function _t(t,e){return t===Mt()===("focus"===e)}function Mt(){try{return w.activeElement}catch(t){}}function Nt(t,e,n,r,i,o){var a,s;if("object"===typeof e){for(s in"string"!==typeof n&&(r=r||n,n=void 0),e)Nt(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Tt;else if(!i)return t;return 1===o&&(a=i,i=function(t){return S().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=S.guid++)),t.each((function(){S.event.add(this,e,i,r,n)}))}function Pt(t,e,n){n?(et.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=et.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=l.call(arguments),et.set(this,e,o),r=n(this,e),this[e](),i=et.get(this,e),o!==i||r?et.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(et.set(this,e,{value:S.event.trigger(S.extend(o[0],S.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===et.get(t,e)&&S.event.add(t,e,Ot)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,l,c,u,d,h,p,f,g,m=et.get(t);if(Q(t)){n.handler&&(o=n,n=o.handler,i=o.selector),i&&S.find.matchesSelector(ut,i),n.guid||(n.guid=S.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return"undefined"!==typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(z)||[""],c=e.length;while(c--)s=Et.exec(e[c])||[],p=g=s[1],f=(s[2]||"").split(".").sort(),p&&(d=S.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=S.event.special[p]||{},u=S.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:f.join(".")},o),(h=l[p])||(h=l[p]=[],h.delegateCount=0,d.setup&&!1!==d.setup.call(t,r,f,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,u):h.push(u),S.event.global[p]=!0)}},remove:function(t,e,n,r,i){var o,a,s,l,c,u,d,h,p,f,g,m=et.hasData(t)&&et.get(t);if(m&&(l=m.events)){e=(e||"").match(z)||[""],c=e.length;while(c--)if(s=Et.exec(e[c])||[],p=g=s[1],f=(s[2]||"").split(".").sort(),p){d=S.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,h=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;while(o--)u=h[o],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||S.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)S.event.remove(t,p+e[c],n,r,!0);S.isEmptyObject(l)&&et.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),l=S.event.fix(t),c=(et.get(this,"events")||Object.create(null))[l.type]||[],u=S.event.special[l.type]||{};for(s[0]=l,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n-1:S.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l\s*$/g;function It(t,e){return N(t,"table")&&N(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Rt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ft(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Bt(t,e){var n,r,i,o,a,s,l;if(1===e.nodeType){if(et.hasData(t)&&(o=et.get(t),l=o.events,l))for(i in et.remove(e,"handle events"),l)for(n=0,r=l[i].length;n1&&"string"===typeof f&&!v.checkClone&&Dt.test(f))return t.each((function(i){var o=t.eq(i);g&&(e[0]=f.call(this,i,o.html())),Ht(o,e,n,r)}));if(h&&(i=St(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=S.map(Ct(i,"script"),Rt),s=a.length;d0&&kt(a,!l&&Ct(t,"script")),s},cleanData:function(t){for(var e,n,r,i=S.event.special,o=0;void 0!==(n=t[o]);o++)if(Q(n)){if(e=n[et.expando]){if(e.events)for(r in e.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[et.expando]=void 0}n[nt.expando]&&(n[nt.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Vt(this,t,!0)},remove:function(t){return Vt(this,t)},text:function(t){return Y(this,(function(t){return void 0===t?S.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 Ht(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=It(this,t);e.appendChild(t)}}))},prepend:function(){return Ht(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=It(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ht(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ht(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&&(S.cleanData(Ct(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return Y(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&&!Lt.test(t)&&!xt[(yt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function le(t,e,n){var r=Wt(t),i=!v.boxSizingReliable()||n,o=i&&"border-box"===S.css(t,"boxSizing",!1,r),a=o,s=Kt(t,e,r),l="offset"+e[0].toUpperCase()+e.slice(1);if(qt.test(s)){if(!n)return s;s="auto"}return(!v.boxSizingReliable()&&o||!v.reliableTrDimensions()&&N(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===S.css(t,"boxSizing",!1,r),a=l in t,a&&(s=t[l])),s=parseFloat(s)||0,s+se(t,e,n||(o?"border":"content"),a,r,s)+"px"}function ce(t,e,n,r,i){return new ce.prototype.init(t,e,n,r,i)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(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,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=J(e),l=Ut.test(e),c=t.style;if(l||(e=ne(s)),a=S.cssHooks[e]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:c[e];o=typeof n,"string"===o&&(i=lt.exec(n))&&i[1]&&(n=ft(t,e,i),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,a,s=J(e),l=Ut.test(e);return l||(e=ne(s)),a=S.cssHooks[e]||S.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Kt(t,e,r)),"normal"===i&&e in oe&&(i=oe[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!re.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,r):$t(t,ie,(function(){return le(t,e,r)}))},set:function(t,n,r){var i,o=Wt(t),a=!v.scrollboxSize()&&"absolute"===o.position,s=a||r,l=s&&"border-box"===S.css(t,"boxSizing",!1,o),c=r?se(t,e,r,l,o):0;return l&&a&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-se(t,e,"border",!1,o)-.5)),c&&(i=lt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),ae(t,n,c)}}})),S.cssHooks.marginLeft=Zt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-$t(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[t+ct[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(S.cssHooks[t+e].set=ae)})),S.fn.extend({css:function(t,e){return Y(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Wt(t),i=e.length;a1)}}),S.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=S.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):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.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=S.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[ne(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ce.prototype.init,S.fx.step={};var ue,de,he=/^(?:toggle|show|hide)$/,pe=/queueHooks$/;function fe(){de&&(!1===w.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(fe):n.setTimeout(fe,S.fx.interval),S.fx.tick())}function ge(){return n.setTimeout((function(){ue=void 0})),ue=Date.now()}function me(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=ct[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ve(t,e,n){for(var r,i=(we.tweeners[e]||[]).concat(we.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof t.getAttribute?S.prop(t,e,n):(1===o&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=S.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&N(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(z);if(i&&1===t.nodeType)while(n=i[r++])t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Ce[e]||S.find.attr;Ce[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=Ce[a],Ce[a]=i,i=null!=n(t,e,r)?a:null,Ce[a]=o),i}}));var ke=/^(?:input|select|textarea|button)$/i,Ae=/^(?:a|area)$/i;function Se(t){var e=t.match(z)||[];return e.join(" ")}function Ee(t){return t.getAttribute&&t.getAttribute("class")||""}function Oe(t){return Array.isArray(t)?t:"string"===typeof t&&t.match(z)||[]}S.fn.extend({prop:function(t,e){return Y(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):ke.test(t.nodeName)||Ae.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(S.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)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(t){var e,n,r,i,o,a;return b(t)?this.each((function(e){S(this).addClass(t.call(this,e,Ee(this)))})):(e=Oe(t),e.length?this.each((function(){if(r=Ee(this),n=1===this.nodeType&&" "+Se(r)+" ",n){for(o=0;o-1)n=n.replace(" "+i+" "," ")}a=Se(n),r!==a&&this.setAttribute("class",a)}})):this):this.attr("class","")},toggleClass:function(t,e){var n,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return b(t)?this.each((function(n){S(this).toggleClass(t.call(this,n,Ee(this),e),e)})):"boolean"===typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=Oe(t),this.each((function(){if(s)for(o=S(this),i=0;i-1)return!0;return!1}});var Te=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=b(t),this.each((function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,S(this).val()):t,null==i?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=S.map(i,(function(t){return null==t?"":t+""}))),e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"===typeof n?n.replace(Te,""):null==n?"":n)):void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:Se(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},v.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in n;var _e=/^(?:focusinfocus|focusoutblur)$/,Me=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,r,i){var o,a,s,l,c,u,d,h,p=[r||w],g=f.call(t,"type")?t.type:t,m=f.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=r=r||w,3!==r.nodeType&&8!==r.nodeType&&!_e.test(g+S.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,t=t[S.expando]?t:new S.Event(g,"object"===typeof t&&t),t.isTrigger=i?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:S.makeArray(e,[t]),d=S.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(r,e))){if(!i&&!d.noBubble&&!y(r)){for(l=d.delegateType||g,_e.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||w)&&p.push(s.defaultView||s.parentWindow||n)}o=0;while((a=p[o++])&&!t.isPropagationStopped())h=a,t.type=o>1?l:d.bindType||g,u=(et.get(a,"events")||Object.create(null))[t.type]&&et.get(a,"handle"),u&&u.apply(a,e),u=c&&a[c],u&&u.apply&&Q(a)&&(t.result=u.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),e)||!Q(r)||c&&b(r[g])&&!y(r)&&(s=r[c],s&&(r[c]=null),S.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Me),r[g](),t.isPropagationStopped()&&h.removeEventListener(g,Me),S.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}}),v.focusin||S.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=et.access(r,e);i||r.addEventListener(t,n,!0),et.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=et.access(r,e)-1;i?et.access(r,e,i):(r.removeEventListener(t,n,!0),et.remove(r,e))}}}));var Ne=n.location,Pe={guid:Date.now()},Le=/\?/;S.parseXML=function(t){var e,r;if(!t||"string"!==typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(i){}return r=e&&e.getElementsByTagName("parsererror")[0],e&&!r||S.error("Invalid XML: "+(r?S.map(r.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var De=/\[\]$/,je=/\r?\n/g,Ie=/^(?:submit|button|image|reset|file)$/i,Re=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,n,r){var i;if(Array.isArray(e))S.each(e,(function(e,i){n||De.test(t)?r(t,i):Fe(t+"["+("object"===typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==k(e))r(t,e);else for(i in e)Fe(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=b(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,(function(){i(this.name,this.value)}));else for(n in t)Fe(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Re.test(this.nodeName)&&!Ie.test(t)&&(this.checked||!bt.test(t))})).map((function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(t){return{name:e.name,value:t.replace(je,"\r\n")}})):{name:e.name,value:n.replace(je,"\r\n")}})).get()}});var Be=/%20/g,ze=/#.*$/,He=/([?&])_=[^&]*/,Ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ue=/^(?:GET|HEAD)$/,We=/^\/\//,$e={},Ge={},Ye="*/".concat("*"),Xe=w.createElement("a");function Ke(t){return function(e,n){"string"!==typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(z)||[];if(b(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ze(t,e,n,r){var i={},o=t===Ge;function a(s){var l;return i[s]=!0,S.each(t[s]||[],(function(t,s){var c=s(e,n,r);return"string"!==typeof c||o||i[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Je(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}function Qe(t,e,n){var r,i,o,a,s=t.contents,l=t.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}function tn(t,e,n,r){var i,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];o=u.shift();while(o)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift(),o)if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=c[l+" "+o]||c["* "+o],!a)for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]],a)){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}Xe.href=Ne.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ne.href,type:"GET",isLocal:qe.test(Ne.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,S.ajaxSettings),e):Je(S.ajaxSettings,t)},ajaxPrefilter:Ke($e),ajaxTransport:Ke(Ge),ajax:function(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,l,c,u,d,h,p=S.ajaxSetup({},e),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?S(f):S.event,m=S.Deferred(),v=S.Callbacks("once memory"),b=p.statusCode||{},y={},x={},C="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a){a={};while(e=Ve.exec(o))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?o:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,y[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)k.always(t[k.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||C;return r&&r.abort(e),A(0,e),this}};if(m.promise(k),p.url=((t||p.url||Ne.href)+"").replace(We,Ne.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(z)||[""],null==p.crossDomain){l=w.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Xe.protocol+"//"+Xe.host!==l.protocol+"//"+l.host}catch(E){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!==typeof p.data&&(p.data=S.param(p.data,p.traditional)),Ze($e,p,e,k),c)return k;for(d in u=S.event&&p.global,u&&0===S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ue.test(p.type),i=p.url.replace(ze,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Be,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"===typeof p.data)&&(i+=(Le.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(He,"$1"),h=(Le.test(i)?"&":"?")+"_="+Pe.guid+++h),p.url=i+h),p.ifModified&&(S.lastModified[i]&&k.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&k.setRequestHeader("If-None-Match",S.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ye+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,k,p)||c))return k.abort();if(C="abort",v.add(p.complete),k.done(p.success),k.fail(p.error),r=Ze(Ge,p,e,k),r){if(k.readyState=1,u&&g.trigger("ajaxSend",[k,p]),c)return k;p.async&&p.timeout>0&&(s=n.setTimeout((function(){k.abort("timeout")}),p.timeout));try{c=!1,r.send(y,A)}catch(E){if(c)throw E;A(-1,E)}}else A(-1,"No Transport");function A(t,e,a,l){var d,h,y,w,x,C=e;c||(c=!0,s&&n.clearTimeout(s),r=void 0,o=l||"",k.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(w=Qe(p,k,a)),!d&&S.inArray("script",p.dataTypes)>-1&&S.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=tn(p,w,k,d),d?(p.ifModified&&(x=k.getResponseHeader("Last-Modified"),x&&(S.lastModified[i]=x),x=k.getResponseHeader("etag"),x&&(S.etag[i]=x)),204===t||"HEAD"===p.type?C="nocontent":304===t?C="notmodified":(C=w.state,h=w.data,y=w.error,d=!y)):(y=C,!t&&C||(C="error",t<0&&(t=0))),k.status=t,k.statusText=(e||C)+"",d?m.resolveWith(f,[h,C,k]):m.rejectWith(f,[k,C,y]),k.statusCode(b),b=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?h:y]),v.fireWith(f,[k,C]),u&&(g.trigger("ajaxComplete",[k,p]),--S.active||S.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,n,r,i){return b(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}})),S.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(b(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){var t=this;while(t.firstElementChild)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return b(t)?this.each((function(e){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=b(t);return this.each((function(n){S(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var en={0:200,1223:204},nn=S.ajaxSettings.xhr();v.cors=!!nn&&"withCredentials"in nn,v.ajax=nn=!!nn,S.ajaxTransport((function(t){var e,r;if(v.cors||nn&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(en[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){e&&r()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(l){if(e)throw l}},abort:function(){e&&e()}}})),S.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),S.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 S.globalEval(t),t}}}),S.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),S.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("