From 8555d6ccadc1a410fc0b9268b7121f86d06a6409 Mon Sep 17 00:00:00 2001 From: musicode Date: Mon, 12 Apr 2021 15:14:46 +0800 Subject: [PATCH] bump 1.0.0-alpha.218 --- dist/legacy/dev/yox.esm.js | 53 +++++++--------------------- dist/legacy/dev/yox.esm.js.map | 2 +- dist/legacy/dev/yox.esm.min.js | 2 +- dist/legacy/dev/yox.js | 51 ++++++-------------------- dist/legacy/dev/yox.js.map | 2 +- dist/legacy/dev/yox.min.js | 2 +- dist/legacy/prod/yox.esm.js | 53 +++++++--------------------- dist/legacy/prod/yox.esm.js.map | 2 +- dist/legacy/prod/yox.esm.min.js | 2 +- dist/legacy/prod/yox.js | 51 ++++++-------------------- dist/legacy/prod/yox.js.map | 2 +- dist/legacy/prod/yox.min.js | 2 +- dist/legacy/pure/yox.esm.js | 34 +++++++----------- dist/legacy/pure/yox.esm.js.map | 2 +- dist/legacy/pure/yox.esm.min.js | 2 +- dist/legacy/pure/yox.js | 32 ++++++----------- dist/legacy/pure/yox.js.map | 2 +- dist/legacy/pure/yox.min.js | 2 +- dist/legacy/runtime/yox.esm.js | 53 +++++++--------------------- dist/legacy/runtime/yox.esm.js.map | 2 +- dist/legacy/runtime/yox.esm.min.js | 2 +- dist/legacy/runtime/yox.js | 51 ++++++-------------------- dist/legacy/runtime/yox.js.map | 2 +- dist/legacy/runtime/yox.min.js | 2 +- dist/standard/dev/yox.esm.js | 53 +++++++--------------------- dist/standard/dev/yox.esm.js.map | 2 +- dist/standard/dev/yox.esm.min.js | 2 +- dist/standard/dev/yox.js | 51 ++++++-------------------- dist/standard/dev/yox.js.map | 2 +- dist/standard/dev/yox.min.js | 2 +- dist/standard/prod/yox.esm.js | 53 +++++++--------------------- dist/standard/prod/yox.esm.js.map | 2 +- dist/standard/prod/yox.esm.min.js | 2 +- dist/standard/prod/yox.js | 51 ++++++-------------------- dist/standard/prod/yox.js.map | 2 +- dist/standard/prod/yox.min.js | 2 +- dist/standard/pure/yox.esm.js | 4 +-- dist/standard/pure/yox.esm.min.js | 2 +- dist/standard/pure/yox.js | 4 +-- dist/standard/pure/yox.min.js | 2 +- dist/standard/runtime/yox.esm.js | 23 ++---------- dist/standard/runtime/yox.esm.js.map | 2 +- dist/standard/runtime/yox.esm.min.js | 2 +- dist/standard/runtime/yox.js | 23 ++---------- dist/standard/runtime/yox.js.map | 2 +- dist/standard/runtime/yox.min.js | 2 +- package.json | 2 +- 47 files changed, 183 insertions(+), 519 deletions(-) diff --git a/dist/legacy/dev/yox.esm.js b/dist/legacy/dev/yox.esm.js index 0072dfc8..dfa62609 100644 --- a/dist/legacy/dev/yox.esm.js +++ b/dist/legacy/dev/yox.esm.js @@ -1,5 +1,5 @@ /** - * yox.js v1.0.0-alpha.217 + * yox.js v1.0.0-alpha.218 * (c) 2017-2021 musicode * Released under the MIT License. */ @@ -2067,11 +2067,7 @@ function removeVnodes(api, parentNode, vnodes, startIndex, endIndex) { } function removeVnode(api, parentNode, vnode) { const { node, component } = vnode; - if (vnode.isStatic) { - destroyStaticVnode(api, vnode); - api.remove(parentNode, node); - } - else if (vnode.isText || vnode.isComment) { + if (vnode.isStatic || vnode.isText || vnode.isComment) { api.remove(parentNode, node); } else { @@ -2087,16 +2083,6 @@ function removeVnode(api, parentNode, vnode) { leaveVnode(vnode, component, done); } } -function destroyStaticVnode(api, vnode) { - const { children } = vnode; - vnode.data = - vnode.node = UNDEFINED$1; - if (children) { - each$2(children, function (child) { - destroyStaticVnode(api, child); - }); - } -} function destroyVnode(api, vnode) { const { data, children } = vnode; if (vnode.isComponent) { @@ -2353,9 +2339,6 @@ function destroy(api, vnode, isRemove) { } removeVnode(api, parentNode, vnode); } - else if (vnode.isStatic) { - destroyStaticVnode(api, vnode); - } else { destroyVnode(api, vnode); } @@ -5149,14 +5132,14 @@ class Map { return keys(this.fields).length > 0; } toString(tabSize) { - const { fields } = this, items = [], keys$1 = keys(fields); + const { fields } = this, // 按字典排序显得比较有规律 - each$2(keys$1.sort(), function (key) { - push(items, { + items = keys(fields).sort().map(function (key) { + return { toString(tabSize) { return toObjectPair(key, fields[key].toString(tabSize)); } - }); + }; }); return toTuple('{', '}', ',', TRUE$1, 1, items).toString(tabSize); } @@ -5873,24 +5856,19 @@ function generateSelfAndGlobalReader(self, global, name) { ])); } function generateCommentVnode() { - const result = addVar(toMap({ - isStatic: toPrimitive(TRUE$1), + const result = toMap({ isComment: toPrimitive(TRUE$1), text: toPrimitive(EMPTY_STRING), - })); + }); return last(dynamicChildrenStack) ? appendDynamicChildVnode(result) : result; } -function generateTextVnode(text, isStatic) { - let result = toMap({ - isStatic: toPrimitive(isStatic), +function generateTextVnode(text) { + const result = toMap({ isText: toPrimitive(TRUE$1), text, }); - if (isStatic) { - result = addVar(result); - } return last(dynamicChildrenStack) ? appendDynamicChildVnode(result) : result; @@ -6012,6 +5990,7 @@ nodeGenerator[ELEMENT] = function (node) { } return toCall(RENDER_SLOT, args); } + data.set('context', ARG_INSTANCE); // 如果是动态组件,tag 会是一个标识符表达式 data.set('tag', dynamicTag ? generateExpression(dynamicTag) @@ -6153,9 +6132,6 @@ nodeGenerator[ELEMENT] = function (node) { if (node.isStatic) { data.set('isStatic', toPrimitive(TRUE$1)); } - else { - data.set('context', ARG_INSTANCE); - } let result; if (isComponent) { if (outputAttrs || outputSlots) { @@ -6181,9 +6157,6 @@ nodeGenerator[ELEMENT] = function (node) { else { result = data; } - if (node.isStatic) { - result = addVar(result); - } } return last(dynamicChildrenStack) ? appendDynamicChildVnode(result) @@ -6398,7 +6371,7 @@ nodeGenerator[SPREAD] = function (node) { nodeGenerator[TEXT] = function (node) { const text = toPrimitive(node.text); return last(vnodeStack) - ? generateTextVnode(text, TRUE$1) + ? generateTextVnode(text) : text; }; nodeGenerator[EXPRESSION] = function (node) { @@ -8745,7 +8718,7 @@ class Yox { /** * core 版本 */ -Yox.version = "1.0.0-alpha.217"; +Yox.version = "1.0.0-alpha.218"; /** * 方便外部共用的通用逻辑,特别是写插件,减少重复代码 */ diff --git a/dist/legacy/dev/yox.esm.js.map b/dist/legacy/dev/yox.esm.js.map index f4f2c4cc..b88a482a 100644 --- a/dist/legacy/dev/yox.esm.js.map +++ b/dist/legacy/dev/yox.esm.js.map @@ -1 +1 @@ -{"version":3,"file":"yox.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/legacy/dev/yox.esm.min.js b/dist/legacy/dev/yox.esm.min.js index b82e6149..b13067fc 100644 --- a/dist/legacy/dev/yox.esm.min.js +++ b/dist/legacy/dev/yox.esm.min.js @@ -1,2 +1,2 @@ -const e=/^!(?:\s|--)/,t="undefined"!=typeof window?window:undefined,n="undefined"!=typeof document?document:undefined,i=function(){},r=Object.freeze({}),o=Object.freeze([]),s=/yox/.test(i.toString())?2:3,c={leftDelimiter:"{",rightDelimiter:"}",uglifyCompiled:false,minifyCompiled:false,logLevel:s};function a(e){return"function"==typeof e}function u(e){return Array.isArray(e)}function f(e){return null!==e&&"object"==typeof e}function l(e){return"string"==typeof e}function d(e){return"number"==typeof e&&!isNaN(e)}function p(e){return"boolean"==typeof e}function h(e){return d(e)||l(e)&&!isNaN(parseFloat(e))&&isFinite(e)}var m=Object.freeze({__proto__:null,func:a,array:u,object:f,string:l,number:d,boolean:p,numeric:h});function g(e,t,n){if(a(e))return u(n)?e.apply(t,n):undefined!==t?e.call(t,n):undefined!==n?e(n):e()}class v{constructor(e,t){this.type=e,this.phase=v.PHASE_CURRENT,t&&(this.originalEvent=t)}static is(e){return e instanceof v}preventDefault(){const e=this;if(!e.isPrevented){const{originalEvent:t}=e;t&&t.preventDefault(),e.isPrevented=true}return e}stopPropagation(){const e=this;if(!e.isStoped){const{originalEvent:t}=e;t&&t.stopPropagation(),e.isStoped=true}return e}prevent(){return this.preventDefault()}stop(){return this.stopPropagation()}}function y(e,t,n){const{length:i}=e;if(i)if(n)for(let n=i-1;n>=0&&false!==t(e[n],n);n--);else for(let n=0;n0)return e[t-1]}function _(e){const{length:t}=e;if(t>0)return e.pop()}function C(e,t,n){let i=0;return y(e,(function(r,o){(false===n?r==t:r===t)&&(e.splice(o,1),i++)}),true),i}function E(e,t,n){return w(e,t,n)>=0}function A(e){return u(e)?e:g(o.slice,e)}function O(e,t){return e.join(t)}function L(e){return!u(e)||!e.length}v.PHASE_CURRENT=0,v.PHASE_UPWARD=1,v.PHASE_DOWNWARD=-1;var P=Object.freeze({__proto__:null,each:y,push:x,unshift:T,indexOf:w,last:S,pop:_,remove:C,has:E,toArray:A,toObject:function(e,t,n){let i={};return y(e,(function(e){i[t?e[t]:e]=n||e})),i},join:O,falsy:L});function z(e,t){return null!=e&&e.toString?e.toString():undefined!==t?t:""}function N(e){return a(e)&&z(e).indexOf("[native code]")>=0}let j=function(){const e=Object.create(null);return{get:t=>e[t],set(t,n){e[t]=n},has:t=>t in e,keys:()=>Object.keys(e)}};N(Object.create)||(j=function(){const e={};return{get:t=>e.hasOwnProperty(t)?e[t]:undefined,set(t,n){e[t]=n},has:t=>e.hasOwnProperty(t),keys:()=>Object.keys(e)}});var D=j;function I(e){const t=D();return function(n){const i=t.get(n);if(undefined!==i)return i;const r=e(n);return t.set(n,r),r}}function q(e){const t=D();return function(n,i){let r=t.get(n);if(r){const e=r.get(i);if(e)return e}else r=D(),t.set(n,r);const o=e(n,i);return r.set(i,o),o}}const H=/-([a-z])/gi,R=/\B([A-Z])/g,M=/^[a-z]/,U=I((function(e){return e.replace(H,(function(e,t){return ee(t)}))})),V=I((function(e){return e.replace(R,(function(e,t){return"-"+te(t)}))})),F=I((function(e){return e.replace(M,ee)}));function W(e,t){return O(new Array(t+1),e)}function B(e){return ie(e)?"":e.trim()}function K(e,t,n){return d(n)?t===n?"":e.slice(t,n):e.slice(t)}function G(e,t,n){return e.indexOf(t,undefined!==n?n:0)}function Y(e,t,n){return e.lastIndexOf(t,undefined!==n?n:e.length)}function Z(e,t){return 0===G(e,t)}function J(e,t){const n=e.length-t.length;return n>=0&&Y(e,t)===n}function Q(e,t){return e.charAt(t||0)}function X(e,t){return e.charCodeAt(t||0)}function ee(e){return e.toUpperCase()}function te(e){return e.toLowerCase()}function ne(e,t){return G(e,t)>=0}function ie(e){return!l(e)||!e.length}var re=Object.freeze({__proto__:null,camelize:U,hyphenate:V,capitalize:F,repeat:W,trim:B,slice:K,indexOf:G,lastIndexOf:Y,startsWith:Z,endsWith:J,charAt:Q,codeAt:X,upper:ee,lower:te,has:ne,falsy:ie});const oe=/\./g,se=/\*/g,ce=/\*\*/g,ae=q((function(e,t){return e===t||Z(e,t+=".")?t.length:-1})),ue=I((function(e){return G(e,".")<0?[e]:e.split(".")}));function fe(e,t){const n=ue(e);for(let e=0,i=n.length-1;e<=i&&false!==t(n[e],e,i);e++);}const le=q((function(e,t){return e&&t?e+"."+t:e||t})),de=I((function(e){return ne(e,"*")})),pe=I((function(e){return new RegExp(`^${e.replace(oe,"\\.").replace(se,"(\\w+)").replace(ce,"([.\\w]+?)")}$`)})),he=q((function(e,t){const n=e.match(pe(t));return n?n[1]:undefined})),me={value:undefined};function ge(e){return Object.keys(e)}function ve(e,t){for(let n in e)if(false===t(e[n],n))break}function ye(e){ve(e,(function(t,n){delete e[n]}))}function $e(e,t){return ve(t,(function(t,n){e[n]=t})),e}function be(e,t){return e&&t?$e($e({},e),t):e||t}function ke(e,t){let n=e;return u(e)?t?(n=[],y(e,(function(e,i){n[i]=ke(e,t)}))):n=e.slice():f(e)&&(n={},ve(e,(function(e,i){n[i]=t?ke(e,t):e}))),n}function xe(e,t){let n=e;return fe(t,(function(e,t,i){if(null==n)return n=undefined,false;{let r=n[e],o=undefined!==r;r&&a(r.get)&&(r=r.get()),t===i?o?(me.value=r,n=me):n=undefined:n=r}})),n}function Te(e,t,n,i){let r=e;fe(t,(function(e,t,o){if(t===o)r[e]=n;else if(r[e])r=r[e];else{if(!i)return false;r=r[e]={}}}))}function we(e,t){return undefined!==e[t]}var Se=Object.freeze({__proto__:null,keys:ge,each:ve,clear:ye,extend:$e,merge:be,copy:ke,get:xe,set:Te,has:we,falsy:function(e){return!f(e)||u(e)||!ge(e).length}});const _e="undefined"!=typeof console?console:null,Ce=t&&/edge|msie|trident/i.test(t.navigator.userAgent)?"":"%c",Ee=_e?Ce?function(e,t,n){_e.log(Ce+e,n,t)}:function(e,t){_e.log(e,t)}:i;function Ae(){const{logLevel:e}=c;return e>=1&&e<=5?e:s}function Oe(e){return`background-color:${e};border-radius:12px;color:#fff;font-size:10px;padding:3px 6px;`}function Le(e,t){Ae()<=1&&Ee(t||"Yox debug",e,Oe("#999"))}function Pe(e,t){Ae()<=2&&Ee(t||"Yox info",e,Oe("#2db7f5"))}function ze(e,t){Ae()<=3&&Ee(t||"Yox warn",e,Oe("#f90"))}function Ne(e,t){Ae()<=4&&Ee(t||"Yox error",e,Oe("#ed4014"))}function je(e,t){if(Ae()<=5)throw new Error(`[${t||"Yox fatal"}]: ${e}`)}var De=Object.freeze({__proto__:null,DEBUG:1,INFO:2,WARN:3,ERROR:4,FATAL:5,debug:Le,info:Pe,warn:ze,error:Ne,fatal:je});class Ie{constructor(e){this.ns=e||false,this.listeners={}}fire(e,t,n){let i=this,r=l(e)?i.toEvent(e):e,o=i.listeners[r.type],s=true;if(o){o=o.slice();const e=t&&v.is(t[0])?t[0]:undefined;for(let c=0,a=o.length;c1&&null==t&&ze(`emitter.off(type, listener) is invoked, but "listener" is ${t}.`)}else n.listeners={},arguments.length>0&&ze(`emitter.off(type) is invoked, but "type" is ${e}.`)}has(e,t){let n=this.listeners,i=this.toFilter(e,t),r=true,o=function(e){return y(e,(function(e){if(qe(i.listener,e)&&He(i.ns,e))return r=false})),r};return i.type?n[i.type]&&o(n[i.type]):i.ns&&ve(n,o),!r}toEvent(e){const t={type:e,ns:""};if(this.ns){const n=G(e,".");n>=0&&(t.type=K(e,0,n),t.ns=K(e,n+1))}return t}toFilter(e,t){let n;if(n=t?a(t)?{listener:t}:t:{},l(n.ns))n.type=e;else{const t=this.toEvent(e);n.type=t.type,n.ns=t.ns}return n}}function qe(e,t){return!e||e===t.listener}function He(e,t){const{ns:n}=t;return!n||!e||n===e}let Re;"function"==typeof setImmediate&&N(setImmediate)&&(Re=setImmediate),Re="function"==typeof MessageChannel&&N(MessageChannel)?function(e){const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(1)}:setTimeout;var Me=Re;let Ue;class Ve{constructor(e){this.tasks=[],this.hooks=e||r}static shared(){return Ue||(Ue=new Ve)}append(e,t){const n=this,{tasks:i}=n;x(i,{fn:e,ctx:t}),1===i.length&&Me((function(){n.run()}))}prepend(e,t){const n=this,{tasks:i}=n;T(i,{fn:e,ctx:t}),1===i.length&&Me((function(){n.run()}))}clear(){this.tasks.length=0}run(){const e=this,{tasks:t,hooks:n}=e,{length:i}=t;if(i){e.tasks=[],n.beforeTask&&n.beforeTask();for(let e=0;e0&&(s=Ge(s,e,"click"===o||"tap"===o))}if(n){if(r.isNative){const t=n.$el;return e.on(t,o,s),function(){e.off(t,o,s)}}return n.on(o,r),function(){n.off(o,r)}}return e.on(t,o,s),function(){e.off(t,o,s)}}function Ze(e,t,n){const{data:i,lazy:o,events:s}=t,c=n&&n.events;if(s||c){const n=t.node,a=t.component,u=i.$event||(i.$event={});if(s){const t=c||r;for(let i in s){const r=s[i],c=t[i];c?r.value!==c.value?(u[i](),u[i]=Ye(e,n,a,o,r)):c.runtime&&r.runtime&&($e(c.runtime,r.runtime),r.runtime=c.runtime):u[i]=Ye(e,n,a,o,r)}}if(c){const e=s||r;for(let t in c)e[t]||(u[t](),delete u[t])}}}function Je(e,t){const{data:n,events:i}=t,r=n.$event;if(i&&r)for(let e in i)r[e](),delete r[e]}function Qe(e,t){return t&&true!==t?Ge(e,t):e}const Xe={set(e,t){e.value=z(t)},sync(e,t,n){n.set(t,e.value)},name:"value"},et={set(e,t){e.checked=e.value===z(t)},sync(e,t,n){e.checked&&n.set(t,e.value)},name:"checked"},tt={set(e,t){e.checked=u(t)?E(t,e.value,false):!!t},sync(e,t,n){const i=n.get(t);u(i)?e.checked?n.append(t,e.value):n.removeAt(t,w(i,e.value,false)):n.set(t,e.checked)},name:"checked"},nt={set(e,t){y(A(e.options),e.multiple?function(e){e.selected=E(t,e.value,false)}:function(n,i){if(n.value==t)return e.selectedIndex=i,false})},sync(e,t,n){const{options:i}=e;if(e.multiple){const e=[];y(A(i),(function(t){t.selected&&x(e,t.value)})),n.set(t,e)}else n.set(t,i[e.selectedIndex].value)},name:"value"};function it(e,t,n,i){let r,o,{context:s,model:c,lazy:a,nativeProps:u}=i,{keypath:f,value:l}=c,d=a&&(a.model||a[""]);if(n){let e=n.$model,t=Qe((function(e){s.set(f,e)}),d);r=function(t){r&&n.set(e,t)},o=function(){n.unwatch(e,t)},n.watch(e,t)}else{let n="select"===i.tag?nt:Xe,c="change";if(n===Xe){const e=u&&u.type;"radio"===e?n=et:"checkbox"===e?n=tt:true!==d&&(c="model")}r=function(e){r&&n.set(t,e)};const a=Qe((function(){n.sync(t,f,s)}),d);o=function(){e.off(t,c,a)},e.on(t,c,a),n.set(t,l)}return s.watch(f,r),function(){s.unwatch(f,r),r=undefined,o()}}function rt(e,t,n){const{data:i,node:r,component:o,model:s}=t,c=n&&n.model;s?c?s.keypath!==c.keypath&&(i.$model(),i.$model=it(e,r,o,t)):i.$model=it(e,r,o,t):c&&(i.$model(),delete i.$model)}function ot(e,t){const{data:n}=t;n.$model&&(n.$model(),delete n.$model)}function st(e,t,n){const{directives:i}=t,o=n&&n.directives;if(i||o){const e=t.component||t.node;if(i){const s=o||r;for(let r in i){const o=i[r],c=s[r],{bind:a,unbind:u}=o.hooks;c?o.value!==c.value?(u&&u(e,c,n),a(e,o,t)):c.runtime&&o.runtime&&($e(c.runtime,o.runtime),o.runtime=c.runtime):a(e,o,t)}}if(o){const t=i||r;for(let i in o)if(!t[i]){const{unbind:t}=o[i].hooks;t&&t(e,o[i],n)}}}}function ct(e,t){const{directives:n}=t;if(n){const e=t.component||t.node;for(let i in n){const{unbind:r}=n[i].hooks;r&&r(e,n[i],t)}}}function at(e,t,n){const{component:i,props:r,slots:o}=t;if(i&&n){if(r)for(let e in r)i.checkProp(e,r[e]);const e=be(r,o);e&&i.forceUpdate(e)}}function ut(e,t){return e.isText&&t.isText||e.isComment&&t.isComment||e.tag===t.tag&&e.key===t.key}function ft(e,t,n){let i,o,s;for(;t<=n;)o=e[t],o&&(s=o.key)&&(i||(i={}),i[s]=t),t++;return i||r}function lt(e,t,n,i){i?e.before(t,n,i):e.append(t,n)}function dt(e,t,n){const i=(t.parent||t.context).createComponent(n,t);return t.component=i,t.data.$loading=false,Be(0,t),Ze(e,t),rt(e,t),st(0,t),at(0,t),i}function pt(e,t){let{tag:n,node:i,data:r,isComponent:o,isComment:s,isText:c,isStyle:a,isOption:u,children:f,text:l,html:d,context:p}=t;if(!i||!r)if(r={},t.data=r,c)t.node=e.createText(l);else if(s)t.node=e.createComment(l);else if(o){let i=undefined;n&&p.loadComponent(n,(function(n){we(r,"$loading")?r.$loading&&(r.$vnode&&(t=r.$vnode,delete r.$vnode),bt(t,dt(e,t,n))):i=n})),t.node=e.createComment("component"),i?dt(e,t,i):r.$loading=true}else i=t.node=e.createElement(t.tag,t.isSvg),f?ht(e,i,f):l?e.setText(i,l,a,u):d&&e.setHtml(i,d,a,u),Fe(e,t),We(e,t),Be(0,t),Ze(e,t),rt(e,t),st(0,t)}function ht(e,t,n,i,r,o){let s,c=i||0,a=undefined!==r?r:n.length-1;for(;c<=a;)s=n[c],pt(e,s),mt(e,t,s,o),c++}function mt(e,t,n,i){const{node:r,component:o,context:s}=n,c=e.parent(r);if(i?e.before(t,r,i.node):e.append(t,r),!c){let e=undefined;n.isComponent&&o?e=function(){bt(n,o)}:n.isStatic||n.isText||n.isComment||(e=function(){bt(n)}),e&&s.$nextTask.prepend(e)}}function gt(e,t,n,i,r){let o,s=i||0,c=undefined!==r?r:n.length-1;for(;s<=c;)o=n[s],o&&vt(e,t,o),s++}function vt(e,t,n){const{node:i,component:r}=n;if(n.isStatic)yt(e,n),e.remove(t,i);else if(n.isText||n.isComment)e.remove(t,i);else{const o=function(){$t(e,n),e.remove(t,i)};if(n.isComponent&&!r)return void o();!function(e,t,n){let{data:i,transition:r}=e;t&&!r&&(r=t.$vnode.transition);if(r){const{leave:t}=r;if(t)return void t(e.node,i.$leaving=function(){i.$leaving&&(n(),i.$leaving=undefined)})}n()}(n,r,o)}}function yt(e,t){const{children:n}=t;t.data=t.node=undefined,n&&y(n,(function(t){yt(e,t)}))}function $t(e,t){const{data:n,children:i}=t;t.isComponent?t.component?(Ke(0,t),Je(0,t),ot(0,t),ct(0,t),function(e,t){const{component:n}=t;n&&(n.destroy(),delete t.component)}(0,t)):n.$loading=false:(Ke(0,t),Je(0,t),ot(0,t),ct(0,t),i&&y(i,(function(t){$t(e,t)})))}function bt(e,t){let{data:n,transition:i}=e;if(t&&!i&&(i=t.$vnode.transition),g(n.$leaving),i){const{enter:t}=i;if(t)return void t(e.node)}}function kt(e,t,n){if(t===n)return;const{data:i,node:r,isComponent:o}=n;if(!ut(t,n)){const i=e.parent(r);return pt(e,t),void(i&&(mt(e,i,t,n),vt(e,i,n)))}if(t.data=i,t.node=r,t.component=n.component,n.isComponent&&i.$loading)return void(i.$vnode=t);o||(Fe(e,t,n),We(e,t,n)),Be(0,t,n),Ze(e,t,n),rt(e,t,n),st(0,t,n),o&&at(0,t,n);const{text:s,html:c,children:a,isStyle:u,isOption:f}=t,d=n.text,p=n.html,h=n.children;l(s)?s!==d&&e.setText(r,s,u,f):l(c)?c!==p&&e.setHtml(r,c,u,f):a&&h?a!==h&&function(e,t,n,i){let r,o,s=0,c=n.length-1,a=n[s],u=n[c],f=0,l=i.length-1,d=i[f],p=i[l];for(;f<=l&&s<=c;)a?u?d?p?ut(a,d)?(kt(e,a,d),a=n[++s],d=i[++f]):ut(u,p)?(kt(e,u,p),u=n[--c],p=i[--l]):ut(u,d)?(kt(e,u,d),lt(e,t,d.node,e.next(p.node)),u=n[--c],d=i[++f]):ut(a,p)?(kt(e,a,p),lt(e,t,p.node,d.node),a=n[++s],p=i[--l]):(r||(r=ft(i,f,l)),o=a.key?r[a.key]:void 0,void 0!==o?(kt(e,a,i[o]),i[o]=void 0):pt(e,a),mt(e,t,a,d),a=n[++s]):p=i[--l]:d=i[++f]:u=n[--c]:a=n[++s];f>l?ht(e,t,n,s,c,n[c+1]):s>c&>(e,t,i,f,l)}(e,r,a,h):a?((l(d)||l(p))&&e.setText(r,"",u),ht(e,r,a)):h?gt(e,r,h):(l(d)||l(p))&&e.setText(r,"",u)}const xt={},Tt={},wt={};xt.slot=xt.template=Tt.key=Tt.ref=Tt.slot=true,wt["if"]=6,wt.each=9,wt.partial=10;function St(e,t){return{type:2,isStatic:true,name:e,ns:t}}function _t(e,t,n){return{type:3,ns:t,name:e,modifier:n}}function Ct(e,t,n,i,r,o){return{type:4,isStatic:true,name:e,ns:t,hint:n,value:i,expr:r,children:o}}function Et(e,t,n,i){return{type:9,from:e,to:t,equal:n||undefined,index:i,isVirtual:true}}function At(e){return{type:5,text:e,isStatic:true,isLeaf:true}}function Ot(e){const t=Object.create(null);return y(e.split(","),(function(e){t[e]=true})),t}const Lt=/^[A-Z]|-/,Pt=/&[#\w\d]{2,6};/,zt=Ot("area,base,embed,track,source,param,input,col,img,br,hr"),Nt=Ot("svg,g,defs,desc,metadata,symbol,use,image,path,rect,circle,line,ellipse,polyline,polygon,text,tspan,tref,textpath,marker,pattern,clippath,mask,filter,cursor,view,animate,font,font-face,glyph,missing-glyph,animateColor,animateMotion,animateTransform,textPath,foreignObject"),jt=Ot("id,class,name,value,for,accesskey,title,style,src,type,href,target,alt,placeholder,preload,poster,wrap,accept,pattern,dir,autocomplete,autocapitalize,valign"),Dt=Ot("min,minlength,max,maxlength,step,size,rows,cols,tabindex,colspan,rowspan,frameborder"),It=Ot("disabled,checked,required,multiple,readonly,autofocus,autoplay,controls,loop,muted,novalidate,draggable,contenteditable,hidden,spellcheck"),qt={};function Ht(e,t,n){if(e.isComponent)return St(U(t),n);{const i=te(t);return xt[e.tag]||e.isSvg?St(t,n):jt[i]?Ct(qt[i]||i,n,1):Dt[i]?Ct(qt[i]||i,n,2):It[i]?Ct(qt[i]||i,n,3):St(t,n)}}function Rt(e){if(1!==e.type)return false;const t=e;return!t.isComponent&&undefined===xt[t.tag]}function Mt(e,t){return l(t)&&Pt.test(t)?e.html=t:e.text=t,true}function Ut(e){return undefined!==e}function Vt(e,t){return h(e)?+e:undefined!==t?t:0}function Ft(e,t,n,i){return{type:5,raw:i,left:e,operator:t,right:n}}function Wt(e,t,n){let i=false,r=true,o=0;return"this"===t?(t="",r=false):".."===t?(t="",r=false,o=1):"~"===t&&(t="",i=true,r=false),n?Bt(t,e):Gt(e,t,i,r,o)}function Bt(e,t){return{type:1,raw:t,value:e}}function Kt(e,t){let n=t.shift(),i=false,r=true,o=0;if(t.length>0){let s=true,c=[],a="",u=[];if(y(t,(function(e){if(s)if(1===e.type){const t=e;if(".."===t.raw)return o+=1,void(a=a?a+"/..":"..");if("this"!==t.raw){const e=z(t.value);x(c,e),a&&(a+=J(a,"..")?"/":"."),a+=e}}else s=false;s||x(u,e)})),2===n.type){const t=n;i=t.root,r=t.lookup,o+=t.offset;let f=t.name;if(f&&T(c,f),f=O(c,"."),s)n=Gt(e,f,i,r,o);else{let s=t.raw;if(a){let e=".";"~"!==s&&".."!==s||(e="/"),s+=e+a}n=Yt(e,Gt(s,f,i,r,o),undefined,u,i,r,o)}}else n=s?Yt(e,n,O(c,"."),undefined,i,r,o):Yt(e,n,undefined,u,i,r,o)}return n}function Gt(e,t,n,i,r){return{type:2,raw:e,name:t,root:n,lookup:i,offset:r}}function Yt(e,t,n,i,r,o,s){return{type:3,raw:e,lead:t,keypath:n,nodes:i,root:r,lookup:o,offset:s}}qt["for"]="htmlFor",qt["class"]="className",qt.accesskey="accessKey",qt.style="style.cssText",qt.novalidate="noValidate",qt.readonly="readOnly",qt.tabindex="tabIndex",qt.minlength="minLength",qt.maxlength="maxLength",qt.cellpadding="cellPadding",qt.cellspacing="cellSpacing",qt.colspan="colSpan",qt.rowspan="rowSpan",qt.valign="vAlign",qt.frameborder="frameBorder";const Zt={"+":true,"-":true,"~":true,"!":true,"!!":true},Jt={"*":15,"/":15,"%":15,"+":14,"-":14,"<<":13,">>":13,">>>":13,"<":12,"<=":12,">":12,">=":12,"==":11,"!=":11,"===":11,"!==":11,"&":10,"^":9,"|":8,"&&":7,"||":6};class Qt{constructor(e){const t=this;t.index=-1,t.end=e.length,t.code=Xt,t.content=e,t.go()}go(e){let t=this,{index:n,end:i}=t;n+=e||1,n>=0&&n0)),n.is(nn);){if(n.go(),Pn(n.code))return x(i,n.scanIdentifier(n.index,true)),n.scanTail(e,i);if(!n.is(en)){n.fatal(e,S(i).raw+"/ must be followed by an identifier.");break}n.go()}}scanTail(e,t){let n,i=this;e:for(;;)switch(i.code){case cn:t=[(r=Kt(i.pick(e),t),o=i.scanTuple(i.index,an),s=i.pick(e),{type:9,raw:s,name:r,args:o})];break;case en:if(i.go(),Pn(i.code)){x(t,i.scanIdentifier(i.index,true));break}i.fatal(e,"Identifier or number expected.");break e;case un:if(i.go(),n=i.scanTernary(fn),n){x(t,n);break}i.fatal(e,"[] is not allowed.");break e;default:break e}var r,o,s;return Kt(i.pick(e),t)}scanIdentifier(e,t){const n=this;for(;Pn(n.code);)n.go();const i=n.pick(e);return!t&&i in En?Bt(En[i],i):Wt(i,i,t)}scanOperator(e){const t=this;switch(t.code){case yn:case $n:case bn:case Tn:case vn:t.go();break;case mn:t.go(),t.is(mn)&&t.fatal(e,'The operator "++" is not supported.');break;case gn:t.go(),t.is(gn)&&t.fatal(e,'The operator "--" is not supported.');break;case wn:t.go(),t.is(wn)?t.go():t.is(_n)&&(t.go(),t.is(_n)&&t.go());break;case kn:t.go(),t.is(kn)&&t.go();break;case xn:t.go(),t.is(xn)&&t.go();break;case _n:t.go(),t.is(_n)?(t.go(),t.is(_n)&&t.go()):t.fatal(e,"Assignment statements are not supported.");break;case Sn:t.go(),(t.is(_n)||t.is(Sn))&&t.go();break;case Cn:t.go(),t.is(_n)?t.go():t.is(Cn)&&(t.go(),t.is(Cn)&&t.go())}if(t.index>e)return t.pick(e)}scanBinary(e){let t,n,i,r,o,s,c=this,a=[];for(;;){if(c.skip(),x(a,c.index),t=c.scanToken(),t){if(x(a,t),x(a,c.index),c.skip(),i=c.scanOperator(c.index),i&&(r=Jt[i])){n=a.length-4,(o=a[n])&&(s=Jt[o])&&s>=r&&a.splice(n-2,5,Ft(a[n-2],o,a[n+2],c.pick(a[n-3],a[n+3]))),x(a,i);continue}i=undefined}else i&&c.fatal(e,"Invalid syntax.");break}for(;;){if(!(a.length>=7))return a[1];n=a.length-4,a.splice(n-2,5,Ft(a[n-2],a[n],a[n+2],c.pick(a[n-3],a[n+3])))}}scanTernary(e){const t=this;t.skip();let n,i,r=t.index,o=t.scanBinary(r);return t.is(pn)&&(t.go(),n=t.scanTernary(),t.is(hn)&&(t.go(),i=t.scanTernary()),o&&n&&i?(t.skip(-1),o=function(e,t,n,i){return{type:6,raw:i,test:e,yes:t,no:n}}(o,n,i,t.pick(r))):t.fatal(r,"Invalid ternary syntax.")),Ut(e)&&(t.skip(),t.is(e)?t.go():t.fatal(r,`"${String.fromCharCode(e)}" expected, "${String.fromCharCode(t.code)}" actually.`)),o}fatal(e,t){je(`Error compiling expression\n\n${this.content}\n\nmessage: ${t}\n`)}}const Xt=0,en=46,tn=44,nn=47,rn=92,on=39,sn=34,cn=40,an=41,un=91,fn=93,ln=123,dn=125,pn=63,hn=58,mn=43,gn=45,vn=42,yn=47,$n=37,bn=126,kn=38,xn=124,Tn=94,wn=33,Sn=60,_n=61,Cn=62,En={};function An(e){return e>0&&e<33||160===e}function On(e){return e>47&&e<58}function Ln(e){return 36===e||95===e||e>96&&e<123||e>64&&e<91}function Pn(e){return Ln(e)||On(e)}En["true"]=true,En["false"]=false,En["null"]=null,En[void 0]=undefined;const zn=I((function(e){return new Qt(e).scanTernary(Xt)})),Nn={},jn=/\s*:\s*([_$a-z]+)$/i,Dn=/^[_$a-z]([\w]+)?$/i,In=/^[_$a-z]([\w]+)?$/i,qn=/^[_$a-z]([\w]+)?\.[_$a-z]([\w]+)?$/i,Hn=/^\s*[\n\r]\s*|\s*[\n\r]\s*$/g,Rn=/\s*(=>|->)\s*/,Mn=/<(\/)?([$a-z][-a-z0-9]*)/i,Un=//g,Vn=/^([\s\S]*?)([\s\S]*?)$/,Wn=/^\s*([-$.:\w]+)(?:=(['"]))?/,Bn=/^[!=]*['"]/,Kn=/^\s*(\/)?>/;function Gn(e,t){return B(K(e,t.length))}function Yn(e){if(e.safe&&1===e.expr.type)return At(z(e.expr.value))}function Zn(e){return e&&12===e.type&&!e.safe}function Jn(e,t){return Tt[t.name]||"slot"===e.tag&&"name"===t.name}function Qn(e){let t=-1,n="",i=-1,r="";y(e,(function(o,s){if(5===o.type)if(i>=0){for(n=o.text;Vn.test(n);)n=RegExp.$1,t=s;if(t>=0){let o=t,s=i;n&&(e[t].text=n,o++),r&&(n?e[t].text+=r:(e[i].text=r,s--)),e.splice(o,s-o+1),t=i=-1}}else for(r=o.text;Fn.test(r);)r=RegExp.$1,i=s}),true)}function Xn(t){let n,i,r,o,s=W(c.leftDelimiter,2),a=W(c.rightDelimiter,2),u=c.leftDelimiter,f=c.rightDelimiter,l=[],p=[],m=[],g=[],v=[],$=[],b=t.length,k=0,T=0,C=0,E=0,A=1,O=[],L=[],P=function(e){je(`Error compiling template\n\n${t}\n\nmessage: ${e}`)},z=function(e){const t=S(p);if(t&&1===t.type){const i=t;i.tag!==e&&(n=i.tag,void 0!==zt[n])&&N(i.type,i.tag)}var n},N=function(e,t){const i=_(p);i&&i.type===e||P("The type of poping node is not expected.");const r=i,o=1===e,s=2===e,c=4===e,a=3===e,u=S(p);o&&t&&r.tag!==t&&P(`End tag is "${t}",but start tag is "${r.tag}".`);let{children:f}=r;if(f&&f.length>1&&(n||(Qn(f),f.length||(f=r.children=undefined))),f){const e=1===f.length&&f[0];if(e)switch(e.type){case 5:o?j(r,e):s?R(r,e):c?q(r,e):a&&F(r,e);break;case 12:o?D(r,e):(s||c||a)&&M(r,e)}}else n&&(s?H(n,r):c?I(n,r):a&&V(n,r));return r.isVirtual&&!r.children&&ee(r),o?J(r):n&&s&&Jn(n,r)&&X(n,r),u&&u.isStatic&&!r.isStatic&&(u.isStatic=false),r},j=function(e,t){Rt(e)&&Mt(e,t.text)&&(e.children=undefined)},D=function(e,t){Rt(e)&&(t.safe&&Mt(e,t.expr)||!t.safe&&function(e,t){return e.html=t,!0}(e,t.expr))&&(e.children=undefined)},I=function(e,t){3===t.hint?t.value=true:ee(t)},q=function(e,t){const{text:n}=t;2===e.hint?(h(n)||P(`The value of "${e.name}" is not a number: ${n}.`),e.value=Vt(n)):3===e.hint?e.value="true"===n||n===e.name:e.value=n,e.children=undefined},H=function(e,t){Jn(e,t)?P(`The value of "${t.name}" is empty.`):t.value=function(e,t){return!!e.isComponent||(Z(t,"data-")?"":t)}(e,t.name)},R=function(e,t){e.value=t.text,e.children=undefined},M=function(e,t){const{expr:n}=t;1===n.type?e.value=n.value:e.expr=n,e.children=undefined},V=function(e,t){t.value=true},F=function(e,t){let i,r,{ns:o}=e,{text:s}=t,c="model"===o,a="lazy"===o,u="event"===o,f="o"===o;try{i=zn(s)}catch(l){r=l}if(i){{const{raw:t}=i;if(a)(1!==i.type||!d(i.value)||i.value<=0)&&P("The value of lazy must be a number greater than 0.");else if(9===i.type){const e=i.name;2!==e.type?P("Invalid method name."):Dn.test(e.name)||P("Invalid method name.")}else u&&(In.test(t)||qn.test(t)?(qn.test(t)&&"native"===t.split(".")[1]&&P('The event namespace "native" is not permitted.'),n&&n.isComponent&&e.name===t&&P("The event name listened and fired can't be the same.")):P("The event name and namespace must be an identifier."));c&&2!==i.type&&P("The value of the model must be an identifier.")}e.expr=i,e.value=1===i.type?i.value:s}else{if(!f)throw r;e.value=s}e.children=undefined},Y=function(e){let t=e,n=[],i=false,r=false;for(;x(n,t),t.next;)t=t.next;y(n,(function(e){e.children&&(!i&&e.next&&delete e.next,r=i=true)}),true),r||ee(e)},J=function(e){const{tag:t,slot:n}=e,i="template"===t,r="slot"===t;i&&(e.key?P('The "key" is not supported in