sfc-runtime
Advanced tools
Comparing version 0.7.1-2 to 0.7.1-3
@@ -1,1 +0,1 @@ | ||
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(t,e,n){"use strict";(function(n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.isReactNative=e.isWeex=e.isNode=e.isWeb=void 0;var i="object"===("undefined"==typeof navigator?"undefined":o(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product);e.isWeb=i;var u=void 0!==n&&!(!n.versions||!n.versions.node);e.isNode=u;var a="function"==typeof callNative||"object"===("undefined"==typeof WXEnvironment?"undefined":o(WXEnvironment))&&"Web"!==WXEnvironment.platform;e.isWeex=a;var c="undefined"!=typeof __fbBatchedBridgeConfig;e.isReactNative=c,e.default=t.exports;var f=t.exports;e.default=f}).call(this,n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(n(7)),o=l(n(8)),i=l(n(9)),u=l(n(10)),a=l(n(11)),c=l(n(12)),f=l(n(13)),s=l(n(14));function l(t){return t&&t.__esModule?t:{default:t}}var p={_r:l(n(15)).default,_c:r.default,_s:u.default,_l:a.default,_t:f.default,_m:(0,c.default)("v-once"),_v:i.default,_e:o.default,_cx:s.default};e.default=p,t.exports=e.default},function(t,e,n){"use strict";var r=n(5);t.exports=function(){var t=r.apply(r,arguments);return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,n){"use strict";t.exports=function(t,e){e=Object.assign({pascalCase:!1},e);var n=function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t};return 0===(t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim()).length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():/^[a-z\d]+$/.test(t)?n(t):(t!==t.toLowerCase()&&(t=function(t){for(var e=!1,n=!1,r=!1,o=0;o<t.length;o++){var i=t[o];e&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(t=t.slice(0,o-1)+"-"+t.slice(o-1),r=n,n=!1,e=!0):(e=i.toLowerCase()===i,r=n,n=i.toUpperCase()===i)}return t}(t)),n(t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={render:null},t.exports=e.default},function(t,e,n){"use strict";t.exports=function(t){return 0===(t=arguments.length>1?Array.from(arguments).map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim()).length?"":1===t.length?t.toLowerCase():/^[a-z0-9]+$/.test(t)?t:(t!==t.toLowerCase()&&(t=function(t){for(var e=!1,n=!1,r=!1,o=0;o<t.length;o++){var i=t[o];e&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(t=t.substr(0,o)+"-"+t.substr(o),e=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(t=t.substr(0,o-1)+"-"+t.substr(o-1),r=n,n=!1,e=!0):(e=i.toLowerCase()===i,r=n,n=i.toUpperCase()===i)}return t}(t)),t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}))}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var c,f=[],s=!1,l=-1;function p(){s&&c&&(s=!1,c.length?f=c.concat(f):l=-1,f.length&&y())}function y(){if(!s){var t=a(p);s=!0;for(var e=f.length;e;){for(c=f,f=[];++l<e;)c&&c[l].run();l=-1,e=f.length}c=null,s=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new d(t,e)),1!==f.length||s||a(y)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n,r=arguments.length,a=new Array(r>2?r-2:0),c=2;c<r;c++)a[c-2]=arguments[c];if("object"===u(t)&&t.__esModule)t=t.default;else if("$template"===t)return e.is?e.is.call(e.pageInstance,e.data):null;Array.isArray(e)&&(a=e,e=void 0);for(var f in e)Array.isArray(e[f])&&(e[f]=i(e[f]));return(n=o.default.render).createElement.apply(n,[t,e].concat(i(a)))};var o=function(t){return t&&t.__esModule?t:{default:t}}(n(4));function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(t){return(u="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null},t.exports=e.default},function(t,e,n){"use strict";t.exports=function(t){return""+t}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}t.exports=function(t){return void 0===t||null===t?"":"object"===o(t)?JSON.stringify(t,null,2):""+t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,r,o,i,u;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e.call(this,t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e.call(this,r+1,r);else if("[object Object]"==={}.toString.call(t))for(i=Object.keys(t),n=new Array(i.length),r=0,o=i.length;r<o;r++)u=i[r],n[r]=e.call(this,t[u],u,r);return n},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return function(){return console.warn("".concat(t," is not implemented.")),e?e.apply(this,arguments):null}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.$slots[e]},t.exports=e.default},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(t){var e={};return t.split(";").forEach(function(t){var n=i(t.split(/:(.+)/),2),r=n[0],o=n[1];r&&o&&(e[r.trim()]=o.trim())}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n={};Array.isArray(t)&&(t=t.reduce(function(t,e){return Object.assign(t,e)},{}));"string"==typeof t?Object.assign(n,u(t)):"object"===o(t)&&Object.assign(n,t);"string"==typeof e?Object.assign(n,u(e)):"object"===o(e)&&Object.assign(n,e);return n},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){r.default.render=t};var r=function(t){return t&&t.__esModule?t:{default:t}}(n(4));t.exports=e.default},function(t,e,n){"use strict";n.r(e);n(2),n(3);var r=n(0);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return null!==t&&"object"===o(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function a(){}var c=/[^\w.$]/;function f(t){for(var e="",n=0,r=t.length;n<r;n++)/[a-z]/.test(t[n])?e+=t[n]:/[A-Z]/.test(t[n])?e+="-"+t[n].toLowerCase():"-"===t[n]&&(e+="-");return"-"===e[0]?e.slice(1):e}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=0,p=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=l++,this.subs=[]}return function(t,e,n){e&&s(t.prototype,e),n&&s(t,n)}(t,[{key:"addSub",value:function(t){this.subs.push(t)}},{key:"removeSub",value:function(t){var e=this.subs.indexOf(t);if(e>-1)return this.subs.splice(e,1)}},{key:"depend",value:function(){t.target&&t.target.addDep(this)}},{key:"notify",value:function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()}}]),t}();p.target=null;var y=[];var d="undefined"==typeof navigator?"":navigator&&navigator.userAgent,h="undefined"!=typeof __windmill_environment__&&"iOS"===__windmill_environment__.platform,b=d&&/iphone|ipad|ipod|ios/.test(d)||h,v=[],m=!1,g=function(){setTimeout(_,0)};if("undefined"!=typeof Promise&&function(t){return"function"==typeof t&&/native code/.test(t.toString())}(Promise)){var w=Promise.resolve();g=function(){w.then(_),b&&setTimeout(function(){})}}function _(){m=!1;var t=v.slice(0);v.length=0;for(var e=0;e<t.length;e++)t[e]()}function O(t,e){var n;if(v.push(function(){if(t)try{t.call(e)}catch(t){console.error(t,e,"nextTick")}else n&&n(e)}),m||(m=!0,g()),!t)return new Promise(function(t){n=t})}var j=[],S={},P=!1,A=!1,k=0;function C(){for(A=!0,j.sort(function(t,e){return t.id-e.id}),k=0;k<j.length;k++){var t=j[k],e=t.id;S[e]=null,t.run()}j.length=0,S={},P=A=!1}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var T=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e||[]}return function(t,e,n){e&&x(t.prototype,e),n&&x(t,n)}(t,[{key:"has",value:function(t){for(var e=0,n=this.data.length;e<n;e++)if(this.data[e]===t)return!0;return!1}},{key:"add",value:function(t){return this.has(t)||this.data.push(t),this}},{key:"clear",value:function(){this.data=[]}}]),t}();function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var D=0,M=function(){function t(e,n,r,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.vm=e,i&&(e._watcher=this),e._watchers.push(this),o?(this.deep=!!o.deep,this.user=!!o.user,this.computed=!!o.computed,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.computed=this.sync=!1,this.cb=r,this.id=++D,this.active=!0,this.dirty=this.computed,this.deps=[],this.newDeps=[],this.depIds=new T,this.newDepIds=new T,this.expression="","function"==typeof n?this.getter=n:(this.getter=function(t){if(!c.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(n),this.getter||(this.getter=function(){})),this.computed?(this.value=void 0,this.dep=new p):this.value=this.get()}return function(t,e,n){e&&E(t.prototype,e),n&&E(t,n)}(t,[{key:"get",value:function(){var t;!function(t){p.target&&y.push(p.target),p.target=t}(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;console.error(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{p.target=y.pop(),this.cleanupDeps()}return t}},{key:"addDep",value:function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))}},{key:"cleanupDeps",value:function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0}},{key:"run",value:function(){this.active&&this.getAndInvoke(this.cb)}},{key:"update",value:function(){var t=this;this.computed?0===this.dep.subs.length?this.dirty=!0:this.getAndInvoke(function(){t.dep.notify()}):this.sync?this.run():function(t){var e=t.id;if(null==S[e]){if(S[e]=!0,A){for(var n=j.length-1;n>=0&&j[n].id>t.id;)n--;j.splice(Math.max(n,k)+1,0,t)}else j.push(t);P||(P=!0,O(C))}}(this)}},{key:"getAndInvoke",value:function(t){var e=this.get();if(e!==this.value||i(e)||this.deep){var n=this.value;if(this.value=e,this.dirty=!1,this.user)try{t.call(this.vm,e,n)}catch(t){console.error(t,this.vm,'callback for watcher "'.concat(this.expression,'"'))}else t.call(this.vm,e,n)}}},{key:"evaluate",value:function(){return this.dirty&&(this.value=this.get(),this.dirty=!1),this.value}},{key:"depend",value:function(){this.dep&&p.target&&this.dep.depend()}},{key:"teardown",value:function(){if(this.active){if(!this.vm._isBeingDestroyed){var t=this.vm._watchers;if(t.length){var e=t.indexOf(this);if(e>-1)return t.splice(e,1)}}for(var n=this.deps.length;n--;)this.deps[n].removeSub(this);this.active=!1}}}]),t}(),U={enumerable:!0,configurable:!0,get:a,set:a};function W(t,e,n){"function"==typeof n?(U.get=I(e),U.set=a):(U.get=n.get?!1!==n.cache?I(e):n.get:a,U.set=n.set?n.set:a),Object.defineProperty(t,e,U)}function I(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.depend(),e.evaluate()}}var L=["push","pop","shift","unshift","splice","sort","reverse"];function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){z(t,e,n[e])})}return t}function z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Z=Array.prototype;function R(t,e){if(i(t))return t&&Object.hasOwnProperty.call(t,"__ob__")&&t.__ob__ instanceof B?t.__ob__:new B(t,e)}var B=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e,this.dep=new p,Object.defineProperty(e,"__ob__",{value:this,enumerable:!1,writable:!0,configurable:!0}),Array.isArray(e)?(e.__proto__=function(t){var e=Object.create(Z);return L.forEach(function(n){var r=Z[n];Object.defineProperty(e,n,{value:function(){for(var e=this.__ob__,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];var a,c=r.apply(this,i);switch(n){case"push":case"unshift":a=i;break;case"splice":a=i.slice(2)}return a&&e.observeArray(a),"function"==typeof t.afterSetter&&t.afterSetter(this),e.dep.notify(),c},enumerable:!0,writable:!0,configurable:!0})}),e}(n),this.observeArray(e,n)):u(e)&&this.walk(e,n)}return function(t,e,n){e&&N(t.prototype,e),n&&N(t,n)}(t,[{key:"walk",value:function(t,e){for(var n=Object.keys(t),r=0;r<n.length;r++)X(t,n[r],void 0,e)}},{key:"observeArray",value:function(t,e){for(var n=0,r=t.length;n<r;n++)R(t[n],e)}}]),t}();function X(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new p,i=Object.getOwnPropertyDescriptor(t,e);if(!i||!1!==i.configurable){var u=i&&i.get,a=i&&i.set;u&&!a||void 0!==n||(n=t[e]);var c=[];Array.isArray(r.parents)&&(c=c.concat(r.parents)),c.push(e);var f=R(n,$({},r,{parents:c}));Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=u?u.call(t):n;return p.target&&(o.depend(),f&&(f.dep.depend(),Array.isArray(e)&&function t(e){for(var n,r=0,o=e.length;r<o;r++)(n=e[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e))),e},set:function(e){var i=u?u.call(t):n;e===i||e!=e&&i!=i||(o.notify(),a?a.call(t,e):n=e,"function"==typeof r.afterSetter&&r.afterSetter(e),f=R(e,$({},r,{parents:c})),o.notify())}})}}var V=R;function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var G=!0;function J(t,e,n){var r=!1;V(t,{afterSetter:function(){r=!0,O(function(){G&&r&&(e.forceUpdate(),r=!1)},e)}})}function q(t,e){var n={};function r(t){var e=function(t){return t&&Object.hasOwnProperty.call(t,"props")&&t.props.slot||"default"}(t);null!==e&&(n[e]=n[e]||[],n[e].push(t),function(t){t&&Object.hasOwnProperty.call(t,"props")&&delete t.props.slot}(t))}if(Array.isArray(e))for(var o=0,i=e.length;o<i;o++)r(e[o]);else r(e);Object.defineProperty(t,"$slots",{enumerable:!1,configurable:!0,get:function(){return n}})}function H(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function K(t,e,n){if(u(e))return H(this,t,e,n);(n=n||{}).user=!0;var r=new M(this,t,e,n);return n.immediate&&e.call(this,r.value),function(){r.teardown()}}function Q(t){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var tt=new Set,et=function(){function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==Q(e))throw new TypeError("SFC Config must be an object.");"function"==typeof e.beforeCreate&&e.beforeCreate.call(null),Object.defineProperty(this,"_watchers",{enumerable:!1,value:[]}),e._global&&Object.defineProperty(this,"_global",{enumerable:!1,value:e._global}),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r={};if(Object.defineProperty(t,"$props",{get:function(){return r}}),n){var o=[];if(Array.isArray(n))n.forEach(function(t){"string"==typeof t&&o.push({key:t})});else if(u(n))for(var i=Object.keys(n),a=0,c=i.length;a<c;a++){var f=i[a],s=n[f].default;o.push({key:f,defaultVal:s})}t._props=r;for(var l=0,p=o.length;l<p;l++){var y=o[l],d=y.key,h=y.defaultVal;e.hasOwnProperty(d)?r[d]=e[d]:r[d]=h,X(t,d,r[d],{afterSetter:function(){t.forceUpdate()}})}}}(this,e.propsData,e.props),e.methods&&Object.keys(e.methods).forEach(function(t){n[t]=e.methods[t].bind(n)}),function(t,e){var n=t.data,r=F(e.data);n="function"===r?e.data.call(t):{},t._data=n,Object.defineProperty(t,"$data",{get:function(){return n}}),n&&(J(n,t),Object.keys(n).forEach(function(e){t[e]=n[e],Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[e]},set:function(t){n[e]=t}})}))}(this,e),q(this,e.children),Object.defineProperty(this,"$options",{enumerable:!1,configurable:!0,get:function(){return e}}),function(t,e){if(u(e)){var n=t._computedWatchers=Object.create(null);for(var r in e){var o=e[r],i="function"==typeof o?o:o.get;n[r]=new M(t,i||a,a,{computed:!0}),r in t||W(t,r,o)}}}(this,e.computed),function(t,e){if(Object.defineProperty(t,"$watch",{enumerable:!1,value:K}),u(e))for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)H(t,n,r[o]);else H(t,n,r)}}(this,e.watch),"function"==typeof e.created&&e.created.call(this)}return function(t,e,n){e&&Y(t.prototype,e),n&&Y(t,n)}(t,[{key:"render",value:function(){return null}},{key:"forceUpdate",value:function(){}}],[{key:"use",value:function(e,n){if(null==e)throw new TypeError("Plugin should not be undefined or null");tt.has(e)||(e.install(t,n),tt.add(e))}}]),t}(),nt=n(1),rt=n.n(nt);var ot={beforeMount:"componentWillMount",mounted:"componentDidMount",beforeUpdate:"componentWillUpdate",updated:"componentDidUpdate",beforeDestroy:"componentWillUnmount"};function it(t){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ct(t,e){return(ct=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ft(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function st(t,e,n,o){rt.a._r(o),t.components?(Object.keys(t.components).forEach(function(e){var n=t.components[e];!0===n.__esModule&&"function"==typeof n.default&&(t.components[e]=n.default)}),function(t){for(var e=Object.keys(t),n=0,r=e.length;n<r;n++)/[A-Z]/.test(e[n][0])&&(t[e[n][0].toLowerCase()+e[n].slice(1)]=t[e[n]]),t[f(e[n])]=t[e[n]]}(t.components)):t.components={};var i="string"==typeof n,u=e(n,t,rt.a,r.isWeex);return function(e){function r(e,a){var c;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var f=(c=function(t,e){return!e||"object"!==it(e)&&"function"!=typeof e?ft(t):e}(this,at(r).call(this,e,a))).vm=new et(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){ut(t,e,n[e])})}return t}({},t,{propsData:e,children:e.children}));!function(t,e,n,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!1,get:function(){return n[r]}})}(f,"$refs",ft(ft(c)),"refs");for(var s=Object.keys(ot),l=0,p=s.length;l<p;l++)"function"==typeof t[s[l]]&&(c[ot[s[l]]]=t[s[l]].bind(f));if("function"==typeof t.destroyed){var y=c.componentWillUnmount;c.componentWillUnmount=function(){y&&y.call(this),O(t.destroyed,f)}}var d=c.componentWillReceiveProps;return c.componentWillReceiveProps=function(t){if(d&&d.apply(f,arguments),t!==this.props&&f.hasOwnProperty("_props"))for(var e=Object.keys(t),n=0,r=e.length;n<r;n++){var o=e[n];f._props.hasOwnProperty(o)&&f._props[o]!==t[o]&&(f[o]=t[o])}t.children!==this.props.children&&q(f,t.children)},f.forceUpdate=c.forceUpdate.bind(ft(ft(c))),c.render=function(){var t=u.call(f);return i&&n.length>0?[o.createElement("style",null,n),t]:t},c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ct(t,e)}(r,o.Component),r}()}n.d(e,"adapterComponent",function(){return st});e.default=et}]); | ||
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(t,e,n){"use strict";(function(n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.isReactNative=e.isWeex=e.isNode=e.isWeb=void 0;var i="object"===("undefined"==typeof navigator?"undefined":o(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product);e.isWeb=i;var u=void 0!==n&&!(!n.versions||!n.versions.node);e.isNode=u;var a="function"==typeof callNative||"object"===("undefined"==typeof WXEnvironment?"undefined":o(WXEnvironment))&&"Web"!==WXEnvironment.platform;e.isWeex=a;var c="undefined"!=typeof __fbBatchedBridgeConfig;e.isReactNative=c,e.default=t.exports;var f=t.exports;e.default=f}).call(this,n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(n(7)),o=l(n(8)),i=l(n(9)),u=l(n(10)),a=l(n(11)),c=l(n(12)),f=l(n(13)),s=l(n(14));function l(t){return t&&t.__esModule?t:{default:t}}var p={_r:l(n(15)).default,_c:r.default,_s:u.default,_l:a.default,_t:f.default,_m:(0,c.default)("v-once"),_v:i.default,_e:o.default,_cx:s.default};e.default=p,t.exports=e.default},function(t,e,n){"use strict";var r=n(5);t.exports=function(){var t=r.apply(r,arguments);return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,n){"use strict";t.exports=function(t,e){e=Object.assign({pascalCase:!1},e);var n=function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t};return 0===(t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim()).length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():/^[a-z\d]+$/.test(t)?n(t):(t!==t.toLowerCase()&&(t=function(t){for(var e=!1,n=!1,r=!1,o=0;o<t.length;o++){var i=t[o];e&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(t=t.slice(0,o-1)+"-"+t.slice(o-1),r=n,n=!1,e=!0):(e=i.toLowerCase()===i,r=n,n=i.toUpperCase()===i)}return t}(t)),n(t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={render:null},t.exports=e.default},function(t,e,n){"use strict";t.exports=function(t){return 0===(t=arguments.length>1?Array.from(arguments).map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim()).length?"":1===t.length?t.toLowerCase():/^[a-z0-9]+$/.test(t)?t:(t!==t.toLowerCase()&&(t=function(t){for(var e=!1,n=!1,r=!1,o=0;o<t.length;o++){var i=t[o];e&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(t=t.substr(0,o)+"-"+t.substr(o),e=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(t=t.substr(0,o-1)+"-"+t.substr(o-1),r=n,n=!1,e=!0):(e=i.toLowerCase()===i,r=n,n=i.toUpperCase()===i)}return t}(t)),t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}))}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var c,f=[],s=!1,l=-1;function p(){s&&c&&(s=!1,c.length?f=c.concat(f):l=-1,f.length&&y())}function y(){if(!s){var t=a(p);s=!0;for(var e=f.length;e;){for(c=f,f=[];++l<e;)c&&c[l].run();l=-1,e=f.length}c=null,s=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new d(t,e)),1!==f.length||s||a(y)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n,r=arguments.length,a=new Array(r>2?r-2:0),c=2;c<r;c++)a[c-2]=arguments[c];if("object"===u(t)&&t.__esModule)t=t.default;else if("$template"===t)return e.is?e.is.call(e.pageInstance,e.data):null;Array.isArray(e)&&(a=e,e=void 0);for(var f in e)Array.isArray(e[f])&&(e[f]=i(e[f]));return(n=o.default.render).createElement.apply(n,[t,e].concat(i(a)))};var o=function(t){return t&&t.__esModule?t:{default:t}}(n(4));function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(t){return(u="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null},t.exports=e.default},function(t,e,n){"use strict";t.exports=function(t){return""+t}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}t.exports=function(t){return void 0===t||null===t?"":"object"===o(t)?JSON.stringify(t,null,2):""+t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,r,o,i,u;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e.call(this,t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e.call(this,r+1,r);else if("[object Object]"==={}.toString.call(t))for(i=Object.keys(t),n=new Array(i.length),r=0,o=i.length;r<o;r++)u=i[r],n[r]=e.call(this,t[u],u,r);return n},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return function(){return console.warn("".concat(t," is not implemented.")),e?e.apply(this,arguments):null}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.$slots[e]},t.exports=e.default},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return(i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n={};Array.isArray(t)&&(t=t.reduce(function(t,e){return Object.assign(t,e)},{}));"string"==typeof t?Object.assign(n,a(t)):"object"===i(t)&&Object.assign(n,t);"string"==typeof e?Object.assign(n,a(e)):"object"===i(e)&&Object.assign(n,e);if(4===arguments.length)for(var r=arguments[2],o=function t(){var e=[];for(var n=0;n<arguments.length;n++){var r=arguments[n];if(r){var o=i(r);if("string"===o)e=e.concat(r.split(" "));else if("number"===o)e.push(r);else if(Array.isArray(r))e.push(t.apply(null,r));else if("object"===o)for(var a in r)u.call(r,a)&&r[a]&&e.push(a)}}return[].concat.apply([],e)}(arguments[3]),c=0,f=o.length;c<f;c++){var s=o[c];u.call(r,s)&&Object.assign(n,r[s])}return n};var u={}.hasOwnProperty;function a(t){var e={};return t.split(";").forEach(function(t){var n=o(t.split(/:(.+)/),2),r=n[0],i=n[1];r&&i&&(e[r.trim()]=i.trim())}),e}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){r.default.render=t};var r=function(t){return t&&t.__esModule?t:{default:t}}(n(4));t.exports=e.default},function(t,e,n){"use strict";n.r(e);n(2),n(3);var r=n(0);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return null!==t&&"object"===o(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function a(){}var c=/[^\w.$]/;function f(t){for(var e="",n=0,r=t.length;n<r;n++)/[a-z]/.test(t[n])?e+=t[n]:/[A-Z]/.test(t[n])?e+="-"+t[n].toLowerCase():"-"===t[n]&&(e+="-");return"-"===e[0]?e.slice(1):e}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=0,p=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=l++,this.subs=[]}return function(t,e,n){e&&s(t.prototype,e),n&&s(t,n)}(t,[{key:"addSub",value:function(t){this.subs.push(t)}},{key:"removeSub",value:function(t){var e=this.subs.indexOf(t);if(e>-1)return this.subs.splice(e,1)}},{key:"depend",value:function(){t.target&&t.target.addDep(this)}},{key:"notify",value:function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()}}]),t}();p.target=null;var y=[];var d="undefined"==typeof navigator?"":navigator&&navigator.userAgent,h="undefined"!=typeof __windmill_environment__&&"iOS"===__windmill_environment__.platform,b=d&&/iphone|ipad|ipod|ios/.test(d)||h,v=[],m=!1,g=function(){setTimeout(_,0)};if("undefined"!=typeof Promise&&function(t){return"function"==typeof t&&/native code/.test(t.toString())}(Promise)){var w=Promise.resolve();g=function(){w.then(_),b&&setTimeout(function(){})}}function _(){m=!1;var t=v.slice(0);v.length=0;for(var e=0;e<t.length;e++)t[e]()}function O(t,e){var n;if(v.push(function(){if(t)try{t.call(e)}catch(t){console.error(t,e,"nextTick")}else n&&n(e)}),m||(m=!0,g()),!t)return new Promise(function(t){n=t})}var j=[],S={},P=!1,A=!1,k=0;function C(){for(A=!0,j.sort(function(t,e){return t.id-e.id}),k=0;k<j.length;k++){var t=j[k],e=t.id;S[e]=null,t.run()}j.length=0,S={},P=A=!1}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var T=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e||[]}return function(t,e,n){e&&x(t.prototype,e),n&&x(t,n)}(t,[{key:"has",value:function(t){for(var e=0,n=this.data.length;e<n;e++)if(this.data[e]===t)return!0;return!1}},{key:"add",value:function(t){return this.has(t)||this.data.push(t),this}},{key:"clear",value:function(){this.data=[]}}]),t}();function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var D=0,M=function(){function t(e,n,r,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.vm=e,i&&(e._watcher=this),e._watchers.push(this),o?(this.deep=!!o.deep,this.user=!!o.user,this.computed=!!o.computed,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.computed=this.sync=!1,this.cb=r,this.id=++D,this.active=!0,this.dirty=this.computed,this.deps=[],this.newDeps=[],this.depIds=new T,this.newDepIds=new T,this.expression="","function"==typeof n?this.getter=n:(this.getter=function(t){if(!c.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(n),this.getter||(this.getter=function(){})),this.computed?(this.value=void 0,this.dep=new p):this.value=this.get()}return function(t,e,n){e&&E(t.prototype,e),n&&E(t,n)}(t,[{key:"get",value:function(){var t;!function(t){p.target&&y.push(p.target),p.target=t}(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;console.error(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{p.target=y.pop(),this.cleanupDeps()}return t}},{key:"addDep",value:function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))}},{key:"cleanupDeps",value:function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0}},{key:"run",value:function(){this.active&&this.getAndInvoke(this.cb)}},{key:"update",value:function(){var t=this;this.computed?0===this.dep.subs.length?this.dirty=!0:this.getAndInvoke(function(){t.dep.notify()}):this.sync?this.run():function(t){var e=t.id;if(null==S[e]){if(S[e]=!0,A){for(var n=j.length-1;n>=0&&j[n].id>t.id;)n--;j.splice(Math.max(n,k)+1,0,t)}else j.push(t);P||(P=!0,O(C))}}(this)}},{key:"getAndInvoke",value:function(t){var e=this.get();if(e!==this.value||i(e)||this.deep){var n=this.value;if(this.value=e,this.dirty=!1,this.user)try{t.call(this.vm,e,n)}catch(t){console.error(t,this.vm,'callback for watcher "'.concat(this.expression,'"'))}else t.call(this.vm,e,n)}}},{key:"evaluate",value:function(){return this.dirty&&(this.value=this.get(),this.dirty=!1),this.value}},{key:"depend",value:function(){this.dep&&p.target&&this.dep.depend()}},{key:"teardown",value:function(){if(this.active){if(!this.vm._isBeingDestroyed){var t=this.vm._watchers;if(t.length){var e=t.indexOf(this);if(e>-1)return t.splice(e,1)}}for(var n=this.deps.length;n--;)this.deps[n].removeSub(this);this.active=!1}}}]),t}(),U={enumerable:!0,configurable:!0,get:a,set:a};function W(t,e,n){"function"==typeof n?(U.get=I(e),U.set=a):(U.get=n.get?!1!==n.cache?I(e):n.get:a,U.set=n.set?n.set:a),Object.defineProperty(t,e,U)}function I(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.depend(),e.evaluate()}}var L=["push","pop","shift","unshift","splice","sort","reverse"];function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){z(t,e,n[e])})}return t}function z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Z=Array.prototype;function R(t,e){if(i(t))return t&&Object.hasOwnProperty.call(t,"__ob__")&&t.__ob__ instanceof B?t.__ob__:new B(t,e)}var B=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e,this.dep=new p,Object.defineProperty(e,"__ob__",{value:this,enumerable:!1,writable:!0,configurable:!0}),Array.isArray(e)?(e.__proto__=function(t){var e=Object.create(Z);return L.forEach(function(n){var r=Z[n];Object.defineProperty(e,n,{value:function(){for(var e=this.__ob__,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];var a,c=r.apply(this,i);switch(n){case"push":case"unshift":a=i;break;case"splice":a=i.slice(2)}return a&&e.observeArray(a),"function"==typeof t.afterSetter&&t.afterSetter(this),e.dep.notify(),c},enumerable:!0,writable:!0,configurable:!0})}),e}(n),this.observeArray(e,n)):u(e)&&this.walk(e,n)}return function(t,e,n){e&&N(t.prototype,e),n&&N(t,n)}(t,[{key:"walk",value:function(t,e){for(var n=Object.keys(t),r=0;r<n.length;r++)X(t,n[r],void 0,e)}},{key:"observeArray",value:function(t,e){for(var n=0,r=t.length;n<r;n++)R(t[n],e)}}]),t}();function X(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new p,i=Object.getOwnPropertyDescriptor(t,e);if(!i||!1!==i.configurable){var u=i&&i.get,a=i&&i.set;u&&!a||void 0!==n||(n=t[e]);var c=[];Array.isArray(r.parents)&&(c=c.concat(r.parents)),c.push(e);var f=R(n,$({},r,{parents:c}));Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=u?u.call(t):n;return p.target&&(o.depend(),f&&(f.dep.depend(),Array.isArray(e)&&function t(e){for(var n,r=0,o=e.length;r<o;r++)(n=e[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e))),e},set:function(e){var i=u?u.call(t):n;e===i||e!=e&&i!=i||(o.notify(),a?a.call(t,e):n=e,"function"==typeof r.afterSetter&&r.afterSetter(e),f=R(e,$({},r,{parents:c})),o.notify())}})}}var V=R;function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var G=!0;function J(t,e,n){var r=!1;V(t,{afterSetter:function(){r=!0,O(function(){G&&r&&(e.forceUpdate(),r=!1)},e)}})}function q(t,e){var n={};function r(t){var e=function(t){return t&&Object.hasOwnProperty.call(t,"props")&&t.props.slot||"default"}(t);null!==e&&(n[e]=n[e]||[],n[e].push(t),function(t){t&&Object.hasOwnProperty.call(t,"props")&&delete t.props.slot}(t))}if(Array.isArray(e))for(var o=0,i=e.length;o<i;o++)r(e[o]);else r(e);Object.defineProperty(t,"$slots",{enumerable:!1,configurable:!0,get:function(){return n}})}function H(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function K(t,e,n){if(u(e))return H(this,t,e,n);(n=n||{}).user=!0;var r=new M(this,t,e,n);return n.immediate&&e.call(this,r.value),function(){r.teardown()}}function Q(t){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var tt=new Set,et=function(){function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==Q(e))throw new TypeError("SFC Config must be an object.");"function"==typeof e.beforeCreate&&e.beforeCreate.call(null),Object.defineProperty(this,"_watchers",{enumerable:!1,value:[]}),e._global&&Object.defineProperty(this,"_global",{enumerable:!1,value:e._global}),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r={};if(Object.defineProperty(t,"$props",{get:function(){return r}}),n){var o=[];if(Array.isArray(n))n.forEach(function(t){"string"==typeof t&&o.push({key:t})});else if(u(n))for(var i=Object.keys(n),a=0,c=i.length;a<c;a++){var f=i[a],s=n[f].default;o.push({key:f,defaultVal:s})}t._props=r;for(var l=0,p=o.length;l<p;l++){var y=o[l],d=y.key,h=y.defaultVal;e.hasOwnProperty(d)?r[d]=e[d]:r[d]=h,X(t,d,r[d],{afterSetter:function(){t.forceUpdate()}})}}}(this,e.propsData,e.props),e.methods&&Object.keys(e.methods).forEach(function(t){n[t]=e.methods[t].bind(n)}),function(t,e){var n=t.data,r=F(e.data);n="function"===r?e.data.call(t):{},t._data=n,Object.defineProperty(t,"$data",{get:function(){return n}}),n&&(J(n,t),Object.keys(n).forEach(function(e){t[e]=n[e],Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[e]},set:function(t){n[e]=t}})}))}(this,e),q(this,e.children),Object.defineProperty(this,"$options",{enumerable:!1,configurable:!0,get:function(){return e}}),function(t,e){if(u(e)){var n=t._computedWatchers=Object.create(null);for(var r in e){var o=e[r],i="function"==typeof o?o:o.get;n[r]=new M(t,i||a,a,{computed:!0}),r in t||W(t,r,o)}}}(this,e.computed),function(t,e){if(Object.defineProperty(t,"$watch",{enumerable:!1,value:K}),u(e))for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)H(t,n,r[o]);else H(t,n,r)}}(this,e.watch),"function"==typeof e.created&&e.created.call(this)}return function(t,e,n){e&&Y(t.prototype,e),n&&Y(t,n)}(t,[{key:"render",value:function(){return null}},{key:"forceUpdate",value:function(){}}],[{key:"use",value:function(e,n){if(null==e)throw new TypeError("Plugin should not be undefined or null");tt.has(e)||(e.install(t,n),tt.add(e))}}]),t}(),nt=n(1),rt=n.n(nt);var ot={beforeMount:"componentWillMount",mounted:"componentDidMount",beforeUpdate:"componentWillUpdate",updated:"componentDidUpdate",beforeDestroy:"componentWillUnmount"};function it(t){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ct(t,e){return(ct=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ft(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function st(t,e,n,o){rt.a._r(o),t.components?(Object.keys(t.components).forEach(function(e){var n=t.components[e];!0===n.__esModule&&"function"==typeof n.default&&(t.components[e]=n.default)}),function(t){for(var e=Object.keys(t),n=0,r=e.length;n<r;n++)/[A-Z]/.test(e[n][0])&&(t[e[n][0].toLowerCase()+e[n].slice(1)]=t[e[n]]),t[f(e[n])]=t[e[n]]}(t.components)):t.components={};var i="string"==typeof n,u=e(n,t,rt.a,r.isWeex);return function(e){function r(e,a){var c;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var f=(c=function(t,e){return!e||"object"!==it(e)&&"function"!=typeof e?ft(t):e}(this,at(r).call(this,e,a))).vm=new et(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){ut(t,e,n[e])})}return t}({},t,{propsData:e,children:e.children}));!function(t,e,n,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!1,get:function(){return n[r]}})}(f,"$refs",ft(ft(c)),"refs");for(var s=Object.keys(ot),l=0,p=s.length;l<p;l++)"function"==typeof t[s[l]]&&(c[ot[s[l]]]=t[s[l]].bind(f));if("function"==typeof t.destroyed){var y=c.componentWillUnmount;c.componentWillUnmount=function(){y&&y.call(this),O(t.destroyed,f)}}var d=c.componentWillReceiveProps;return c.componentWillReceiveProps=function(t){if(d&&d.apply(f,arguments),t!==this.props&&f.hasOwnProperty("_props"))for(var e=Object.keys(t),n=0,r=e.length;n<r;n++){var o=e[n];f._props.hasOwnProperty(o)&&f._props[o]!==t[o]&&(f[o]=t[o])}t.children!==this.props.children&&q(f,t.children)},f.forceUpdate=c.forceUpdate.bind(ft(ft(c))),c.render=function(){var t=u.call(f);return i&&n.length>0?[o.createElement("style",null,n),t]:t},c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ct(t,e)}(r,o.Component),r}()}n.d(e,"adapterComponent",function(){return st});e.default=et}]); |
{ | ||
"name": "sfc-runtime", | ||
"version": "0.7.1-2", | ||
"version": "0.7.1-3", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "description": "SFC DSL Runtime", |
107200