vue-egret
Version:
7 lines (6 loc) • 39.8 kB
JavaScript
/*!
* vue-egret.js v1.4.2
* Copyright (c) 2020-present, Hsuna
* Released code under the China License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).VueEgret=e()}(this,(function(){"use strict";function t(e){return(t="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})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(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&&u(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?f(t):e}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function v(t,e){return y(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||g(t,e)||b()}function p(t){return y(t)||_(t)||g(t)||b()}function d(t){return function(t){if(Array.isArray(t))return m(t)}(t)||_(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t){if(Array.isArray(t))return t}function _(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function g(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=g(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function $(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var O=new RegExp("[^".concat(/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source,".$_\\d]"));function w(t,e,n){}var A="__proto__"in{},j=Object.freeze({});function D(t){return null==t}function x(e){return null!==e&&"object"===t(e)}function E(t){return null==t?"":Array.isArray(t)||I(t)&&t.toString===C?JSON.stringify(t,null,2):String(t)}function S(t){var e=Number(String(t));return Array.isArray(t)||isNaN(e)||""===t?t:e}var C=Object.prototype.toString;function I(t){return"[object Object]"===C.call(t)}function T(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}var P=/^hook:/;function F(t){return"function"==typeof t&&/native code/.test(t.toString())}var N="undefined"!=typeof Symbol&&F(Symbol)&&"undefined"!=typeof Reflect&&F(Reflect.ownKeys),V=Object.prototype.hasOwnProperty;function H(t,e){return V.call(t,e)}function M(t,e){if(t===e)return!0;var n=x(t),r=x(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return M(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return M(t[n],e[n])}))}catch(t){return!1}}function z(t,e){for(var n=0;n<t.length;n++)if(M(t[n],e))return n;return-1}function B(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?L(t):void 0}function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce((function(t,e){return t.concat(Array.isArray(e)?L(e):e)}),[])}function W(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function G(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0;Array.isArray(n)&&(i=r,r=n,n={}),2===i?r=R(r):1===i&&(r=W(r)),"function"==typeof t||x(t)&&(e=ke.extend(t));var o=a(a(a({},n),e?{Ctrl:e,tag:"vue-component-".concat(e.cid).concat(n.name?"-".concat(n.name):"")}:{tag:t}),{},{children:r.filter(Boolean)});return o}function U(t,e){var n=function t(){for(var n=t.fns,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(!Array.isArray(n))return n.apply(e||this,i);for(var a=d(n),s=a.shift();s;)s.apply(e||this,i),s=a.shift()};return n.fns=t,n}function J(t,e,n){if(e)if(x(e)){Array.isArray(e)&&(e=function(t){for(var e={},n=0;n<t.length;n++)t[n]&&(e=a(a({},e),t[n]));return e}(e));var r=t.attrs||(t.attrs={}),i=function(i){(r[i]=e[i],n)&&((t.on||(t.on={}))["update:".concat(i)]=U((function(t){e[i]=t})))};for(var o in e)i(o)}else;return t}function Z(t,e){if(e)if(I(e)){var n=t.on=a({},t.on);for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function K(t,e){return"string"==typeof t?e+t:t}function X(t,e){if(Array.isArray(t)||"string"==typeof t)return Array.from(t).map((function(t,n){return e(t,n)}));if("number"==typeof t)return Array.from({length:t}).map((function(t,n){return e(n+1,n)}));if(x(t)){if(N&&t[Symbol.iterator]){for(var n=[],r=t[Symbol.iterator](),i=r.next();!i.done;)n.push(e(i.value,n.length)),i=r.next();return n}return Object.keys(t).map((function(n,r){return e(t[n],n,r)}))}return[]}B("slot,component",!0),B("key,ref,slot,slot-scope,is");var q=0,Q=function(){function t(){e(this,t),this.id=q++,this.subs=[]}return r(t,[{key:"depend",value:function(){t.target&&t.target.addDep(this)}},{key:"addSub",value:function(t){this.subs.push(t)}},{key:"removeSub",value:function(t){var e=this.subs.indexOf(t);e>-1&&this.subs.splice(e,1)}},{key:"notify",value:function(){this.subs.forEach((function(t){t.update()}))}}]),t}();Q.target=null;var Y=[];function tt(t){Y.push(t),Q.target=t}function et(){Y.pop(),Q.target=Y[Y.length-1]}var nt=/^v-|^@|^:|^#/,rt=/^(v-bind:|:)/,it=/^(v-on:|@)/,ot=/^\[.*\]$/;function at(t){var e={tag:t.tag,key:t.key,ref:t.ref,refInFor:!1,attrs:[],on:[],nativeOn:[],directives:[],wrapDir:[]};return t.attrsList.forEach((function(t){if(nt.test(t.name)){var n=function(t,e){var n="",r="",o=[],a=p((t=t.replace(rt,"v-bind:").replace(it,"v-on:")).split("."));t=a[0],o=a.slice(1);var s=v(t.split(":"),2);return n=s[0],r=s[1],{name:n.replace(nt,""),expression:e,arg:r?ot.test(r)?r.slice(1,-1):'"'.concat(r,'"'):"",rawArg:r||"",modifiers:o.reduce((function(t,e){return Object.assign(t,i({},e,!0))}),{})}}(t.name,t.value);rt.test(t.name)?(e.attrs.push(n),n.modifiers&&n.modifiers.sync&&e.on.push(a(a({},n),{},{name:"sync"}))):it.test(t.name)?n.modifiers.native?e.nativeOn.push(n):e.on.push(n):e.directives.push(n)}else e.attrs.push({name:"bind",arg:t.name,expression:'_n("'.concat(t.value,'")')})})),t.text&&e.attrs.push({name:"text",arg:'"text"',expression:t.text}),t.ref&&(e.refInFor=function(t){var e=t;for(;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t)),e}var st,ct,ut=(st=function(t){var e="~"===t.charAt(0),n="!"===(t=e?t.slice(1):t).charAt(0);return{name:t=n?t.slice(1):t,once:e,capture:n}},ct={},function(t){return ct[t]||(ct[t]=st(t))});function ft(t){return t.reduce((function(t,e){return t[e.name]=e,t}),{})}var ht={on:function(t,e){t.wrapDir.push((function(t){return"_g(".concat(t,",").concat(e.expression,")")}))},bind:function(t,e){t.wrapDir.push((function(t){return"_b(".concat(t,",").concat(e.expression).concat(e.modifiers&&e.modifiers.sync?",true":"",")")}))}},lt=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,vt=/\([^)]*?\);*$/,pt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,dt=function(t){return t.replace(/,$/,"")};function yt(t){var e,n,r,i=at(t),o="{";return i.directives&&i.directives.length&&(o+=(e=i.directives,n=i,r="",e.forEach((function(t){var e=!0,i=ht[t.name];i&&(e=!!i(n,t)),e&&(r+='{name:"'.concat(t.name,'",value:_n(').concat(t.expression,'),expression:"').concat(t.expression,'"').concat(t.arg?",arg:".concat(t.arg):"").concat(t.modifiers?",modifiers:".concat(JSON.stringify(t.modifiers)):"","},"))})),r?"directives:[".concat(dt(r),"],"):"")),i.key&&(o+="key:".concat(i.key,",")),i.ref&&(o+="ref:".concat(i.ref,",")),i.refInFor&&(o+="refInFor:true,"),i.attrs&&i.attrs.length&&(o+="attrs:".concat(function(t){var e="";return t.forEach((function(t){"text"===t.name?e+="".concat(t.rawArg||t.arg,":_s(").concat(t.expression,"),"):e+="".concat(t.rawArg||t.arg,":").concat(t.expression,",")})),e?"{".concat(dt(e),"}"):""}(i.attrs),",")),i.on&&i.on.length&&(o+="on:".concat(_t(i.on),",")),i.nativeOn&&i.nativeOn.length&&(o+="nativeOn:".concat(_t(i.nativeOn),",")),o=dt(o)+"}",i.wrapDir&&i.wrapDir.length&&i.wrapDir.forEach((function(t){o=t(o)})),o}function _t(t){var e="";return t.forEach((function(t){var n="sync"==t.name,r=!1,i=t.arg;n&&(i="_p(".concat(i,', "update:")'),r=!0),t.modifiers&&(t.modifiers.capture&&(i="_p(".concat(i,', "!")'),r=!0),t.modifiers.once&&(i="_p(".concat(i,', "~")'),r=!0)),r&&(i="[".concat(i,"]")),e+="".concat(i,":").concat(function(t,e){var n=(e?function(t){var e=function(t){var e,n,r,i;function o(){return e.charCodeAt(++n)}function a(){return n>=void 0}function s(t){return 34===t||39===t}function c(t){var e=1;for(r=n;!a();)if(s(t=o()))u(t);else if(91===t&&e++,93===t&&e--,0===e){i=n;break}}function u(t){for(var e=t;!a()&&(t=o())!==e;);}if((t=t.trim()).indexOf("[")<0||t.lastIndexOf("]")<NaN)return(n=t.lastIndexOf("."))>-1?{exp:t.slice(0,n),key:'"'+t.slice(n+1)+'"'}:{exp:t,key:null};for(e=t,n=r=i=0;n<void 0;){var f=e.charCodeAt(++n);s(f)?u(f):91===f&&c(f)}return{exp:t.slice(0,r),key:t.slice(r+1,i)}}(t);return null===e.key?"".concat(t,"=$event"):"$set(".concat(e.exp,", ").concat(e.key,", $event)")}(t.expression):t.expression)||"",r=pt.test(n),i=lt.test(n),o=pt.test(n.replace(vt,""));if(t.modifiers){var a="";for(var s in t.modifiers)mt[s]&&(a+=mt[s]);var c=r?"return ".concat(n,"($event)"):i?"return (".concat(n,")($event)"):o?"return ".concat(n):n;return"function($event){".concat(a).concat(c,"}")}return r||i?n:"function($event){".concat(o?"return ".concat(n):n,"}")}(t,n),",")})),e?"{".concat(dt(e),"}"):""}var gt,mt={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:(gt="$event.target !== $event.currentTarget","if(".concat(gt,")return null;"))};function bt(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function kt(t){return!!t.component}function $t(t){for(var e=0,n=0;n<t.length;n++){var r=t[n];if(bt(r)||r.ifConditions&&r.ifConditions.some((function(t){return bt(t.target)}))){e=2;break}(kt(r)||r.ifConditions&&r.ifConditions.some((function(t){return kt(t.target)})))&&(e=1)}return e}var Ot=/\/\s*>/,wt=/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,At=/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,jt=/^<\/([^>\s]+)[^>]*>/m,Dt=function(){function t(n,r){e(this,t),this.options=r,this._parse(n)}return r(t,[{key:"_parse",value:function(t){for(var e,n=!1;t.length>0;)"\x3c!--"==t.substring(0,4)?-1!=(e=t.indexOf("--\x3e"))?(this.options.comment(t.substring(4,e)),t=t.substring(e+3),n=!1):n=!0:"</"==t.substring(0,2)?jt.test(t)?(t=t.replace(jt,this.parseEndTag.bind(this)),n=!1):n=!0:"<"==t.charAt(0)&&(wt.test(t)?(t=t.replace(wt,this.parseStartTag.bind(this)),n=!1):n=!0),n&&(-1==(e=t.indexOf("<"))?(this.options.characters(t),t=""):(this.options.characters(t.substring(0,e)),t=t.substring(e))),n=!0}},{key:"parseStartTag",value:function(t,e,n){var r=this.parseAttributes(e,n),i=Ot.test(t);return this.options.startElement(e,r,i),""}},{key:"parseEndTag",value:function(t,e){return this.options.endElement(e),""}},{key:"parseAttributes",value:function(t,e){var n=this,r=[];return e.replace(At,(function(){for(var e,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=(e=n.parseAttribute).call.apply(e,[n,t].concat(o));return s.name&&"/"!==s.name&&r.push(s),""})),r}},{key:"parseAttribute",value:function(t,e,n){var r="";arguments[7]?r=arguments[8]:arguments[5]?r=arguments[6]:arguments[3]&&(r=arguments[4]);var i=!r&&!arguments[3];return{name:n,value:i?null:r}}}]),t}(),xt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Et=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,St=/^\(|\)$/g;function Ct(t,e){var n=It(t,":"+e)||It(t,"v-bind:"+e);if(null!=n)return n;var r=It(t,e);return null!=r?JSON.stringify(r):void 0}function It(t,e){for(var n=t.attrsMap[e],r=t.attrsList,i=0,o=r.length;i<o;i++)if(r[i].name===e){r.splice(i,1);break}return n}var Tt=/^\s+|\s+$/g,Pt=/^\s*\n+|\n+\s*$/g,Ft=/{{([^}]+?)}}/,Nt=function(){function t(){e(this,t)}return r(t,[{key:"startElement",value:function(t,e,n){if(this._parent=this._target,this._target=function(t,e,n){return{tag:t,text:"",attrsList:e,attrsMap:e.reduce((function(t,e){return Object.assign(t,i({},e.name,e.value))}),{}),parent:n,children:[]}}(t,e,this._parent),this._root){if(!this._parent)throw new Error("tow root")}else this._root=this._target;n&&this.endElement(t)}},{key:"endElement",value:function(t){var e;(e=Ct(this._target,"is"))&&(this._target.component=e),(e=Ct(this._target,"key"))&&(this._target.key=e),(e=Ct(this._target,"ref"))&&(this._target.ref=e),(e=It(this._target,"v-for"))&&(this._target.for=function(t){var e=t.match(xt);if(e){var n={for:"",alias:""};n.for=e[2].trim();var r=e[1].trim().replace(St,""),i=r.match(Et);return i?(n.alias=r.replace(Et,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}(e)),(e=It(this._target,"v-if"))?this._target.if=this.addIfConditions(e):(e=It(this._target,"v-else-if"))?this._target.elseif=this.addIfConditions(e,!0):void 0!==(e=It(this._target,"v-else"))&&(this._target.else=this.addIfConditions(!0,!0)),!this._parent||this._target===this._root||this._target.elseif||this._target.else||this._parent.children.push(this._target),this._target=this._parent,this._parent&&(this._parent=this._parent.parent)}},{key:"comment",value:function(t){}},{key:"characters",value:function(t){if(this._target){for(var e=t.replace(Pt,"").split("\n").map((function(t){return t.replace(Tt,"")})).join("\n"),n=e.match(Ft),r=[];n;)r.push(JSON.stringify(e.slice(0,n.index))),r.push(n[1].replace(Tt,"")),n=(e=e.slice(n.index+n[0].length)).match(Ft);e.length&&r.push(JSON.stringify(e)),r.length&&(this._target.text="''.concat(".concat(r.join(","),")"))}}},{key:"addIfConditions",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n){var r=this._target.parent;if(r){var i=r.children[r.children.length-1];i&&(e=i)}}else e=this._target;return e&&(e.ifConditions||(e.ifConditions=[]),e.ifConditions.push({exp:t,target:this._target})),t}},{key:"root",get:function(){return this._root}}],[{key:"created",value:function(e){var n=new t;return new Dt(e,n),n}}]),t}();function Vt(t){var e=function t(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.for;if(n&&r&&r.for)return"_l((".concat(r.for,"), function(").concat([r.alias,r.iterator1,r.iterator2].filter(Boolean).join(","),"){return ").concat(t(e,!1),"})");if(n&&e.ifConditions)return"("+e.ifConditions.map((function(e){var n=e.exp,r=e.target;return"".concat(n,"?").concat(t(r,!1),":")})).join("")+'"")';if(D(e.component)&&"template"===e.tag)return e.children.length>0?"[].concat(".concat(e.children.map((function(e){return t(e)})),")"):"";var i=yt(e),o=$t(e.children);return"_c(".concat(e.component||'"'.concat(e.tag,'"')).concat("{}"!==i?",".concat(i):"").concat(e.children.length>0?",[].concat(".concat(e.children.map((function(e){return t(e)})),")"):"").concat(o?",".concat(o):"",")")}(Nt.created(t).root);return"with(this){ return ".concat(e,";}")}var Ht="__VUE_EGRET_DEFAULT__",Mt=function(){function t(n){e(this,t),this._vm=n,this._components=Object.assign({},ke._components,this._vm._components),this._directives=Object.assign({},ke._directives,this._vm._directives),this._init()}return r(t,[{key:"_init",value:function(){var t;(t=this._vm)._c=G,t._n=S,t._s=E,t._q=M,t._i=z,t._l=X,t._b=J,t._g=Z,t._p=K,t.$createVNode=G,this._render="function"==typeof this._vm.$options.render?this._vm.$options.render:Function.prototype.constructor(Vt(this._vm.$options.template)),this._tick()}},{key:"_tick",value:function(){if(this._vm){var t=this._createVNode();this._vnode=this._patch(this._vnode,t)}}},{key:"inserted",value:function(){this._triggerDirective("inserted",this._vnode)}},{key:"update",value:function(){this._tick()}},{key:"destroy",value:function(){this._vnode&&this._destroyDisObj(this._vnode),this._vm=null}},{key:"_patch",value:function(t,e){if(t)if(this._sameVNode(t,e))this._patchVNode(t,e);else{var n=t.sp.$parent;if(n){var r=this._createDisObj(e);n.addChildAt(r,n.getChildIndex(t.sp)),this._destroyDisObj(t)}}else this._vm.$el=this._createDisObj(e);return e}},{key:"_patchVNode",value:function(t,e){e.sp=t.sp,e.vm=t.vm,this._updateDisObj(t,e)}},{key:"_updateChildren",value:function(t,e,n){if(t!==e){for(var r=0,i=0,o=t.length-1,a=e.length-1,s=t[0],c=t[o],u=e[0],f=e[a];r<=o&&i<=a;)if(s)if(c)if(this._sameVNode(s,u))this._patchVNode(s,u),s=t[++r],u=e[++i];else if(this._sameVNode(c,f))this._patchVNode(c,f),c=t[--o],f=e[--a];else{for(var h=void 0,l=r;l<=o;l++)if(this._sameVNode(u,t[l])){this._patchVNode(t[l],u),h=u.sp,n.setChildIndex(h,i);var v=t.splice(l,1)[0];t.splice(i,0,v),s=t[++r];break}h||(h=this._createDisObj(u),n.addChildAt(h,i)),u=e[++i]}else c=t[--o];else s=t[++r];if(r>o)for(var p;i<=a;++i)u=e[i],p=this._createDisObj(u),n.addChildAt(p,i);else if(i>a)for(;r<=o;++r)s=t[r],this._destroyDisObj(s)}}},{key:"_createVNode",value:function(){return this._render.call(this._vm,G)}},{key:"_sameVNode",value:function(t,e){return t.key===e.key&&t.tag===e.tag&&(t.attrs||{}).key===(e.attrs||{}).key}},{key:"_createDisObj",value:function(t){var e=this,n=t.Ctrl||this._components[t.tag];if(tt(),n){var r={parent:this._vm,propsData:{},_propsKeys:[],attrs:{},listeners:{}},i=n.options.props;for(var o in i)r._propsKeys.push(o),H(this._vm.$props,o)&&(r.propsData[o]=this._vm.$props[o]),H(t.attrs,o)&&(r.propsData[o]=t.attrs[o]);for(var a in t.attrs)H(r.propsData,a)||(r.attrs[a]=t.attrs[a]);for(var s in t.vm=new n(r),t.sp=t.vm.$el,t.on)r.listeners[s]=t.on[s]=this._addInvoker(s,t);for(var c in t.nativeOn)t.nativeOn[c]=this._addInvoker(c,t,!0);!1!==t.vm.$options.inheritAttrs&&this._addAttrs(t,r.attrs)}else if(n=egret[t.tag]||function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=n.split("."),i=k(r);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(!t[o])return null;t=t[o]}}catch(t){i.e(t)}finally{i.f()}return t}(window,t.tag)){for(var u in t.sp=new n,t.on)t.on[u]=this._addInvoker(u,t);this._addAttrs(t,t.attrs)}if(!n)throw new Error("Then [".concat(t.tag,"] Node is undefined!!!"));if(t.ref){var f=this._vm.$refs,h=t.vm||t.sp;if(t.refInFor)if(Array.isArray(f[t.ref])){var l=f[t.ref];l.indexOf(h)<0&&l.push(h)}else f[t.ref]=[h];else f[t.ref]=h}return this._triggerDirective("bind",t),t.children.forEach((function(n){t.sp.addChild(e._createDisObj(n))})),et(),t.sp}},{key:"_updateDisObj",value:function(t,e){if(t.vm){for(var n in t.vm.$props)H(this._vm.$props,n)&&(t.vm.$props[n]=this._vm.$props[n]),H(e.attrs,n)&&(t.vm.$props[n]=e.attrs[n]);var r=t.vm._parentOptions,i=r.attrs;for(var o in r.attrs=[],e.attrs)H(t.vm.$props,o)||(r.attrs[o]=e.attrs[o]);for(var a in e.on)r.listeners[a]=t.on[a]=e.on[a]=this._updateInvoker(a,t,e);for(var s in t.on)D(e.on[s])&&this._removeInvoker(s,t);for(var c in e.nativeOn)t.nativeOn[c]=e.nativeOn[c]=this._updateInvoker(c,t,e,!0);for(var u in t.nativeOn)D(e.nativeOn[u])&&this._removeInvoker(u,t,!0);!1!==t.vm.$options.inheritAttrs&&this._updateAttrs(t,i,r.attrs)}else{for(var f in e.on)t.on[f]=e.on[f]=this._updateInvoker(f,t,e);for(var h in t.on)D(e.on[h])&&this._removeInvoker(h,t);this._updateAttrs(t,t.attrs,e.attrs)}this._triggerDirective("update",e,t),this._updateChildren(t.children,e.children,e.sp),this._triggerDirective("componentUpdated",e,t)}},{key:"_destroyDisObj",value:function(t){var e=this;if(t.vm&&t.vm.$callHook("beforeDestroyed"),t.sp){if(this._triggerDirective("unbind",t),t.sp&&t.sp.$parent&&t.sp.$parent.removeChild(t.sp),!t.vm)for(var n in t.on)this._removeInvoker(n,t,!1);for(var r in t.nativeOn)this._removeInvoker(r,t,!0)}if(t.ref){var i=this._vm.$refs,o=t.vm||t.sp;if(t.refInFor&&Array.isArray(i[t.ref])){var a=i[t.ref];if(a.length<=1)delete this._vm.$refs[t.ref];else{var s=a.indexOf(o);s>0&&a.splice(s,1)}}else delete this._vm.$refs[t.ref]}return t.children.forEach((function(t){return e._destroyDisObj(t)})),t}},{key:"_addAttrs",value:function(t,e){for(var n in H(t.sp,Ht)||(t.sp[Ht]={}),e)t.sp[Ht][n]=t.sp[n],t.sp[n]=e[n]}},{key:"_updateAttrs",value:function(t,e,n){for(var r in n)e[r]!==n[r]&&(H(t.sp[Ht],r)||(t.sp[Ht][r]=t.sp[r]),t.sp[r]=n[r]);for(var i in e)D(n[i])&&(t.sp[i]=t.sp[Ht][i])}},{key:"_addInvoker",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?"nativeOn":"on",i=ut(t),o=e[r][t];return D(o.fns)&&(o=U(o,this._vm)),!e.vm||n?e.sp[i.once?"once":"addEventListener"](i.name,o,this._vm,i.capture):e.vm[i.once?"$once":"$on"](i.name,o),o}},{key:"_updateInvoker",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=r?"nativeOn":"on",o=e[i][t],a=n[i][t];if(D(a));else{if(D(o))return this._addInvoker(t,n,r);if(a!==o)return o.fns=a,o}}},{key:"_removeInvoker",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?e.nativeOn[t]:e.on[t],i=ut(t);return!e.vm||n?e.sp.removeEventListener(i.name,r,this._vm,i.capture):e.vm.$off(i.name,r),r}},{key:"_triggerDirective",value:function(t,e,n){if(e.directives){var r,i=n&&ft(n.directives),o=k(e.directives);try{for(o.s();!(r=o.n()).done;){var s=r.value,c=this._directives[s.name];if(c&&c[t]){var u=a({},s);i&&(H(i[s.name],"value")&&(u.oldValue=i[s.name].value),H(i[s.name],"arg")&&(u.oldArg=i[s.arg].value)),c[t].apply(this._vm,[e.sp,u].concat(Array.prototype.slice.call(arguments,1)))}}}catch(t){o.e(t)}finally{o.f()}}}}]),t}(),zt=new Set;function Bt(t){!function t(e,n){var r,i,o=Array.isArray(e);if(!o&&!x(e)||Object.isFrozen(e))return;if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=e.length;r--;)t(e[r],n);else for(i=Object.keys(e),r=i.length;r--;)t(e[i[r]],n)}(t,zt),zt.clear()}var Rt="undefined"!=typeof window,Lt="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform&&WXEnvironment.platform.toLowerCase(),Wt=Rt&&window.navigator.userAgent.toLowerCase();Wt&&/msie|trident/.test(Wt),Wt&&Wt.indexOf("msie 9.0");Wt&&Wt.indexOf("edge/");Wt&&Wt.indexOf("android");var Gt=Wt&&/iphone|ipad|ipod|ios/.test(Wt)||"ios"===Lt;Wt&&/chrome\/\d+/.test(Wt),Wt&&/phantomjs/.test(Wt),Wt&&Wt.match(/firefox\/(\d+)/);var Ut=[],Jt=!1;function Zt(){Jt=!1;var t=Ut.slice(0);Ut.length=0;for(var e=0;e<t.length;e++)t[e]()}var Kt=Promise.resolve();function Xt(t,e){var n;if(Ut.push((function(){if(t)try{t.call(e)}catch(t){console.log(t,e,"nextTick")}else n&&n(e)})),Jt||(Jt=!0,Kt.then(Zt),Gt&&setTimeout(w)),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}var qt=[],Qt=[],Yt={},te=!1,ee=!1,ne=0;function re(){var t,e;for(ee=!0,qt.sort((function(t,e){return t.id-e.id})),ne=0;ne<qt.length;ne++)(t=qt[ne]).before&&t.before(),e=t.id,Yt[e]=null,t.run();var n=qt.slice();ne=qt.length=Qt.length=0,Yt={},te=ee=!1,function(t){var e=t.length;for(;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&r.$callHook("updated")}}(n)}var ie=0,oe=function(){function t(n,r,i,o){if(e(this,t),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.immediate=!!o.immediate,this.before=o.before):this.deep=this.user=this.lazy=this.sync=this.immediate=!1,n._watchers.push(this),this.id=ie++,this.active=!0,this.dirty=this.lazy,this.vm=n,this.deps=[],this.newDeps=[],this.depIds=new Set,this.newDepIds=new Set,this.cb=i||w,this.expression=r.toString(),"function"==typeof r?this.getter=r:(this.getter=function(t){if(!O.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}}}(r),this.getter||(this.getter=w)),this.value=this.lazy?void 0:this.get(),this.immediate)try{i.call(n,this.value)}catch(t){console.error('callback for immediate watcher "'.concat(this.expression,'"'))}}return r(t,[{key:"get",value:function(){var t;tt(this);try{t=this.getter.call(this.vm,this.vm)}catch(t){console.log(t)}finally{this.deep&&Bt(t),et(),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();var r=this.deps;this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0}},{key:"update",value:function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==Yt[e]){if(Yt[e]=!0,ee){for(var n=qt.length-1;n>ne&&qt[n].id>t.id;)n--;qt.splice(n+1,0,t)}else qt.push(t);te||(te=!0,Xt(re))}}(this)}},{key:"run",value:function(){if(this.active){var t=this.get();if(t!==this.value||x(t)){var e=this.value;this.value=t,this.cb.call(this.vm,t,e)}}}},{key:"evaluate",value:function(){this.value=this.get(),this.dirty=!1}},{key:"depend",value:function(){for(var t=this.deps.length;t--;)this.deps[t].depend()}},{key:"teardown",value:function(){if(this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}}}]),t}(),ae=Array.prototype,se=Object.create(ae),ce=Object.getOwnPropertyNames(se);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=ae[t];$(se,t,(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o,a=e.apply(this,r),s=this.__ob__;switch(t){case"push":case"unshift":o=r;break;case"splice":o=r.slice(2)}return o&&s.observeArray(o),s.dep.notify(),a}))}));var ue=function(){function t(n){var r;e(this,t),this.value=n,this.dep=new Q,this.vmCount=0,$(n,"__ob__",this),Array.isArray(n)?(A?(r=se,n.__proto__=r):function(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];$(t,o,e[o])}}(n,se,ce),n.forEach((function(t){return he(t)}))):this.walk(n)}return r(t,[{key:"walk",value:function(t){for(var e in t)fe(t,e)}},{key:"observeArray",value:function(t){t.forEach((function(t){return he(t)}))}}]),t}();function fe(t,e,n){var r=new Q,i=Object.getOwnPropertyDescriptor(t,e);if(!i||!1!==i.configurable){var o=i&&i.get,a=i&&i.set;o&&!a||2!==arguments.length||(n=t[e]);var s=he(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=o?o.call(t):n;return Q.target&&(r.depend(),s&&(s.dep.depend(),Array.isArray(e)&&pe(e))),e},set:function(e){var i=o?o.call(t):n;e===i||e!=e&&i!=i||o&&!a||(a?a.call(t,e):n=e,s=he(e),r.notify())}})}}function he(t,e){var n;if(x(t))return H(t,"__ob__")&&t.__ob__ instanceof ue?n=t.__ob__:!Array.isArray(t)&&!I(t)||!Object.isExtensible(t)||t instanceof egret.HashObject||t._isVue||(n=new ue(t)),e&&n&&n.vmCount++,n}function le(t,e,n){if(Array.isArray(t)&&T(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?(console.warn("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):r?(fe(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function ve(t,e){if(Array.isArray(t)&&T(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount?console.warn("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):H(t,e)&&(delete t[e],n&&n.dep.notify())}}function pe(t){t.forEach((function(t){t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&pe(t)}))}function de(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function ye(t,e){return(Array.isArray(e)?e:[e]).some((function(e){return n=t,de(e)===de(n);var n}))}function _e(t){var e,n={};if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)"string"==typeof(e=t[r])&&(n[e]={type:null});else for(var i in t)e=t[i],n[i]=I(e)?e:{type:e};return n}function ge(e,n){if("object"===t(e)&&e.type){if("function"==typeof e.default){if(!ye(Function,e.type))return e.default.call(n)}else if(void 0===e.default){if(ye(String,e.type))return"";if(ye(Number,e.type))return 0;if(ye(Boolean,e.type))return!1;if(ye(Array,e.type))return[];if(ye(Object,e.type))return{}}return e.default}return e}function me(){for(var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if("Tween"in egret)return new Promise((function(r){var o,a=(o=egret.Tween).get.apply(o,[n||t].concat(i));e.forEach((function(t){var e,n=p(t),r=n[0],i=n.slice(1);"function"==typeof a[r]&&(a=(e=a)[r].apply(e,d(i)))})),a.call(r,t,[a])}));throw"The egret.Tween.js not import!!!"}var be=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,t),this.$children=[],this.$refs={},this.$set=le,this.$delete=ve,this.$nextTick=function(t){return Xt(t,this)},this.$tween=me,this._global={},this._data={},this._props={},this._hasHookEvent=!1,this._isVue=!0,this._isMounted=!1,this._isBeingDestroyed=!1,this._isDestroyed=!1,this._watchers=[],this._events={},this._components={},this._directives={},this.$options=n,this._parentOptions=r,this._init()}return r(t,[{key:"_init",value:function(){this.$parent=this._parentOptions.parent,this.$parent&&this.$parent.$children.push(this),this.$root=this.$parent?this.$parent.$root:this,this._initMethods(this.$options.methods),this.$callHook("beforeCreate"),this._initGlobal(),this._initData(this.$options.data),this._initProps(this.$options.props,this._parentOptions.propsData),this._initComputed(this.$options.computed),this._initWatch(this.$options.watch),this._initComponents(this.$options.components),this._initDirectives(this.$options.directives),this.$callHook("created"),this._render=new Mt(this),this._initEvent()}},{key:"_initEvent",value:function(){var t=this;this.$el.once(egret.Event.ADDED,(function(){return t._render.inserted()}),this.$el),this.$el.once(egret.Event.ADDED_TO_STAGE,(function(){t.$callHook("beforeMount"),t._global.stage=t.$el.stage,t._watcher=new oe(t,(function(){t._render&&(t._isMounted&&t.$callHook("beforeUpdate"),t._render.update())}),w),t._isMounted=!0,t.$callHook("mounted")}),this.$el),this.$el.once(egret.Event.REMOVED_FROM_STAGE,(function(){return t.$destroy()}),this.$el)}},{key:"_initGlobal",value:function(){this._global={stage:new egret.Stage},he(this._global,!0)}},{key:"_initProps",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=_e(e),i=function(e){t._props[e]=H(n,e)?n[e]:ge(r[e],t),Object.defineProperty(t,e,{get:function(){return this._props[e]},set:function(t){console.error("The props data not set!")}})};for(var o in r)i(o);he(this._props,!0)}},{key:"_initData",value:function(t){var e=this;this._data="function"==typeof t?this._getData(t):t||{};var n=function(t){Object.defineProperty(e,t,{get:function(){return this._data[t]},set:function(e){this._data[t]=e}})};for(var r in this._data)n(r);he(this._data,!0)}},{key:"_initMethods",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)this[e]=t[e]}},{key:"_initComputed",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var n in e){var r=e[n]||w;t="function"==typeof r?{get:r,set:w}:{get:r.get,set:r.set},Object.defineProperty(this,n,t)}}},{key:"_initWatch",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=function(n){var r=e[n];Array.isArray(r)?r.forEach((function(e){return t._createWatcher(n,e)})):t._createWatcher(n,r)};for(var r in e)n(r)}},{key:"_initComponents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)this._components[e]=ke.extend(t[e])}},{key:"_initDirectives",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)this._directives[e]=t[e]}},{key:"_getData",value:function(t){tt();try{return t.call(this,this)}catch(t){return console.log(t),{}}finally{et()}}},{key:"_createWatcher",value:function(t,e,n){return I(e)&&(n=e,e=e.handler),"string"==typeof e&&(e=this[e]),this.$watch(t,e,n)}},{key:"$on",value:function(t,e){var n,r=this;Array.isArray(t)?t.forEach((function(t){return r.$on(t,e)})):((this._events[t]||(this._events[t]=[])).push(e),n=t,P.test(n)&&(this._hasHookEvent=!0));return this}},{key:"$once",value:function(t,e){var n=this,r=function r(){n.$off(t,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e.apply(n,o)};return r.fn=e,this.$on(t,r),this}},{key:"$off",value:function(t,e){var n=this;if(!arguments.length)return this._events=Object.create(null),this._hasHookEvent=!1,this;if(Array.isArray(t))return t.forEach((function(t){return n.$off(t,e)})),this;var r=this._events[t];if(!r)return this;if(!e)return this._events[t]=null,this;if(e)for(var i=r.length;i--;)if(r[i]===e){r.splice(i,1);break}return this}},{key:"$emit",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this._events[t];return o&&d(o).forEach((function(t){return t.apply(e.$parent,r)})),this}},{key:"$watch",value:function(t,e,n){if(I(e))return this._createWatcher(t,e,n);var r=new oe(this,t,e,n=n||{});return function(){r.teardown()}}},{key:"$callHook",value:function(t){if(tt(),"function"==typeof this.$options[t]){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.$options[t]).call.apply(e,[this].concat(r))}this._hasHookEvent&&this.$emit("hook:"+t),et()}},{key:"$forceUpdate",value:function(){this._watcher&&this._watcher.update()}},{key:"$mount",value:function(t){return t instanceof egret.DisplayObjectContainer&&this.$el&&t.addChild(this.$el),this}},{key:"$destroy",value:function(){if(!this._isBeingDestroyed){if(this.$callHook("beforeDestroy"),this._isBeingDestroyed=!0,this.$parent&&!this.$parent._isBeingDestroyed){var t=this.$parent.$children.indexOf(this);t>-1&&this.$parent.$children.splice(t,1)}this._watcher&&(this._watcher.teardown(),this._watcher=null,this._watchers=null),this._render&&(this._render.destroy(),this._render=null),this._events&&(this._events=null),this._isDestroyed=!0,this.$callHook("destroyed")}}},{key:"$displayObject",value:function(e,n){var r=this;if("string"==typeof e){var i=this.$refs[e];return Array.isArray(i)?n?i.map((function(t){return r.$displayObject(t)})):this.$displayObject(i[0]):this.$displayObject(i)}return e instanceof t?e.$el:e instanceof egret.DisplayObject?e:null}},{key:"$hitTest",value:function(t,e){var n=this.$displayObject(t),r=this.$displayObject(e);if(!n||!r)return!0;var i=n.getBounds(),o=r.getBounds();return i.x=n.x,i.y=n.y,o.x=r.x,o.y=r.y,i.intersects(o)}},{key:"$hitTestPoint",value:function(t,e,n,r){var i=this.$displayObject(t);return!!i&&i.hitTestPoint(e,n,r)}},{key:"$globalToLocal",value:function(t,e,n){var r=this.$displayObject(t),i=new egret.Point(e,n);return r&&r.globalToLocal(e,n,i),i}},{key:"$localToGlobal",value:function(t,e,n){var r=this.$displayObject(t),i=new egret.Point(e,n);return r&&r.localToGlobal(e,n,i),i}},{key:"$stage",get:function(){return this._global.stage}},{key:"$stageWidth",get:function(){return this._global.stage.stageWidth}},{key:"$stageHeight",get:function(){return this._global.stage.stageHeight}},{key:"$data",get:function(){return this._data}},{key:"$props",get:function(){return this._props}},{key:"$attrs",get:function(){return this._parentOptions.attrs||j}},{key:"$listeners",get:function(){return this._parentOptions.listeners||j}}]),t}(),ke=function(t){s(i,t);var n=l(i);function i(t){return e(this,i),n.call(this,t)}return r(i,null,[{key:"component",value:function(t,e){return e?i._components[t]=i.extend(e):i._components[t]}},{key:"directive",value:function(t,e){return e?i._directives[t]="function"==typeof e?{bind:e,update:e}:e:i._directives[t]}},{key:"extend",value:function(t){var n;return"function"==typeof t?t:((n=function(n){s(i,n);var r=l(i);function i(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(this,i),r.call(this,t,n)}return i}(be)).cid=i.cid++,n.options=t,n)}},{key:"classMain",value:function(t){return function(n){s(o,egret.DisplayObjectContainer);var r=l(o);function o(){var n;return e(this,o),(n=r.call(this)).vm=new i(t),n.vm.$mount(f(n)),n}return o}()}}]),i}(be);return ke.cid=0,ke.version="1.4.2",ke._components={},ke._directives={},ke.set=le,ke.delete=ve,ke.nextTick=Xt,ke}));