hosts-switch/src/lib/anot.js

8 lines
58 KiB
JavaScript

/*==================================================
* 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",'<anot skip class="anot-hide"><style id="anot-style">.anot-hide{ display: none!important }</style></anot>');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<a;i++)n[e[i]]=r;return n}function k(t){return(t=t&&t+"-"||"anot-")+(++e).toString(16)}Promise.defer||(Promise.defer=function(){let e={};return e.promise=new Promise((t,n)=>{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<e;t++)n[t]();n=n.slice(e)}).observe(e,{characterData:!0});let r=!1;return function(t){n.push(t),r=!r,e.data=r}}return function(e){setTimeout(e,4)}},C.type=function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?b[h.call(e)]||"object":typeof e},C.PropsTypes=function(e){this.type="PropsTypes",this.checkType=e},C.PropsTypes.prototype={toString:function(){return""},check:function(e){return this.result=C.type(e),this.result===this.checkType},call:function(){return this.toString()}},C.PropsTypes.isString=function(){return new this("string")},C.PropsTypes.isNumber=function(){return new this("number")},C.PropsTypes.isFunction=function(){return new this("function")},C.PropsTypes.isArray=function(){return new this("array")},C.PropsTypes.isObject=function(){return new this("object")},C.PropsTypes.isBoolean=function(){return new this("boolean")},C.isPlainObject=function(e){return"[object Object]"===h.call(e)&&Object.getPrototypeOf(e)===p};let A=C.vmodels={};function N(e,t,n){if("object"!==this.type(t))switch(arguments.length){case 2:return window[e].getItem(t);case 3:if("string"==this.type(n)&&""===n.trim()||null===n)return void window[e].removeItem(t);"object"!==this.type(n)&&"array"!==this.type(n)?window[e].setItem(t,n.toString()):window[e].setItem(t,JSON.stringify(n))}else for(let n in t)window[e].setItem(n,t[n])}C.init=function(e){if(C.isPlainObject(e)){let t=e.$id,r=null;return t||a("warning: vm必须指定id"),(r=V(Object.assign({props:{}},e))).$id=t,A[t]=r,C.nextTick(function(){let e=document.querySelector("[anot="+r.$id+"]");if(e)if(e===n.body)nt(e,[]);else{let t=e;for(;(t=t.parentNode)&&!t.__VM__;);nt(e.parentNode,t?[t.__VM__]:[])}}),r}this[0]=this.element=e},C.fn=C.prototype=C.init.prototype,C.mix=C.fn.mix=function(){let e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[1]||{},s++),"object"!=typeof o&&"function"!==C.type(o)&&(o={}),s===c&&(o=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],o!==(r=e[t])&&(l&&r&&(C.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,a=n&&Array.isArray(n)?n:[]):a=n&&C.isPlainObject(n)?n:{},o[t]=C.mix(l,a,r)):void 0!==r&&(o[t]=r));return o},C.mix({rword:l,subscribers:s,version:"1.0.0",log:a,ui:{},slice:function(e,t,n){return m.call(e,t,n)},noop:x,error:function(e,t){throw new(t||Error)(e)},range:function(e,t,n){n||(n=1),null==t&&(t=e||0,e=0);let r=-1,i=Math.max(0,Math.ceil((t-e)/n)),a=new Array(i);for(;++r<i;)a[r]=e,e+=n;return a},deepCopy:J,eventHooks:{},bind:function(e,t,n,r){let i=C.eventHooks;return t=t.split(","),C.each(t,function(a,o){o=o.trim();let s=i[o];"object"==typeof s&&(o=s.type||t,r=s.phase||!!r,n=s.fix?s.fix(e,n):n),e.addEventListener(o,n,r)}),n},unbind:function(e,t,n,r){let i=C.eventHooks;t=t.split(","),n=n||x,C.each(t,function(a,o){o=o.trim();let s=i[o];"object"==typeof s&&(o=s.type||t,r=s.phase||!!r),e.removeEventListener(o,n,r)})},css:function(e,t,n){e instanceof C&&(e=e[0]);var r,i=/[_-]/.test(t)?ye(t):t;if(t=C.cssName(i)||i,void 0===n||"boolean"==typeof n){r=xe[i+":get"]||xe["@:get"],"background"===t&&(t="backgroundColor");var a=r(e,t);return!0===n?+a||0:a}if(""===n)e.style[t]="";else{if(null==n||n!=n)return;isFinite(n)&&!C.cssNumber[i]&&(n+="px"),(r=xe[i+":set"]||xe["@:set"])(e,t,n)}},each:function(e,t){if(e)if(function(e){if(e&&"object"==typeof e){let t=e.length,n=h.call(e);if(/(Array|List|Collection|Map|Arguments)\]$/.test(n))return!0;if("[object Object]"===n&&t===t>>>0)return!0}return!1}(e))for(let n=0,r=e.length;n<r&&!1!==t(n,e[n]);n++);else for(let n in e)if(e.hasOwnProperty(n)&&!1===t(n,e[n]))break},Array:{ensure:function(e,t){if(-1===e.indexOf(t))return e.push(t)},removeAt:function(e,t){return!!e.splice(t,1).length},remove:function(e,t){let n=e.indexOf(t);return!!~n&&C.Array.removeAt(e,n)}},ls:function(){let e=m.call(arguments,0);return e.unshift("localStorage"),N.apply(this,e)},ss:function(){let e=m.call(arguments,0);return e.unshift("sessionStorage"),N.apply(this,e)},cookie:function(e,t,n){if(arguments.length>1){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<o;a++){var s=e[a]=Y(e[a],0,1,1);Object(s)===s&&(s.$up=e)}return e}(e,t,r);if(C.isPlainObject(e)){if(t&&"object"==typeof t){var i=Object.keys(e),a=Object.keys(t);if(i.join(";")===a.join(";")){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}t.$active=!1}return W({state:e},{old:t,watch:r})}return n?e:void 0}function G(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!1,configurable:!0})}function J(e){var t=C.type(e);if("array"===t){for(var n=[],r=0;r<e.length;r++)n[r]=J(e[r]);return n}if("object"===t){var i={};for(r in e)if(e.hasOwnProperty(r)){var a=e[r];i[r]=a&&a.nodeType?a:J(a)}return i}return e}C.hideProperty=G;var X={get:function(){return J(this)},set:x,enumerable:!1,configurable:!0},K=Array.prototype,Z={notify:function(){R.call(this.$up,this.$pathname)},set:function(e,t){if((e>>>=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;n<e;n++)t[n]=k("proxy-each");return t}["push","pop","shift","unshift","splice"].forEach(function(e){var t=K[e];Z[e]=function(){for(var n=[],r=0,i=arguments.length;r<i;r++)n[r]=Y(arguments[r],0,1,1);var a=t.apply(this,n);return function(e,t,n){switch(t){case"push":case"unshift":n=ee(n.length);break;case"splice":if(n.length>2){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;a<o;a++){var s=this[a];if(s===t[a])r.push(a);else{var c=t.indexOf(s);r.push(c),t[c]=n,i=!0}}return i&&(!function(e,t){for(var n={},r=0,i=t.length;r<i;r++){n[r]=e[r];var a=t[r];a in n?(e[r]=n[a],delete n[a]):e[r]=e[a]}}(this.$track,r),this.notify()),this}});var te,ne,re=(ne=[],{begin:function(e){ne.push(te),te=e},end:function(){te=ne.pop()},collectDependency:function(e){te&&te.callback(e)}});C.injectBinding=function(t){t.handler=t.handler||O[t.type].update||x,t.update=function(){var n=!1;t.getter||(n=!0,re.begin({callback:function(n){!function(t,n){if(n.oneTime)return;t&&C.Array.ensure(t,n)&&n.element&&(!function(t,n){t.list=n,t.i=~~t.i,t.uuid||(t.uuid="_"+ ++e);ie[t.uuid]||(ie[t.uuid]="__",ie.push(t))}(n,t),new Date-ae>444&&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<i;r++)if((n=ye($e[r]+e))in t)return we[e]=n;return null},xe["@:set"]=function(e,t,n){e.style[t]=n},xe["@:get"]=function(e,t){if(!e||!e.style)throw new Error("getComputedStyle要求传入一个节点 "+e);var n,r=getComputedStyle(e);return r&&""===(n="filter"===t?r.getPropertyValue(t):r[t])&&(n=e.style[t]),n},xe["opacity:get"]=function(e){var t=xe["@:get"](e,"opacity");return""===t?"1":t},"top,left".replace(l,function(e){xe[e+":get"]=function(t){var n=xe["@:get"](t,e);return/px$/.test(n)?n:C(t).position()[e]+"px"}});var ke={position:"absolute",visibility:"hidden",display:"block"},Ce=/^(none|table(?!-c[ea]).+)/;"Width,Height".replace(l,function(e){var t=e.toLowerCase(),n="client"+e,r="scroll"+e,i="offset"+e;xe[t+":get"]=function(t,n,r){var a=-4;"number"==typeof r&&(a=r),n="Width"===e?["Left","Right"]:["Top","Bottom"];var o=t[i];return 2===a?o+C.css(t,"margin"+n[0],!0)+C.css(t,"margin"+n[1],!0):(a<0&&(o=o-C.css(t,"border"+n[0]+"Width",!0)-C.css(t,"border"+n[1]+"Width",!0)),-4===a&&(o=o-C.css(t,"padding"+n[0],!0)-C.css(t,"padding"+n[1],!0)),o)},xe[t+"&get"]=function(e){var n=[];!function e(t,n){if(t.offsetWidth<=0){var r=getComputedStyle(t,null);if(Ce.test(r.display)){var i={node:t};for(var a in ke)i[a]=r[a],t.style[a]=ke[a];n.push(i)}var o=t.parentNode;o&&1===o.nodeType&&e(o,n)}}(e,n);for(var r,i=xe[t+":get"](e),a=0;r=n[a++];)for(var o in e=r.node,r)"string"==typeof r[o]&&(e.style[o]=r[o]);return i},C.fn[t]=function(a){var o=this[0];if(0===arguments.length){if(o.setTimeout)return o["inner"+e];if(9===o.nodeType){var s=o.documentElement;return Math.max(o.body[r],s[r],o.body[i],s[i],s[n])}return xe[t+"&get"](o)}return this.css(t,a)},C.fn["inner"+e]=function(){return xe[t+":get"](this[0],void 0,-2)},C.fn["outer"+e]=function(e){return xe[t+":get"](this[0],void 0,!0===e?2:0)}}),C.fn.offset=function(){var e=this[0];try{var t=e.getBoundingClientRect();if(t.width||t.height||e.getClientRects().length){var n=e.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:t.top+i.pageYOffset-r.clientTop,left:t.left+i.pageXOffset-r.clientLeft}}}catch(e){return{left:0,top:0}}};var Ae={"select:get":function(e,t){for(var n,r=e.options,i=e.selectedIndex,a="select-one"===e.type||i<0,o=a?null:[],s=a?i+1:r.length,c=i<0?s:a?i:0;c<s;c++)if(((n=r[c]).selected||c===i)&&!n.disabled){if(t=n.value,a)return t;o.push(t)}return o},"select:set":function(e,t,n){t=[].concat(t);for(var r,i=0;r=e.options[i++];)(r.selected=t.indexOf(r.value)>-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;s<t.length;s++){var c=t.charAt(s);if("'"===c||'"'===c)"unknown"===a?a=c:a===c&&(a="unknown");else if("\\"===c)"'"!==a&&'"'!==a||s++;else if(je.test(c))"unknown"===a?(a="variable",o=c):"maybePath"===a?(o=r.pop(),o+="."+c,a="variable"):"variable"===a&&(o+=c);else if(/\w/.test(c))"variable"===a&&(o+=c);else if("."===c)"variable"===a&&o&&(r.push(o),o="",a="maybePath");else if("["===c){if("variable"===a||"maybePath"===a){o&&(r.push(o),o="");var l=r.length,u=r[l-1],f=e(t.slice(s),s);if(f.length)r[l-1]=u+".*",r=f.concat(r);else{var p=t.slice(s+1,f.i);try{var d=$(["return "+p])();r[l-1]=u+"."+d}catch(e){}}a="maybePath",s=f.i}}else if("]"===c){if(i)return r.i=s+n,Oe(r,o),r}else Te.test(c)&&"\r"!==c&&"\n"!==c?"variable"===a&&(Oe(r,o)&&(a="maybePath"),o=""):(Oe(r,o),a="unknown",o="")}return Oe(r,o),r}(e),i={},a=[],o=0;n=r[o++];)i[n]||(i[n]=1,a.push(n));return De.put(e,a).concat()}function Le(e,t,n){var r=n.filters;"string"==typeof r&&r.trim()&&!n._filters&&(n._filters=function(e){return $(["return ["+(e=e.replace(He,"").replace(Fe,function(){return"],|"}).replace(Ie,function(e,t){return"["+qe(t)}).replace(Be,function(){return'"],["'}).replace(Re,function(){return'",'})+"]")+"]"])()}(r.trim()));var i=Pe(e),a=new Date-0,o=[],s=[],c=[];n.observers=[];for(var l=0,u=t.length;l<u;l++)if(i.length){var f="vm"+a+"_"+l;s.push(f),c.push(t[l]),o.push.apply(o,Ee(i,t[l],f,n))}n.args=c;var p=n.type,d=t.map(function(e){return String(e.$id).replace(Se,"$1")})+e+p,h=_e.get(d);if(h){if("duplex"===p){var v=_e.get(d+"setter");n.setter=v.apply(v,n.args)}return n.getter=h}if(o.length||o.push("fix"+a),"duplex"===p){var m={};o.forEach(function(e){var t=e.split("=");m[t[0].trim()]=t[1].trim()}),e=e.replace(/[\$\w]+/,function(e){return m[e]?m[e]:e});var y=$(s.concat('"use strict";\n return function(vvv){'+e+" = vvv\n}\n"));_e.put(d+"setter",y),n.setter=y.apply(y,n.args)}if("on"===p){-1===e.indexOf("(")?e+=".call("+s[s.length-1]+", $event)":e=e.replace("(",".call("+s[s.length-1]+", "),s.push("$event");var g=(e="\nreturn "+e+";").lastIndexOf("\nreturn"),b=e.slice(0,g),x=e.slice(g);e=b+"\n"+x}else n.observers.forEach(function(t){if("function"===t.type){var n=new RegExp(t.p+"\\(([^)]*)\\)","g");e=e.replace(n,function(e,n){return n=n.trim(),t.p+".call("+s[s.length-1]+(n?", "+n:"")+")"})}}),e="\nreturn "+e+";";return h=$(s.concat("'use strict';\ntry{\n var "+o.join(",\n ")+e+"\n}catch(e){console.log(e)}")),_e.put(d,h)}function Me(e){if(L.test(e)){var t=ct(e);return 1===t.length?t[0].expr:t.map(function(e){return e.type?"("+e.expr+")":qe(e.expr)}).join(" + ")}return e}C.normalizeExpr=Me,C.parseExprProxy=Le;var He=/\)\s*$/,Fe=/\)\s*\|/g,Ie=/\|\s*([$\w]+)/g,Be=/"\s*\["/g,Re=/"\s*\(/g;var qe=JSON.stringify,Ve=w("area,base,basefont,br,col,command,embed,hr,img,input,link,meta,param,source,track,wbr,noscript,script,style,textarea".toUpperCase());function We(e,t,n){var r=e.getAttribute(t);if(r)for(var i,a=0;i=n[a++];)if(i.hasOwnProperty(r)&&"function"==typeof i[r])return i[r]}function ze(e,t){for(var n,r=0;n=e[r++];)n.vmodels=t,O[n.type].init(n),C.injectBinding(n),n.getter&&1===n.element.nodeType&&n.element.removeAttribute(n.name);e.length=0}var Ue=/^\s*::/,Ye=/:(\w+)-?(.*)|@(.*)/,Ge=w("animationend,blur,change,input,click,dblclick,focus,keydown,keypress,keyup,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,scan,scroll,submit"),Je=w("value,title,alt,checked,selected,disabled,readonly,loading,enabled,href,src");function Xe(e,t){return e.priority-t.priority}var Ke=["html","text","attr","data"];function Ze(t,n,r){var i=!0;if(n.length){for(var o,s=t.attributes,c=[],l={},u=0;o=s[u++];){var f=o.name;if(!l[f]&&(l[f]=1,o.specified&&(r=f.match(Ye)))){var p=r[1],d=r[2]||"",h=r[3]||"",v=o.value;if(Je[p]&&(d=p,p="attr"),h&&(d=h,p="on"),O[p]){var m=v.replace(Ue,""),y={type:p,param:d,element:t,name:f,expr:m,oneTime:v!==m,uuid:"_"+ ++e,priority:(O[p].priority||10*p.charCodeAt(0))+(Number(d.replace(/\D/g,""))||0)};if(Ke.includes(p)){var g=st(v).filters;y.expr=y.expr.replace(g,""),y.filters=g.replace(rt,function(){return y.type="html",y.group=1,""}).trim()}else if("duplex"===p)var b=f;else if(":if-loop"===f)y.priority+=100;else if(":attr-value"===f)var x=f;c.push(y)}}}if(c.length){for(c.sort(Xe),b&&x&&"text"===t.type&&a("warning!一个控件不能同时定义:attr-value与"+b),u=0;y=c[u];u++){if(p=y.type,Qe.test(p))return ze(c.slice(0,u+1),n);i&&(i=!et.test(p))}ze(c,n)}}i&&!Ve[t.tagName]&&function(e,t){tt(C.slice(e.childNodes),t)}(t,n)}var Qe=/^if|for$/,et=/^html|include$/;function tt(e,t){for(var n,r=0;n=e[r++];)switch(n.nodeType){case 1:var i=n;if(i.parentNode&&1===i.parentNode.nodeType){var a=(o=i).hasAttribute("ref")?o.getAttribute("ref"):null;a&&t.length&&(t[0].$refs[a]=i)}nt(n,t),n.msHasEvent&&C.fireDom(n,"datasetchanged",{bubble:n.msHasEvent});break;case 3:L.test(n.nodeValue)&&lt(n,t,r)}var o}function nt(e,t){var n=e.getAttribute("skip"),r=e.getAttributeNode("anot"),i=t.concat();if("string"!=typeof n){if(r){var o=C.vmodels[r.value],s=m.call(e.attributes,0);if(!o)return;if(i=[o],e.removeAttribute(r.name),e.__VM__=o,G(o,"$elem",e),t.length){o.$up=t[0],t[0].$children.push(o);var c={};for(var l in s.forEach(function(n){if(/^:/.test(n.name)){var r=n.name.match(Ye)[1],i=null;if(!r||C.directives[r]||Ge[r])return;try{i=J(i=Le(n.value,t,{}).apply(0,t)),e.removeAttribute(n.name),c[r]=i}catch(t){a("Props parse faild on (%s[class=%s]),",e.nodeName,e.className,n,t+"")}}}),o.props)o.props[l]&&"PropsTypes"===o.props[l].type&&(o.props[l].check(c[l])?(o.props[l]=c[l],delete c[l]):console.error(new TypeError("props."+l+" needs ["+o.props[l].checkType+"], but ["+o.props[l].result+"] given.")));Object.assign(o.props,c),c=void 0}}Ze(e,i),o&&setTimeout(function(){"function"==typeof o.$mounted&&o.$mounted(),delete o.$mounted})}}var rt=/\|\s*html(?:\b|$)/,it=/\|\|/g,at=/(['"])(\\\1|.)+?\1/g,ot=/\r?\n/g;function st(e){if(e.indexOf("|")>0){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;r<i;r++)t.appendChild(e[r]);return t}C.directive("include",{init:O.attr.init,update:function(e){if(e){var t=this,r=this.element,o=t.vmodels,s=t.includeLoaded,c=t.includeRendered,l=t.effectName&&t.effectClass,u=t.templateCache,f=t.includeReplace,p=f?r.parentNode:r,d=t._element;t.recoverNodes=t.recoverNodes||C.noop;var h=function(a){var h=t._stamp=Date.now();if(s){var v=s.apply(p,[a].concat(o));"string"==typeof v&&(a=v)}c&&function e(t,n,r){var i=setTimeout(function(){var a=t.innerHTML;clearTimeout(i),a===r?n():e(t,n,a)})}(p,function(){c.call(p)},NaN);var m=t.includeLastID||"_default";t.includeLastID=e;var y=u&&u[m]||n.createElement(r.tagName||t._element.tagName);l&&(y.className=l,p.insertBefore(y,t.start)),(u||{})[m]=y;var g=t.recoverNodes();for(g&&p.insertBefore(g,t.end);;){var b=t.start.nextSibling;if(!b||b===y||b===t.end)break;y.appendChild(b)}C.effect.remove(y,p,function(){u&&h===t._stamp&&i.appendChild(y)},t);var x=p,$=C.noop,w=C.noop,k=function(e,t,r){var i=e.templateCache&&e.templateCache[t];if(i){for(var a,o=n.createDocumentFragment();a=i.firstChild;)o.appendChild(a);return o}return C.parseHTML(r)}(t,e,a),A=C.slice(k.childNodes);f&&l?((x=d).innerHTML="",x.setAttribute("skip",""),p.insertBefore(x,t.end.nextSibling),$=function(){x.insertBefore(k,null)},w=function(){t.recoverNodes=C.noop,h===t._stamp&&(k=Ht(A),p.insertBefore(k,t.end),tt(A,o)),x.parentNode===p&&p.removeChild(x)},t.recoverNodes=function(){return t.recoverNodes=C.noop,Ht(A)}):$=function(){p.insertBefore(k,t.end),tt(A,o)},C.effect.apply(x,"enter",$,w)};Mt[e]?C.nextTick(function(){h(Mt[e])}):fetch(e,{method:"get",headers:{"X-Requested-With":"XMLHttpRequest"}}).then(e=>e.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;c<y;c++){var $=l[c];v[$]||x++}var w=0;for(c in v)w++;var k,A=(!y||x===y)&&w>10,N=m.previousSibling,j=n.start;if(A)for(;N!==j;)b.removeChild(N),N=m.previousSibling;for(c=0;c<y;c++){var T=v[$=l[c]];if(T)f.push({}),v[$]=!0;else{if((T=Wt(this)).$up=this.vmodels[0],"array"===r){u="add",T.$id=$;var O=e[c];T[h]=O,Object(O)===O&&(G(O,"$ups",O.$ups||{}),O.$ups[h]=T)}else{u="append",T[a]=$,T[o]=e[$];var E={};E[a]=T[a],E[o]=T[o],T[h]=E}this.cache[$]=T,(T.$anchor||(T.$anchor=m.cloneNode(!1))).nodeValue=this.signature,Vt(n,p,T,f,i&&!n.effectDriver),zt(T,n,r)}1===this.enterCount&&(T.$active=!1,T.$oldIndex=T.$index,T.$active=!0,T.$index=c),"array"===r?(T.$first=0===c,T.$last=c===y-1,T[this.vars[0]]=T.$index):T[o]=J(e[$]),d.push(T)}if(this.proxies=d,i&&!n.effectDriver)b.insertBefore(p,m),f.forEach(function(e){tt(e.nodes||[],e.vmodels),e.nodes=e.vmodels=null});else{var S=n.staggerIndex=0;for($ in v)!0!==v[$]&&(u="del",!A&&qt(v[$].$anchor,n,!0),Xt(this.cache,$,h),v[$]=null);for(c=0;c<y;c++){T=d[c],$="array"===r?T.$id:T.$key;var _=d[c-1],P=_?_.$anchor:n.start;v[$]?T.$index!==T.$oldIndex&&function(e,t){S=Rt(n.effectEnterStagger,function(){var r=qt(e.$anchor),i=C.slice(r.childNodes);b.insertBefore(r,t.nextSibling),Bt(i,1,n)},S)}(T,P):function(e,t){var r=e.nodes,a=e.vmodels;r&&(S=Rt(n.effectEnterStagger,function(){b.insertBefore(e.content,t.nextSibling),tt(r,a),!i&&Bt(r,1,n)},S)),e.nodes=e.vmodels=null}(f[c],P)}}if(!e.$track)for($ in this.cache)Xt(this.cache,$,h);k=D.newWatch?arguments:[u],b.args=k,b.msRendered&&b.msRendered.apply(b,k);var L=setTimeout(function(){clearTimeout(L),C.fireDom(b,"datasetchanged",{bubble:b.msHasEvent})});this.enterCount-=1}});var Ut=[];function Yt(e,t){for(var n=e.param||"el",r=0,i=Ut.length;r<i;r++){var a=Ut[r];if(a&&a.hasOwnProperty(n)){Ut.splice(r,1),t=a;break}}return t||(t=function(e){var t=e.param||"el",n=e.vars[0],r={$outer:{},$index:0,$oldIndex:0,$anchor:null,$first:!1,$last:!1,$remove:C.noop};r[n]=0,r[t]=NaN;var i={$last:1,$first:1,$index:1};i[n]=1,i[t]=1;var a=V({state:r},{force:i});return a.$id=k("proxy-each"),a}(e)),t}var Gt=[];function Jt(e){return Gt.pop()||function(e){var t=e.param||"__el__",n=e.vars[0],r=e.vars[1],i={$index:0,$oldIndex:0,$outer:{},$anchor:null};i[n]="",i[r]=NaN,i[t]=NaN;var a={__el__:1,$index:1};a[n]=1,a[r]=1;var o=V({state:i},{force:a});return o.$id=k("proxy-with"),o}(e)}function Xt(e,t,n){var r=e[t];if(r){var i=0===r.$id.indexOf("proxy-each")?Ut:Gt;for(var a in r.$outer={},r.$events){var o=r.$events[a];Array.isArray(o)&&(o.length=0,a===n?r[n]=NaN:"$val"===a&&(r.$val=NaN))}i.unshift(r)>D.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=/<script[^>]*>([\S\s]*?)<\/script\s*>/gim,Qt=/\s+(on[^=\s]+)(?:=("[^"]*"|'[^']*'|[^\s>]+))?/g,en=/<\w+\b(?:(["'])[^"]*?(\1)|[^>])*>/gi,tn={a:/\b(href)\=("javascript[^"]*"|'javascript[^']*')/gi,img:/\b(src)\=("javascript[^"]*"|'javascript[^']*')/gi,form:/\b(action)\=("javascript[^"]*"|'javascript[^']*')/gi},nn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rn=/([^\#-~| |!])/g;function an(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):3,o=r||",",s=n||".",c="";return(c=(a?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,a):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(c[1]||"").length<a&&(c[1]=c[1]||"",c[1]+=new Array(a-c[1].length+1).join("0")),c.join(s)}var on=C.filters={uppercase:function(e){return e.toUpperCase()},lowercase:function(e){return e.toLowerCase()},truncate:function(e,t,n){return t=t||30,n="string"==typeof n?n:"...",e.slice(0,t)+(e.length<=t?"":n)},time:function(e){var t=(e>>=0)%60,n=Math.floor(e/60),r=Math.floor(n/60);return n=(n%=60)<10?"0"+n:n,t=t<10?"0"+t:t,r>0?(r=r<10?"0"+r:r)+":"+n+":"+t:n+":"+t},$filter:function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t],i=C.filters[r[0]];if("function"==typeof i){var a=[e].concat(r.slice(1));e=i.apply(null,a)}}return e},camelize:ye,xss:function(e){return e.replace(Zt,"").replace(en,function(e,t){var n=e.toLowerCase().match(/<(\w+)\s/);if(n){var r=tn[n[1]];r&&(e=e.replace(r,function(e,t,n){var r=n.charAt(0);return t+"="+r+"javascript:void(0)"+r}))}return e.replace(Qt," ").replace(/\s+/g," ")})},escape:function(e){return String(e).replace(/&/g,"&amp;").replace(nn,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(rn,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},currency:function(e,t,n){return(t||"¥")+an(e,isFinite(n)?n:2)},number:an,date:function(e,t){var n=e;if(!Date.isDate(n)){var r=+n;if(r==r&&(n=r),"Invalid Date"===(n=new Date(n)).toString())return"Invalid Date"}return n.format(t)}};let sn,cn=[],ln=function(e){for(sn=!0;e=cn.shift();)e(C)};return"complete"===n.readyState?setTimeout(ln):n.addEventListener("DOMContentLoaded",ln),window.addEventListener("load",ln),C.ready=function(e){sn?e(C):cn.push(e)},window.Anot=C,C}();export default _Anot;
伪域名解析工具。
JavaScript 77.1%
CSS 10.9%
Python 6.2%
HTML 3%
Shell 2.8%