diff --git a/package.json b/package.json
index caffc3a..727f880 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "dns-host",
"version": "1.0.0",
"description": "伪域名解析",
- "main": "index.js",
+ "main": "main.js",
"scripts": {
"start": "electron .",
"pack": "electron-builder"
@@ -23,10 +23,7 @@
"buildResources": "icons",
"output": "build"
},
- "files": [
- "src/**/*",
- "node_modules/iofs/*"
- ],
+ "files": ["src/**/*", "node_modules/iofs/*"],
"mac": {
"category": "public.app-category.development",
"target": "dmg",
diff --git a/src/index.html b/src/index.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/lib/anot.js b/src/lib/anot.js
new file mode 100644
index 0000000..924e485
--- /dev/null
+++ b/src/lib/anot.js
@@ -0,0 +1,8 @@
+/*==================================================
+ * Anot normal version for future browsers
+ * @authors yutent (yutent@doui.cc)
+ * @date 2017-03-21 21:05:57
+ * V2.0.0
+ *
+ ==================================================*/
+ const _Anot=function(){var e=1024,t=k(),n=window.document,r=n.head;r.insertAdjacentHTML("afterbegin",'');var i=r.firstChild;function a(){console.log.apply(console,arguments)}function o(){return Object.create(null)}var s="$"+t,c={},l=/[^, ]+/g,u=/\w+/g,f=/^\[object SVG\w*Element\]$/,p=Object.prototype,d=p.hasOwnProperty,h=p.toString,v=Array.prototype,m=v.slice,y=n.documentElement,g=n.createDocumentFragment(),b=(n.createElement("div"),{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object Error]":"error","[object AsyncFunction]":"asyncfunction","[object Promise]":"promise","[object Generator]":"generator","[object GeneratorFunction]":"generatorfunction"});function x(){}function $(e){return Function.apply(x,e)}function w(e,t){"string"==typeof e&&(e=e.match(l)||[]);for(var n={},r=void 0!==t?t:1,i=0,a=e.length;i{e.resolve=t,e.reject=n}),e}),String.prototype.splice||Object.defineProperty(String.prototype,"splice",{value:function(e,t,n){let r=this.length,i=arguments.length;if(n=void 0===n?"":n,i<1)return this;if(e<0&&(e=Math.abs(e)>=r?0:r+e),1===i)return this.slice(0,e);return t-=0,this.slice(0,e)+n+this.slice(e+t)},enumerable:!1}),Date.prototype.getFullWeek||(Object.defineProperty(Date.prototype,"getFullWeek",{value:function(){let e=this.getFullYear(),t=new Date(e,0,1),n=t.getDay()||1,r=(this-t)/864e5;return Math.ceil((r+n)/7)},enumerable:!1}),Object.defineProperty(Date.prototype,"getWeek",{value:function(){let e=this.getDate(),t=this.getMonth(),n=this.getFullYear(),r=new Date(n,t,1).getDay();return Math.ceil((e+r)/7)},enumerable:!1})),Date.isDate||Object.defineProperty(Date,"isDate",{value:function(e){return!("object"!=typeof e||!e.getTime)},enumerable:!1}),Date.prototype.format||Object.defineProperty(Date.prototype,"format",{value:function(e){e=e||"Y-m-d H:i:s";let t,n={fullyear:this.getFullYear(),year:this.getYear(),fullweek:this.getFullWeek(),week:this.getWeek(),month:this.getMonth()+1,date:this.getDate(),day:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"][this.getDay()],hours:this.getHours(),minutes:this.getMinutes(),seconds:this.getSeconds()};n.g=n.hours>12?n.hours-12:n.hours,t={Y:n.fullyear,y:n.year,m:n.month<10?"0"+n.month:n.month,n:n.month,d:n.date<10?"0"+n.date:n.date,j:n.date,H:n.hours<10?"0"+n.hours:n.hours,h:n.g<10?"0"+n.g:n.g,G:n.hours,g:n.g,i:n.minutes<10?"0"+n.minutes:n.minutes,s:n.seconds<10?"0"+n.seconds:n.seconds,W:n.fullweek,w:n.week,D:n.day};for(let n in t)e=e.replace(new RegExp(n,"g"),t[n]);return e},enumerable:!1});let C=function(e){return new C.init(e)};C.nextTick=new function(){let e=window.setImmediate,t=window.MutationObserver;if(e)return e.bind(window);let n=[];if(t){let e=document.createTextNode("anot");new t(function(){let e=n.length;for(let t=0;t>>0)return!0}return!1}(e))for(let n=0,r=e.length;n1){if(!e)return;if(n=n||{},n=Object.assign({expires:"",path:"/",domain:document.domain,secure:""},n),"string"==this.type(t)&&""===t.trim()||null===t)return document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain="+n.domain+"; path="+n.path,!0;if(n.expires)switch(n.expires.constructor){case Number:n.expires=n.expires===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n.expires;break;case String:n.expires="; expires="+n.expires;break;case Date:n.expires="; expires="+n.expires.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+n.expires+"; domain="+n.domain+"; path="+n.path+"; "+n.secure,!0}return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:document.cookie},search:function(e){e+="";let t=location.search;if(!e||!t)return null;t=(t=(t=decodeURIComponent(t)).slice(1)).split("&");let n={};for(let e,r=0;e=t[r++];){let t=e.split("=");t[1]=t.length<2?null:t[1],t[1]=t[1],n.hasOwnProperty(t[0])?"object"==typeof n[t[0]]?n[t[0]].push(t[1]):(n[t[0]]=[n[t[0]]],n[t[0]].push(t[1])):n[t[0]]=t[1]}return n.hasOwnProperty(e)?n[e]:null},copy:function(e){if(!n.queryCommandSupported||!n.queryCommandSupported("copy"))return a("该浏览器不支持复制到粘贴板");let t=n.createElement("textarea");t.textContent=e,t.style.position="fixed",t.style.bottom="-1000px",n.body.appendChild(t),t.select();try{n.execCommand("copy")}catch(e){a("复制到粘贴板失败",e)}n.body.removeChild(t)}});let j=C.bindingHandlers={},T=C.bindingExecutors={},O=C.directives={};C.directive=function(e,t){return j[e]=t.init=t.init||x,T[e]=t.update=t.update||x,O[e]=t};let E=new function(){function e(e){this.size=0,this.limit=e,this.head=this.tail=void 0,this._keymap={}}let t=e.prototype;return t.put=function(e,t){let n={key:e,value:t};return this._keymap[e]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size===this.limit?this.shift():this.size++,t},t.shift=function(){let e=this.head;e&&(this.head=this.head.newer,this.head.older=e.newer=e.older=this._keymap[e.key]=void 0,delete this._keymap[e.key])},t.get=function(e){let t=this._keymap[e];if(void 0!==t)return t===this.tail?t.value:(t.newer&&(t===this.head&&(this.head=t.newer),t.newer.older=t.older),t.older&&(t.older.newer=t.newer),t.newer=void 0,t.older=this.tail,this.tail&&(this.tail.newer=t),this.tail=t,t.value)},e};n.contains||(Node.prototype.contains=function(e){return!!(16&this.compareDocumentPosition(e))}),C.contains=function(e,t){try{for(;t=t.parentNode;)if(t===e)return!0;return!1}catch(e){return!1}};let S=C.eventHooks;function D(e){for(var t in e)if(d.call(e,t)){var n=e[t];"function"==typeof D.plugins[t]?D.plugins[t](n):"object"==typeof D[t]?C.mix(D[t],n):D[t]=n}return this}void 0===n.onmousewheel&&(S.mousewheel={type:"wheel",fix:function(e,t){return function(n){n.wheelDeltaY=n.wheelDelta=n.deltaY>0?-120:120,n.wheelDeltaX=0,Object.defineProperty(n,"type",{value:"mousewheel"}),t.call(e,n)}}}),C.config=D;var _,P,L,M,H=/[-.*+?^${}()|[\]\/\\]/g;function F(e){return(e+"").replace(H,"\\$&")}var I={interpolate:function(e){if(_=e[0],P=e[1],_===P)throw new SyntaxError("openTag!==closeTag");D.openTag=_,D.closeTag=P;var t=F(_),n=F(P);L=new RegExp(t+"([\\s\\S]*)"+n),M=new RegExp(t+"([\\s\\S]*)"+n,"g"),new RegExp(t+"[\\s\\S]*"+n+"|\\s:")}};function B(t,r){var i=this.$events||(this.$events={}),a=i[t]||(i[t]=[]);if("function"==typeof r){var o=r;o.uuid="_"+ ++e,(r={element:y,type:"user-watcher",handler:x,vmodels:[this],expr:t,uuid:o.uuid}).wildcard=/\*/.test(t)}if(r.update)r.oneTime||C.Array.ensure(a,r);else{if(/\w\.*\B/.test(t)||"*"===t){r.getter=x;var s=this;r.update=function(){var e=this.fireArgs||[];e[2]&&r.handler.apply(s,e),delete this.fireArgs},a.sync=!0,C.Array.ensure(a,r)}else C.injectBinding(r);o&&(r.handler=o)}return function(){r.update=r.getter=r.handler=x,r.element=n.createElement("a")}}function R(t,n){var r=this.$events,i=null;if(r&&r[t]){n&&(n[2]=t);var a=r[t];if(function(t,n){if(!t)return;new Date-ae>444&&"object"==typeof t[0]&&se();for(var r,i=[],a=[],o=0;r=t[o++];)"user-watcher"===r.type?i.push(r):a.push(r);if(D.async){for(ft.render(),o=0;r=a[o++];)if(r.update){r.uuid=r.uuid||"_"+ ++e;var s=r.uuid;ft.queue[s]||(ft.queue[s]="__",ft.queue.push(r))}}else for(o=0;r=a[o++];)r.update&&r.update();for(o=0;r=i[o++];)(n&&n[2]===r.expr||r.wildcard)&&(r.fireArgs=n),r.update()}(a,n),n&&r["*"]&&!/\./.test(t))for(var o,s=0;o=r["*"][s++];)try{o.handler.apply(this,n)}catch(e){}(i=this.$up)&&(this.$pathname&&R.call(i,this.$pathname+"."+t,n),R.call(i,"*."+t,n))}else{if(i=this.$up,this.$ups){for(var c in this.$ups)R.call(this.$ups[c],c+"."+t,n);return}if(i){var l=this.$pathname;""===l&&(l="*");var u=l+"."+t;a=u.split("."),n=n&&n.concat([u,t])||[u,t],-1===a.indexOf("*")?(R.call(i,u,n),a[1]="*",R.call(i,a.join("."),n)):R.call(i,u,n)}}}D.plugins=I,D.plugins.interpolate(["{{","}}"]),D.async=!0,D.paths={},D.shim={},D.maxRepeatSize=100;var q=w("$id,$watch,$fire,$events,$model,$active,$pathname,$up,$ups,$track,$accessors");function V(e,t){return(t=t||{}).watch=!0,W(e,t)}function W(e,t){if(!e||e.$id&&e.$accessors||e.nodeName&&e.nodeType>0)return e;var n,r=(t=t||c).force||c,i=t.old,o=i&&i.$accessors||c,s=new function(){},l={},u={},f=[],p=[],d={},h=e.state,v=e.computed,m=e.methods,y=e.props,g=e.watch,b=e.mounted;if(delete e.state,delete e.computed,delete e.methods,delete e.props,delete e.watch,e.skip&&(d=w(e.skip),delete e.skip),h)for(k in e.$id&&delete h.props,h){var $=h[k];q[k]||(u[k]=!0),"function"==typeof $||$&&$.nodeName&&$.nodeType>0||!r[k]&&("$"===(n=k).charAt(0)||"__"===n.slice(0,2)||q[n]||d[k])?f.push(k):z($)?(a("warning:计算属性建议放在[computed]对象中统一定义"),v[k]=$):(p.push(k),o[k]?l[k]=o[k]:l[k]=U(k,$))}if(v)for(var k in delete v.props,v)u[k]=!0,function(e,t){var n;"function"==typeof t&&(t={get:t,set:x}),"function"!=typeof t.set&&(t.set=x),l[e]={get:function(){return n=t.get.call(this)},set:function(r){var i,a=n;t.set.call(this,r),i=this[e],this.$fire&&i!==a&&this.$fire(e,i,a)},enumerable:!0,configurable:!0}}(k,v[k]);if(m)for(var k in delete m.props,m)u[k]=!0,f.push(k);if(y)for(var k in G(s,"props",{}),u.props=!!e.$id,y)s.props[k]=y[k];if(Object.assign(e,h,m),l.$model=X,s=Object.defineProperties(s,l,e),f.forEach(function(t){s[t]=e[t]}),G(s,"$id","anonymous"),G(s,"$up",i?i.$up:null),G(s,"$track",Object.keys(u)),G(s,"$active",!1),G(s,"$pathname",i?i.$pathname:""),G(s,"$accessors",l),G(s,"$events",{}),G(s,"$refs",{}),G(s,"$children",[]),G(s,"hasOwnProperty",function(e){return!0===u[e]}),G(s,"$mounted",b),t.watch&&(G(s,"$watch",function(){return B.apply(s,arguments)}),G(s,"$fire",function(e,t){if(0===e.indexOf("all!")){var n=e.slice(4);for(var r in C.vmodels){(i=C.vmodels[r]).$fire&&i.$fire.apply(i,[n,t])}}else if(0===e.indexOf("child!")){n="props."+e.slice(6);for(var r in s.$children){var i;(i=s.$children[r]).$fire&&i.$fire.apply(i,[n,t])}}else R.call(s,e,[t])})),p.forEach(function(e){var t=i&&i[e],n=s[e]=h[e];n&&"object"==typeof n&&!Date.isDate(n)&&(n.$up=s,n.$pathname=e),R.call(s,e,[n,t])}),g)for(var A in delete g.props,g)if(Array.isArray(g[A]))for(var N;N=g[A].pop();)B.call(s,A,N);else B.call(s,A,g[A]);return s.$active=!0,"anonymous"!==s.$id&&i&&i.$up&&i.$up.$children&&i.$up.$children.push(s),s}function z(e){if(e&&"object"==typeof e){for(var t in e)if("get"!==t&&"set"!==t)return!1;return"function"==typeof e.get}}function U(e,t){var n;t=NaN;return{get:function(){return this.$active&&function(e,t){for(;;){if(e.$watch){var n=e.$events||(e.$events={}),r=n[t]||(n[t]=[]);return void re.collectDependency(r)}if(!(e=e.$up))break;t=e.$pathname+"."+t}}(this,e),t},set:function(r){if(t!==r){var i=t;(n=Y(r,t))?t=n:(n=void 0,t=r),Object(n)===n&&(n.$pathname=e,n.$up=this),this.$active&&R.call(this,e,[t,i])}},enumerable:!0,configurable:!0}}function Y(e,t,n,r){if(Array.isArray(e))return function(e,t,n){if(t&&t.splice){var r=[0,t.length].concat(e);return t.splice.apply(t,r),t}for(var i in Z)e[i]=Z[i];G(e,"$up",null),G(e,"$pathname",""),G(e,"$track",ee(e.length)),e._=W({state:{length:NaN}},{watch:!0}),e._.length=e.length,e._.$watch("length",function(t,n){R.call(e.$up,e.$pathname+".length",[t,n])}),n&&G(e,"$watch",function(){return B.apply(e,arguments)}),Object.defineProperty(e,"$model",X);for(var a=0,o=e.length;a>>=0)>this.length)throw Error(e+"set方法的第一个参数不能大于原数组长度");if(this[e]!==t){var n=this[e];this.splice(e,1,t),R.call(this.$up,this.$pathname+".*",[t,n,null,e])}},contains:function(e){return this.indexOf(e)>-1},ensure:function(e){return this.contains(e)||this.push(e),this},pushArray:function(e){return this.push.apply(this,J(e))},remove:function(e){return this.removeAt(this.indexOf(e))},removeAt:function(e){return e>>>=0,this.splice(e,1)},size:function(){return this._.length},removeAll:function(e){if(Array.isArray(e))for(var t=this.length-1;t>=0;t--)-1!==e.indexOf(this[t])&&(Q.call(this.$track,t,1),Q.call(this,t,1));else if("function"==typeof e)for(t=this.length-1;t>=0;t--){e(this[t],t)&&(Q.call(this.$track,t,1),Q.call(this,t,1))}else Q.call(this.$track,0,this.length),Q.call(this,0,this.length);this.notify(),this._.length=this.length},clear:function(){this.removeAll()}},Q=K.splice;function ee(e){for(var t=[],n=0;n2){n[1],n.length;n=[n[0],n[1]].concat(ee(n.length-2))}}Array.prototype[t].apply(e,n)}(this.$track,e,n),this.notify(),this._.length=this.length,a}}),"sort,reverse".replace(l,function(e){Z[e]=function(){var t=this.concat(),n=Math.random(),r=[],i=!1;K[e].apply(this,arguments);for(var a=0,o=t.length;a444&&se())}(n,t)}}),t.getter=Le(t.expr,t.vmodels,t),t.observers.forEach(function(e){e.v.$watch(e.p,t)}),delete t.observers);try{var r,i,o=t.fireArgs;if(delete t.fireArgs,o)r=o[0],i=o[1];else if("on"===t.type)r=t.getter+"";else try{r=t.getter.apply(0,t.args)}catch(e){r=null}if(i=void 0===i?t.oldValue:i,t._filters&&(r=on.$filter.apply(0,[r].concat(t._filters))),t.signature){var s=C.type(r);if("array"!==s&&"object"!==s)throw Error("warning:"+t.expr+"只能是对象或数组");t.xtype=s;var c=function(e,t){for(var n,r=[],i=0;n=e[i++];)r.push(t?n.$id:n.$key);return r.join(";")}(t.proxies||[],s),l=r.$track||("array"===s?ee(r.length):Object.keys(r));t.track=l,c!==l.join(";")&&(t.handler(r,i),t.oldValue=1)}else Array.isArray(r)&&r.length!==(i&&i.length)?(t.handler(r,i),t.oldValue=r.concat()):"oldValue"in t&&r===i||(t.handler(r,i),t.oldValue=Array.isArray(r)?r.concat():r)}catch(e){delete t.getter,a("warning:exception throwed in [Anot.injectBinding] ",e);var u=t.element;u&&3===u.nodeType&&(u.nodeValue=_+(t.oneTime?"::":"")+t.expr+P)}finally{n&&re.end()}},t.update()};var ie=C.$$subscribers=[],ae=new Date;var oe=0;function se(e){for(var t=oe||ie.length,n=0;e=ie[--t];)if(e.i<7){if(null===e.element){ie.splice(t,1),e.list&&(C.Array.remove(e.list,e),delete ie[e.uuid]);continue}if(le(e.element)){if(ie.splice(t,1),C.Array.remove(e.list,e),ce(e),n++>500){oe=t;break}continue}e.i++,7===e.i&&(e.i=14)}else e.i--;ae=new Date}function ce(e){for(var t in delete ie[e.uuid],e.element=null,e.rollback&&e.rollback(),e)e[t]=null}function le(e){try{e.parentNode.nodeType}catch(e){return!0}return e.ifRemove&&!y.contains(e.ifRemove)&&i===e.parentNode?(e.parentNode&&e.parentNode.removeChild(e),!0):e.msRetain?0:1===e.nodeType?!y.contains(e):!C.contains(y,e)}var ue=new function(){C.mix(this,{option:n.createElement("select"),thead:n.createElement("table"),td:n.createElement("tr"),area:n.createElement("map"),tr:n.createElement("tbody"),col:n.createElement("colgroup"),legend:n.createElement("fieldset"),_default:n.createElement("div"),g:n.createElementNS("http://www.w3.org/2000/svg","svg")}),this.optgroup=this.option,this.tbody=this.tfoot=this.colgroup=this.caption=this.thead,this.th=this.td};String("circle,defs,ellipse,image,line,path,polygon,polyline,rect,symbol,text,use").replace(l,function(e){ue[e]=ue.g});var fe=/<([\w:]+)/,pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,de=w(["","text/javascript","text/ecmascript","application/ecmascript","application/javascript"]),he=n.createElement("script"),ve=/<|?\w+;/;function me(e){return e.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").toLowerCase()}function ye(e){return e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,function(e){return e.charAt(1).toUpperCase()})}C.parseHTML=function(e){var t=g.cloneNode(!1);if("string"!=typeof e)return t;if(!ve.test(e))return t.appendChild(n.createTextNode(e)),t;e=e.replace(pe,"<$1>$2>").trim();var r,i=(fe.exec(e)||["",""])[1].toLowerCase(),a=ue[i]||ue._default;a.innerHTML=e;var o=a.getElementsByTagName("script");if(o.length)for(var s,c=0;s=o[c++];)if(de[s.type]){var l=he.cloneNode(!1);v.forEach.call(s.attributes,function(e){l.setAttribute(e.name,e.value)}),l.text=s.text,s.parentNode.replaceChild(l,s)}for(;r=a.firstChild;)t.appendChild(r);return t},C.innerHTML=function(e,t){var n=this.parseHTML(t);this.clearHTML(e).appendChild(n)},C.clearHTML=function(e){for(e.textContent="";e.firstChild;)e.removeChild(e.firstChild);return e},"add,remove".replace(l,function(e){C.fn[e+"Class"]=function(t){var n=this[0];return t&&"string"==typeof t&&n&&1===n.nodeType&&t.replace(/\S+/g,function(t){n.classList[e](t)}),this}}),C.fn.mix({attr:function(e,t){return 2===arguments.length?(this[0].setAttribute(e,t),this):this[0].getAttribute(e)},data:function(e,t){var n=arguments.length,r=this[0].dataset;switch((e=me(e||""))||(n=0),n){case 2:return r[e]=t,this;case 1:return be(r[e]);case 0:var i=o();for(var a in r)i[a]=be(r[a]);return i}},removeData:function(e){return e="data-"+me(e),this[0].removeAttribute(e),this},css:function(e,t){if(C.isPlainObject(e))for(var n in e)C.css(this,n,e[n]);else var r=C.css(this,e,t);return void 0!==r?r:this},position:function(){var e,t,n=this[0],r={top:0,left:0};if(n)return"fixed"===this.css("position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),"HTML"!==e[0].tagName&&(r=e.offset()),r.top+=C.css(e[0],"borderTopWidth",!0),r.left+=C.css(e[0],"borderLeftWidth",!0),r.top-=e.scrollTop(),r.left-=e.scrollLeft()),{top:t.top-r.top-C.css(n,"marginTop",!0),left:t.left-r.left-C.css(n,"marginLeft",!0)}},offsetParent:function(){for(var e=this[0].offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return C(e||y)},bind:function(e,t,n){if(this[0])return C.bind(this[0],e,t,n)},unbind:function(e,t,n){return this[0]&&C.unbind(this[0],e,t,n),this},val:function(e){var t,n,r=this[0];if(r&&1===r.nodeType){var i=0===arguments.length,a=i?":get":":set",o=Ae[(t=r,n=t.tagName.toLowerCase(),("input"===n&&/checkbox|radio/.test(t.type)?"checked":n)+a)];if(o)var s=o(r,e);else{if(i)return(r.value||"").replace(/\r/g,"");r.value=e}}return i?s:this}}),C.parseJSON=JSON.parse;var ge=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;function be(e){try{if("object"==typeof e)return e;e="true"===e||"false"!==e&&("null"===e?null:+e+""===e?+e:ge.test(e)?JSON.parse(e):e)}catch(e){}return e}C.fireDom=function(e,t,r){var i=n.createEvent("Events");i.initEvent(t,!0,!0),C.mix(i,r),e.dispatchEvent(i)},C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){C.fn[e]=function(n){var r=this[0]||{},i=function(e){return e.window&&e.document?e:9===e.nodeType&&e.defaultView}(r),a="scrollTop"===e;if(!arguments.length)return i?i[t]:r[e];i?i.scrollTo(a?i[t]:n,a?n:i[t]):r[e]=n}});var xe=C.cssHooks=o(),$e=["","-webkit-","-moz-","-ms-"],we={float:"cssFloat"};C.cssNumber=w("animationIterationCount,animationIterationCount,columnCount,order,flex,flexGrow,flexShrink,fillOpacity,fontWeight,lineHeight,opacity,orphans,widows,zIndex,zoom"),C.cssName=function(e,t,n){if(we[e])return we[e];t=t||y.style;for(var r=0,i=$e.length;r-1)&&(n=!0);n||(e.selectedIndex=-1)}},Ne={};["break,case,catch,continue,debugger,default,delete,do,else,false","finally,for,function,if,in,instanceof,new,null,return,switch,this","throw,true,try,typeof,var,void,while,with","abstract,boolean,byte,char,class,const,double,enum,export,extends","final,float,goto,implements,import,int,interface,long,native","package,private,protected,public,short,static,super,synchronized","throws,transient,volatile","arguments,let,yield,async,await,undefined"].join(",").replace(/\w+/g,function(e){Ne[e]=!0});var je=/[a-z_$]/i,Te=/[\s\uFEFF\xA0]/;function Oe(e,t){if(t&&!Ne[t])return e.push(t),!0}function Ee(e,t,n,r){for(var i,a=[],o=" = "+n+".",s=e.length;i=e[--s];){var c=i.split(".")[0];t.hasOwnProperty(c)&&(a.push(c+o+c),r.observers.push({v:t,p:i,type:C.type(t[c])}),e.splice(s,1))}return a}var Se=/(proxy\-[a-z]+)\-[\-0-9a-f]+$/,De=new E(218),_e=new E(128);function Pe(e){e=e.trim();var t=De.get(e);if(t)return t.concat();for(var n,r=function e(t,n){var r=[],i=!!n;n=n||0;for(var a="unknown",o="",s=0;s0){var t=e.replace(at,function(e){return Array(e.length+1).join("1")}).replace(it,"ᄢ㍄").indexOf("|");if(t>-1)return{type:"text",filters:e.slice(t).trim(),expr:e.slice(0,t)}}return{type:"text",expr:e,filters:""}}function ct(e){for(var t,n,r=[],i=0;;){if(-1===(n=e.indexOf(_,i)))break;if((t=e.slice(i,n))&&r.push({expr:t}),i=n+_.length,-1===(n=e.indexOf(P,i)))break;(t=e.slice(i,n))&&r.push(st(t.replace(ot,""))),i=n+P.length}return(t=e.slice(i))&&r.push({expr:t}),r}function lt(e,t,r){var i=[],a=ct(e.data);if(a.length){for(var o,s=0;o=a[s++];){var c=n.createTextNode(o.expr);o.type&&(o.expr=o.expr.replace(Ue,function(){return o.oneTime=!0,""}),o.element=c,o.filters=o.filters.replace(rt,function(){return o.type="html",""}),o.pos=1e3*r+s,i.push(o)),g.appendChild(c)}e.parentNode.replaceChild(g,e),i.length&&ze(i,t)}}var ut=function(){this.queue=[]};ut.prototype={render:function(e){if(!this.locked){this.locked=e?y.offsetHeight+10:1;var t=this;C.nextTick(function(){t.flush()})}},flush:function(){for(var e,t=0;e=this.queue[t++];)e.update&&e.update();this.locked=0,this.queue=[]}};var ft=new ut,pt={};["autofocus,autoplay,async,allowTransparency,checked,controls","declare,disabled,defer,defaultChecked,defaultSelected","contentEditable,isMap,loop,multiple,noHref,noResize,noShade","open,readOnly,selected"].join(",").replace(l,function(e){pt[e.toLowerCase()]=e});C.directive("attr",{init:function(e){if(e.expr=Me(e.expr.trim()),"include"===e.type){var t=e.element;Ot(t,e),e.includeRendered=We(t,"data-rendered",e.vmodels),e.includeLoaded=We(t,"data-loaded",e.vmodels);var r=e.includeReplace=t.hasAttribute("replace");t.hasAttribute("cache")&&(e.templateCache={}),e.start=n.createComment(":include"),e.end=n.createComment(":include-end"),r?(e.element=e.end,e._element=t,t.parentNode.insertBefore(e.start,t),t.parentNode.insertBefore(e.end,t.nextSibling)):(t.insertBefore(e.start,t.firstChild),t.appendChild(e.end))}},update:function(e){var t=this.element,n={};if(e=J(e),this.param)e&&"object"==typeof e?Array.isArray(e)?n[this.param]=e:Date.isDate(e)?n[this.param]=e.toISOString():n[this.param]=e:n[this.param]=e;else{if(!e||"object"!=typeof e||Array.isArray(e)||Date.isDate(e))return;n=e}for(var r in n)if("style"!==r)if("href"===r||"src"===r)t[r]=n[r];else{if(!1!==n[r]&&null!==n[r]&&void 0!==n[r]||(n[r]=""),"boolean"==typeof t[r]||"boolean"==typeof t[pt[r]]){var i=r;if(pt[r]&&i!==pt[r]&&(i=pt[r]),n[r]=!!n[r],t[i]=n[r],!n[r]){t.removeAttribute(i);continue}}!f.test(t)&&r in t.cloneNode(!1)?t[r]=n[r]:("object"==typeof n[r]&&(n[r]=Date.isDate(n[r])?n[r].toISOString():JSON.stringify(n[r])),t.setAttribute(r,n[r]))}else t.style.cssText=n[r]}});C.directive("class",{init:function(e){if(e.expr=e.expr.replace(/\n/g," ").replace(/\s+/g," "),"hover"===e.type||"active"===e.type){var t=new Function("return "+e.expr)();if(!e.hasBindEvent){var n=e.element,r=C(n),i="mouseenter",a="mouseleave";if("active"===e.type){n.tabIndex=n.tabIndex||-1,i="mousedown",a="mouseup";var o=r.bind("mouseleave",function(){r.removeClass(t)})}}var s=r.bind(i,function(){r.addClass(t)}),c=r.bind(a,function(){r.removeClass(t)});e.rollback=function(){r.unbind("mouseleave",o),r.unbind(i,s),r.unbind(a,c)},e.hasBindEvent=!0}},update:function(e){if("class"===this.type){var t=e;if(!t||this.param)return a('class指令语法错误 %c %s="%s"',"color:#f00",this.name,this.expr);for(var n in"string"==typeof t&&((t={})[e]=!0),C.isPlainObject(t)||(t=t.$model),t)this.element.classList.toggle(n,!!t[n])}}}),"hover,active".replace(l,function(e){O[e]=O.class}),C.directive("css",{init:O.attr.init,update:function(e){var t=C(this.element);if(this.param)t.css(this.param,e);else{if("object"!=typeof e)return a(':css指令格式错误 %c %s="%s"',"color:#f00",this.name,this.expr);var n=e;C.isPlainObject(n)||(n=e.$model),t.css(n)}}}),C.directive("data",{priority:100,init:O.attr.init,update:function(e){var t=C(this.element);if(this.param)t.data(this.param,e);else{if("object"!=typeof e)return a(':data指令格式错误 %c %s="%s"',"color:#f00",this.name,this.expr);var n=e;for(var r in C.isPlainObject(n)||(n=e.$model),n)t.data(r,n[r])}}});var dt=/^(?:checkbox|radio)$/,ht=/^(?:radio|checked)$/,vt=/^(file|button|reset|submit|checkbox|radio|range)$/;C.directive("duplex",{priority:2e3,init:function(e,t){var n=e.element,r=e.vmodels;e.changed=We(n,"data-changed",r)||x;var i=[],o=w("string,number,boolean,checked");"radio"===n.type&&""===e.param&&(e.param="checked"),e.param.replace(u,function(r){dt.test(n.type)&&ht.test(r)&&(r="checked",e.isChecked=!0,e.xtype="radio"),o[r]&&(t=!0),C.Array.ensure(i,r)}),t||i.push("string"),e.param=i.join("-"),e.xtype||(e.xtype="SELECT"===n.tagName?"select":"checkbox"===n.type?"checkbox":"radio"===n.type?"radio":/^change/.test(n.getAttribute("data-event"))?"change":"input"),n.expr=e.expr;var s=e.bound=function(t,r){n.addEventListener(t,r,!1);var i=e.rollback;e.rollback=function(){n.anotSetter=null,C.unbind(n,t,r),i&&i()}};function c(t){e.changed.call(this,t)}var l=!1;var f=function(t){var r=n.value;if(!l&&r!==e.oldValue&&null!==e.pipe){var i=e.pipe(r,e,"get");e.oldValue=r,e.setter(i),c.call(n,i),C.fireDom(n,"change")}};switch(e.xtype){case"radio":s("click",function(){var t=e.pipe(n.value,e,"get");e.setter(t),c.call(n,t)});break;case"checkbox":s("change",function(){var t=n.checked?"ensure":"remove",r=e.getter.apply(0,e.vmodels);Array.isArray(r)||(a(":duplex应用于checkbox上要对应一个数组"),r=[r]);var i=e.pipe(n.value,e,"get");C.Array[t](r,i),c.call(n,r)});break;case"change":s("change",f);break;case"input":s("input",f),s("keyup",f),s("compositionstart",function(){l=!0}),s("compositionend",function(){l=!1,setTimeout(f)}),s("DOMAutoComplete",f);break;case"select":s("change",function(){var t=C(n).val();if((t=Array.isArray(t)?t.map(function(t){return e.pipe(t,e,"get")}):e.pipe(t,e,"get"))+""!==e.oldValue)try{e.setter(t)}catch(e){a(e)}}),s("datasetchanged",function(t){if("selectDuplex"===t.bubble){var r=e._value,i=Array.isArray(r)?r.map(String):r+"";C(n).val(i),n.oldValue=i+"",c.call(n,i)}})}"input"!==e.xtype||vt.test(n.type)||("hidden"!==n.type&&(s("focus",function(){n.msFocus=!0}),s("blur",function(){n.msFocus=!1})),n.anotSetter=f,$t(function(){if(y.contains(n))n.msFocus||f();else if(!n.msRetain)return!1}))},update:function(e){var t,n=this.element;this.init||((this.pipe||(this.pipe=yt))(null,this,"init"),this.init=1);switch(this.xtype){case"input":n.value=e;break;case"change":if((t=this.pipe(e,this,"set"))!==this.oldValue){var r=!1;if(n.msFocus)try{var i=n.selectionStart;if(i===n.selectionEnd){var a=i;r=!0}}catch(e){}n.value=this.oldValue=t,r&&!n.readOnly&&(n.selectionStart=n.selectionEnd=a)}break;case"radio":t=this.isChecked?!!e:e+""===n.value,n.checked=t;break;case"checkbox":var o=[].concat(e);t=this.pipe(n.value,this,"get"),n.checked=o.indexOf(t)>-1;break;case"select":this._value=e,n.msHasEvent?C.fireDom(n,"datasetchanged",{bubble:n.msHasEvent}):n.msHasEvent="selectDuplex"}}});function mt(e){return null==e?"":e}function yt(e,t,n,r){return t.param.replace(u,function(r){var i=C.duplexHooks[r];i&&"function"==typeof i[n]&&(e=i[n](e,t))}),e}C.duplexHooks={checked:{get:function(e,t){return!t.oldValue}},string:{get:function(e){return e},set:mt},boolean:{get:function(e){return"true"===e},set:mt},number:{get:function(e,t){var n=+e;return+e===n?n:0},set:mt}};var gt,bt=[];function xt(){for(var e=bt.length-1;e>=0;e--){!1===(0,bt[e])()&&bt.splice(e,1)}bt.length||clearInterval(gt)}C.tick=function(e){1===bt.push(e)&&(gt=setInterval(xt,60))};var $t=x;new function(){try{var e={},t=HTMLInputElement.prototype,n=HTMLTextAreaElement.prototype;function r(t){e[this.tagName].call(this,t),!this.msFocus&&this.anotSetter&&this.anotSetter()}var i=HTMLInputElement.prototype;Object.getOwnPropertyNames(i),e.INPUT=Object.getOwnPropertyDescriptor(t,"value").set,Object.defineProperty(t,"value",{set:r}),e.TEXTAREA=Object.getOwnPropertyDescriptor(n,"value").set,Object.defineProperty(n,"value",{set:r})}catch(e){$t=C.tick}},C.directive("effect",{priority:5,init:function(e){var t,n,r=e.expr,i=r.replace(M,function(e){return e.replace(/./g,"0")}).indexOf(":");-1===i?(t=r,n=!0):(t=r.slice(0,i),n=r.slice(i+1)),t=L.test(r)?Me(t):qe(t),e.expr="["+t+","+n+"]"},update:function(e){var t=e[0],n=this.element;if(n.getAttribute("data-effect-name")!==t){n.removeAttribute("data-effect-driver");var r=n.style,i=window.getComputedStyle?window.getComputedStyle(n):null,a=!1;if(i&&(Ct||At)){var o=r[Nt]||i[Nt];o&&"0s"!==o&&(n.setAttribute("data-effect-driver","t"),a=!0),a||(o=r[jt]||i[jt])&&"0s"!==o&&(n.setAttribute("data-effect-driver","a"),a=!0)}a||C.effects[t]&&(n.setAttribute("data-effect-driver","j"),a=!0),a&&n.setAttribute("data-effect-name",t)}}}),C.effects={},C.effect=function(e,t){C.effects[e]=t};var wt,kt,Ct=!1,At=!1,Nt=C.cssName("transition-duration"),jt=C.cssName("animation-duration");new function(){var e,t,n={TransitionEvent:"transitionend",WebKitTransitionEvent:"webkitTransitionEnd",OTransitionEvent:"oTransitionEnd",otransitionEvent:"otransitionEnd"};for(var r in n){if(window[r]){e=n[r];break}try{document.createEvent(r);e=n[r];break}catch(e){}}for(r in"string"==typeof e&&(Ct=!0,wt=e),n={AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"})if(window[r]){t=n[r];break}"string"==typeof t&&(Ct=!0,kt=t)};var Tt=[];function Ot(e,t){var n=e.getAttribute("data-effect-name");if(n){t.effectName=n,t.effectDriver=e.getAttribute("data-effect-driver");var r=+e.getAttribute("data-effect-stagger");t.effectLeaveStagger=+e.getAttribute("data-effect-leave-stagger")||r,t.effectEnterStagger=+e.getAttribute("data-effect-enter-stagger")||r,t.effectClass=e.className||NaN}}function Et(e){return e.replace(/^[\S]/g,function(e){return e.toUpperCase()})}var St=new ut;function Dt(){}function _t(e,t){var n=e.callbacks[t+"Class"];return"string"==typeof n?n:"function"==typeof n?n():e.name+"-"+t}function Pt(e,t,n){var r=e.callbacks[t];r&&r.call(e,e.el,n)}Dt.prototype={contrustor:Dt,enterClass:function(){return _t(this,"enter")},leaveClass:function(){return _t(this,"leave")},actionFun:function(e,t,n){if(!document.hidden){var r=this,i=r.el,a="leave"===e;e=a?"leave":"enter",Pt(r,"abort"+Et(a?"enter":"leave")),Pt(r,"before"+Et(e)),a||t(i);var o=function(o){i.removeEventListener(r.cssEvent,r.cssCallback),a?(t(i),C(i).removeClass(r.cssClass)):"a"===r.driver&&C(i).removeClass(r.cssClass),!0!==o&&(Pt(r,"after"+Et(e)),n&&n(i)),r.dispose()};r.useCss?(r.cssCallback&&r.cssCallback(!0),r.cssClass=_t(r,e),r.cssCallback=o,r.update=function(){i.addEventListener(r.cssEvent,r.cssCallback),a||"t"!==r.driver||C(i).removeClass(r.cssClass)},C(i).addClass(r.cssClass),St.render(!0),St.queue.push(r)):Pt(r,e,o)}},enter:function(e,t){this.actionFun.apply(this,["enter"].concat(C.slice(arguments)))},leave:function(e,t){this.actionFun.apply(this,["leave"].concat(C.slice(arguments)))},dispose:function(){this.update=this.cssCallback=null,Tt.unshift(this)>100&&Tt.pop()}};var Lt=function(e,t){var n=m.call(arguments,0);"function"!=typeof n[2]&&n.splice(2,0,x),"function"!=typeof n[3]&&n.splice(3,0,x);var r=n[2],i=n[3],a=function(e,t){if(!e||1!==e.nodeType)return null;if(t)var n=t.effectName,r=t.effectDriver;else n=e.getAttribute("data-effect-name"),r=e.getAttribute("data-effect-driver");if(!n||!r)return null;var i=Tt.pop()||new Dt;return i.el=e,i.driver=r,i.useCss="j"!==r,i.useCss&&(t&&C(e).addClass(t.effectClass),i.cssEvent="t"===r?wt:kt),i.name=n,i.callbacks=C.effects[n]||{},i}(e,n[4]);if(!a)return r(),i(),!1;a[t?"enter":"leave"](r,i)};C.mix(C.effect,{apply:Lt,append:function(e,t,n,r){return Lt(e,1,function(){t.appendChild(e)},n,r)},before:function(e,t,n,r){return Lt(e,1,function(){t.parentNode.insertBefore(e,t)},n,r)},remove:function(e,t,n,r){return Lt(e,0,function(){e.parentNode===t&&t.removeChild(e)},n,r)}}),C.directive("html",{update:function(e){var t=this.element,r=1!==t.nodeType,i=r?t.parentNode:t;if(i){if(e=null==e?"":e,3===t.nodeType){var a=k("html");i.insertBefore(n.createComment(a),t),this.element=n.createComment(a+":end"),i.replaceChild(this.element,t),t=this.element}if("object"!=typeof e)var o=C.parseHTML(String(e));else if(11===e.nodeType)o=e;else if(1===e.nodeType||e.item){var s=1===e.nodeType?e.childNodes:e.item;for(o=g.cloneNode(!0);s[0];)o.appendChild(s[0])}if(s=C.slice(o.childNodes),r){for(var c=t.nodeValue.slice(0,-4);;){var l=t.previousSibling;if(!l||8===l.nodeType&&l.nodeValue===c)break;i.removeChild(l)}i.insertBefore(o,t)}else C.clearHTML(t).appendChild(o);tt(s,this.vmodels)}}}),C.directive("text",{update:function(e){var t=this.element;if(e=null==e?"":e,3===t.nodeType)try{t.data=e}catch(e){}else t.textContent=e}}),C.directive("if",{priority:10,update:function(e){var t,r=this,a=this.element,o=r.stamp=Date.now(),s=function(){o===r.stamp&&(r.recoverNode=null)};r.recoverNode&&r.recoverNode();try{if(!a.parentNode)return;t=a.parentNode}catch(e){return}if(e){function c(){a.getAttribute(r.name)&&(a.removeAttribute(r.name),Ze(a,r.vmodels)),r.rollback=null}if(8===a.nodeType){var l=r.keep,u=C.effect.apply(l,1,function(){o===r.stamp&&(a.parentNode.replaceChild(l,a),a=r.element=l,l.getAttribute("_required")&&(a.required=!0,a.removeAttribute("_required")),a.querySelectorAll&&C.each(a.querySelectorAll("[_required=true]"),function(e){e.required=!0,e.removeAttribute("_required")}),c())},s);u=!1===u}u||c()}else if(1===a.nodeType){!0===a.required&&(a.required=!1,a.setAttribute("_required","true"));try{C.each(a.querySelectorAll(":required"),function(e){a.required=!1,e.setAttribute("_required","true")})}catch(e){}var f=r.element=n.createComment(":if"),p=a.nextSibling;r.recoverNode=function(){r.recoverNode=null,f.parentNode!==t&&(t.insertBefore(f,p),r.keep=a)},C.effect.apply(a,0,function(){r.recoverNode=null,o===r.stamp&&(a.parentNode.replaceChild(f,a),r.keep=a,i.appendChild(a),r.rollback=function(){a.parentNode===i&&i.removeChild(a)})},s)}}});var Mt=C.templateCache={};function Ht(e){for(var t=n.createDocumentFragment(),r=0,i=e.length;re.status>=200&&e.status<300?e.text():Promise.reject(`获取网络资源出错, ${e.status} (${e.statusText})`)).then(t=>{Mt[e]=t,h(t)}).catch(t=>{a(":include load ["+e+"] error\n%c%s","color:#f30",t)})}}});var Ft=/\(([^)]*)\)/,It=C.directive("on",{priority:3e3,init:function(e){var t=e.expr;e.type="on";var n=e.param.replace(/-\d+$/,"");if("function"==typeof It[n+"Hook"]&&It[n+"Hook"](e),t.indexOf("(")>0&&t.indexOf(")")>-1){var r=(t.match(Ft)||["",""])[1].trim();""!==r&&"$event"!==r||(t=t.replace(Ft,""))}e.expr=t},update:function(e){var t=this,n=this.element;e=function(e){return(t.getter||x).apply(t.args[0],t.args.concat(e))};var r=t.param.replace(/-\d+$/,"");if("scan"===r)e.call(n,{type:r});else if("function"==typeof t.specialBind)t.specialBind(n,e);else var i=C.bind(n,r,e);t.rollback=function(){"function"==typeof t.specialUnbind?t.specialUnbind():C.unbind(n,r,i)}}});function Bt(e,t,n){for(var r,i=0;r=e[i++];)r.className===n.effectClass&&C.effect.apply(r,t,x,x,n)}function Rt(e,t,n){return e?setTimeout(t,++n*e):t(),n}function qt(e,t,n){for(var r=g.cloneNode(!1),i=e,a=i.nodeValue,o=t&&Math.max(+t.staggerIndex,0),s=C.slice(i.parentNode.childNodes),c=s.indexOf(i);;){var l=s[--c];if(!l||0===String(l.nodeValue).indexOf(a))break;!n&&t&&l.className===t.effectClass?(e=l,function(e){t.staggerIndex=Rt(t.effectLeaveStagger,function(){C.effect.apply(e,0,x,function(){r.appendChild(e)},t)},o)}(l)):r.insertBefore(l,r.firstChild)}return r.appendChild(i),r}function Vt(e,t,n,r,i){var a=e.template.cloneNode(!0),o=C.slice(a.childNodes);a.appendChild(n.$anchor),i&&t.appendChild(a);n[e.param||"el"];var s={nodes:o,vmodels:[n].concat(e.vmodels),content:a};r.push(s)}function Wt(e){var t=("object"===e.xtype?Jt:Yt)(e);return(t.$anchor||(t.$anchor=e.element.cloneNode(!1))).nodeValue=e.signature,t.$outer=e.$outer,t}function zt(e,t,n){if("array"===n){e.$remove=function(){t.$repeat.removeAt(e.$index)};var r=t.param;e.$watch(r,function(n){var r=e.$index;t.$repeat[r]=n})}else{var i=t.vars[0],a=t.vars[1];e.$up.$watch(t.expr+"."+e[i],function(n){e[t.param][a]=n,e[a]=n})}}C.directive("for",{priority:90,init:function(e){var t=e.type;e.cache={},e.enterCount=0;var r=e.element;if(1===r.nodeType){var i=e.expr.split(" in ");e.expr=i.pop(),i.length&&(i=i.pop().split(/\s+/)),e.vars=i,r.removeAttribute(e.name),Ot(r,e);var a=We(r,"data-rendered",e.vmodels),o=k(t),s=n.createComment(o+":start"),c=e.element=n.createComment(o+":end");e.signature=o,e.start=s,e.template=g.cloneNode(!1);var l=r.parentNode;if(l.replaceChild(c,r),l.insertBefore(s,c),e.template.appendChild(r),e.element=c,a)var u=C.bind(l,"datasetchanged",function(){a.apply(l,l.args),C.unbind(l,"datasetchanged",u),l.msRendered=a})}},update:function(e,t){var n=this,r=this.xtype;"array"===r?(this.vars.length?1===this.vars.length&&this.vars.unshift("$index"):this.vars.push("$index","el"),this.param=this.vars[1]):(this.param="__el__",this.vars.length?1===this.vars.length&&this.vars.push("$val"):this.vars.push("$key","$val")),this.enterCount+=1;var i=!t;if(i){n.$outer={};var a=this.vars[0],o=this.vars[1];"array"===r&&(a="$first",o="$last");for(var s,c=0;s=n.vmodels[c++];)if(s.hasOwnProperty(a)&&s.hasOwnProperty(o)){n.$outer=s;break}}var l=this.track,u="move";n.$repeat=e;var f=[],p=i&&g.cloneNode(!1),d=[],h=this.param,v=C.mix({},this.cache),m=this.element,y=l.length,b=m.parentNode,x=0;for(c=0;c10,N=m.previousSibling,j=n.start;if(A)for(;N!==j;)b.removeChild(N),N=m.previousSibling;for(c=0;cD.maxRepeatSize&&i.pop(),delete e[t]}}function Kt(e,t){var r="_"+e;if(!Kt[r]){var i=n.createElement(e);y.appendChild(i),t=getComputedStyle(i,null).display,y.removeChild(i),Kt[r]=t}return Kt[r]}C.parseDisplay=Kt,C.directive("visible",{init:function(e){Ot(e.element,e)},update:function(e){var t,n=this,r=this.element,i=!this.effectName;if(!this.stamp)return t=this.stamp=Date.now(),void(e?(r.style.display=n.display||"","none"===C(r).css("display")&&(r.style.display=n.display=Kt(r.nodeName))):r.style.display="none");t=this.stamp=+new Date,e?C.effect.apply(r,1,function(){if(t===n.stamp){var e=r.getAttribute("data-effect-driver")||"a";i&&(r.style.display=n.display||""),"a"!==e&&"t"!==e||"none"===C(r).css("display")&&(r.style.display=n.display||Kt(r.nodeName))}}):C.effect.apply(r,0,function(){t===n.stamp&&(r.style.display="none")})}});var Zt=/