diff --git a/dist/camlsql.js b/dist/camlsql.js index a61fa16..d815e68 100644 --- a/dist/camlsql.js +++ b/dist/camlsql.js @@ -1,4 +1,4 @@ -/*! camlsqj-js v0.5.1 | (c) dlid.se | https://camlsqljs.dlid.se/license */ +/*! camlsqj-js v0.5.2 | (c) dlid.se | https://camlsqljs.dlid.se/license */ (function (global, factory) { 'use strict'; typeof exports === 'object' && typeof module !== 'undefined' ? (module.exports = factory()) : @@ -215,14 +215,14 @@ var CamlSqlDateParameter = { stringValue : '', add : function(intervalString){ this.errstr(); - var diff = getIntervalStringAsMs(intervalString) + var diff = getIntervalStringAsMs(intervalString); this.value = new Date( this.value.getTime() + diff ); this.today = false; return this; }, sub : function(intervalString){ this.errstr(); - var diff = getIntervalStringAsMs(intervalString) + var diff = getIntervalStringAsMs(intervalString); this.value = new Date( this.value.getTime() - diff ); this.today = false; return this; @@ -295,6 +295,9 @@ var CamlSqlDateParameter = { function createGuidParameter(value) { + if (typeof value === "undefined") { + throw "[camlsql] Missing parameter"; + } return { type : 'Guid', value : value @@ -325,19 +328,19 @@ function createMembershipParameter(type, id) { }; } -function createMultiChoiceParameter(value) { - return { - type : 'MultiChoice', - value : value - }; -} +// function createMultiChoiceParameter(value) { +// return { +// type : 'MultiChoice', +// value : value +// }; +// } -function createChoiceParameter(value) { - return { - type : 'Choice', - value : value - }; -} +// function createChoiceParameter(value) { +// return { +// type : 'Choice', +// value : value +// }; +// } // function createUrlParameter(value) { // return { @@ -405,7 +408,7 @@ function executeSPQuery(options) { console.log("[camlsql] Result", rows); } } - } + }; } if (typeof SP !== "undefined") { @@ -414,12 +417,12 @@ function executeSPQuery(options) { SP.SOD.executeOrDelayUntilScriptLoaded(function() { - console.warn("GET SERVER TIMEZOE", _spPageContextInfo.webServerRelativeUrl + "/_api/web/RegionalSettings/TimeZone"); + // console.warn("GET SERVER TIMEZOE", _spPageContextInfo.webServerRelativeUrl + "/_api/web/RegionalSettings/TimeZone"); - ajaxGet(_spPageContextInfo.webServerRelativeUrl + "/_api/web/RegionalSettings/TimeZone", function(e,r) { - console.warn("TZ INFO", e, r); - }); + // ajaxGet(_spPageContextInfo.webServerRelativeUrl + "/_api/web/RegionalSettings/TimeZone", function(e,r) { + // console.warn("TZ INFO", e, r); + // }); clientContext = SP.ClientContext.get_current(); if (spWeb !== null) { @@ -428,7 +431,7 @@ function executeSPQuery(options) { } } - if (!spWeb) spWeb = clientContext.get_web();; + if (!spWeb) spWeb = clientContext.get_web(); // regionalSettings = spWeb.get_regionalSettings(); spList = spWeb.get_lists().getByTitle(listName); @@ -506,7 +509,8 @@ function executeSPQuery(options) { function camlQuerySuccess() { var listItemEnumerator = spListItems.getEnumerator(), items = [], - spListItem; + spListItem, + i; var listItemCollectionPosition = spListItems.get_listItemCollectionPosition(), values, field, groupByValue, @@ -519,7 +523,7 @@ function executeSPQuery(options) { // var info = timeZone.get_information(); // var offset = (info.get_bias() /*+ (info.get_daylightBias() )*/) / 60.0; // console.log("TIMEZONE offset", info.get_bias(), info.get_daylightBias(), offset); - + while (listItemEnumerator.moveNext()) { spListItem = listItemEnumerator.get_current(); values = spListItem.get_fieldValues(); @@ -527,13 +531,23 @@ function executeSPQuery(options) { prevPage = "PagedPrev=TRUE&Paged=TRUE&p_ID=" + encodeURIComponent(spListItem.get_id()); } - for(var k in values) { - if (values[k] && typeof values[k].getTimezoneOffset == "function") { - if (k == "DateTime_x0020_field") { - // var o = (values[k].getTimezoneOffset() / 60) * -1 ; - // var d = new Date(values[k].getTime() - ((offset ) * 3600 * 1000)); - // console.log(k, "is a date", values[k], values[k].getUTCFullYear(), values[k].getUTCMonth(), values[k].getUTCDate(), values[k].getUTCHours(), values[k].getUTCMinutes(), values[k].getUTCSeconds() ); - // console.log(d, "is a date2", d, d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate(), d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds() ); + // for(var k in values) { + // if (values[k] && typeof values[k].getTimezoneOffset == "function") { + // if (k == "DateTime_x0020_field") { + // // var o = (values[k].getTimezoneOffset() / 60) * -1 ; + // // var d = new Date(values[k].getTime() - ((offset ) * 3600 * 1000)); + // // console.log(k, "is a date", values[k], values[k].getUTCFullYear(), values[k].getUTCMonth(), values[k].getUTCDate(), values[k].getUTCHours(), values[k].getUTCMinutes(), values[k].getUTCSeconds() ); + // // console.log(d, "is a date2", d, d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate(), d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds() ); + // } + // } + // } + + var enc = options.query.$options.parsedQuery.encoded, + encodedFields = Object.keys(options.query.$options.parsedQuery.encoded); + if (encodedFields.length > 0) { + for (i=0; i < encodedFields.length; i++) { + if (typeof values[encodedFields[i]] !== "undefined") { + values[enc[encodedFields[i]]] = values[encodedFields[i]]; } } } @@ -562,7 +576,6 @@ function executeSPQuery(options) { items[groupIndexes[groupByValue]].items.push(values); } } else { - items.push(values); } } @@ -574,22 +587,22 @@ function executeSPQuery(options) { } - function ajaxGet(url, callback) { + // function ajaxGet(url, callback) { - var xhr = new XMLHttpRequest(); - xhr.open('GET', url); - xhr.setRequestHeader('Content-Type', 'application/json'); - xhr.setRequestHeader('Accept', 'application/json; odata=verbose'); - xhr.onload = function() { - if (xhr.status === 200) { - callback(null, xhr.responseText) - } else { - callback(xhr, null); - } - }; - xhr.send(); + // var xhr = new XMLHttpRequest(); + // xhr.open('GET', url); + // xhr.setRequestHeader('Content-Type', 'application/json'); + // xhr.setRequestHeader('Accept', 'application/json; odata=verbose'); + // xhr.onload = function() { + // if (xhr.status === 200) { + // callback(null, xhr.responseText) + // } else { + // callback(xhr, null); + // } + // }; + // xhr.send(); - } + // } /** * Add zero padding to a string @@ -611,9 +624,7 @@ function encodeToInternalField(str) { for (i=0; i < str.length; i++) { c = encodeURIComponent(str[i]); if (c.indexOf('%') == 0) { - n += "_x" + ("0000" + str.charCodeAt(i).toString(16)).slice(-4) + "_" - } else if (c == ' ') { - n += "_x0020_"; + n += "_x" + ("0000" + str.charCodeAt(i).toString(16)).slice(-4) + "_"; } else if( c== '.') { n += "_x002e_"; } else if( c== '(') { @@ -754,7 +765,7 @@ function parseParameters(param) { } } else if (typeof param === "object") { keys = Object.keys(param); - for (var i=0; i < keys.length; i++) { + for (i=0; i < keys.length; i++) { if (keys[i].indexOf('@') === 0) { p = parseParameter(param[keys[i]]); if (p) { @@ -800,7 +811,7 @@ function extractGroupByPart(workingObject, quiet) { workingObject.group = { field : formatFieldName(m[1]), collapse : false - } + }; } } @@ -974,8 +985,6 @@ function extractListAndFieldNameParts(workingObject) { } workingObject.query = m[3]; - } else { - workingObject.query = ""; } } } @@ -1037,8 +1046,9 @@ function extractOrderByPart(workingObject, quiet) { } dataType = m[0]; match[1] = m[1]; - } else - return []; + } + } else if (!match[1].match(/^[a-z\d_]+$/i)) { + throw "[camlsql] Wrap order by field name in brackets if it contains special characters"; } fieldName = formatFieldName(match[1]); if (match.length == 3) { @@ -1146,7 +1156,7 @@ function extractNamesToEncode(workingObject) { counter--; if (counter == 0) { match = query.substring( startIndex, i+1 ); - normalized = match.substring(1, match.length-1), + normalized = match.substring(1, match.length-1); encoded = encodeToInternalField(normalized); newQuery = newQuery.replace(match, encoded); startIndex = null; @@ -1392,11 +1402,7 @@ var WhereParser = function(whereString, quiet) { if (prevMacro == null) prevMacro = m[3][0]; else if (prevMacro != m[3][0]) { - - console.log("prevMacro", prevMacro, comparison); - throw "[camlsql] You can not mix named macros and ?"; - return null; } if (m[3][0] == "@") { macro = m[3]; @@ -1455,7 +1461,7 @@ function CamlXmlBuilder(query, isExec) { parsedQuery.uuid = function(prefix) { n++; return prefix + n; - } + }; // remember https://yieldreturnpost.wordpress.com/2012/10/26/caml-query-utc-date-comparisons-in-sharepoint/ // // 2012-10-24T21:30:46Z @@ -1528,6 +1534,8 @@ function createProjectedFieldsElement(projectedFields, joins) { } xml += xmlEndElement("ProjectedFields"); + } else if (projectedFields.length > 0 && joins.length == 0) { + throw "[camlsql] You must JOIN another list to use projected fields"; } return xml; @@ -1642,8 +1650,8 @@ function createStatementXml(parsedQuery, statement, parameters, log) { if (param && param.type == "Membership") { if (statement.comparison != "eq") throw "[camlsql] Membership comparison must be ="; - if (param.value.toLowerCase() == "spgroup" && !param.id) - throw "[camlsql] Membership of type SPGroup requires a group id"; + // if (param.value.toLowerCase() == "spgroup" && !param.id) + // throw "[camlsql] Membership of type SPGroup requires a group id"; xml += xmlBeginElement("Membership", {Type : param.value, ID : param.id ? param.id : null}); xml += xmlBeginElement(XML_FIELD_FIELDREF, {Name : statement.field}, true); xml += xmlEndElement("Membership"); @@ -1665,15 +1673,9 @@ function createStatementXml(parsedQuery, statement, parameters, log) { xml+=createFieldRefValue(parsedQuery, statement); xml+=xmlEndElement(XML_ELEMENT_ISNOTNULL); } else if (comparison == "like") { - if (typeof param === "undefined") - throw "[camlsql] Parameter is not defined " + statement.macro; var x = getXmlElementForLikeStatement(param.value); - //console.log("statement", statement); - //console.log("parameters", parameters); - //console.warn("X", param); elementName = x[1]; param.overrideValue = x[0]; - xml+=xmlBeginElement(elementName); xml+=createFieldRefValue(parsedQuery, statement, param); xml+=xmlEndElement(elementName); @@ -1760,7 +1762,7 @@ function createFieldRefValue(parsedQuery, statement, parameter, isWhereClause) { if (!parameter || parameter.constructor !== Array) throw "[camlsql] IN parameter must be an array"; xml += ''; - for (var i=0; i < parameter.length; i++) { + for (i=0; i < parameter.length; i++) { xml += creatValueElement(statement, parameter[i], parameter[i].value); } xml += ''; @@ -1768,7 +1770,7 @@ function createFieldRefValue(parsedQuery, statement, parameter, isWhereClause) { xml += creatValueElement(statement, parameter); } } - return xml;; + return xml; } function creatValueElement(statement, parameter) { @@ -1790,8 +1792,8 @@ function createFieldRefValue(parsedQuery, statement, parameter, isWhereClause) { } if (parameter.today === true) { innerXml = xmlBeginElement('Today', vAttr, true); - } else if (parameter.isNow === true) { - innerXml = ""; + // } else if (parameter.isNow === true) { + // innerXml = ""; } else { valueAttributes.StorageTZ = parameter._storageTZ ? 'True' : null; if (parameter.stringValue) { @@ -1830,7 +1832,7 @@ function createFieldRefValue(parsedQuery, statement, parameter, isWhereClause) { innerXml = parameterValue ? 1 : 0; } else { - innerXml = xmlBeginElement('NotImplemented',{}, true); + throw "[camlsql] Parameter type is not not implemented " + parameter.type; } xml += xmlBeginElement('Value', valueAttributes); diff --git a/dist/camlsql.min.js b/dist/camlsql.min.js index 8ef24b6..516c1a8 100644 --- a/dist/camlsql.min.js +++ b/dist/camlsql.min.js @@ -1,2 +1,2 @@ -/*! camlsqj-js v0.5.1 | (c) dlid.se | https://camlsqljs.dlid.se/license */ -!function(e,t){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():e.camlsql=t()}(this,function(){"use strict";function e(e){var t,n=0;if("string"!=typeof e)throw"[camlsql] Interval value must be a string";if(e=e.toLowerCase(),t=e.match(/^(\d+) (day|hour|minute|second|ms|millisecond)s?$/i)){switch(e=parseInt(e,10),t[2]){case"day":n=24*e*60*60;break;case"hour":n=60*e*60;break;case"minute":n=60*e;break;case"second":n=e;break;case"ms":case"millisecond":n=e/1e3}return 1e3*n}throw"[camlsql] Interval string was not recognized: "+e}function t(e,t){var l;return e=p(e.toLowerCase()),t=t?new Date(+t):new Date,"month start"==e?l=new Date(t.getFullYear(),t.getMonth(),1,0,0,0,0):"month end"==e?l=new Date(t.getFullYear(),t.getMonth()+1,0,23,59,59,999):"week start"==e?l=n(t):"week start monday"==e?l=n(t,!0):"week end monday"==e?l=r(t,!0):"week end"==e?l=r(t):"day start"==e?l=new Date(t.setHours(0,0,0,0)):"day end"==e&&(l=new Date(t.setHours(23,59,59,999))),l}function n(e,t){(e=e?new Date(+e):new Date).setHours(0,0,0,0),t=!!t;var n=e.getDay();return!0===t&&(0==n?n=6:n-=1),e.setDate(e.getDate()-n),e}function r(e,t){return e=n(e,t),e.getDay(),e.setDate(e.getDate()+6),new Date(e.setHours(23,59,59,999))}function l(e){if("string"!=typeof e&&void 0!==e)throw"[camlsql] Value was not a string";var t;return t={type:"Text",value:e=void 0!==e?e:""},!0===(-1!=e.indexOf("\n")||-1!==e.indexOf("\r"))&&(t.multiline=!0),t}function i(e){if("number"==typeof e&&(e>0?e=!0:e<=0&&(e=!1)),"boolean"!=typeof e&&void 0!==e)throw"[camlsql] Value was not boolean";return void 0===e&&(e=!1),{type:"Boolean",value:e}}function s(e){if("number"!=typeof e&&void 0!==e)throw"[camlsql] Value was not a number";return e=e||0,{type:"Number",value:e}}function o(e){var t;return void 0!==e&&G.isPrototypeOf(e)&&(e=e.value),"string"==typeof e?(t=e+"",e=null):e=e?new Date(+e):new Date,Object.create(G,{type:{value:"DateTime"},value:{value:e,writable:!0},_includeTime:{value:!0,writable:!0},today:{value:!1,writable:!0},_storageTZ:{value:!1,writable:!0},stringValue:{value:t,writable:!1}})}function a(e){function t(){var t=new SP.CamlQuery;t.set_datesInUtc(!1);var l=e.query.getXml(!0);t.set_viewXml(l),f=a.getItems(t),p&&console&&console.log("[camlsql] Executing SP.CamlQuery",l),r.load(f),r.executeQueryAsync(n,function(t,n){var r="";n&&-2130575340==n.get_errorCode()&&(r+=" (Error -2130575340: Check field names)"),o({status:"error",message:"Error executing the SP.CamlQuery"+r,data:{sql:e.query.$options.parsedQuery.query,viewXml:d,listName:c,error:Array.prototype.slice.call(arguments)}},null)})}function n(){var e,t,n,r,s=f.getEnumerator(),a=[],u=f.get_listItemCollectionPosition(),c={};for(u&&(l=u.get_pagingInfo());s.moveNext();){t=(e=s.get_current()).get_fieldValues(),i||(i="PagedPrev=TRUE&Paged=TRUE&p_ID="+encodeURIComponent(e.get_id()));for(var d in t)t[d]&&t[d].getTimezoneOffset;m?void 0===c[r=null===t[n=m.field]?null:"object"==typeof t[n]&&void 0!==t[n].toString?"function"==typeof t[n].get_lookupValue?t[n].get_lookupValue():t[n].toString():t[n]]?(a.push({groupName:r,items:[t]}),c[r]=a.length-1):a[c[r]].items.push(t):a.push(t)}o(null,a,{nextPage:l,prevPage:i})}var r,l,i,s=e.spWeb,o=e.callback,a=null,c=e.query.getListName(),f=null,d=e&&e.rawXml?e.rawXml:e.query.getXml(!0),p=!1,m=e.query.$options.parsedQuery.group;if("function"!=typeof o&&(o=null),m&&e.query.$options.parsedQuery.fields.length>0&&-1===e.query.$options.parsedQuery.fields.indexOf(m.field))throw"[camlsql] The Grouping Field must be included in the field list";if(o||(p=!0,o=function(e,t){"undefined"!=typeof console&&(e&&console.error(e),void 0!==console.table?console.table(t):console.log("[camlsql] Result",t))}),"undefined"!=typeof SP)SP.SOD.executeFunc("sp.js","SP.ClientContext",function(){}),SP.SOD.executeOrDelayUntilScriptLoaded(function(){console.warn("GET SERVER TIMEZOE",_spPageContextInfo.webServerRelativeUrl+"/_api/web/RegionalSettings/TimeZone"),u(_spPageContextInfo.webServerRelativeUrl+"/_api/web/RegionalSettings/TimeZone",function(e,t){console.warn("TZ INFO",e,t)}),r=SP.ClientContext.get_current(),null!==s&&"string"==typeof s&&(s=site.openWeb(s)),s||(s=r.get_web()),a=s.get_lists().getByTitle(c),p&&console&&console.log("[camlsql] Loading list '"+c+"'"),r.load(a),r.executeQueryAsync(t,function(){if(null==o)throw"[camlsql] Failed to load list";o({status:"error",message:"Failed to load list",data:{sql:e.query.$options.parsedQuery.query,viewXml:d,listName:c,error:Array.prototype.slice.call(arguments)}},null)})},"sp.js");else{if(p&&"undefined"!=typeof console&&console.log("[camlsql] ViewXML:",e.query.getXml(!0)),null==o)throw"[camlsql] SP is not defined";o({status:"error",message:"SP is not defined",data:null},null)}}function u(e,t){var n=new XMLHttpRequest;n.open("GET",e),n.setRequestHeader("Content-Type","application/json"),n.setRequestHeader("Accept","application/json; odata=verbose"),n.onload=function(){200===n.status?t(null,n.responseText):t(n,null)},n.send()}function c(e,t){for(var n=String(e);n.length<(t||2);)n="0"+n;return n}function f(e){var t,n,r="";for(t=0;t32?r.substr(0,32):r}function d(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function p(e){return e.replace(/^\s+|\s+$/g,"")}function m(e){return p(e).replace(/^[\[\(]|[\]\)]$/g,"")}function h(e){var t=0,n=0;if((e=p(e)).length>1&&"("==e[0]&&")"==e[e.length-1])for(t=0;t0)for(l=0;l. must be followed with an AS ";if(e.fields=r,e.listName=m(l[2]),!e.listName.match(/^[a-z\d_]+$/i))throw"[camlsql] Wrap list name in brackets if it contains special characters: ["+e.listName+"]";e.query=l[3]}else e.query=""}function x(e){var t,n=[],r=e.split(",");for(t=0;t0){if(!(2==(o=n[1].split(":")).length&&o[0].length>0))return[];switch(o[0]=o[0].toLowerCase(),o[0]){case"datetime":o[0]="DateTime";break;case"text":o[0]="Text";break;case"number":o[0]="Number"}l=o[0],n[1]=o[1]}r=m(n[1]),3==n.length&&(s="desc"!=(void 0!==n[2]?p(n[2].toLowerCase()):null)),a.push([r,s,l])}e.sort=a}}function k(e){var t,n,r=e.query;if(t=r.match(/^(select\s+)(scope\s+([a-z]+)\s+)/i)){switch(t[3]=t[3].toLowerCase(),t[3]){case"defaultvalue":n="DefaultValue";break;case"recursive":n="Recursive";break;case"recursiveall":n="RecursiveAll";break;case"filesonly":n="FilesOnly"}if(!n&&console.error)throw"[camlsql] Unknown scope '"+t[3]+"'";void 0!==n&&(e.viewScope=n),e.query=t[1]+r.substr(t[1].length+t[2].length)}else e.viewScope=null}function L(e,t){var n,r={query:e,rowLimit:0,fields:[],sort:[],joins:[],viewScope:null,macros:[],statements:[],parameters:[],listName:null,projectedFields:[],group:null,encoded:{}};return S(r),k(r),q(r),_(r),w(r),b(r),T(r),n=W(r.query),r.statements=n.statements,r.macros=n.macros,r.query=e,r}function S(e){var t,n,r,l=e.query,i=0,s=null,o=l;for(t=0;t0&&(t+=M("RowLimit"),t+=e,t+=U("RowLimit")),t}function C(e,t){var n,r="",l=[];if(e.length>0&&t.length>0){for(r+=M("ProjectedFields"),n=0;n0){for(i+=M("Joins"),r=0;r0){t+=M(B);for(var n=0;n0||n.length>0||e.group&&!l)&&(s+=M(X),t.length>0&&(s+=M(H),s+=P(e,t,r,i),s+=U(H)),s+=$(n,r,i),l||(s+=I(e)),s+=U(X)),s}function P(e,t,n,r){var l="";if(!t)return"";if(t.length>1){var i="and"==t[1].operator?"And":"Or";return l+=R(e,t[0],n,r),l+=P(e,t.slice(1),n,r),"<"+i+">"+l+""}return 1==t.length&&(l+=R(e,t[0],n,r)),l}function R(e,t,n,r){var l,i,s="",o=t.comparison;if("statement"==t.type){l=n[t.macro];var a={eq:"Eq",gt:"Gt",gte:"Geq",lte:"Leq",lt:"Lt",ne:"Neq"};if(void 0!==a[o]){if(void 0===l)throw"[camlsql] Parameter is not defined "+t.macro;if(l&&"Membership"==l.type){if("eq"!=t.comparison)throw"[camlsql] Membership comparison must be =";if("spgroup"==l.value.toLowerCase()&&!l.id)throw"[camlsql] Membership of type SPGroup requires a group id";s+=M("Membership",{Type:l.value,ID:l.id?l.id:null}),s+=M(z,{Name:t.field},!0),s+=U("Membership")}else s+=M(a[o]),s+=V(e,t,l),s+=U(a[o])}else if("null"==o)s+=M(Y),s+=V(e,t),s+=U(Y);else if("in"==o)s+=M("In"),s+=V(e,t,l),s+=U("In");else if("notnull"==o)s+=M(J),s+=V(e,t),s+=U(J);else if("like"==o){if(void 0===l)throw"[camlsql] Parameter is not defined "+t.macro;var u=F(l.value);i=u[1],l.overrideValue=u[0],s+=M(i),s+=V(e,t,l),s+=U(i)}}else s+=P(e,t.items,n,r);return s}function F(e){var t="Contains",n=e;if(!e)return[e,t];if(0===e.indexOf("%")&&"%"===e[e.length-1])n=e.replace(/^%?|%?$/g,"");else{if(0===e.indexOf("%"))throw"[camlsql] SharePoint does not support an 'EndsWith' statement: "+e;e.indexOf("%")===e.length-1&&(n=e.replace(/%?$/,""),t="BeginsWith")}return[n,t]}function V(e,t,n,r){var l="",i=null,s=t.field;if(n&&n.lookupid&&(i="True"),-1!==t.field.indexOf(".")){var o=t.field.split("."),a=!0,u=!0;if(m(o[0])==e.listName)s=o[1];else{for(c=0;c"}else l+=E(t,n);return l}function E(e,t){var n="",r="",l={},i={Type:t.type},s=t.overrideValue?t.overrideValue:t.value;return"DateTime"==t.type?(i.IncludeTimeValue=t._includeTime?"True":null,t.value&&(l.Offset=s),!0===t.today?r=M("Today",l,!0):!0===t.isNow?r="":(i.StorageTZ=t._storageTZ?"True":null,r=t.stringValue?d(t.stringValue):t._storageTZ?s.toISOString():s.getFullYear()+"-"+c(s.getMonth()+1)+"-"+c(s.getDate())+"T"+c(s.getHours())+":"+c(s.getMinutes())+":"+c(s.getSeconds()))):"Text"==t.type?r=1==t.multiline?"":d(s):"Number"==t.type||"Guid"==t.type?r=s:"User"==t.type?"number"==typeof s?(i.Type="User",r=d(s+"")):(i.Type="Number",r=""):"Lookup"==t.type?(1==t.byId&&(i.LookupId="True"),r=d(s+"")):r="Boolean"==t.type?s?1:0:M("NotImplemented",{},!0),n+=M("Value",i),n+=r,n+=U("Value")}function A(e){var t,n="";if(e.length>0){for(n+=M(Q),t=0;t"}function U(e){return""}var G={type:"DateTime",today:!1,_includeTime:!1,value:null,_storageTZ:!1,stringValue:"",add:function(t){this.errstr();var n=e(t);return this.value=new Date(this.value.getTime()+n),this.today=!1,this},sub:function(t){this.errstr();var n=e(t);return this.value=new Date(this.value.getTime()-n),this.today=!1,this},startOfWeek:function(e){return this.errstr(),this.value=t("week start"+(e?"":" monday"),this.value),this.today=!1,this},endOfWeek:function(e){return this.errstr(),this.value=t("week end"+(e?"":" monday"),this.value),this.today=!1,this},startOfMonth:function(){return this.errstr(),this.value=t("month start",this.value),this.today=!1,this},endOfMonth:function(){return this.errstr(),this.value=t("month end",this.value),this.today=!1,this},endOfDay:function(){return this.errstr(),this.value=t("day end",this.value),this.today=!1,this},startOfDay:function(){return this.errstr(),this.value=t("day start",this.value),this.today=!1,this},storageTZ:function(e){return this._storageTZ=!!e,this.today=!1,this},includeTime:function(e){return this._includeTime=!!e,this},errstr:function(){if(this.stringValue)throw"[camlsql] You can't do that when DateTime was set as a string"}},W=function(e,t){function n(e){return e.replace(/^\s+|\s+$/g,"")}function r(e,o){var a,u,c,f,d,p,g,y,v,w=null,b=null,q=[],T=0,x=null;for(e=h(e),o=o||0,a=0;a0&&0==q.length?q.push(e.substring(0,a)):null!=x&&q.push(e.substring(x,a)),w=a,b=null),T++):e[a]==s&&null!==w&&0==--T&&(w,q.push(n(e.substring(w,a+1)).replace(/^\(|\)$/g,"")),b=a+1,x=a+1,w=null);for(null!=b&&null==w?n(e.substring(b))&&q.push(n(e.substring(b))):null!=w||0==q.length&&null==w&&null==b&&q.push(n(e)),a=0;a0)(f=r(q[a].value,o+1)).length>1&&(q[a].type="group",q[a].items=f);else{for(c=q[a].value.split(/ (\|\||or|and|\&\&) /i),q[a].type="statement",d=[],p=0;p0&&("or"!=c[p-1].toLowerCase()&&"||"!=c[p-1]||(g.operator="or")),y=l(c[p]))g.field=m(y.field),g.macro=y.macro,g.comparison=y.comparison,d.push(g);else if(!t)throw"[camlsql] Could not parse statement: "+c[p];d.length>1?(q[a].type="group",q[a].items=d):1==d.length&&(q[a].field=m(d[0].field),q[a].macro=d[0].macro,q[a].comparison=d[0].comparison)}for(v=[],a=0;a|>=|[^<]>|<=|<[^>]|=|\slike|\scxqlisnull|\scxqlisnotnull|in)\s*(\?|@[a-z0-9_]+)/i);if(t){var r="eq",l="@param"+u,i=n(t[2]);if(">"==i&&(r="gt"),">="==i&&(r="gte"),"<"==i&&(r="lt"),"<="==i&&(r="lte"),"=="==i&&(r="eq"),"<>"!=i&&"!="!=i||(r="ne"),"like"==i.toLowerCase()&&(r="like"),"cxqlisnull"==i.toLowerCase()&&(r="null"),"cxqlisnotnull"==i.toLowerCase()&&(r="notnull"),"in"==i.toLowerCase()&&(r="in"),"null"!=r&&"notnull"!=r){if(u++,c++,null==o)o=t[3][0];else if(o!=t[3][0])throw console.log("prevMacro",o,r),"[camlsql] You can not mix named macros and ?";"@"==t[3][0]&&(l=t[3]),f.push(l)}else l=null;return{field:m(t[1]),comparison:r,macro:l}}return null}var i="(",s=")",o=null,a={statements:[],macroType:null,macroCount:0,macros:[]};if(void 0===e)return a;var u=0,c=0,f=[],d=r(e=(e=e.replace(/^.*?(WHERE\s)/i,"")).replace(/(.*?)\s?ORDER\sBY.*$/i,"$1"));return void 0!==d&&(a.statements=d),a.macroType=o,a.macroCount=c,a.macros=f,a},Z="View",Q="ViewFields",z="FieldRef",X="Query",B="OrderBy",H="Where",Y="IsNull",J="IsNotNull";return{prepare:function(e,t){return new g(e,t)},boolean:i,date:function(e){var t=o(e);return t&&(t._includeTime=!1),t},datetime:o,encode:f,membership:function(e,t){var n,r=["SPWeb.AllUsers","SPGroup","SPWeb.Groups","CurrentUserGroups","SPWeb.Users"],l=null;if(!e)throw"Membership type should be one of "+r.join(", ");for(n=0;n0?e=!0:e<=0&&(e=!1)),"boolean"!=typeof e&&void 0!==e)throw"[camlsql] Value was not boolean";return void 0===e&&(e=!1),{type:"Boolean",value:e}}function s(e){if("number"!=typeof e&&void 0!==e)throw"[camlsql] Value was not a number";return e=e||0,{type:"Number",value:e}}function o(e){var t;return void 0!==e&&U.isPrototypeOf(e)&&(e=e.value),"string"==typeof e?(t=e+"",e=null):e=e?new Date(+e):new Date,Object.create(U,{type:{value:"DateTime"},value:{value:e,writable:!0},_includeTime:{value:!0,writable:!0},today:{value:!1,writable:!0},_storageTZ:{value:!1,writable:!0},stringValue:{value:t,writable:!1}})}function a(e){function t(){var t=new SP.CamlQuery;t.set_datesInUtc(!1);var l=e.query.getXml(!0);t.set_viewXml(l),c=a.getItems(t),d&&console&&console.log("[camlsql] Executing SP.CamlQuery",l),n.load(c),n.executeQueryAsync(r,function(t,r){var n="";r&&-2130575340==r.get_errorCode()&&(n+=" (Error -2130575340: Check field names)"),o({status:"error",message:"Error executing the SP.CamlQuery"+n,data:{sql:e.query.$options.parsedQuery.query,viewXml:f,listName:u,error:Array.prototype.slice.call(arguments)}},null)})}function r(){var t,r,n,s,a,u=c.getEnumerator(),f=[],d=c.get_listItemCollectionPosition(),h={};for(d&&(l=d.get_pagingInfo());u.moveNext();){n=(t=u.get_current()).get_fieldValues(),i||(i="PagedPrev=TRUE&Paged=TRUE&p_ID="+encodeURIComponent(t.get_id()));var m=e.query.$options.parsedQuery.encoded,g=Object.keys(e.query.$options.parsedQuery.encoded);if(g.length>0)for(r=0;r0&&-1===e.query.$options.parsedQuery.fields.indexOf(p.field))throw"[camlsql] The Grouping Field must be included in the field list";if(o||(d=!0,o=function(e,t){"undefined"!=typeof console&&(e&&console.error(e),void 0!==console.table?console.table(t):console.log("[camlsql] Result",t))}),"undefined"!=typeof SP)SP.SOD.executeFunc("sp.js","SP.ClientContext",function(){}),SP.SOD.executeOrDelayUntilScriptLoaded(function(){n=SP.ClientContext.get_current(),null!==s&&"string"==typeof s&&(s=site.openWeb(s)),s||(s=n.get_web()),a=s.get_lists().getByTitle(u),d&&console&&console.log("[camlsql] Loading list '"+u+"'"),n.load(a),n.executeQueryAsync(t,function(){if(null==o)throw"[camlsql] Failed to load list";o({status:"error",message:"Failed to load list",data:{sql:e.query.$options.parsedQuery.query,viewXml:f,listName:u,error:Array.prototype.slice.call(arguments)}},null)})},"sp.js");else{if(d&&"undefined"!=typeof console&&console.log("[camlsql] ViewXML:",e.query.getXml(!0)),null==o)throw"[camlsql] SP is not defined";o({status:"error",message:"SP is not defined",data:null},null)}}function u(e,t){for(var r=String(e);r.length<(t||2);)r="0"+r;return r}function c(e){var t,r,n="";for(t=0;t32?n.substr(0,32):n}function f(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function d(e){return e.replace(/^\s+|\s+$/g,"")}function p(e){return d(e).replace(/^[\[\(]|[\]\)]$/g,"")}function h(e){var t=0,r=0;if((e=d(e)).length>1&&"("==e[0]&&")"==e[e.length-1])for(t=0;t0)for(t=0;t. must be followed with an AS ";if(e.fields=n,e.listName=p(l[2]),!e.listName.match(/^[a-z\d_]+$/i))throw"[camlsql] Wrap list name in brackets if it contains special characters: ["+e.listName+"]";e.query=l[3]}}function T(e){var t,r=[],n=e.split(",");for(t=0;t0){if(2==(o=r[1].split(":")).length&&o[0].length>0){switch(o[0]=o[0].toLowerCase(),o[0]){case"datetime":o[0]="DateTime";break;case"text":o[0]="Text";break;case"number":o[0]="Number"}l=o[0],r[1]=o[1]}}else if(!r[1].match(/^[a-z\d_]+$/i))throw"[camlsql] Wrap order by field name in brackets if it contains special characters";n=p(r[1]),3==r.length&&(s="desc"!=(void 0!==r[2]?d(r[2].toLowerCase()):null)),a.push([n,s,l])}e.sort=a}}function k(e){var t,r,n=e.query;if(t=n.match(/^(select\s+)(scope\s+([a-z]+)\s+)/i)){switch(t[3]=t[3].toLowerCase(),t[3]){case"defaultvalue":r="DefaultValue";break;case"recursive":r="Recursive";break;case"recursiveall":r="RecursiveAll";break;case"filesonly":r="FilesOnly"}if(!r&&console.error)throw"[camlsql] Unknown scope '"+t[3]+"'";void 0!==r&&(e.viewScope=r),e.query=t[1]+n.substr(t[1].length+t[2].length)}else e.viewScope=null}function _(e,t){var r,n={query:e,rowLimit:0,fields:[],sort:[],joins:[],viewScope:null,macros:[],statements:[],parameters:[],listName:null,projectedFields:[],group:null,encoded:{}};return L(n),k(n),b(n),x(n),v(n),w(n),q(n),r=W(n.query),n.statements=r.statements,n.macros=r.macros,n.query=e,n}function L(e){var t,r,n,l=e.query,i=0,s=null,o=l;for(t=0;t0&&(t+=M("RowLimit"),t+=e,t+=E("RowLimit")),t}function N(e,t){var r,n="",l=[];if(e.length>0&&t.length>0){for(n+=M("ProjectedFields"),r=0;r0&&0==t.length)throw"[camlsql] You must JOIN another list to use projected fields";return n}function I(e,t,r){var n,l,i="";if(r.length>0){for(i+=M("Joins"),n=0;n0){t+=M(B);for(var r=0;r0||r.length>0||e.group&&!l)&&(s+=M(Z),t.length>0&&(s+=M(X),s+=j(e,t,n,i),s+=E(X)),s+=S(r,n,i),l||(s+=D(e)),s+=E(Z)),s}function j(e,t,r,n){var l="";if(!t)return"";if(t.length>1){var i="and"==t[1].operator?"And":"Or";return l+=F(e,t[0],r,n),l+=j(e,t.slice(1),r,n),"<"+i+">"+l+""}return 1==t.length&&(l+=F(e,t[0],r,n)),l}function F(e,t,r,n){var l,i,s="",o=t.comparison;if("statement"==t.type){l=r[t.macro];var a={eq:"Eq",gt:"Gt",gte:"Geq",lte:"Leq",lt:"Lt",ne:"Neq"};if(void 0!==a[o]){if(void 0===l)throw"[camlsql] Parameter is not defined "+t.macro;if(l&&"Membership"==l.type){if("eq"!=t.comparison)throw"[camlsql] Membership comparison must be =";s+=M("Membership",{Type:l.value,ID:l.id?l.id:null}),s+=M(z,{Name:t.field},!0),s+=E("Membership")}else s+=M(a[o]),s+=V(e,t,l),s+=E(a[o])}else if("null"==o)s+=M(Y),s+=V(e,t),s+=E(Y);else if("in"==o)s+=M("In"),s+=V(e,t,l),s+=E("In");else if("notnull"==o)s+=M(H),s+=V(e,t),s+=E(H);else if("like"==o){var u=P(l.value);i=u[1],l.overrideValue=u[0],s+=M(i),s+=V(e,t,l),s+=E(i)}}else s+=j(e,t.items,r,n);return s}function P(e){var t="Contains",r=e;if(!e)return[e,t];if(0===e.indexOf("%")&&"%"===e[e.length-1])r=e.replace(/^%?|%?$/g,"");else{if(0===e.indexOf("%"))throw"[camlsql] SharePoint does not support an 'EndsWith' statement: "+e;e.indexOf("%")===e.length-1&&(r=e.replace(/%?$/,""),t="BeginsWith")}return[r,t]}function V(e,t,r,n){var l,i="",s=null,o=t.field;if(r&&r.lookupid&&(s="True"),-1!==t.field.indexOf(".")){var a=t.field.split("."),u=!0,c=!0;if(p(a[0])==e.listName)o=a[1];else{for(l=0;l"}else i+=R(t,r);return i}function R(e,t){var r="",n="",l={},i={Type:t.type},s=t.overrideValue?t.overrideValue:t.value;if("DateTime"==t.type)i.IncludeTimeValue=t._includeTime?"True":null,t.value&&(l.Offset=s),!0===t.today?n=M("Today",l,!0):(i.StorageTZ=t._storageTZ?"True":null,n=t.stringValue?f(t.stringValue):t._storageTZ?s.toISOString():s.getFullYear()+"-"+u(s.getMonth()+1)+"-"+u(s.getDate())+"T"+u(s.getHours())+":"+u(s.getMinutes())+":"+u(s.getSeconds()));else if("Text"==t.type)n=1==t.multiline?"":f(s);else if("Number"==t.type||"Guid"==t.type)n=s;else if("User"==t.type)"number"==typeof s?(i.Type="User",n=f(s+"")):(i.Type="Number",n="");else if("Lookup"==t.type)1==t.byId&&(i.LookupId="True"),n=f(s+"");else{if("Boolean"!=t.type)throw"[camlsql] Parameter type is not not implemented "+t.type;n=s?1:0}return r+=M("Value",i),r+=n,r+=E("Value")}function A(e){var t,r="";if(e.length>0){for(r+=M(G),t=0;t"}function E(e){return""}var U={type:"DateTime",today:!1,_includeTime:!1,value:null,_storageTZ:!1,stringValue:"",add:function(t){this.errstr();var r=e(t);return this.value=new Date(this.value.getTime()+r),this.today=!1,this},sub:function(t){this.errstr();var r=e(t);return this.value=new Date(this.value.getTime()-r),this.today=!1,this},startOfWeek:function(e){return this.errstr(),this.value=t("week start"+(e?"":" monday"),this.value),this.today=!1,this},endOfWeek:function(e){return this.errstr(),this.value=t("week end"+(e?"":" monday"),this.value),this.today=!1,this},startOfMonth:function(){return this.errstr(),this.value=t("month start",this.value),this.today=!1,this},endOfMonth:function(){return this.errstr(),this.value=t("month end",this.value),this.today=!1,this},endOfDay:function(){return this.errstr(),this.value=t("day end",this.value),this.today=!1,this},startOfDay:function(){return this.errstr(),this.value=t("day start",this.value),this.today=!1,this},storageTZ:function(e){return this._storageTZ=!!e,this.today=!1,this},includeTime:function(e){return this._includeTime=!!e,this},errstr:function(){if(this.stringValue)throw"[camlsql] You can't do that when DateTime was set as a string"}},W=function(e,t){function r(e){return e.replace(/^\s+|\s+$/g,"")}function n(e,o){var a,u,c,f,d,m,g,y,v,w=null,b=null,q=[],T=0,x=null;for(e=h(e),o=o||0,a=0;a0&&0==q.length?q.push(e.substring(0,a)):null!=x&&q.push(e.substring(x,a)),w=a,b=null),T++):e[a]==s&&null!==w&&0==--T&&(w,q.push(r(e.substring(w,a+1)).replace(/^\(|\)$/g,"")),b=a+1,x=a+1,w=null);for(null!=b&&null==w?r(e.substring(b))&&q.push(r(e.substring(b))):null!=w||0==q.length&&null==w&&null==b&&q.push(r(e)),a=0;a0)(f=n(q[a].value,o+1)).length>1&&(q[a].type="group",q[a].items=f);else{for(c=q[a].value.split(/ (\|\||or|and|\&\&) /i),q[a].type="statement",d=[],m=0;m0&&("or"!=c[m-1].toLowerCase()&&"||"!=c[m-1]||(g.operator="or")),y=l(c[m]))g.field=p(y.field),g.macro=y.macro,g.comparison=y.comparison,d.push(g);else if(!t)throw"[camlsql] Could not parse statement: "+c[m];d.length>1?(q[a].type="group",q[a].items=d):1==d.length&&(q[a].field=p(d[0].field),q[a].macro=d[0].macro,q[a].comparison=d[0].comparison)}for(v=[],a=0;a|>=|[^<]>|<=|<[^>]|=|\slike|\scxqlisnull|\scxqlisnotnull|in)\s*(\?|@[a-z0-9_]+)/i);if(t){var n="eq",l="@param"+u,i=r(t[2]);if(">"==i&&(n="gt"),">="==i&&(n="gte"),"<"==i&&(n="lt"),"<="==i&&(n="lte"),"=="==i&&(n="eq"),"<>"!=i&&"!="!=i||(n="ne"),"like"==i.toLowerCase()&&(n="like"),"cxqlisnull"==i.toLowerCase()&&(n="null"),"cxqlisnotnull"==i.toLowerCase()&&(n="notnull"),"in"==i.toLowerCase()&&(n="in"),"null"!=n&&"notnull"!=n){if(u++,c++,null==o)o=t[3][0];else if(o!=t[3][0])throw"[camlsql] You can not mix named macros and ?";"@"==t[3][0]&&(l=t[3]),f.push(l)}else l=null;return{field:p(t[1]),comparison:n,macro:l}}return null}var i="(",s=")",o=null,a={statements:[],macroType:null,macroCount:0,macros:[]};if(void 0===e)return a;var u=0,c=0,f=[],d=n(e=(e=e.replace(/^.*?(WHERE\s)/i,"")).replace(/(.*?)\s?ORDER\sBY.*$/i,"$1"));return void 0!==d&&(a.statements=d),a.macroType=o,a.macroCount=c,a.macros=f,a},Q="View",G="ViewFields",z="FieldRef",Z="Query",B="OrderBy",X="Where",Y="IsNull",H="IsNotNull";return{prepare:function(e,t){return new m(e,t)},boolean:i,date:function(e){var t=o(e);return t&&(t._includeTime=!1),t},datetime:o,encode:c,membership:function(e,t){var r,n=["SPWeb.AllUsers","SPGroup","SPWeb.Groups","CurrentUserGroups","SPWeb.Users"],l=null;if(!e)throw"Membership type should be one of "+n.join(", ");for(r=0;rGet started Guide

1. Include the script

Include camlsql on your page. It has no dependencies for basic use.

-
<script src="https://rawgit.com/dlid/camlsql-js/0.5.1/dist/js/camlsql.min.js"><script>
+
<script src="https://rawgit.com/dlid/camlsql-js/0.5.2/dist/js/camlsql.min.js"><script>

2. Prepare your query

Your camlsql query consists of two components: the SQL query and the parameters. This is argument one and two in the prepare method.

diff --git a/dist/public_html/js/app.js b/dist/public_html/js/app.js index 4834a14..6843438 100644 --- a/dist/public_html/js/app.js +++ b/dist/public_html/js/app.js @@ -1,6 +1,6 @@ - /*! camlsqj-js v0.5.1 | (c) dlid.se | https://camlsqljs.dlid.se/license */ + /*! camlsqj-js v0.5.2 | (c) dlid.se | https://camlsqljs.dlid.se/license */ - // BEGIN C:\Users\davlidst\Documents\git\camlsql-js\src\app\js\vendor\q-1.5.1\q.js*/ + // BEGIN C:\git\camlsql-js\src\app\js\vendor\q-1.5.1\q.js*/ // vim:ts=4:sts=4:sw=4: /*! * @@ -2078,9 +2078,9 @@ }); - // END C:\Users\davlidst\Documents\git\camlsql-js\src\app\js\vendor\q-1.5.1\q.js + // END C:\git\camlsql-js\src\app\js\vendor\q-1.5.1\q.js - // BEGIN C:\Users\davlidst\Documents\git\camlsql-js\node_modules\clipboard\dist\clipboard.min.js*/ + // BEGIN C:\git\camlsql-js\node_modules\clipboard\dist\clipboard.min.js*/ /*! * clipboard.js v1.7.1 * https://zenorocha.github.io/clipboard.js @@ -2088,9 +2088,9 @@ * Licensed MIT © Zeno Rocha */ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)}); - // END C:\Users\davlidst\Documents\git\camlsql-js\node_modules\clipboard\dist\clipboard.min.js + // END C:\git\camlsql-js\node_modules\clipboard\dist\clipboard.min.js - // BEGIN C:\Users\davlidst\Documents\git\camlsql-js\src\app\js\vendor\vkbeautify\vkbeautify.0.99.00.beta.js*/ + // BEGIN C:\git\camlsql-js\src\app\js\vendor\vkbeautify\vkbeautify.0.99.00.beta.js*/ /** * vkBeautify - javascript plugin to pretty-print or minify text in XML, JSON, CSS and SQL formats. * @@ -2450,23 +2450,23 @@ })(); - // END C:\Users\davlidst\Documents\git\camlsql-js\src\app\js\vendor\vkbeautify\vkbeautify.0.99.00.beta.js + // END C:\git\camlsql-js\src\app\js\vendor\vkbeautify\vkbeautify.0.99.00.beta.js - // BEGIN C:\Users\davlidst\Documents\git\camlsql-js\src\app\js\vendor\lz-string\lz-string.min.js*/ + // BEGIN C:\git\camlsql-js\src\app\js\vendor\lz-string\lz-string.min.js*/ var LZString=function(){function o(o,r){if(!t[o]){t[o]={};for(var n=0;ne;e++){var s=r.charCodeAt(e);n[2*e]=s>>>8,n[2*e+1]=s%256}return n},decompressFromUint8Array:function(o){if(null===o||void 0===o)return i.decompress(o);for(var n=new Array(o.length/2),e=0,t=n.length;t>e;e++)n[e]=256*o[2*e]+o[2*e+1];var s=[];return n.forEach(function(o){s.push(r(o))}),i.decompress(s.join(""))},compressToEncodedURIComponent:function(o){return null==o?"":i._compress(o,6,function(o){return e.charAt(o)})},decompressFromEncodedURIComponent:function(r){return null==r?"":""==r?null:(r=r.replace(/ /g,"+"),i._decompress(r.length,32,function(n){return o(e,r.charAt(n))}))},compress:function(o){return i._compress(o,16,function(o){return r(o)})},_compress:function(o,r,n){if(null==o)return"";var e,t,i,s={},p={},u="",c="",a="",l=2,f=3,h=2,d=[],m=0,v=0;for(i=0;ie;e++)m<<=1,v==r-1?(v=0,d.push(n(m)),m=0):v++;for(t=a.charCodeAt(0),e=0;8>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}else{for(t=1,e=0;h>e;e++)m=m<<1|t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t=0;for(t=a.charCodeAt(0),e=0;16>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}l--,0==l&&(l=Math.pow(2,h),h++),delete p[a]}else for(t=s[a],e=0;h>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;l--,0==l&&(l=Math.pow(2,h),h++),s[c]=f++,a=String(u)}if(""!==a){if(Object.prototype.hasOwnProperty.call(p,a)){if(a.charCodeAt(0)<256){for(e=0;h>e;e++)m<<=1,v==r-1?(v=0,d.push(n(m)),m=0):v++;for(t=a.charCodeAt(0),e=0;8>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}else{for(t=1,e=0;h>e;e++)m=m<<1|t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t=0;for(t=a.charCodeAt(0),e=0;16>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}l--,0==l&&(l=Math.pow(2,h),h++),delete p[a]}else for(t=s[a],e=0;h>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;l--,0==l&&(l=Math.pow(2,h),h++)}for(t=2,e=0;h>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;for(;;){if(m<<=1,v==r-1){d.push(n(m));break}v++}return d.join("")},decompress:function(o){return null==o?"":""==o?null:i._decompress(o.length,32768,function(r){return o.charCodeAt(r)})},_decompress:function(o,n,e){var t,i,s,p,u,c,a,l,f=[],h=4,d=4,m=3,v="",w=[],A={val:e(0),position:n,index:1};for(i=0;3>i;i+=1)f[i]=i;for(p=0,c=Math.pow(2,2),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;switch(t=p){case 0:for(p=0,c=Math.pow(2,8),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;l=r(p);break;case 1:for(p=0,c=Math.pow(2,16),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;l=r(p);break;case 2:return""}for(f[3]=l,s=l,w.push(l);;){if(A.index>o)return"";for(p=0,c=Math.pow(2,m),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;switch(l=p){case 0:for(p=0,c=Math.pow(2,8),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;f[d++]=r(p),l=d-1,h--;break;case 1:for(p=0,c=Math.pow(2,16),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;f[d++]=r(p),l=d-1,h--;break;case 2:return w.join("")}if(0==h&&(h=Math.pow(2,m),m++),f[l])v=f[l];else{if(l!==d)return null;v=s+s.charAt(0)}w.push(v),f[d++]=s+v.charAt(0),h--,s=v,0==h&&(h=Math.pow(2,m),m++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module&&(module.exports=LZString); - // END C:\Users\davlidst\Documents\git\camlsql-js\src\app\js\vendor\lz-string\lz-string.min.js + // END C:\git\camlsql-js\src\app\js\vendor\lz-string\lz-string.min.js - // BEGIN C:\Users\davlidst\Documents\git\camlsql-js\src\app\js\vendor\vue\vue.min.js*/ + // BEGIN C:\git\camlsql-js\src\app\js\vendor\vue\vue.min.js*/ /*! * Vue.js v2.5.2 * (c) 2014-2017 Evan You * Released under the MIT License. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(e){return void 0===e||null===e}function t(e){return void 0!==e&&null!==e}function n(e){return!0===e}function r(e){return!1===e}function i(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function o(e){return null!==e&&"object"==typeof e}function a(e){return"[object Object]"===Ai.call(e)}function s(e){return"[object RegExp]"===Ai.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function l(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}function p(e,t){return Ti.call(e,t)}function v(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function h(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function m(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function y(e,t){for(var n in t)e[n]=t[n];return e}function g(e){for(var t={},n=0;n0&&(fe((s=de(s,(o||"")+"_"+a))[0])&&fe(u)&&(l[c]=T(u.text+s[0].text),s.shift()),l.push.apply(l,s)):i(s)?fe(u)?l[c]=T(u.text+s):""!==s&&l.push(T(s)):fe(s)&&fe(u)?l[c]=T(u.text+s.text):(n(r._isVList)&&t(s.tag)&&e(s.key)&&t(o)&&(s.key="__vlist"+o+"_"+a+"__"),l.push(s)));return l}function pe(e,t){return(e.__esModule||io&&"Module"===e[Symbol.toStringTag])&&(e=e.default),o(e)?t.extend(e):e}function ve(e,t,n,r,i){var o=fo();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function he(r,i,a){if(n(r.error)&&t(r.errorComp))return r.errorComp;if(t(r.resolved))return r.resolved;if(n(r.loading)&&t(r.loadingComp))return r.loadingComp;if(!t(r.contexts)){var s=r.contexts=[a],c=!0,u=function(){for(var e=0,t=s.length;ePo&&jo[n].id>e.id;)n--;jo.splice(n+1,0,e)}else jo.push(e);Io||(Io=!0,re(Ne))}}function Re(e){Fo.clear(),Fe(e,Fo)}function Fe(e,t){var n,r,i=Array.isArray(e);if((i||o(e))&&Object.isExtensible(e)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(i)for(n=e.length;n--;)Fe(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)Fe(e[r[n]],t)}}function He(e,t,n){Ho.get=function(){return this[t][n]},Ho.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Ho)}function Be(e){e._watchers=[];var t=e.$options;t.props&&Ue(e,t.props),t.methods&&We(e,t.methods),t.data?Ve(e):I(e._data={},!0),t.computed&&Ke(e,t.computed),t.watch&&t.watch!==Yi&&Ge(e,t.watch)}function Ue(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;mo.shouldConvert=o;for(var a in t)!function(o){i.push(o);var a=W(o,t,n,e);M(r,o,a),o in e||He(e,"_props",o)}(a);mo.shouldConvert=!0}function Ve(e){var t=e.$options.data;a(t=e._data="function"==typeof t?ze(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,i=n.length;i--;){var o=n[i];r&&p(r,o)||w(o)||He(e,"_data",o)}I(t,!0)}function ze(e,t){try{return e.call(t,t)}catch(e){return Q(e,t,"data()"),{}}}function Ke(e,t){var n=e._computedWatchers=Object.create(null),r=no();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new Ro(e,a||_,_,Bo)),i in e||Je(e,i,o)}}function Je(e,t,n){var r=!no();"function"==typeof n?(Ho.get=r?qe(t):n,Ho.set=_):(Ho.get=n.get?r&&!1!==n.cache?qe(t):n.get:_,Ho.set=n.set?n.set:_),Object.defineProperty(e,t,Ho)}function qe(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),so.target&&t.depend(),t.value}}function We(e,t){for(var n in t)e[n]=null==t[n]?_:h(t[n],e)}function Ge(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function Ot(e){this._init(e)}function St(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=m(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Tt(e){e.mixin=function(e){return this.options=J(this.options,e),this}}function Et(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=J(n.options,e),a.super=n,a.options.props&&jt(a),a.options.computed&&Lt(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Ri.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=y({},a.options),i[r]=a,a}}function jt(e){var t=e.options.props;for(var n in t)He(e.prototype,"_props",n)}function Lt(e){var t=e.options.computed;for(var n in t)Je(e.prototype,n,t[n])}function Nt(e){Ri.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&a(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function It(e){return e&&(e.Ctor.options.name||e.tag)}function Mt(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!s(e)&&e.test(t)}function Pt(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=It(a.componentOptions);s&&!t(s)&&Dt(n,o,r,i)}}}function Dt(e,t,n,r){var i=e[t];i&&i!==r&&i.componentInstance.$destroy(),e[t]=null,d(n,t)}function Rt(e){for(var n=e.data,r=e,i=e;t(i.componentInstance);)(i=i.componentInstance._vnode).data&&(n=Ft(i.data,n));for(;t(r=r.parent);)r.data&&(n=Ft(n,r.data));return Ht(n.staticClass,n.class)}function Ft(e,n){return{staticClass:Bt(e.staticClass,n.staticClass),class:t(e.class)?[e.class,n.class]:n.class}}function Ht(e,n){return t(e)||t(n)?Bt(e,Ut(n)):""}function Bt(e,t){return e?t?e+" "+t:e:t||""}function Ut(e){return Array.isArray(e)?Vt(e):o(e)?zt(e):"string"==typeof e?e:""}function Vt(e){for(var n,r="",i=0,o=e.length;i=0&&" "===(m=e.charAt(h));h--);m&&Oa.test(m)||(l=!0)}}else void 0===o?(v=i+1,o=e.slice(0,i).trim()):t();if(void 0===o?o=e.slice(0,i).trim():0!==v&&t(),a)for(i=0;i-1?{exp:e.slice(0,Qo),key:'"'+e.slice(Qo+1)+'"'}:{exp:e,key:null};for(Zo=e,Qo=Xo=ea=0;!bn();)$n(Yo=_n())?wn(Yo):91===Yo&&Cn(Yo);return{exp:e.slice(0,Xo),key:e.slice(Xo+1,ea)}}function _n(){return Zo.charCodeAt(++Qo)}function bn(){return Qo>=Go}function $n(e){return 34===e||39===e}function Cn(e){var t=1;for(Xo=Qo;!bn();)if(e=_n(),$n(e))wn(e);else if(91===e&&t++,93===e&&t--,0===t){ea=Qo;break}}function wn(e){for(var t=e;!bn()&&(e=_n())!==t;);}function xn(e,t,n){var r=n&&n.number,i=vn(e,"value")||"null",o=vn(e,"true-value")||"true",a=vn(e,"false-value")||"false";ln(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),pn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+t+"=$$a.concat([$$v]))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+yn(t,"$$c")+"}",null,!0)}function kn(e,t,n){var r=n&&n.number,i=vn(e,"value")||"null";ln(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),pn(e,"change",yn(t,i),null,!0)}function An(e,t,n){var r="var $$selectedVal = "+('Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"})")+";";pn(e,"change",r=r+" "+yn(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function On(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Sa:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=yn(t,l);c&&(f="if($event.target.composing)return;"+f),ln(e,"value","("+t+")"),pn(e,u,f,null,!0),(s||a)&&pn(e,"blur","$forceUpdate()")}function Sn(e){if(t(e[Sa])){var n=Ji?"change":"input";e[n]=[].concat(e[Sa],e[n]||[]),delete e[Sa]}t(e[Ta])&&(e.change=[].concat(e[Ta],e.change||[]),delete e[Ta])}function Tn(e,t,n){var r=ta;return function i(){null!==e.apply(null,arguments)&&jn(t,i,n,r)}}function En(e,t,n,r,i){t=ne(t),n&&(t=Tn(t,e,r)),ta.addEventListener(e,t,Qi?{capture:r,passive:i}:r)}function jn(e,t,n,r){(r||ta).removeEventListener(e,t._withTask||t,n)}function Ln(t,n){if(!e(t.data.on)||!e(n.data.on)){var r=n.data.on||{},i=t.data.on||{};ta=n.elm,Sn(r),oe(r,i,En,jn,n.context)}}function Nn(n,r){if(!e(n.data.domProps)||!e(r.data.domProps)){var i,o,a=r.elm,s=n.data.domProps||{},c=r.data.domProps||{};t(c.__ob__)&&(c=r.data.domProps=y({},c));for(i in s)e(c[i])&&(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(r.children&&(r.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i){a._value=o;var u=e(o)?"":String(o);In(a,u)&&(a.value=u)}else a[i]=o}}}function In(e,t){return!e.composing&&("OPTION"===e.tagName||Mn(e,t)||Pn(e,t))}function Mn(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function Pn(e,n){var r=e.value,i=e._vModifiers;return t(i)&&i.number?l(r)!==l(n):t(i)&&i.trim?r.trim()!==n.trim():r!==n}function Dn(e){var t=Rn(e.style);return e.staticStyle?y(e.staticStyle,t):t}function Rn(e){return Array.isArray(e)?g(e):"string"==typeof e?La(e):e}function Fn(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode).data&&(n=Dn(i.data))&&y(r,n);(n=Dn(e.data))&&y(r,n);for(var o=e;o=o.parent;)o.data&&(n=Dn(o.data))&&y(r,n);return r}function Hn(n,r){var i=r.data,o=n.data;if(!(e(i.staticStyle)&&e(i.style)&&e(o.staticStyle)&&e(o.style))){var a,s,c=r.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,d=Rn(r.data.style)||{};r.data.normalizedStyle=t(d.__ob__)?y({},d):d;var p=Fn(r,!0);for(s in f)e(p[s])&&Ma(c,s,"");for(s in p)(a=p[s])!==f[s]&&Ma(c,s,null==a?"":a)}}function Bn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Un(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Vn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&y(t,Fa(e.name||"v")),y(t,e),t}return"string"==typeof e?Fa(e):void 0}}function zn(e){qa(function(){qa(e)})}function Kn(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Bn(e,t))}function Jn(e,t){e._transitionClasses&&d(e._transitionClasses,t),Un(e,t)}function qn(e,t,n){var r=Wn(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ba?za:Ja,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=Ba,l=a,f=o.length):t===Ua?u>0&&(n=Ua,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ba:Ua:null)?n===Ba?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ba&&Wa.test(r[Va+"Property"])}}function Gn(e,t){for(;e.length1}function tr(e,t){!0!==t.data.show&&Yn(t)}function nr(e,t,n){rr(e,t,n),(Ji||Wi)&&setTimeout(function(){rr(e,t,n)},0)}function rr(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(b(or(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ir(e,t){return t.every(function(t){return!b(t,e)})}function or(e){return"_value"in e?e._value:e.value}function ar(e){e.target.composing=!0}function sr(e){e.target.composing&&(e.target.composing=!1,cr(e.target,"input"))}function cr(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ur(e){return!e.componentInstance||e.data&&e.data.transition?e:ur(e.componentInstance._vnode)}function lr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?lr(ye(t.children)):e}function fr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[ji(o)]=i[o];return t}function dr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function pr(e){for(;e=e.parent;)if(e.data.transition)return!0}function vr(e,t){return t.key===e.key&&t.tag===e.tag}function hr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function mr(e){e.data.newPos=e.elm.getBoundingClientRect()}function yr(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function gr(e,t){var n=t?os(t):rs;if(n.test(e)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(e);){(i=r.index)>a&&o.push(JSON.stringify(e.slice(a,i)));var s=an(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var c=a.length-1;c>=i;c--)t.end&&t.end(a[c].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var i,o,a=[],s=t.expectHTML,c=t.isUnaryTag||Mi,u=t.canBeLeftOpenTag||Mi,l=0;e;){if(i=e,o&&Ls(o)){var f=0,d=o.toLowerCase(),p=Ns[d]||(Ns[d]=new RegExp("([\\s\\S]*?)(]*>)","i")),v=e.replace(p,function(e,n,r){return f=r.length,Ls(d)||"noscript"===d||(n=n.replace(//g,"$1").replace(//g,"$1")),Rs(d,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-v.length,e=v,r(d,l-f,l)}else{var h=e.indexOf("<");if(0===h){if(_s.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m)),n(m+3);continue}}if(bs.test(e)){var y=e.indexOf("]>");if(y>=0){n(y+2);continue}}var g=e.match(gs);if(g){n(g[0].length);continue}var _=e.match(ys);if(_){var b=l;n(_[0].length),r(_[1],b,l);continue}var $=function(){var t=e.match(hs);if(t){var r={tagName:t[1],attrs:[],start:l};n(t[0].length);for(var i,o;!(i=e.match(ms))&&(o=e.match(ds));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=l,r}}();if($){!function(e){var n=e.tagName,i=e.unarySlash;s&&("p"===o&&fs(n)&&r(o),u(n)&&o===n&&r(n));for(var l=c(n)||!!i,f=e.attrs.length,d=new Array(f),p=0;p=0){for(w=e.slice(h);!(ys.test(w)||hs.test(w)||_s.test(w)||bs.test(w)||(x=w.indexOf("<",1))<0);)h+=x,w=e.slice(h);C=e.substring(0,h),n(h)}h<0&&(C=e,e=""),t.chars&&C&&t.chars(C)}if(e===i){t.chars&&t.chars(e);break}}r()}function $r(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Fr(t),parent:n,children:[]}}function Cr(e,t){function n(e){e.pre&&(s=!1),Os(e.tag)&&(c=!1)}Cs=t.warn||cn,Os=t.isPreTag||Mi,Ss=t.mustUseProp||Mi,Ts=t.getTagNamespace||Mi,xs=un(t.modules,"transformNode"),ks=un(t.modules,"preTransformNode"),As=un(t.modules,"postTransformNode"),ws=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=!1,c=!1;return br(e,{warn:Cs,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldKeepComment:t.comments,start:function(e,a,u){var l=i&&i.ns||Ts(e);Ji&&"svg"===l&&(a=Ur(a));var f=$r(e,a,i);l&&(f.ns=l),Br(f)&&!no()&&(f.forbidden=!0);for(var d=0;d0,Wi=Ki&&Ki.indexOf("edge/")>0,Gi=Ki&&Ki.indexOf("android")>0,Zi=Ki&&/iphone|ipad|ipod|ios/.test(Ki),Yi=(Ki&&/chrome\/\d+/.test(Ki),{}.watch),Qi=!1;if(zi)try{var Xi={};Object.defineProperty(Xi,"passive",{get:function(){Qi=!0}}),window.addEventListener("test-passive",null,Xi)}catch(e){}var eo,to,no=function(){return void 0===eo&&(eo=!zi&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),eo},ro=zi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,io="undefined"!=typeof Symbol&&A(Symbol)&&"undefined"!=typeof Reflect&&A(Reflect.ownKeys);to="undefined"!=typeof Set&&A(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var oo=_,ao=0,so=function(){this.id=ao++,this.subs=[]};so.prototype.addSub=function(e){this.subs.push(e)},so.prototype.removeSub=function(e){d(this.subs,e)},so.prototype.depend=function(){so.target&&so.target.addDep(this)},so.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t1?m(n):n;for(var r=m(arguments,1),i=0,o=n.length;iparseInt(this.max)&&Dt(i,o[0],o,this._vnode)),e.data.keepAlive=!0}return e}}};!function(e){var t={};t.get=function(){return Hi},Object.defineProperty(e,"config",t),e.util={warn:oo,extend:y,mergeOptions:J,defineReactive:M},e.set=P,e.delete=D,e.nextTick=re,e.options=Object.create(null),Ri.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,y(e.options.components,Wo),St(e),Tt(e),Et(e),Nt(e)}(Ot),Object.defineProperty(Ot.prototype,"$isServer",{get:no}),Object.defineProperty(Ot.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Ot.version="2.5.2";var Go,Zo,Yo,Qo,Xo,ea,ta,na,ra=f("style,class"),ia=f("input,textarea,option,select,progress"),oa=function(e,t,n){return"value"===n&&ia(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},aa=f("contenteditable,draggable,spellcheck"),sa=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),ca="http://www.w3.org/1999/xlink",ua=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},la=function(e){return ua(e)?e.slice(6,e.length):""},fa=function(e){return null==e||!1===e},da={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},pa=f("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),va=f("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ha=function(e){return pa(e)||va(e)},ma=Object.create(null),ya=f("text,number,password,search,email,tel,url"),ga=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(da[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setAttribute:function(e,t,n){e.setAttribute(t,n)}}),_a={create:function(e,t){qt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(qt(e,!0),qt(t))},destroy:function(e){qt(e,!0)}},ba=new uo("",{},[]),$a=["create","activate","update","remove","destroy"],Ca={create:Yt,update:Yt,destroy:function(e){Yt(e,ba)}},wa=Object.create(null),xa=[_a,Ca],ka={create:nn,update:nn},Aa={create:on,update:on},Oa=/[\w).+\-_$\]]/,Sa="__r",Ta="__c",Ea={create:Ln,update:Ln},ja={create:Nn,update:Nn},La=v(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),Na=/^--/,Ia=/\s*!important$/,Ma=function(e,t,n){if(Na.test(t))e.style.setProperty(t,n);else if(Ia.test(n))e.style.setProperty(t,n.replace(Ia,""),"important");else{var r=Da(t);if(Array.isArray(n))for(var i=0,o=n.length;ip?g(n,e(i[m+1])?null:i[m+1].elm,i,d,m,o):d>m&&b(n,r,f,p)}function w(e,n,r,i){for(var o=r;o-1?ma[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ma[e]=/HTMLUnknownElement/.test(t.toString())},y(Ot.options.directives,Za),y(Ot.options.components,es),Ot.prototype.__patch__=zi?Ga:_,Ot.prototype.$mount=function(e,t){return e=e&&zi?Jt(e):void 0,Ae(this,e,t)},Ot.nextTick(function(){Hi.devtools&&ro&&ro.emit("init",Ot)},0);var ts,ns=!!zi&&function(e,t){var n=document.createElement("div");return n.innerHTML='
',n.innerHTML.indexOf(t)>0}("\n"," "),rs=/\{\{((?:.|\n)+?)\}\}/g,is=/[-.*+?^${}()|[\]\/\\]/g,os=v(function(e){var t=e[0].replace(is,"\\$&"),n=e[1].replace(is,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),as={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=hn(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=vn(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},ss={staticKeys:["staticStyle"],transformNode:function(e,t){var n=hn(e,"style");n&&(e.staticStyle=JSON.stringify(La(n)));var r=vn(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},cs={decode:function(e){return ts=ts||document.createElement("div"),ts.innerHTML=e,ts.textContent}},us=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ls=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),fs=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ds=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ps="[a-zA-Z_][\\w\\-\\.]*",vs="((?:"+ps+"\\:)?"+ps+")",hs=new RegExp("^<"+vs),ms=/^\s*(\/?)>/,ys=new RegExp("^<\\/"+vs+"[^>]*>"),gs=/^]+>/i,_s=/^/)>-1||r[c].search(/\]>/)>-1||r[c].search(/!DOCTYPE/)>-1)&&(i=!1)):r[c].search(/-->/)>-1||r[c].search(/\]>/)>-1?(s+=r[c],i=!1):/^<\w/.exec(r[c-1])&&/^<\/\w/.exec(r[c])&&/^<[\w:\-\.\,]+/.exec(r[c-1])==/^<\/[\w:\-\.\,]+/.exec(r[c])[0].replace("/","")?(s+=r[c],i||a--):r[c].search(/<\w/)>-1&&-1==r[c].search(/<\//)&&-1==r[c].search(/\/>/)?s=s+=i?r[c]:u[a++]+r[c]:r[c].search(/<\w/)>-1&&r[c].search(/<\//)>-1?s=s+=i?r[c]:u[a]+r[c]:r[c].search(/<\//)>-1?s=s+=i?r[c]:u[--a]+r[c]:r[c].search(/\/>/)>-1?s=s+=i?r[c]:u[a]+r[c]:r[c].search(/<\?/)>-1?s+=u[a]+r[c]:r[c].search(/xmlns\:/)>-1||r[c].search(/xmlns\=/)>-1?s+=u[a]+r[c]:s+=r[c];return"\n"==s[0]?s.slice(1):s},t.prototype.json=function(e,t){var t=t||this.step;return"undefined"==typeof JSON?e:"string"==typeof e?JSON.stringify(JSON.parse(e),null,t):"object"==typeof e?JSON.stringify(e,null,t):e},t.prototype.css=function(t,n){var r=t.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),o=r.length,i=0,a="",s=0,c=n?e(n):this.shift;for(s=0;s/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},t.prototype.jsonmin=function(e){return"undefined"==typeof JSON?e:JSON.stringify(JSON.parse(e),null,0)},t.prototype.cssmin=function(e,t){return(t?e:e.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"")).replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},t.prototype.sqlmin=function(e){return e.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},window.vkbeautify=new t}();var LZString=function(){function e(e,t){if(!o[e]){o[e]={};for(var n=0;nr;r++){var a=t.charCodeAt(r);n[2*r]=a>>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(e){if(null===e||void 0===e)return i.decompress(e);for(var n=new Array(e.length/2),r=0,o=n.length;o>r;r++)n[r]=256*e[2*r]+e[2*r+1];var a=[];return n.forEach(function(e){a.push(t(e))}),i.decompress(a.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":i._compress(e,6,function(e){return r.charAt(e)})},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),i._decompress(t.length,32,function(n){return e(r,t.charAt(n))}))},compress:function(e){return i._compress(e,16,function(e){return t(e)})},_compress:function(e,t,n){if(null==e)return"";var r,o,i,a={},s={},c="",u="",l="",f=2,p=3,d=2,h=[],v=0,m=0;for(i=0;ir;r++)v<<=1,m==t-1?(m=0,h.push(n(v)),v=0):m++;for(o=l.charCodeAt(0),r=0;8>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1}else{for(o=1,r=0;d>r;r++)v=v<<1|o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o=0;for(o=l.charCodeAt(0),r=0;16>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1}0==--f&&(f=Math.pow(2,d),d++),delete s[l]}else for(o=a[l],r=0;d>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1;0==--f&&(f=Math.pow(2,d),d++),a[u]=p++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;d>r;r++)v<<=1,m==t-1?(m=0,h.push(n(v)),v=0):m++;for(o=l.charCodeAt(0),r=0;8>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1}else{for(o=1,r=0;d>r;r++)v=v<<1|o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o=0;for(o=l.charCodeAt(0),r=0;16>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1}0==--f&&(f=Math.pow(2,d),d++),delete s[l]}else for(o=a[l],r=0;d>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1;0==--f&&(f=Math.pow(2,d),d++)}for(o=2,r=0;d>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1;for(;;){if(v<<=1,m==t-1){h.push(n(v));break}m++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:i._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,n,r){var o,i,a,s,c,u,l,f=[],p=4,d=4,h=3,v="",m=[],y={val:r(0),position:n,index:1};for(o=0;3>o;o+=1)f[o]=o;for(a=0,c=Math.pow(2,2),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;switch(a){case 0:for(a=0,c=Math.pow(2,8),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;l=t(a);break;case 1:for(a=0,c=Math.pow(2,16),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;l=t(a);break;case 2:return""}for(f[3]=l,i=l,m.push(l);;){if(y.index>e)return"";for(a=0,c=Math.pow(2,h),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;switch(l=a){case 0:for(a=0,c=Math.pow(2,8),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;f[d++]=t(a),l=d-1,p--;break;case 1:for(a=0,c=Math.pow(2,16),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;f[d++]=t(a),l=d-1,p--;break;case 2:return m.join("")}if(0==p&&(p=Math.pow(2,h),h++),f[l])v=f[l];else{if(l!==d)return null;v=i+i.charAt(0)}m.push(v),f[d++]=i+v.charAt(0),i=v,0==--p&&(p=Math.pow(2,h),h++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module&&(module.exports=LZString),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(e){return void 0===e||null===e}function t(e){return void 0!==e&&null!==e}function n(e){return!0===e}function r(e){return!1===e}function o(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function i(e){return null!==e&&"object"==typeof e}function a(e){return"[object Object]"===Ao.call(e)}function s(e){return"[object RegExp]"===Ao.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function l(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}function d(e,t){return $o.call(e,t)}function h(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function v(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function m(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function y(e,t){for(var n in t)e[n]=t[n];return e}function g(e){for(var t={},n=0;n0&&(fe((s=pe(s,(i||"")+"_"+a))[0])&&fe(u)&&(l[c]=O(u.text+s[0].text),s.shift()),l.push.apply(l,s)):o(s)?fe(u)?l[c]=O(u.text+s):""!==s&&l.push(O(s)):fe(s)&&fe(u)?l[c]=O(u.text+s.text):(n(r._isVList)&&t(s.tag)&&e(s.key)&&t(i)&&(s.key="__vlist"+i+"_"+a+"__"),l.push(s)));return l}function de(e,t){return(e.__esModule||ii&&"Module"===e[Symbol.toStringTag])&&(e=e.default),i(e)?t.extend(e):e}function he(e,t,n,r,o){var i=pi();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function ve(r,o,a){if(n(r.error)&&t(r.errorComp))return r.errorComp;if(t(r.resolved))return r.resolved;if(n(r.loading)&&t(r.loadingComp))return r.loadingComp;if(!t(r.contexts)){var s=r.contexts=[a],c=!0,u=function(){for(var e=0,t=s.length;eFi&&Ni[n].id>e.id;)n--;Ni.splice(n+1,0,e)}else Ni.push(e);ji||(ji=!0,re(Le))}}function Me(e){qi.clear(),qe(e,qi)}function qe(e,t){var n,r,o=Array.isArray(e);if((o||i(e))&&Object.isExtensible(e)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o)for(n=e.length;n--;)qe(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)qe(e[r[n]],t)}}function De(e,t,n){Di.get=function(){return this[t][n]},Di.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Di)}function Ve(e){e._watchers=[];var t=e.$options;t.props&&Ue(e,t.props),t.methods&&Ke(e,t.methods),t.data?Be(e):j(e._data={},!0),t.computed&&We(e,t.computed),t.watch&&t.watch!==Xo&&ze(e,t.watch)}function Ue(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;mi.shouldConvert=i;for(var a in t)!function(i){o.push(i);var a=K(i,t,n,e);I(r,i,a),i in e||De(e,"_props",i)}(a);mi.shouldConvert=!0}function Be(e){var t=e.$options.data;a(t=e._data="function"==typeof t?He(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,o=n.length;o--;){var i=n[o];r&&d(r,i)||k(i)||De(e,"_data",i)}j(t,!0)}function He(e,t){try{return e.call(t,t)}catch(e){return X(e,t,"data()"),{}}}function We(e,t){var n=e._computedWatchers=Object.create(null),r=ri();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;r||(n[o]=new Mi(e,a||b,b,Vi)),o in e||Qe(e,o,i)}}function Qe(e,t,n){var r=!ri();"function"==typeof n?(Di.get=r?Je(t):n,Di.set=b):(Di.get=n.get?r&&!1!==n.cache?Je(t):n.get:b,Di.set=n.set?n.set:b),Object.defineProperty(e,t,Di)}function Je(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ci.target&&t.depend(),t.value}}function Ke(e,t){for(var n in t)e[n]=null==t[n]?b:v(t[n],e)}function ze(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function At(e){this._init(e)}function St(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=m(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Ot(e){e.mixin=function(e){return this.options=Q(this.options,e),this}}function $t(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Q(n.options,e),a.super=n,a.options.props&&Nt(a),a.options.computed&&Rt(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,qo.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=y({},a.options),o[r]=a,a}}function Nt(e){var t=e.options.props;for(var n in t)De(e.prototype,"_props",n)}function Rt(e){var t=e.options.computed;for(var n in t)Qe(e.prototype,n,t[n])}function Lt(e){qo.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&a(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function jt(e){return e&&(e.Ctor.options.name||e.tag)}function It(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!s(e)&&e.test(t)}function Ft(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=jt(a.componentOptions);s&&!t(s)&&Pt(n,i,r,o)}}}function Pt(e,t,n,r){var o=e[t];o&&o!==r&&o.componentInstance.$destroy(),e[t]=null,p(n,t)}function Mt(e){for(var n=e.data,r=e,o=e;t(o.componentInstance);)(o=o.componentInstance._vnode).data&&(n=qt(o.data,n));for(;t(r=r.parent);)r.data&&(n=qt(n,r.data));return Dt(n.staticClass,n.class)}function qt(e,n){return{staticClass:Vt(e.staticClass,n.staticClass),class:t(e.class)?[e.class,n.class]:n.class}}function Dt(e,n){return t(e)||t(n)?Vt(e,Ut(n)):""}function Vt(e,t){return e?t?e+" "+t:e:t||""}function Ut(e){return Array.isArray(e)?Bt(e):i(e)?Ht(e):"string"==typeof e?e:""}function Bt(e){for(var n,r="",o=0,i=e.length;o=0&&" "===(m=e.charAt(v));v--);m&&Aa.test(m)||(l=!0)}}else void 0===i?(h=o+1,i=e.slice(0,o).trim()):t();if(void 0===i?i=e.slice(0,o).trim():0!==h&&t(),a)for(o=0;o-1?{exp:e.slice(0,Xi),key:'"'+e.slice(Xi+1)+'"'}:{exp:e,key:null};for(Gi=e,Xi=Zi=ea=0;!wn();)_n(Yi=bn())?kn(Yi):91===Yi&&xn(Yi);return{exp:e.slice(0,Zi),key:e.slice(Zi+1,ea)}}function bn(){return Gi.charCodeAt(++Xi)}function wn(){return Xi>=zi}function _n(e){return 34===e||39===e}function xn(e){var t=1;for(Zi=Xi;!wn();)if(e=bn(),_n(e))kn(e);else if(91===e&&t++,93===e&&t--,0===t){ea=Xi;break}}function kn(e){for(var t=e;!wn()&&(e=bn())!==t;);}function En(e,t,n){var r=n&&n.number,o=hn(e,"value")||"null",i=hn(e,"true-value")||"true",a=hn(e,"false-value")||"false";ln(e,"checked","Array.isArray("+t+")?_i("+t+","+o+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),dn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+t+"=$$a.concat([$$v]))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+yn(t,"$$c")+"}",null,!0)}function Cn(e,t,n){var r=n&&n.number,o=hn(e,"value")||"null";ln(e,"checked","_q("+t+","+(o=r?"_n("+o+")":o)+")"),dn(e,"change",yn(t,o),null,!0)}function Tn(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";dn(e,"change",r=r+" "+yn(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function An(e,t,n){var r=e.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?Sa:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=yn(t,l);c&&(f="if($event.target.composing)return;"+f),ln(e,"value","("+t+")"),dn(e,u,f,null,!0),(s||a)&&dn(e,"blur","$forceUpdate()")}function Sn(e){if(t(e[Sa])){var n=Jo?"change":"input";e[n]=[].concat(e[Sa],e[n]||[]),delete e[Sa]}t(e[Oa])&&(e.change=[].concat(e[Oa],e.change||[]),delete e[Oa])}function On(e,t,n){var r=ta;return function o(){null!==e.apply(null,arguments)&&Nn(t,o,n,r)}}function $n(e,t,n,r,o){t=ne(t),n&&(t=On(t,e,r)),ta.addEventListener(e,t,Zo?{capture:r,passive:o}:r)}function Nn(e,t,n,r){(r||ta).removeEventListener(e,t._withTask||t,n)}function Rn(t,n){if(!e(t.data.on)||!e(n.data.on)){var r=n.data.on||{},o=t.data.on||{};ta=n.elm,Sn(r),ie(r,o,$n,Nn,n.context)}}function Ln(n,r){if(!e(n.data.domProps)||!e(r.data.domProps)){var o,i,a=r.elm,s=n.data.domProps||{},c=r.data.domProps||{};t(c.__ob__)&&(c=r.data.domProps=y({},c));for(o in s)e(c[o])&&(a[o]="");for(o in c){if(i=c[o],"textContent"===o||"innerHTML"===o){if(r.children&&(r.children.length=0),i===s[o])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===o){a._value=i;var u=e(i)?"":String(i);jn(a,u)&&(a.value=u)}else a[o]=i}}}function jn(e,t){return!e.composing&&("OPTION"===e.tagName||In(e,t)||Fn(e,t))}function In(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function Fn(e,n){var r=e.value,o=e._vModifiers;return t(o)&&o.number?l(r)!==l(n):t(o)&&o.trim?r.trim()!==n.trim():r!==n}function Pn(e){var t=Mn(e.style);return e.staticStyle?y(e.staticStyle,t):t}function Mn(e){return Array.isArray(e)?g(e):"string"==typeof e?Ra(e):e}function qn(e,t){var n,r={};if(t)for(var o=e;o.componentInstance;)(o=o.componentInstance._vnode).data&&(n=Pn(o.data))&&y(r,n);(n=Pn(e.data))&&y(r,n);for(var i=e;i=i.parent;)i.data&&(n=Pn(i.data))&&y(r,n);return r}function Dn(n,r){var o=r.data,i=n.data;if(!(e(o.staticStyle)&&e(o.style)&&e(i.staticStyle)&&e(i.style))){var a,s,c=r.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,p=Mn(r.data.style)||{};r.data.normalizedStyle=t(p.__ob__)?y({},p):p;var d=qn(r,!0);for(s in f)e(d[s])&&Ia(c,s,"");for(s in d)(a=d[s])!==f[s]&&Ia(c,s,null==a?"":a)}}function Vn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Un(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Bn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&y(t,qa(e.name||"v")),y(t,e),t}return"string"==typeof e?qa(e):void 0}}function Hn(e){Ja(function(){Ja(e)})}function Wn(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Vn(e,t))}function Qn(e,t){e._transitionClasses&&p(e._transitionClasses,t),Un(e,t)}function Jn(e,t,n){var r=Kn(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Va?Ha:Qa,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=Va,l=a,f=i.length):t===Ua?u>0&&(n=Ua,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Va:Ua:null)?n===Va?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Va&&Ka.test(r[Ba+"Property"])}}function zn(e,t){for(;e.length1}function tr(e,t){!0!==t.data.show&&Yn(t)}function nr(e,t,n){rr(e,t,n),(Jo||zo)&&setTimeout(function(){rr(e,t,n)},0)}function rr(e,t,n){var r=t.value,o=e.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=e.options.length;s-1,a.selected!==i&&(a.selected=i);else if(w(ir(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function or(e,t){return t.every(function(t){return!w(t,e)})}function ir(e){return"_value"in e?e._value:e.value}function ar(e){e.target.composing=!0}function sr(e){e.target.composing&&(e.target.composing=!1,cr(e.target,"input"))}function cr(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ur(e){return!e.componentInstance||e.data&&e.data.transition?e:ur(e.componentInstance._vnode)}function lr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?lr(ye(t.children)):e}function fr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[Ro(i)]=o[i];return t}function pr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function dr(e){for(;e=e.parent;)if(e.data.transition)return!0}function hr(e,t){return t.key===e.key&&t.tag===e.tag}function vr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function mr(e){e.data.newPos=e.elm.getBoundingClientRect()}function yr(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}function gr(e,t){var n=t?is(t):rs;if(n.test(e)){for(var r,o,i=[],a=n.lastIndex=0;r=n.exec(e);){(o=r.index)>a&&i.push(JSON.stringify(e.slice(a,o)));var s=an(r[1].trim());i.push("_s("+s+")"),a=o+r[0].length}return a=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)t.end&&t.end(a[c].tag,n,r);a.length=o,i=o&&a[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var o,i,a=[],s=t.expectHTML,c=t.isUnaryTag||Fo,u=t.canBeLeftOpenTag||Fo,l=0;e;){if(o=e,i&&Rs(i)){var f=0,p=i.toLowerCase(),d=Ls[p]||(Ls[p]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=e.replace(d,function(e,n,r){return f=r.length,Rs(p)||"noscript"===p||(n=n.replace(//g,"$1").replace(//g,"$1")),Ms(p,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-h.length,e=h,r(p,l-f,l)}else{var v=e.indexOf("<");if(0===v){if(bs.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m)),n(m+3);continue}}if(ws.test(e)){var y=e.indexOf("]>");if(y>=0){n(y+2);continue}}var g=e.match(gs);if(g){n(g[0].length);continue}var b=e.match(ys);if(b){var w=l;n(b[0].length),r(b[1],w,l);continue}var _=function(){var t=e.match(vs);if(t){var r={tagName:t[1],attrs:[],start:l};n(t[0].length);for(var o,i;!(o=e.match(ms))&&(i=e.match(ps));)n(i[0].length),r.attrs.push(i);if(o)return r.unarySlash=o[1],n(o[0].length),r.end=l,r}}();if(_){!function(e){var n=e.tagName,o=e.unarySlash;s&&("p"===i&&fs(n)&&r(i),u(n)&&i===n&&r(n));for(var l=c(n)||!!o,f=e.attrs.length,p=new Array(f),d=0;d=0){for(k=e.slice(v);!(ys.test(k)||vs.test(k)||bs.test(k)||ws.test(k)||(E=k.indexOf("<",1))<0);)v+=E,k=e.slice(v);x=e.substring(0,v),n(v)}v<0&&(x=e,e=""),t.chars&&x&&t.chars(x)}if(e===o){t.chars&&t.chars(e);break}}r()}function _r(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:qr(t),parent:n,children:[]}}function xr(e,t){function n(e){e.pre&&(s=!1),As(e.tag)&&(c=!1)}xs=t.warn||cn,As=t.isPreTag||Fo,Ss=t.mustUseProp||Fo,Os=t.getTagNamespace||Fo,Es=un(t.modules,"transformNode"),Cs=un(t.modules,"preTransformNode"),Ts=un(t.modules,"postTransformNode"),ks=t.delimiters;var r,o,i=[],a=!1!==t.preserveWhitespace,s=!1,c=!1;return wr(e,{warn:xs,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldKeepComment:t.comments,start:function(e,a,u){var l=o&&o.ns||Os(e);Jo&&"svg"===l&&(a=Ur(a));var f=_r(e,a,o);l&&(f.ns=l),Vr(f)&&!ri()&&(f.forbidden=!0);for(var p=0;p0,zo=Qo&&Qo.indexOf("edge/")>0,Go=Qo&&Qo.indexOf("android")>0,Yo=Qo&&/iphone|ipad|ipod|ios/.test(Qo),Xo=(Qo&&/chrome\/\d+/.test(Qo),{}.watch),Zo=!1;if(Wo)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Zo=!0}}),window.addEventListener("test-passive",null,ei)}catch(e){}var ti,ni,ri=function(){return void 0===ti&&(ti=!Wo&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),ti},oi=Wo&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,ii="undefined"!=typeof Symbol&&T(Symbol)&&"undefined"!=typeof Reflect&&T(Reflect.ownKeys);ni="undefined"!=typeof Set&&T(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ai=b,si=0,ci=function(){this.id=si++,this.subs=[]};ci.prototype.addSub=function(e){this.subs.push(e)},ci.prototype.removeSub=function(e){p(this.subs,e)},ci.prototype.depend=function(){ci.target&&ci.target.addDep(this)},ci.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t1?m(n):n;for(var r=m(arguments,1),o=0,i=n.length;oparseInt(this.max)&&Pt(o,i[0],i,this._vnode)),e.data.keepAlive=!0}return e}}};!function(e){var t={};t.get=function(){return Vo},Object.defineProperty(e,"config",t),e.util={warn:ai,extend:y,mergeOptions:Q,defineReactive:I},e.set=F,e.delete=P,e.nextTick=re,e.options=Object.create(null),qo.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,y(e.options.components,Ki),St(e),Ot(e),$t(e),Lt(e)}(At),Object.defineProperty(At.prototype,"$isServer",{get:ri}),Object.defineProperty(At.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),At.version="2.5.2";var zi,Gi,Yi,Xi,Zi,ea,ta,na,ra=f("style,class"),oa=f("input,textarea,option,select,progress"),ia=function(e,t,n){return"value"===n&&oa(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},aa=f("contenteditable,draggable,spellcheck"),sa=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),ca="http://www.w3.org/1999/xlink",ua=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},la=function(e){return ua(e)?e.slice(6,e.length):""},fa=function(e){return null==e||!1===e},pa={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},da=f("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ha=f("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),va=function(e){return da(e)||ha(e)},ma=Object.create(null),ya=f("text,number,password,search,email,tel,url"),ga=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(pa[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setAttribute:function(e,t,n){e.setAttribute(t,n)}}),ba={create:function(e,t){Jt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Jt(e,!0),Jt(t))},destroy:function(e){Jt(e,!0)}},wa=new li("",{},[]),_a=["create","activate","update","remove","destroy"],xa={create:Yt,update:Yt,destroy:function(e){Yt(e,wa)}},ka=Object.create(null),Ea=[ba,xa],Ca={create:nn,update:nn},Ta={create:on,update:on},Aa=/[\w).+\-_$\]]/,Sa="__r",Oa="__c",$a={create:Rn,update:Rn},Na={create:Ln,update:Ln},Ra=h(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}),La=/^--/,ja=/\s*!important$/,Ia=function(e,t,n){if(La.test(t))e.style.setProperty(t,n);else if(ja.test(n))e.style.setProperty(t,n.replace(ja,""),"important");else{var r=Pa(t);if(Array.isArray(n))for(var o=0,i=n.length;od?g(n,e(o[m+1])?null:o[m+1].elm,o,p,m,i):p>m&&w(n,r,f,d)}function k(e,n,r,o){for(var i=r;i-1?ma[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ma[e]=/HTMLUnknownElement/.test(t.toString())},y(At.options.directives,Ga),y(At.options.components,es),At.prototype.__patch__=Wo?za:b,At.prototype.$mount=function(e,t){return e=e&&Wo?Qt(e):void 0,Te(this,e,t)},At.nextTick(function(){Vo.devtools&&oi&&oi.emit("init",At)},0);var ts,ns=!!Wo&&function(e,t){var n=document.createElement("div");return n.innerHTML='
',n.innerHTML.indexOf(" ")>0}(),rs=/\{\{((?:.|\n)+?)\}\}/g,os=/[-.*+?^${}()|[\]\/\\]/g,is=h(function(e){var t=e[0].replace(os,"\\$&"),n=e[1].replace(os,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),as={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=vn(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=hn(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},ss={staticKeys:["staticStyle"],transformNode:function(e,t){var n=vn(e,"style");n&&(e.staticStyle=JSON.stringify(Ra(n)));var r=hn(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},cs={decode:function(e){return ts=ts||document.createElement("div"),ts.innerHTML=e,ts.textContent}},us=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ls=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),fs=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ps=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ds="[a-zA-Z_][\\w\\-\\.]*",hs="((?:"+ds+"\\:)?"+ds+")",vs=new RegExp("^<"+hs),ms=/^\s*(\/?)>/,ys=new RegExp("^<\\/"+hs+"[^>]*>"),gs=/^]+>/i,bs=/^/)>-1||r[c].search(/\]>/)>-1||r[c].search(/!DOCTYPE/)>-1)&&(i=!1)):r[c].search(/-->/)>-1||r[c].search(/\]>/)>-1?(s+=r[c],i=!1):/^<\w/.exec(r[c-1])&&/^<\/\w/.exec(r[c])&&/^<[\w:\-\.\,]+/.exec(r[c-1])==/^<\/[\w:\-\.\,]+/.exec(r[c])[0].replace("/","")?(s+=r[c],i||a--):r[c].search(/<\w/)>-1&&-1==r[c].search(/<\//)&&-1==r[c].search(/\/>/)?s=s+=i?r[c]:u[a++]+r[c]:r[c].search(/<\w/)>-1&&r[c].search(/<\//)>-1?s=s+=i?r[c]:u[a]+r[c]:r[c].search(/<\//)>-1?s=s+=i?r[c]:u[--a]+r[c]:r[c].search(/\/>/)>-1?s=s+=i?r[c]:u[a]+r[c]:r[c].search(/<\?/)>-1?s+=u[a]+r[c]:r[c].search(/xmlns\:/)>-1||r[c].search(/xmlns\=/)>-1?s+=u[a]+r[c]:s+=r[c];return"\n"==s[0]?s.slice(1):s},t.prototype.json=function(e,t){var t=t||this.step;return"undefined"==typeof JSON?e:"string"==typeof e?JSON.stringify(JSON.parse(e),null,t):"object"==typeof e?JSON.stringify(e,null,t):e},t.prototype.css=function(t,n){var r=t.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),o=r.length,i=0,a="",s=0,c=n?e(n):this.shift;for(s=0;s/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},t.prototype.jsonmin=function(e){return"undefined"==typeof JSON?e:JSON.stringify(JSON.parse(e),null,0)},t.prototype.cssmin=function(e,t){return(t?e:e.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"")).replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},t.prototype.sqlmin=function(e){return e.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},window.vkbeautify=new t}();var LZString=function(){function e(e,t){if(!o[e]){o[e]={};for(var n=0;nr;r++){var a=t.charCodeAt(r);n[2*r]=a>>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(e){if(null===e||void 0===e)return i.decompress(e);for(var n=new Array(e.length/2),r=0,o=n.length;o>r;r++)n[r]=256*e[2*r]+e[2*r+1];var a=[];return n.forEach(function(e){a.push(t(e))}),i.decompress(a.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":i._compress(e,6,function(e){return r.charAt(e)})},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),i._decompress(t.length,32,function(n){return e(r,t.charAt(n))}))},compress:function(e){return i._compress(e,16,function(e){return t(e)})},_compress:function(e,t,n){if(null==e)return"";var r,o,i,a={},s={},c="",u="",l="",f=2,p=3,d=2,h=[],v=0,m=0;for(i=0;ir;r++)v<<=1,m==t-1?(m=0,h.push(n(v)),v=0):m++;for(o=l.charCodeAt(0),r=0;8>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1}else{for(o=1,r=0;d>r;r++)v=v<<1|o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o=0;for(o=l.charCodeAt(0),r=0;16>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1}0==--f&&(f=Math.pow(2,d),d++),delete s[l]}else for(o=a[l],r=0;d>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1;0==--f&&(f=Math.pow(2,d),d++),a[u]=p++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;d>r;r++)v<<=1,m==t-1?(m=0,h.push(n(v)),v=0):m++;for(o=l.charCodeAt(0),r=0;8>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1}else{for(o=1,r=0;d>r;r++)v=v<<1|o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o=0;for(o=l.charCodeAt(0),r=0;16>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1}0==--f&&(f=Math.pow(2,d),d++),delete s[l]}else for(o=a[l],r=0;d>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1;0==--f&&(f=Math.pow(2,d),d++)}for(o=2,r=0;d>r;r++)v=v<<1|1&o,m==t-1?(m=0,h.push(n(v)),v=0):m++,o>>=1;for(;;){if(v<<=1,m==t-1){h.push(n(v));break}m++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:i._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,n,r){var o,i,a,s,c,u,l,f=[],p=4,d=4,h=3,v="",m=[],y={val:r(0),position:n,index:1};for(o=0;3>o;o+=1)f[o]=o;for(a=0,c=Math.pow(2,2),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;switch(a){case 0:for(a=0,c=Math.pow(2,8),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;l=t(a);break;case 1:for(a=0,c=Math.pow(2,16),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;l=t(a);break;case 2:return""}for(f[3]=l,i=l,m.push(l);;){if(y.index>e)return"";for(a=0,c=Math.pow(2,h),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;switch(l=a){case 0:for(a=0,c=Math.pow(2,8),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;f[d++]=t(a),l=d-1,p--;break;case 1:for(a=0,c=Math.pow(2,16),u=1;u!=c;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),a|=(s>0?1:0)*u,u<<=1;f[d++]=t(a),l=d-1,p--;break;case 2:return m.join("")}if(0==p&&(p=Math.pow(2,h),h++),f[l])v=f[l];else{if(l!==d)return null;v=i+i.charAt(0)}m.push(v),f[d++]=i+v.charAt(0),i=v,0==--p&&(p=Math.pow(2,h),h++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module&&(module.exports=LZString),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(e){return void 0===e||null===e}function t(e){return void 0!==e&&null!==e}function n(e){return!0===e}function r(e){return!1===e}function o(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function i(e){return null!==e&&"object"==typeof e}function a(e){return"[object Object]"===Ao.call(e)}function s(e){return"[object RegExp]"===Ao.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function l(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}function d(e,t){return $o.call(e,t)}function h(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function v(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function m(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function y(e,t){for(var n in t)e[n]=t[n];return e}function g(e){for(var t={},n=0;n0&&(fe((s=pe(s,(i||"")+"_"+a))[0])&&fe(u)&&(l[c]=O(u.text+s[0].text),s.shift()),l.push.apply(l,s)):o(s)?fe(u)?l[c]=O(u.text+s):""!==s&&l.push(O(s)):fe(s)&&fe(u)?l[c]=O(u.text+s.text):(n(r._isVList)&&t(s.tag)&&e(s.key)&&t(i)&&(s.key="__vlist"+i+"_"+a+"__"),l.push(s)));return l}function de(e,t){return(e.__esModule||ii&&"Module"===e[Symbol.toStringTag])&&(e=e.default),i(e)?t.extend(e):e}function he(e,t,n,r,o){var i=pi();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function ve(r,o,a){if(n(r.error)&&t(r.errorComp))return r.errorComp;if(t(r.resolved))return r.resolved;if(n(r.loading)&&t(r.loadingComp))return r.loadingComp;if(!t(r.contexts)){var s=r.contexts=[a],c=!0,u=function(){for(var e=0,t=s.length;eFi&&Ni[n].id>e.id;)n--;Ni.splice(n+1,0,e)}else Ni.push(e);ji||(ji=!0,re(Le))}}function Me(e){qi.clear(),qe(e,qi)}function qe(e,t){var n,r,o=Array.isArray(e);if((o||i(e))&&Object.isExtensible(e)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o)for(n=e.length;n--;)qe(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)qe(e[r[n]],t)}}function De(e,t,n){Di.get=function(){return this[t][n]},Di.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Di)}function Ve(e){e._watchers=[];var t=e.$options;t.props&&Ue(e,t.props),t.methods&&Ke(e,t.methods),t.data?Be(e):j(e._data={},!0),t.computed&&We(e,t.computed),t.watch&&t.watch!==Xo&&ze(e,t.watch)}function Ue(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;mi.shouldConvert=i;for(var a in t)!function(i){o.push(i);var a=K(i,t,n,e);I(r,i,a),i in e||De(e,"_props",i)}(a);mi.shouldConvert=!0}function Be(e){var t=e.$options.data;a(t=e._data="function"==typeof t?He(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,o=n.length;o--;){var i=n[o];r&&d(r,i)||k(i)||De(e,"_data",i)}j(t,!0)}function He(e,t){try{return e.call(t,t)}catch(e){return X(e,t,"data()"),{}}}function We(e,t){var n=e._computedWatchers=Object.create(null),r=ri();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;r||(n[o]=new Mi(e,a||b,b,Vi)),o in e||Qe(e,o,i)}}function Qe(e,t,n){var r=!ri();"function"==typeof n?(Di.get=r?Je(t):n,Di.set=b):(Di.get=n.get?r&&!1!==n.cache?Je(t):n.get:b,Di.set=n.set?n.set:b),Object.defineProperty(e,t,Di)}function Je(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ci.target&&t.depend(),t.value}}function Ke(e,t){for(var n in t)e[n]=null==t[n]?b:v(t[n],e)}function ze(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function At(e){this._init(e)}function St(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=m(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Ot(e){e.mixin=function(e){return this.options=Q(this.options,e),this}}function $t(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Q(n.options,e),a.super=n,a.options.props&&Nt(a),a.options.computed&&Rt(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,qo.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=y({},a.options),o[r]=a,a}}function Nt(e){var t=e.options.props;for(var n in t)De(e.prototype,"_props",n)}function Rt(e){var t=e.options.computed;for(var n in t)Qe(e.prototype,n,t[n])}function Lt(e){qo.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&a(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function jt(e){return e&&(e.Ctor.options.name||e.tag)}function It(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!s(e)&&e.test(t)}function Ft(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=jt(a.componentOptions);s&&!t(s)&&Pt(n,i,r,o)}}}function Pt(e,t,n,r){var o=e[t];o&&o!==r&&o.componentInstance.$destroy(),e[t]=null,p(n,t)}function Mt(e){for(var n=e.data,r=e,o=e;t(o.componentInstance);)(o=o.componentInstance._vnode).data&&(n=qt(o.data,n));for(;t(r=r.parent);)r.data&&(n=qt(n,r.data));return Dt(n.staticClass,n.class)}function qt(e,n){return{staticClass:Vt(e.staticClass,n.staticClass),class:t(e.class)?[e.class,n.class]:n.class}}function Dt(e,n){return t(e)||t(n)?Vt(e,Ut(n)):""}function Vt(e,t){return e?t?e+" "+t:e:t||""}function Ut(e){return Array.isArray(e)?Bt(e):i(e)?Ht(e):"string"==typeof e?e:""}function Bt(e){for(var n,r="",o=0,i=e.length;o=0&&" "===(m=e.charAt(v));v--);m&&Aa.test(m)||(l=!0)}}else void 0===i?(h=o+1,i=e.slice(0,o).trim()):t();if(void 0===i?i=e.slice(0,o).trim():0!==h&&t(),a)for(o=0;o-1?{exp:e.slice(0,Xi),key:'"'+e.slice(Xi+1)+'"'}:{exp:e,key:null};for(Gi=e,Xi=Zi=ea=0;!wn();)_n(Yi=bn())?kn(Yi):91===Yi&&xn(Yi);return{exp:e.slice(0,Zi),key:e.slice(Zi+1,ea)}}function bn(){return Gi.charCodeAt(++Xi)}function wn(){return Xi>=zi}function _n(e){return 34===e||39===e}function xn(e){var t=1;for(Zi=Xi;!wn();)if(e=bn(),_n(e))kn(e);else if(91===e&&t++,93===e&&t--,0===t){ea=Xi;break}}function kn(e){for(var t=e;!wn()&&(e=bn())!==t;);}function En(e,t,n){var r=n&&n.number,o=hn(e,"value")||"null",i=hn(e,"true-value")||"true",a=hn(e,"false-value")||"false";ln(e,"checked","Array.isArray("+t+")?_i("+t+","+o+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),dn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+t+"=$$a.concat([$$v]))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+yn(t,"$$c")+"}",null,!0)}function Cn(e,t,n){var r=n&&n.number,o=hn(e,"value")||"null";ln(e,"checked","_q("+t+","+(o=r?"_n("+o+")":o)+")"),dn(e,"change",yn(t,o),null,!0)}function Tn(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";dn(e,"change",r=r+" "+yn(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function An(e,t,n){var r=e.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?Sa:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=yn(t,l);c&&(f="if($event.target.composing)return;"+f),ln(e,"value","("+t+")"),dn(e,u,f,null,!0),(s||a)&&dn(e,"blur","$forceUpdate()")}function Sn(e){if(t(e[Sa])){var n=Jo?"change":"input";e[n]=[].concat(e[Sa],e[n]||[]),delete e[Sa]}t(e[Oa])&&(e.change=[].concat(e[Oa],e.change||[]),delete e[Oa])}function On(e,t,n){var r=ta;return function o(){null!==e.apply(null,arguments)&&Nn(t,o,n,r)}}function $n(e,t,n,r,o){t=ne(t),n&&(t=On(t,e,r)),ta.addEventListener(e,t,Zo?{capture:r,passive:o}:r)}function Nn(e,t,n,r){(r||ta).removeEventListener(e,t._withTask||t,n)}function Rn(t,n){if(!e(t.data.on)||!e(n.data.on)){var r=n.data.on||{},o=t.data.on||{};ta=n.elm,Sn(r),ie(r,o,$n,Nn,n.context)}}function Ln(n,r){if(!e(n.data.domProps)||!e(r.data.domProps)){var o,i,a=r.elm,s=n.data.domProps||{},c=r.data.domProps||{};t(c.__ob__)&&(c=r.data.domProps=y({},c));for(o in s)e(c[o])&&(a[o]="");for(o in c){if(i=c[o],"textContent"===o||"innerHTML"===o){if(r.children&&(r.children.length=0),i===s[o])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===o){a._value=i;var u=e(i)?"":String(i);jn(a,u)&&(a.value=u)}else a[o]=i}}}function jn(e,t){return!e.composing&&("OPTION"===e.tagName||In(e,t)||Fn(e,t))}function In(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function Fn(e,n){var r=e.value,o=e._vModifiers;return t(o)&&o.number?l(r)!==l(n):t(o)&&o.trim?r.trim()!==n.trim():r!==n}function Pn(e){var t=Mn(e.style);return e.staticStyle?y(e.staticStyle,t):t}function Mn(e){return Array.isArray(e)?g(e):"string"==typeof e?Ra(e):e}function qn(e,t){var n,r={};if(t)for(var o=e;o.componentInstance;)(o=o.componentInstance._vnode).data&&(n=Pn(o.data))&&y(r,n);(n=Pn(e.data))&&y(r,n);for(var i=e;i=i.parent;)i.data&&(n=Pn(i.data))&&y(r,n);return r}function Dn(n,r){var o=r.data,i=n.data;if(!(e(o.staticStyle)&&e(o.style)&&e(i.staticStyle)&&e(i.style))){var a,s,c=r.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,p=Mn(r.data.style)||{};r.data.normalizedStyle=t(p.__ob__)?y({},p):p;var d=qn(r,!0);for(s in f)e(d[s])&&Ia(c,s,"");for(s in d)(a=d[s])!==f[s]&&Ia(c,s,null==a?"":a)}}function Vn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Un(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Bn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&y(t,qa(e.name||"v")),y(t,e),t}return"string"==typeof e?qa(e):void 0}}function Hn(e){Ja(function(){Ja(e)})}function Wn(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Vn(e,t))}function Qn(e,t){e._transitionClasses&&p(e._transitionClasses,t),Un(e,t)}function Jn(e,t,n){var r=Kn(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Va?Ha:Qa,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=Va,l=a,f=i.length):t===Ua?u>0&&(n=Ua,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Va:Ua:null)?n===Va?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Va&&Ka.test(r[Ba+"Property"])}}function zn(e,t){for(;e.length1}function tr(e,t){!0!==t.data.show&&Yn(t)}function nr(e,t,n){rr(e,t,n),(Jo||zo)&&setTimeout(function(){rr(e,t,n)},0)}function rr(e,t,n){var r=t.value,o=e.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=e.options.length;s-1,a.selected!==i&&(a.selected=i);else if(w(ir(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function or(e,t){return t.every(function(t){return!w(t,e)})}function ir(e){return"_value"in e?e._value:e.value}function ar(e){e.target.composing=!0}function sr(e){e.target.composing&&(e.target.composing=!1,cr(e.target,"input"))}function cr(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ur(e){return!e.componentInstance||e.data&&e.data.transition?e:ur(e.componentInstance._vnode)}function lr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?lr(ye(t.children)):e}function fr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[Ro(i)]=o[i];return t}function pr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function dr(e){for(;e=e.parent;)if(e.data.transition)return!0}function hr(e,t){return t.key===e.key&&t.tag===e.tag}function vr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function mr(e){e.data.newPos=e.elm.getBoundingClientRect()}function yr(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}function gr(e,t){var n=t?is(t):rs;if(n.test(e)){for(var r,o,i=[],a=n.lastIndex=0;r=n.exec(e);){(o=r.index)>a&&i.push(JSON.stringify(e.slice(a,o)));var s=an(r[1].trim());i.push("_s("+s+")"),a=o+r[0].length}return a=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)t.end&&t.end(a[c].tag,n,r);a.length=o,i=o&&a[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var o,i,a=[],s=t.expectHTML,c=t.isUnaryTag||Fo,u=t.canBeLeftOpenTag||Fo,l=0;e;){if(o=e,i&&Rs(i)){var f=0,p=i.toLowerCase(),d=Ls[p]||(Ls[p]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=e.replace(d,function(e,n,r){return f=r.length,Rs(p)||"noscript"===p||(n=n.replace(//g,"$1").replace(//g,"$1")),Ms(p,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-h.length,e=h,r(p,l-f,l)}else{var v=e.indexOf("<");if(0===v){if(bs.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m)),n(m+3);continue}}if(ws.test(e)){var y=e.indexOf("]>");if(y>=0){n(y+2);continue}}var g=e.match(gs);if(g){n(g[0].length);continue}var b=e.match(ys);if(b){var w=l;n(b[0].length),r(b[1],w,l);continue}var _=function(){var t=e.match(vs);if(t){var r={tagName:t[1],attrs:[],start:l};n(t[0].length);for(var o,i;!(o=e.match(ms))&&(i=e.match(ps));)n(i[0].length),r.attrs.push(i);if(o)return r.unarySlash=o[1],n(o[0].length),r.end=l,r}}();if(_){!function(e){var n=e.tagName,o=e.unarySlash;s&&("p"===i&&fs(n)&&r(i),u(n)&&i===n&&r(n));for(var l=c(n)||!!o,f=e.attrs.length,p=new Array(f),d=0;d=0){for(k=e.slice(v);!(ys.test(k)||vs.test(k)||bs.test(k)||ws.test(k)||(E=k.indexOf("<",1))<0);)v+=E,k=e.slice(v);x=e.substring(0,v),n(v)}v<0&&(x=e,e=""),t.chars&&x&&t.chars(x)}if(e===o){t.chars&&t.chars(e);break}}r()}function _r(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:qr(t),parent:n,children:[]}}function xr(e,t){function n(e){e.pre&&(s=!1),As(e.tag)&&(c=!1)}xs=t.warn||cn,As=t.isPreTag||Fo,Ss=t.mustUseProp||Fo,Os=t.getTagNamespace||Fo,Es=un(t.modules,"transformNode"),Cs=un(t.modules,"preTransformNode"),Ts=un(t.modules,"postTransformNode"),ks=t.delimiters;var r,o,i=[],a=!1!==t.preserveWhitespace,s=!1,c=!1;return wr(e,{warn:xs,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldKeepComment:t.comments,start:function(e,a,u){var l=o&&o.ns||Os(e);Jo&&"svg"===l&&(a=Ur(a));var f=_r(e,a,o);l&&(f.ns=l),Vr(f)&&!ri()&&(f.forbidden=!0);for(var p=0;p0,zo=Qo&&Qo.indexOf("edge/")>0,Go=Qo&&Qo.indexOf("android")>0,Yo=Qo&&/iphone|ipad|ipod|ios/.test(Qo),Xo=(Qo&&/chrome\/\d+/.test(Qo),{}.watch),Zo=!1;if(Wo)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Zo=!0}}),window.addEventListener("test-passive",null,ei)}catch(e){}var ti,ni,ri=function(){return void 0===ti&&(ti=!Wo&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),ti},oi=Wo&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,ii="undefined"!=typeof Symbol&&T(Symbol)&&"undefined"!=typeof Reflect&&T(Reflect.ownKeys);ni="undefined"!=typeof Set&&T(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ai=b,si=0,ci=function(){this.id=si++,this.subs=[]};ci.prototype.addSub=function(e){this.subs.push(e)},ci.prototype.removeSub=function(e){p(this.subs,e)},ci.prototype.depend=function(){ci.target&&ci.target.addDep(this)},ci.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t1?m(n):n;for(var r=m(arguments,1),o=0,i=n.length;oparseInt(this.max)&&Pt(o,i[0],i,this._vnode)),e.data.keepAlive=!0}return e}}};!function(e){var t={};t.get=function(){return Vo},Object.defineProperty(e,"config",t),e.util={warn:ai,extend:y,mergeOptions:Q,defineReactive:I},e.set=F,e.delete=P,e.nextTick=re,e.options=Object.create(null),qo.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,y(e.options.components,Ki),St(e),Ot(e),$t(e),Lt(e)}(At),Object.defineProperty(At.prototype,"$isServer",{get:ri}),Object.defineProperty(At.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),At.version="2.5.2";var zi,Gi,Yi,Xi,Zi,ea,ta,na,ra=f("style,class"),oa=f("input,textarea,option,select,progress"),ia=function(e,t,n){return"value"===n&&oa(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},aa=f("contenteditable,draggable,spellcheck"),sa=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),ca="http://www.w3.org/1999/xlink",ua=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},la=function(e){return ua(e)?e.slice(6,e.length):""},fa=function(e){return null==e||!1===e},pa={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},da=f("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ha=f("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),va=function(e){return da(e)||ha(e)},ma=Object.create(null),ya=f("text,number,password,search,email,tel,url"),ga=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(pa[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setAttribute:function(e,t,n){e.setAttribute(t,n)}}),ba={create:function(e,t){Jt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Jt(e,!0),Jt(t))},destroy:function(e){Jt(e,!0)}},wa=new li("",{},[]),_a=["create","activate","update","remove","destroy"],xa={create:Yt,update:Yt,destroy:function(e){Yt(e,wa)}},ka=Object.create(null),Ea=[ba,xa],Ca={create:nn,update:nn},Ta={create:on,update:on},Aa=/[\w).+\-_$\]]/,Sa="__r",Oa="__c",$a={create:Rn,update:Rn},Na={create:Ln,update:Ln},Ra=h(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}),La=/^--/,ja=/\s*!important$/,Ia=function(e,t,n){if(La.test(t))e.style.setProperty(t,n);else if(ja.test(n))e.style.setProperty(t,n.replace(ja,""),"important");else{var r=Pa(t);if(Array.isArray(n))for(var o=0,i=n.length;od?g(n,e(o[m+1])?null:o[m+1].elm,o,p,m,i):p>m&&w(n,r,f,d)}function k(e,n,r,o){for(var i=r;i-1?ma[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ma[e]=/HTMLUnknownElement/.test(t.toString())},y(At.options.directives,Ga),y(At.options.components,es),At.prototype.__patch__=Wo?za:b,At.prototype.$mount=function(e,t){return e=e&&Wo?Qt(e):void 0,Te(this,e,t)},At.nextTick(function(){Vo.devtools&&oi&&oi.emit("init",At)},0);var ts,ns=!!Wo&&function(e,t){var n=document.createElement("div");return n.innerHTML='
',n.innerHTML.indexOf(" ")>0}(),rs=/\{\{((?:.|\n)+?)\}\}/g,os=/[-.*+?^${}()|[\]\/\\]/g,is=h(function(e){var t=e[0].replace(os,"\\$&"),n=e[1].replace(os,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),as={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=vn(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=hn(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},ss={staticKeys:["staticStyle"],transformNode:function(e,t){var n=vn(e,"style");n&&(e.staticStyle=JSON.stringify(Ra(n)));var r=hn(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},cs={decode:function(e){return ts=ts||document.createElement("div"),ts.innerHTML=e,ts.textContent}},us=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ls=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),fs=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ps=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ds="[a-zA-Z_][\\w\\-\\.]*",hs="((?:"+ds+"\\:)?"+ds+")",vs=new RegExp("^<"+hs),ms=/^\s*(\/?)>/,ys=new RegExp("^<\\/"+hs+"[^>]*>"),gs=/^]+>/i,bs=/^