UNPKG

jobsys-mpower

Version:

Enhanced component based on Taro & NutUI

3 lines 76.8 kB
"use strict";function Ds(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function kn(s){if(s.__esModule)return s;var t=s.default;if(typeof t=="function"){var e=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(s).forEach(function(n){var i=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return s[n]}})}),e}var Pn={exports:{}};const yt="[]",c="",vt="!0",g="!1",rt={bindTouchStart:c,bindTouchMove:c,bindTouchEnd:c,bindTouchCancel:c,bindLongTap:c},Xt={animation:c,bindAnimationStart:c,bindAnimationIteration:c,bindAnimationEnd:c,bindTransitionEnd:c};function v(s){return`'${s}'`}const Us=Object.assign(Object.assign({"hover-class":v("none"),"hover-stop-propagation":g,"hover-start-time":"50","hover-stay-time":"400"},rt),Xt),js={type:c,size:"23",color:c},$s=Object.assign({longitude:c,latitude:c,scale:"16",markers:yt,covers:c,polyline:yt,circles:yt,controls:yt,"include-points":yt,"show-location":c,"layer-style":"1",bindMarkerTap:c,bindControlTap:c,bindCalloutTap:c,bindUpdated:c},rt),Ws={percent:c,"stroke-width":"6",color:v("#09BB07"),activeColor:v("#09BB07"),backgroundColor:v("#EBEBEB"),active:g,"active-mode":v("backwards"),"show-info":g},Vs={nodes:yt},Fs={selectable:g,space:c,decode:g},Hs=Object.assign({size:v("default"),type:c,plain:g,disabled:c,loading:g,"form-type":c,"open-type":c,"hover-class":v("button-hover"),"hover-stop-propagation":g,"hover-start-time":"20","hover-stay-time":"70",name:c,bindagreeprivacyauthorization:c},rt),Gs={value:c,disabled:c,checked:g,color:v("#09BB07"),name:c},zs={bindChange:c,name:c},Ys={"report-submit":g,bindSubmit:c,bindReset:c,name:c},qs={value:c,type:v(c),password:g,placeholder:c,"placeholder-style":c,"placeholder-class":v("input-placeholder"),disabled:c,maxlength:"140","cursor-spacing":"0",focus:g,"confirm-type":v("done"),"confirm-hold":g,cursor:"-1","selection-start":"-1","selection-end":"-1",bindInput:c,bindFocus:c,bindBlur:c,bindConfirm:c,name:c},Qs={for:c,name:c},Js={mode:v("selector"),disabled:c,range:c,"range-key":c,value:c,start:c,end:c,fields:v("day"),"custom-item":c,name:c,bindCancel:c,bindChange:c,bindColumnChange:c},Ks={value:c,"indicator-style":c,"indicator-class":c,"mask-style":c,"mask-class":c,bindChange:c,name:c},Zs={name:c},Xs={value:c,checked:g,disabled:c,color:v("#09BB07"),name:c},ti={bindChange:c,name:c},ei={min:"0",max:"100",step:"1",disabled:c,value:"0",activeColor:v("#1aad19"),backgroundColor:v("#e9e9e9"),"block-size":"28","block-color":v("#ffffff"),"show-value":g,bindChange:c,bindChanging:c,name:c},ni={checked:g,disabled:c,type:v("switch"),color:v("#04BE02"),bindChange:c,name:c},si={value:c,placeholder:c,"placeholder-style":c,"placeholder-class":v("textarea-placeholder"),disabled:c,maxlength:"140","auto-focus":g,focus:g,"auto-height":g,fixed:g,"cursor-spacing":"0",cursor:"-1","selection-start":"-1","selection-end":"-1",bindFocus:c,bindBlur:c,bindLineChange:c,bindInput:c,bindConfirm:c,name:c},ii={src:c,bindLoad:"eh",bindError:"eh"},ri=Object.assign({"scroll-top":g},rt),oi={"scale-area":g},ai=Object.assign(Object.assign({direction:"none",inertia:g,"out-of-bounds":g,x:c,y:c,damping:"20",friction:"2",disabled:c,scale:g,"scale-min":"0.5","scale-max":"10","scale-value":"1",bindChange:c,bindScale:c,bindHTouchMove:c,bindVTouchMove:c,width:v("10px"),height:v("10px")},rt),Xt),ci=Object.assign(Object.assign({"scroll-x":g,"scroll-y":g,"upper-threshold":"50","lower-threshold":"50","scroll-top":c,"scroll-left":c,"scroll-into-view":c,"scroll-with-animation":g,"enable-back-to-top":g,bindScrollToUpper:c,bindScrollToLower:c,bindScroll:c},rt),Xt),li=Object.assign({"indicator-dots":g,"indicator-color":v("rgba(0, 0, 0, .3)"),"indicator-active-color":v("#000000"),autoplay:g,current:"0",interval:"5000",duration:"500",circular:g,vertical:g,"previous-margin":v("0px"),"next-margin":v("0px"),"display-multiple-items":"1",bindChange:c,bindTransition:c,bindAnimationFinish:c},rt),hi={"item-id":c},ui={url:c,"open-type":v("navigate"),delta:"1","hover-class":v("navigator-hover"),"hover-stop-propagation":g,"hover-start-time":"50","hover-stay-time":"600",bindSuccess:c,bindFail:c,bindComplete:c},di={id:c,src:c,loop:g,controls:g,poster:c,name:c,author:c,bindError:c,bindPlay:c,bindPause:c,bindTimeUpdate:c,bindEnded:c},fi={"device-position":v("back"),flash:v("auto"),bindStop:c,bindError:c},pi=Object.assign({src:c,mode:v("scaleToFill"),"lazy-load":g,bindError:c,bindLoad:c},rt),mi=Object.assign({src:c,autoplay:g,muted:g,orientation:v("vertical"),"object-fit":v("contain"),"background-mute":g,"min-cache":"1","max-cache":"3",bindStateChange:c,bindFullScreenChange:c,bindNetStatus:c},Xt),gi=Object.assign({src:c,duration:c,controls:vt,"danmu-list":c,"danmu-btn":c,"enable-danmu":c,autoplay:g,loop:g,muted:g,"initial-time":"0","page-gesture":g,direction:c,"show-progress":vt,"show-fullscreen-btn":vt,"show-play-btn":vt,"show-center-play-btn":vt,"enable-progress-gesture":vt,"object-fit":v("contain"),poster:c,"show-mute-btn":g,bindPlay:c,bindPause:c,bindEnded:c,bindTimeUpdate:c,bindFullScreenChange:c,bindWaiting:c,bindError:c},Xt),bi=Object.assign({"canvas-id":c,"disable-scroll":g,bindError:c},rt),Ei={"unit-id":c,"ad-intervals":c,bindLoad:c,bindError:c,bindClose:c},vi={src:c,bindMessage:c,bindLoad:c,bindError:c},_i={},yi={name:c},Ti={name:c},wi={name:c},Ye={View:Us,Icon:js,Progress:Ws,RichText:Vs,Text:Fs,Button:Hs,Checkbox:Gs,CheckboxGroup:zs,Form:Ys,Input:qs,Label:Qs,Picker:Js,PickerView:Ks,PickerViewColumn:Zs,Radio:Xs,RadioGroup:ti,Slider:ei,Switch:ni,CoverImage:ii,Textarea:si,CoverView:ri,MovableArea:oi,MovableView:ai,ScrollView:ci,Swiper:li,SwiperItem:hi,Navigator:ui,Audio:di,Camera:fi,Image:pi,LivePlayer:mi,Video:gi,Canvas:bi,Ad:Ei,WebView:vi,Block:_i,Map:$s,Slot:Ti,SlotView:yi,NativeSlot:wi},Si=new Set(["input","checkbox","picker","picker-view","radio","slider","switch","textarea"]);var mt;(function(s){s.MINI="mini",s.WEB="web",s.RN="rn",s.HARMONY="harmony",s.QUICK="quickapp"})(mt||(mt={}));mt.WEB,mt.HARMONY,mt.MINI,mt.RN,mt.QUICK;class W{constructor(t){var e;this.callbacks=(e=t==null?void 0:t.callbacks)!==null&&e!==void 0?e:{}}on(t,e,n){let i,r,o;if(!e)return this;typeof t=="symbol"?o=[t]:o=t.split(W.eventSplitter),this.callbacks||(this.callbacks={});const a=this.callbacks;for(;i=o.shift();){const l=a[i],u=l?l.tail:{};u.next=r={},u.context=n,u.callback=e,a[i]={tail:r,next:l?l.next:u}}return this}once(t,e,n){const i=(...r)=>{e.apply(this,r),this.off(t,i,n)};return this.on(t,i,n),this}off(t,e,n){let i,r,o;if(!(r=this.callbacks))return this;if(!(t||e||n))return delete this.callbacks,this;for(typeof t=="symbol"?o=[t]:o=t?t.split(W.eventSplitter):Object.keys(r);i=o.shift();){let a=r[i];if(delete r[i],!a||!(e||n))continue;const l=a.tail;for(;(a=a.next)!==l;){const u=a.callback,d=a.context;(e&&u!==e||n&&d!==n)&&this.on(i,u,d)}}return this}trigger(t,...e){let n,i,r,o;if(!(r=this.callbacks))return this;for(typeof t=="symbol"?o=[t]:o=t.split(W.eventSplitter);n=o.shift();)if(i=r[n]){const a=i.tail;for(;(i=i.next)!==a;)i.callback.apply(i.context||this,e)}return this}}W.eventSplitter=",";function A(s){return typeof s=="string"}function M(s){return typeof s>"u"}function Vt(s){return s===null}function Rn(s){return s!==null&&typeof s=="object"}function z(s){return typeof s=="function"}function Bn(s){return typeof s=="number"}const it=Array.isArray,ft=()=>process.env.TARO_ENV==="h5"||process.env.TARO_PLATFORM==="web";var E;(function(s){s[s.SINGLE=0]="SINGLE",s[s.MULTI=1]="MULTI",s[s.WATERFALL=2]="WATERFALL"})(E||(E={}));const Ni={app:["onLaunch","onShow","onHide"],page:["onLoad","onUnload","onReady","onShow","onHide",["onPullDownRefresh","onReachBottom","onPageScroll","onResize","defer:onTabItemTap","onTitleClick","onOptionMenuClick","onPopMenuClick","onPullIntercept","onAddToFavorites"],["onShareAppMessage","onShareTimeline"]],component:["attached","detached"]};function S(s,t){return{type:s,initial:t||null}}class Ci extends W{constructor(t,e){super(e),this.hooks=t;for(const n in t){const{initial:i}=t[n];z(i)&&this.on(n,i)}}tapOneOrMany(t,e){(z(e)?[e]:e).forEach(i=>this.on(t,i))}tap(t,e){const n=this.hooks,{type:i,initial:r}=n[t];i===E.SINGLE?(this.off(t),this.on(t,z(e)?e:e[e.length-1])):(r&&this.off(t,r),this.tapOneOrMany(t,e))}call(t,...e){var n;const i=this.hooks[t];if(!i)return;const{type:r}=i,o=this.callbacks;if(!o)return;const a=o[t];if(a){const l=a.tail;let u=a.next,d=e,p;for(;u!==l;)p=(n=u.callback)===null||n===void 0?void 0:n.apply(u.context||this,d),r===E.WATERFALL&&(d=[p]),u=u.next;return p}}isExist(t){var e;return!!(!((e=this.callbacks)===null||e===void 0)&&e[t])}}const T=new Ci({getMiniLifecycle:S(E.SINGLE,s=>s),getMiniLifecycleImpl:S(E.SINGLE,function(){return this.call("getMiniLifecycle",Ni)}),getLifecycle:S(E.SINGLE,(s,t)=>s[t]),modifyRecursiveComponentConfig:S(E.SINGLE,s=>s),getPathIndex:S(E.SINGLE,s=>`[${s}]`),getEventCenter:S(E.SINGLE,s=>new s),isBubbleEvents:S(E.SINGLE,s=>new Set(["touchstart","touchmove","touchcancel","touchend","touchforcechange","tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend"]).has(s)),getSpecialNodes:S(E.SINGLE,()=>["view","text","image"]),onRemoveAttribute:S(E.SINGLE),batchedEventUpdates:S(E.SINGLE),mergePageInstance:S(E.SINGLE),modifyPageObject:S(E.SINGLE),createPullDownComponent:S(E.SINGLE),getDOMNode:S(E.SINGLE),modifyHydrateData:S(E.SINGLE),transferHydrateData:S(E.SINGLE),modifySetAttrPayload:S(E.SINGLE),modifyRmAttrPayload:S(E.SINGLE),onAddEvent:S(E.SINGLE),proxyToRaw:S(E.SINGLE,function(s){return s}),modifyMpEvent:S(E.MULTI),modifyMpEventImpl:S(E.SINGLE,function(s){try{this.call("modifyMpEvent",s)}catch(t){console.warn("[Taro modifyMpEvent hook Error]: "+(t==null?void 0:t.message))}}),injectNewStyleProperties:S(E.SINGLE),modifyTaroEvent:S(E.MULTI),dispatchTaroEvent:S(E.SINGLE,(s,t)=>{t.dispatchEvent(s)}),dispatchTaroEventFinish:S(E.MULTI),modifyDispatchEvent:S(E.MULTI),initNativeApi:S(E.MULTI),patchElement:S(E.MULTI),modifyAddEventListener:S(E.SINGLE),modifyRemoveEventListener:S(E.SINGLE)}),Et={},we=(...s)=>{};function Mn(s){return s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function G(s){let t="",e=!1;for(let n=0;n<s.length;n++)s[n]!=="-"?(t+=e?s[n].toUpperCase():s[n],e=!1):e=!0;return t}function qe(s,t){if(!s)if(process.env.NODE_ENV!=="production"){const e=` 如有疑问,请提交 issue 至:https://github.com/nervjs/taro/issues`;throw new Error(t+e)}else throw new Error(t)}function xt(s,t){process.env.NODE_ENV!=="production"&&s&&console.warn(`[taro warn] ${t}`)}new Date().getTime().toString();function Dn(s){const t={},e=s.View,n={"#text":{},StaticView:e,StaticImage:s.Image,StaticText:s.Text,PureView:e,CatchView:e};return s=Object.assign(Object.assign({},s),n),Object.keys(s).sort((i,r)=>{const o=/^(Static|Pure|Catch)*(View|Image|Text)$/,a=o.test(i),l=o.test(r);return a&&l?i>r?1:-1:a?-1:l||i>=r?1:-1}).forEach((i,r)=>{const o={_num:String(r)};Object.keys(s[i]).filter(a=>!/^bind/.test(a)&&!["focus","blur"].includes(a)).sort().forEach((a,l)=>{o[G(a)]="p"+l}),t[Mn(i)]=o}),t}const Qe=2046,Oi="Taro runtime",Ai="taro-app",Un="小程序 setData",me="页面初始化",Ot="root",jn="html",$n="head",Wn="body",xe="app",Vn="container",Fn="#document",Je="document-fragment",At="id",Hn="uid",Jt="class",K="style",ie="focus",Z="view",Le="static-view",Ke="pure-view",Gn="props",zn="dataset",Yn="object",Ie="value",Ze="input",qn="change",Xe="custom-wrapper",Qn="target",Jn="currentTarget",he="type",Kn="confirm",Zn="timeStamp",Xn="keyCode",ts="touchmove",xi="Date",Li="setTimeout",Kt="catchMove",tn="catch-view",en="comment",nn="onLoad",sn="onReady",rn="onShow",on="onHide",es="options",ns="externalClasses",ue="e_result",ss="behaviors",is="a";var x;(function(s){s.INIT="0",s.RESTORE="1",s.RECOVER="2",s.DESTORY="3"})(x||(x={}));const Ft=[];class Ii{constructor(t){this.records=[],this.callback=t}observe(t,e){this.disconnect(),this.target=t,this.options=e||{},Ft.push(this)}disconnect(){this.target=null;const t=Ft.indexOf(this);t>=0&&Ft.splice(t,1)}takeRecords(){return this.records.splice(0,this.records.length)}}const ki=(s,t)=>!!s&&s.sid===(t==null?void 0:t.sid),Pi=(s,t)=>{const{characterData:e,characterDataOldValue:n,attributes:i,attributeOldValue:r,childList:o}=t;switch(s.type){case"characterData":return e?(n||(s.oldValue=null),!0):!1;case"attributes":return i?(r||(s.oldValue=null),!0):!1;case"childList":return!!o}};let Se=!1;function Ri(s,t){s.records.push(t),Se||(Se=!0,Promise.resolve().then(()=>{Se=!1,Ft.forEach(e=>e.callback(e.takeRecords()))}))}function Bi(s){Ft.forEach(t=>{const{options:e}=t;for(let n=s.target;n;n=n.parentNode){if(ki(t.target,n)&&Pi(s,e)){Ri(t,s);break}if(!e.subtree)break}})}class ht{constructor(t){ENABLE_MUTATION_OBSERVER?this.core=new Ii(t):(process.env.NODE_ENV!=="production"&&console.warn("[Taro Warning] 若要使用 MutationObserver,请在 Taro 编译配置中设置 'mini.runtime.enableMutationObserver: true'"),this.core={observe:we,disconnect:we,takeRecords:we})}observe(...t){this.core.observe(...t)}disconnect(){this.core.disconnect()}takeRecords(){return this.core.takeRecords()}static record(t){Bi(t)}}const an=()=>{const s=[];for(let n=65;n<=90;n++)s.push(n);for(let n=97;n<=122;n++)s.push(n);const t=s.length-1,e=[0,0];return()=>{const n=e.map(o=>s[o]),i=String.fromCharCode(...n);let r=e.length-1;for(e[r]++;e[r]>t;){if(e[r]=0,r=r-1,r<0){e.push(0);break}e[r]++}return i}};function Mi(s){return s.nodeType===1}function Di(s){return s.nodeType===3}function Ht(s){return s.nodeName===en}function lt(s){return!!Object.keys(s.props).find(e=>!(/^(class|style|id)$/.test(e)||e.startsWith("data-")))}function Ui(s,t){for(var e;s=(s==null?void 0:s.parentElement)||null;){if(!s||s.nodeName===Ot||s.nodeName==="root-portal")return!1;if(!((e=s.__handlers[t])===null||e===void 0)&&e.length)return!0}return!1}function pn(s){switch(s){case K:return"st";case At:return Hn;case Jt:return"cl";default:return s}}const ke=new Map;function rs(s,t,e){z(e)&&(e={value:e}),Object.defineProperty(s.prototype,t,Object.assign({configurable:!0,enumerable:!0},e))}let Ne;function pt(){return Ne||(Ne=Dn(Ye)),Ne}class ji{constructor(t,e){this.tokenList=[],this.el=e,t.trim().split(/\s+/).forEach(n=>this.tokenList.push(n))}get value(){return this.toString()}get length(){return this.tokenList.length}add(){let t=0,e=!1;const n=arguments,i=n.length,r=this.tokenList;do{const o=n[t];this.checkTokenIsValid(o)&&!~r.indexOf(o)&&(r.push(o),e=!0)}while(++t<i);e&&this._update()}remove(){let t=0,e=!1;const n=arguments,i=n.length,r=this.tokenList;do{const o=n[t]+"";if(!this.checkTokenIsValid(o))continue;const a=r.indexOf(o);~r.indexOf(o)&&(r.splice(a,1),e=!0)}while(++t<i);e&&this._update()}contains(t){return this.checkTokenIsValid(t)?!!~this.tokenList.indexOf(t):!1}toggle(t,e){const n=this.contains(t),i=n?e!==!0&&"remove":e!==!1&&"add";return i&&this[i](t),e===!0||e===!1?e:!n}replace(t,e){if(!this.checkTokenIsValid(t)||!this.checkTokenIsValid(e))return;const n=this.tokenList.indexOf(t);~n&&(this.tokenList.splice(n,1,e),this._update())}toString(){return this.tokenList.filter(t=>t!=="").join(" ")}checkTokenIsValid(t){return!(t===""||/\s/.test(t))}_update(){this.el.className=this.value}}class $i extends Map{removeNode(t){const{sid:e,uid:n}=t;this.delete(e),n!==e&&n&&this.delete(n)}removeNodeTree(t){this.removeNode(t);const{childNodes:e}=t;e.forEach(n=>this.removeNodeTree(n))}}const Lt=new $i,mn=ft(),I={window:mn?window:Et,document:mn?document:Et};let Ce,se;function de(s){var t;se||(se=pt()),Ce||(Ce=T.call("getSpecialNodes"));const e=s.nodeName;if(Di(s))return{sid:s.sid,v:s.nodeValue,nn:((t=se[e])===null||t===void 0?void 0:t._num)||"8"};const n={nn:e,sid:s.sid};s.uid!==s.sid&&(n.uid=s.uid),!s.isAnyEventBinded()&&Ce.indexOf(e)>-1&&(n.nn=`static-${e}`,e===Z&&!lt(s)&&(n.nn=Ke));const{props:i}=s;for(const d in i){const p=G(d);!d.startsWith("data-")&&d!==Jt&&d!==K&&d!==At&&p!==Kt&&(n[p]=i[d]),e===Z&&p===Kt&&i[d]!==!1&&(n.nn=tn)}let{childNodes:r}=s;r=r.filter(d=>!Ht(d)),r.length>0?n.cn=r.map(de):n.cn=[],s.className!==""&&(n.cl=s.className);const o=s.cssText;o!==""&&e!=="swiper-item"&&(n.st=o),T.call("modifyHydrateData",n,s);const a=n.nn,l=se[a];if(l){n.nn=l._num;for(const d in n)d in l&&(n[l[d]]=n[d],delete n[d])}return T.call("transferHydrateData",n,s,l)||n}class Wi{constructor(){this.__handlers={}}addEventListener(t,e,n){if(t=t.toLowerCase(),T.call("onAddEvent",t,e,n,this),t==="regionchange"){this.addEventListener("begin",e,n),this.addEventListener("end",e,n);return}let i=!!n,r=!1;if(Rn(n)&&(i=!!n.capture,r=!!n.once),r){const l=function(){e.apply(this,arguments),this.removeEventListener(t,l)};this.addEventListener(t,l,Object.assign(Object.assign({},n),{once:!1}));return}process.env.NODE_ENV!=="production"&&xt(i,"Taro 暂未实现 event 的 capture 特性。");const o=e;e=function(){return o.apply(this,arguments)},e.oldHandler=o;const a=this.__handlers[t];it(a)?a.push(e):this.__handlers[t]=[e]}removeEventListener(t,e){if(t=t.toLowerCase(),t==="regionchange"){this.removeEventListener("begin",e),this.removeEventListener("end",e);return}if(!e)return;const n=this.__handlers[t];if(!it(n))return;const i=n.findIndex(r=>{if(r===e||r.oldHandler===e)return!0});process.env.NODE_ENV!=="production"&&xt(i===-1,`事件: '${t}' 没有注册在 DOM 中,因此不会被移除。`),n.splice(i,1)}isAnyEventBinded(){const t=this.__handlers;return!!Object.keys(t).find(n=>t[n].length)}}const gn="cn",Vi=an();class nt extends Wi{constructor(){super(),this.parentNode=null,this.childNodes=[],this.hydrate=t=>()=>de(t),this.uid="_"+Vi(),this.sid=this.uid,Lt.set(this.sid,this)}updateChildNodes(t){const e=()=>[],n=()=>this.childNodes.filter(r=>!Ht(r)).map(de);this.enqueueUpdate({path:`${this._path}.${gn}`,value:t?e:n})}updateSingleChild(t){this.childNodes.forEach((e,n)=>{Ht(e)||t&&n<t||this.enqueueUpdate({path:e._path,value:this.hydrate(e)})})}get _root(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t._root)||null}findIndex(t){const e=this.childNodes.indexOf(t);return qe(e!==-1,"The node to be replaced is not a child of this node."),e}get _path(){const t=this.parentNode;if(t){const n=t.childNodes.filter(r=>!Ht(r)).indexOf(this),i=T.call("getPathIndex",n);return`${t._path}.${gn}.${i}`}return""}get nextSibling(){const t=this.parentNode;return(t==null?void 0:t.childNodes[t.findIndex(this)+1])||null}get previousSibling(){const t=this.parentNode;return(t==null?void 0:t.childNodes[t.findIndex(this)-1])||null}get parentElement(){const t=this.parentNode;return(t==null?void 0:t.nodeType)===1?t:null}get firstChild(){return this.childNodes[0]||null}get lastChild(){const t=this.childNodes;return t[t.length-1]||null}set textContent(t){const e=this.childNodes.slice(),n=[];for(;this.firstChild;)this.removeChild(this.firstChild,{doUpdate:!1});if(t==="")this.updateChildNodes(!0);else{const i=I.document.createTextNode(t);n.push(i),this.appendChild(i),this.updateChildNodes()}ht.record({type:"childList",target:this,removedNodes:e,addedNodes:n})}insertBefore(t,e,n){if(t.nodeName===Je)return t.childNodes.reduceRight((o,a)=>(this.insertBefore(a,o),a),e),t;t.remove({cleanRef:!1});let i=0;t.parentNode=this,e?(i=this.findIndex(e),this.childNodes.splice(i,0,t)):this.childNodes.push(t);const r=this.childNodes.length;return this._root&&(e?n?this.enqueueUpdate({path:t._path,value:this.hydrate(t)}):r*2/3>i?this.updateChildNodes():this.updateSingleChild(i):r===1?this.updateChildNodes():this.enqueueUpdate({path:t._path,value:this.hydrate(t)})),ht.record({type:"childList",target:this,addedNodes:[t],removedNodes:n?[e]:[],nextSibling:n?e.nextSibling:e||null,previousSibling:t.previousSibling}),t}appendChild(t){return this.insertBefore(t)}replaceChild(t,e){if(e.parentNode===this)return this.insertBefore(t,e,!0),e.remove({doUpdate:!1}),e}removeChild(t,e={}){const{cleanRef:n,doUpdate:i}=e;n!==!1&&i!==!1&&ht.record({type:"childList",target:this,removedNodes:[t],nextSibling:t.nextSibling,previousSibling:t.previousSibling});const r=this.findIndex(t);return this.childNodes.splice(r,1),t.parentNode=null,n!==!1&&Lt.removeNodeTree(t),this._root&&i!==!1&&this.updateChildNodes(),t}remove(t){var e;(e=this.parentNode)===null||e===void 0||e.removeChild(this,t)}hasChildNodes(){return this.childNodes.length>0}enqueueUpdate(t){var e;(e=this._root)===null||e===void 0||e.enqueueUpdate(t)}get ownerDocument(){return I.document}static extend(t,e){rs(nt,t,e)}}const os="webkit",re=["all","appearance","blockOverflow","blockSize","bottom","clear","contain","content","continue","cursor","direction","display","filter","float","gap","height","inset","isolation","left","letterSpacing","lightingColor","markerSide","mixBlendMode","opacity","order","position","quotes","resize","right","rowGap","tabSize","tableLayout","top","userSelect","verticalAlign","visibility","voiceFamily","volume","whiteSpace","widows","width","zIndex","pointerEvents","aspectRatio"];function f(s,t,e){!e&&re.push(s),t.forEach(n=>{re.push(s+n),s===os&&re.push("Webkit"+n)})}const ge="Color",te="Style",Pt="Width",ee="Image",be="Size",ot=[ge,te,Pt],as=["FitLength","FitWidth",ee],Ee=[...as,"Radius"],ve=[...ot,...as],cs=["EndRadius","StartRadius"],_e=["Bottom","Left","Right","Top"],U=["End","Start"],ls=["Content","Items","Self"],hs=["BlockSize","Height","InlineSize",Pt],ne=["After","Before"];f("borderBlock",ot);f("borderBlockEnd",ot);f("borderBlockStart",ot);f("outline",[...ot,"Offset"]);f("border",[...ot,"Boundary","Break","Collapse","Radius","Spacing"]);f("borderFit",["Length",Pt]);f("borderInline",ot);f("borderInlineEnd",ot);f("borderInlineStart",ot);f("borderLeft",ve);f("borderRight",ve);f("borderTop",ve);f("borderBottom",ve);f("textDecoration",[ge,te,"Line"]);f("textEmphasis",[ge,te,"Position"]);f("scrollMargin",_e);f("scrollPadding",_e);f("padding",_e);f("margin",[..._e,"Trim"]);f("scrollMarginBlock",U);f("scrollMarginInline",U);f("scrollPaddingBlock",U);f("scrollPaddingInline",U);f("gridColumn",U);f("gridRow",U);f("insetBlock",U);f("insetInline",U);f("marginBlock",U);f("marginInline",U);f("paddingBlock",U);f("paddingInline",U);f("pause",ne);f("cue",ne);f("mask",["Clip","Composite",ee,"Mode","Origin","Position","Repeat",be,"Type"]);f("borderImage",["Outset","Repeat","Slice","Source","Transform",Pt]);f("maskBorder",["Mode","Outset","Repeat","Slice","Source",Pt]);f("font",["Family","FeatureSettings","Kerning","LanguageOverride","MaxSize","MinSize","OpticalSizing","Palette",be,"SizeAdjust","Stretch",te,"Weight","VariationSettings"]);f("transform",["Box","Origin",te]);f("background",[ge,ee,"Attachment","BlendMode","Clip","Origin","Position","Repeat",be]);f("listStyle",[ee,"Position","Type"]);f("scrollSnap",["Align","Stop","Type"]);f("grid",["Area","AutoColumns","AutoFlow","AutoRows"]);f("gridTemplate",["Areas","Columns","Rows"]);f("overflow",["Block","Inline","Wrap","X","Y"]);f("transition",["Delay","Duration","Property","TimingFunction"]);f("color",["Adjust","InterpolationFilters","Scheme"]);f("textAlign",["All","Last"]);f("page",["BreakAfter","BreakBefore","BreakInside"]);f("animation",["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"]);f("flex",["Basis","Direction","Flow","Grow","Shrink","Wrap"]);f("offset",[...ne,...U,"Anchor","Distance","Path","Position","Rotate"]);f("perspective",["Origin"]);f("clip",["Path","Rule"]);f("flow",["From","Into"]);f("align",["Content","Items","Self"],!0);f("alignment",["Adjust","Baseline"],!0);f("borderStart",cs,!0);f("borderEnd",cs,!0);f("borderCorner",["Fit",ee,"ImageTransform"],!0);f("borderTopLeft",Ee,!0);f("borderTopRight",Ee,!0);f("borderBottomLeft",Ee,!0);f("borderBottomRight",Ee,!0);f("column",["s","Count","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","Span",Pt],!0);f("break",[...ne,"Inside"],!0);f("wrap",[...ne,"Flow","Inside","Through"],!0);f("justify",ls,!0);f("place",ls,!0);f("max",[...hs,"Lines"],!0);f("min",hs,!0);f("line",["Break","Clamp","Grid","Height","Padding","Snap"],!0);f("inline",["BoxAlign",be,"Sizing"],!0);f("text",["CombineUpright","GroupAlign","Height","Indent","Justify","Orientation","Overflow","Shadow","SpaceCollapse","SpaceTrim","Spacing","Transform","UnderlinePosition","Wrap"],!0);f("shape",["ImageThreshold","Inside","Margin","Outside"],!0);f("word",["Break","Spacing","Wrap"],!0);f("object",["Fit","Position"],!0);f("box",["DecorationBreak","Shadow","Sizing","Snap"],!0);f(os,["LineClamp","BoxOrient","TextFillColor","TextStroke","TextStrokeColor","TextStrokeWidth"],!0);function us(s){ht.record({type:"attributes",target:s._element,attributeName:"style",oldValue:s.cssText})}function Pe(s){const t=s._element;t._root&&t.enqueueUpdate({path:`${t._path}.st`,value:s.cssText})}function ds(s,t){process.env.NODE_ENV!=="production"&&xt(A(s)&&s.length>Qe,`Style 属性 ${t} 的值数据量过大,可能会影响渲染性能,考虑使用 CSS 类或其它方案替代。`),this[t]!==s&&(!this._pending&&us(this),Vt(s)||M(s)||s===""?(this._usedStyleProp.delete(t),delete this._value[t]):(this._usedStyleProp.add(t),this._value[t]=s),!this._pending&&Pe(this))}function Re(s,t){const e={};for(let n=0;n<t.length;n++){const i=t[n];if(s[i])return;e[i]={get(){const r=this._value[i];return Vt(r)||M(r)?"":r},set(r){ds.call(this,r,i)}}}Object.defineProperties(s.prototype,e)}function Fi(s){return/^--/.test(s)}class Zt{constructor(t){this._element=t,this._usedStyleProp=new Set,this._value={}}setCssVariables(t){this.hasOwnProperty(t)||Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>this._value[t]||"",set:e=>{ds.call(this,e,t)}})}get cssText(){if(!this._usedStyleProp.size)return"";const t=[];return this._usedStyleProp.forEach(e=>{const n=this[e];if(Vt(n)||M(n))return;let i=Fi(e)?e:Mn(e);(i.indexOf("webkit")===0||i.indexOf("Webkit")===0)&&(i=`-${i}`),t.push(`${i}: ${n};`)}),t.join(" ")}set cssText(t){if(this._pending=!0,us(this),this._usedStyleProp.forEach(n=>{this.removeProperty(n)}),t===""||M(t)||Vt(t)){this._pending=!1,Pe(this);return}const e=t.split(";");for(let n=0;n<e.length;n++){const i=e[n].trim();if(i==="")continue;const[r,...o]=i.split(":"),a=o.join(":");M(a)||this.setProperty(r.trim(),a.trim())}this._pending=!1,Pe(this)}setProperty(t,e){t[0]==="-"?this.setCssVariables(t):t=G(t),Vt(e)||M(e)?this.removeProperty(t):this[t]=e}removeProperty(t){if(t=G(t),!this._usedStyleProp.has(t))return"";const e=this[t];return this[t]=void 0,e}getPropertyValue(t){t=G(t);const e=this[t];return e||""}}Re(Zt,re);T.tap("injectNewStyleProperties",s=>{if(it(s))Re(Zt,s);else{if(typeof s!="string")return;Re(Zt,[s])}});function Hi(){return!0}function bn(s,t){const e=[],n=t??Hi;let i=s;for(;i;)i.nodeType===1&&n(i)&&e.push(i),i=Gi(i,s);return e}function Gi(s,t){const e=s.firstChild,n=s.nodeType===1||s.nodeType===9;if(e&&n)return e;let i=s;do{if(i===t)return null;const r=i.nextSibling;if(r)return r;i=i.parentElement}while(i);return null}class V extends nt{constructor(){super(),this.props={},this.dataset=Et,this.nodeType=1,this.style=new Zt(this),T.call("patchElement",this)}_stopPropagation(t){let e=this;for(;e=e.parentNode;){const n=e.__handlers[t.type];if(it(n))for(let i=n.length;i--;){const r=n[i];r._stop=!0}}}get id(){return this.getAttribute(At)}set id(t){this.setAttribute(At,t)}get className(){return this.getAttribute(Jt)||""}set className(t){this.setAttribute(Jt,t)}get cssText(){return this.getAttribute(K)||""}get classList(){return new ji(this.className,this)}get children(){return this.childNodes.filter(Mi)}get attributes(){const t=this.props,e=Object.keys(t),n=this.style.cssText;return e.map(r=>({name:r,value:t[r]})).concat(n?{name:K,value:n}:[])}get textContent(){let t="";const e=this.childNodes;for(let n=0;n<e.length;n++)t+=e[n].textContent;return t}set textContent(t){super.textContent=t}hasAttribute(t){return!M(this.props[t])}hasAttributes(){return this.attributes.length>0}get focus(){return function(){this.setAttribute(ie,!0)}}set focus(t){this.setAttribute(ie,t)}blur(){this.setAttribute(ie,!1)}setAttribute(t,e){process.env.NODE_ENV!=="production"&&xt(A(e)&&e.length>Qe,`元素 ${this.nodeName} 的 ${t} 属性值数据量过大,可能会影响渲染性能。考虑降低图片转为 base64 的阈值或在 CSS 中使用 base64。`);const n=this.nodeName===Z&&!lt(this)&&!this.isAnyEventBinded();switch(t!==K&&ht.record({target:this,type:"attributes",attributeName:t,oldValue:this.getAttribute(t)}),t){case K:this.style.cssText=e;break;case At:this.uid!==this.sid&&Lt.delete(this.uid),e=String(e),this.props[t]=this.uid=e,Lt.set(e,this);break;default:this.props[t]=e,t.startsWith("data-")&&(this.dataset===Et&&(this.dataset=Object.create(null)),this.dataset[G(t.replace(/^data-/,""))]=e);break}if(!this._root)return;const i=pt(),r=i[this.nodeName],o=i[Z]._num,a=i[Le]._num,l=i[tn]._num,u=this._path;t=pn(t);const d=G(t),p={path:`${u}.${d}`,value:z(e)?()=>e:e};if(T.call("modifySetAttrPayload",this,t,p,i),r){const m=r[d]||t;p.path=`${u}.${G(m)}`}this.enqueueUpdate(p),this.nodeName===Z&&(d===Kt?this.enqueueUpdate({path:`${u}.nn`,value:e?l:this.isAnyEventBinded()?o:a}):n&&lt(this)&&this.enqueueUpdate({path:`${u}.nn`,value:a}))}removeAttribute(t){const e=this.nodeName===Z&&lt(this)&&!this.isAnyEventBinded();if(ht.record({target:this,type:"attributes",attributeName:t,oldValue:this.getAttribute(t)}),t===K)this.style.cssText="";else{if(T.call("onRemoveAttribute",this,t)||!this.props.hasOwnProperty(t))return;delete this.props[t]}if(!this._root)return;const n=pt(),i=n[this.nodeName],r=n[Z]._num,o=n[Le]._num,a=n[Ke]._num,l=this._path;t=pn(t);const u=G(t),d={path:`${l}.${u}`,value:""};if(T.call("modifyRmAttrPayload",this,t,d,n),i){const p=i[u]||t;d.path=`${l}.${G(p)}`}this.enqueueUpdate(d),this.nodeName===Z&&(u===Kt?this.enqueueUpdate({path:`${l}.nn`,value:this.isAnyEventBinded()?r:lt(this)?o:a}):e&&!lt(this)&&this.enqueueUpdate({path:`${l}.nn`,value:a}))}getAttribute(t){const e=t===K?this.style.cssText:this.props[t];return e??""}getElementsByTagName(t){return bn(this,e=>e.nodeName===t||t==="*"&&this!==e)}getElementsByClassName(t){const e=t.trim().split(/\s+/);return bn(this,n=>{const i=n.classList;return e.every(r=>i.contains(r))})}dispatchEvent(t){const e=t.cancelable,n=this.__handlers[t.type];if(!it(n))return!1;for(let i=n.length;i--;){const r=n[i];let o;if(r._stop?r._stop=!1:(T.call("modifyDispatchEvent",t,this),o=r.call(this,t)),(o===!1||t._end)&&e&&(t.defaultPrevented=!0),!M(o)&&t.mpEvent&&(t.mpEvent[ue]=o),t._end&&t._stop)break}return t._stop?this._stopPropagation(t):t._stop=!0,n!=null}addEventListener(t,e,n){const i=this.nodeName,r=T.call("getSpecialNodes");let o=!0;if(Rn(n)&&n.sideEffect===!1&&(o=!1,delete n.sideEffect),T.call("modifyAddEventListener",this,o,pt),o!==!1&&!this.isAnyEventBinded()&&r.indexOf(i)>-1){const l=pt()[i]._num;this.enqueueUpdate({path:`${this._path}.nn`,value:l})}super.addEventListener(t,e,n)}removeEventListener(t,e,n=!0){super.removeEventListener(t,e);const i=this.nodeName,r=T.call("getSpecialNodes");if(T.call("modifyRemoveEventListener",this,n,pt),n!==!1&&!this.isAnyEventBinded()&&r.indexOf(i)>-1){const o=pt(),a=lt(this)?`static-${i}`:`pure-${i}`,l=o[a]._num;this.enqueueUpdate({path:`${this._path}.nn`,value:l})}}static extend(t,e){rs(V,t,e)}}const L={prerender:!0,debug:!1};function zi(){return{index:0,column:0,line:0}}function oe(s,t,e){const n=s.index,i=s.index=n+e;for(let r=n;r<i;r++)t.charAt(r)===` `?(s.line++,s.column=0):s.column++}function Rt(s,t,e){const n=e-s.index;return oe(s,t,n)}function _t(s){return{index:s.index,line:s.line,column:s.column}}const Yi=/\s/;function Gt(s){return Yi.test(s)}const qi=/=/;function En(s){return qi.test(s)}function Qi(s){const t=s.toLowerCase();return!!L.html.skipElements.has(t)}const Ji=/[A-Za-z0-9]/;function Ki(s,t){for(;;){const e=s.indexOf("<",t);if(e===-1)return e;const n=s.charAt(e+1);if(n==="/"||n==="!"||Ji.test(n))return e;t=e+1}}function Zi(s,t,e){if(!Gt(e.charAt(s)))return!1;const n=e.length;for(let i=s-1;i>t;i--){const r=e.charAt(i);if(!Gt(r)){if(En(r))return!1;break}}for(let i=s+1;i<n;i++){const r=e.charAt(i);if(!Gt(r))return!En(r)}}class Xi{constructor(t){this.tokens=[],this.position=zi(),this.html=t}scan(){const{html:t,position:e}=this,n=t.length;for(;e.index<n;){const i=e.index;if(this.scanText(),e.index===i)if(t.startsWith("!--",i+1))this.scanComment();else{const o=this.scanTag();Qi(o)&&this.scanSkipTag(o)}}return this.tokens}scanText(){const t="text",{html:e,position:n}=this;let i=Ki(e,n.index);if(i===n.index)return;i===-1&&(i=e.length);const r=_t(n),o=e.slice(n.index,i);Rt(n,e,i);const a=_t(n);this.tokens.push({type:t,content:o,position:{start:r,end:a}})}scanComment(){const t="comment",{html:e,position:n}=this,i=_t(n);oe(n,e,4);let r=e.indexOf("-->",n.index),o=r+3;r===-1&&(r=o=e.length);const a=e.slice(n.index,r);Rt(n,e,o),this.tokens.push({type:t,content:a,position:{start:i,end:_t(n)}})}scanTag(){this.scanTagStart();const t=this.scanTagName();return this.scanAttrs(),this.scanTagEnd(),t}scanTagStart(){const t="tag-start",{html:e,position:n}=this,r=e.charAt(n.index+1)==="/",o=_t(n);oe(n,e,r?2:1),this.tokens.push({type:t,close:r,position:{start:o}})}scanTagEnd(){const t="tag-end",{html:e,position:n}=this,r=e.charAt(n.index)==="/";oe(n,e,r?2:1);const o=_t(n);this.tokens.push({type:t,close:r,position:{end:o}})}scanTagName(){const t="tag",{html:e,position:n}=this,i=e.length;let r=n.index;for(;r<i;){const l=e.charAt(r);if(!(Gt(l)||l==="/"||l===">"))break;r++}let o=r+1;for(;o<i;){const l=e.charAt(o);if(!!(Gt(l)||l==="/"||l===">"))break;o++}Rt(n,e,o);const a=e.slice(r,o);return this.tokens.push({type:t,content:a}),a}scanAttrs(){const{html:t,position:e,tokens:n}=this;let i=e.index,r=null,o=i;const a=[],l=t.length;for(;i<l;){const p=t.charAt(i);if(r){p===r&&(r=null),i++;continue}if(p==="/"||p===">"){i!==o&&a.push(t.slice(o,i));break}if(Zi(i,o,t)){i!==o&&a.push(t.slice(o,i)),o=i+1,i++;continue}if(p==="'"||p==='"'){r=p,i++;continue}i++}Rt(e,t,i);const u=a.length,d="attribute";for(let p=0;p<u;p++){const m=a[p];if(m.includes("=")){const b=a[p+1];if(b&&b.startsWith("=")){if(b.length>1){const C=m+b;n.push({type:d,content:C}),p+=1;continue}const k=a[p+2];if(p+=1,k){const C=m+"="+k;n.push({type:d,content:C}),p+=1;continue}}}if(m.endsWith("=")){const b=a[p+1];if(b&&!b.includes("=")){const C=m+b;n.push({type:d,content:C}),p+=1;continue}const k=m.slice(0,-1);n.push({type:d,content:k});continue}n.push({type:d,content:m})}}scanSkipTag(t){const{html:e,position:n}=this,i=t.toLowerCase(),r=e.length;for(;n.index<r;){const o=e.indexOf("</",n.index);if(o===-1){this.scanText();break}Rt(n,e,o);const a=this.scanTag();if(i===a.toLowerCase())break}}}function Be(s){const t=s.charAt(0),e=s.length-1;return(t==='"'||t==="'")&&t===s.charAt(e)?s.slice(1,e):s}const vn="{",tr="}",er=".",nr="#",sr=">",ir="~",rr="+";class or{constructor(){this.styles=[]}extractStyle(t){const e=/<style\s?[^>]*>((.|\n|\s)+?)<\/style>/g;let n=t;return n=n.replace(e,(i,r)=>{const o=r.trim();return this.stringToSelector(o),""}),n.trim()}stringToSelector(t){let e=t.indexOf(vn);for(;e>-1;){const n=t.indexOf(tr),i=t.slice(0,e).trim();let r=t.slice(e+1,n);r=r.replace(/:(.*);/g,function(o,a){return`:${a.trim().replace(/ +/g,"+++")};`}),r=r.replace(/ /g,""),r=r.replace(/\+\+\+/g," "),/;$/.test(r)||(r+=";"),i.split(",").forEach(o=>{const a=this.parseSelector(o);this.styles.push({content:r,selectorList:a})}),t=t.slice(n+1),e=t.indexOf(vn)}}parseSelector(t){return t.trim().replace(/ *([>~+]) */g," $1").replace(/ +/g," ").replace(/\[\s*([^[\]=\s]+)\s*=\s*([^[\]=\s]+)\s*\]/g,"[$1=$2]").split(" ").map(i=>{const r=i.charAt(0),o={isChild:r===sr,isGeneralSibling:r===ir,isAdjacentSibling:r===rr,tag:null,id:null,class:[],attrs:[]};return i=i.replace(/^[>~+]/,""),i=i.replace(/\[(.+?)\]/g,function(a,l){const[u,d]=l.split("="),p=l.indexOf("=")===-1,m={all:p,key:u,value:p?null:d};return o.attrs.push(m),""}),i=i.replace(/([.#][A-Za-z0-9-_]+)/g,function(a,l){return l[0]===nr?o.id=l.substr(1):l[0]===er&&o.class.push(l.substr(1)),""}),i!==""&&(o.tag=i),o})}matchStyle(t,e,n){return ar(this.styles).reduce((r,{content:o,selectorList:a},l)=>{let u=n[l],d=a[u];const p=a[u+1];(p!=null&&p.isGeneralSibling||p!=null&&p.isAdjacentSibling)&&(d=p,u+=1,n[l]+=1);let m=this.matchCurrent(t,e,d);if(m&&d.isGeneralSibling){let w=ae(e);for(;w;){if(w.h5tagName&&this.matchCurrent(w.h5tagName,w,a[u-1])){m=!0;break}w=ae(w),m=!1}}if(m&&d.isAdjacentSibling){const w=ae(e);!w||!w.h5tagName?m=!1:this.matchCurrent(w.h5tagName,w,a[u-1])||(m=!1)}if(m){if(u===a.length-1)return r+o;u<a.length-1&&(n[l]+=1)}else d.isChild&&u>0&&(n[l]-=1,this.matchCurrent(t,e,a[n[l]])&&(n[l]+=1));return r},"")}matchCurrent(t,e,n){if(n.tag&&n.tag!==t||n.id&&n.id!==e.id)return!1;if(n.class.length){const i=e.className.split(" ");for(let r=0;r<n.class.length;r++){const o=n.class[r];if(i.indexOf(o)===-1)return!1}}if(n.attrs.length)for(let i=0;i<n.attrs.length;i++){const{all:r,key:o,value:a}=n.attrs[i];if(r&&!e.hasAttribute(o))return!1;if(e.getAttribute(o)!==Be(a||""))return!1}return!0}}function ae(s){if(!s.parentElement)return null;const e=s.previousSibling;return e?e.nodeType===1?e:ae(e):null}function ar(s){return s.sort((t,e)=>{const n=_n(t.selectorList),i=_n(e.selectorList);if(n!==i)return n-i;const r=yn(t.selectorList),o=yn(e.selectorList);if(r!==o)return r-o;const a=Tn(t.selectorList),l=Tn(e.selectorList);return a-l})}function _n(s){return s.reduce((t,e)=>t+(e.id?1:0),0)}function yn(s){return s.reduce((t,e)=>t+e.class.length+e.attrs.length,0)}function Tn(s){return s.reduce((t,e)=>t+(e.tag?1:0),0)}function cn(s,t){const e=Object.create(null),n=s.split(",");for(let i=0;i<n.length;i++)e[n[i]]=!0;return t?i=>!!e[i.toLowerCase()]:i=>!!e[i]}const wn={img:"image",iframe:"web-view"},cr=Object.keys(Ye).map(s=>s.toLowerCase()).join(","),lr=cn(cr,!0),hr=cn("a,i,abbr,iframe,select,acronym,slot,small,span,bdi,kbd,strong,big,map,sub,sup,br,mark,mark,meter,template,canvas,textarea,cite,object,time,code,output,u,data,picture,tt,datalist,var,dfn,del,q,em,s,embed,samp,b",!0),ur=cn("address,fieldset,li,article,figcaption,main,aside,figure,nav,blockquote,footer,ol,details,form,p,dialog,h1,h2,h3,h4,h5,h6,pre,dd,header,section,div,hgroup,table,dl,hr,ul,dt",!0),dr={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]};function fr(s,t){const e=dr[s];if(e){let n=t.length-1;for(;n>=0;){const i=t[n].tagName;if(i===s)break;if(e&&e.includes(i))return!0;n--}}return!1}function pr(s){return L.html.renderHTMLTag?s:wn[s]?wn[s]:lr(s)?s:ur(s)?"view":hr(s)?"text":"view"}function mr(s){const t="=",e=s.indexOf(t);if(e===-1)return[s];const n=s.slice(0,e).trim(),i=s.slice(e+t.length).trim();return[n,i]}function fs(s,t,e,n){return s.filter(i=>i.type==="comment"?!1:i.type==="text"?i.content!=="":!0).map(i=>{if(i.type==="text"){let d=t.createTextNode(i.content);return z(L.html.transformText)&&(d=L.html.transformText(d,i)),n==null||n.appendChild(d),d}const r=t.createElement(pr(i.tagName));r.h5tagName=i.tagName,n==null||n.appendChild(r),L.html.renderHTMLTag||(r.className=`h5-${i.tagName}`);for(let d=0;d<i.attributes.length;d++){const p=i.attributes[d],[m,w]=mr(p);if(m==="class")r.className+=" "+Be(w);else{if(m[0]==="o"&&m[1]==="n")continue;r.setAttribute(m,w==null?!0:Be(w))}}const{styleTagParser:o,descendantList:a}=e,l=a.slice(),u=o.matchStyle(i.tagName,r,l);return r.setAttribute("style",u+r.style.cssText),fs(i.children,t,{styleTagParser:o,descendantList:l},r),z(L.html.transformElement)?L.html.transformElement(r,i):r})}function ps(s,t){const e=new or;s=e.extractStyle(s);const n=new Xi(s).scan(),i={tagName:"",children:[],type:"element",attributes:[]};return ms({tokens:n,options:L,cursor:0,stack:[i]}),fs(i.children,t,{styleTagParser:e,descendantList:Array(e.styles.length).fill(0)})}function ms(s){const{tokens:t,stack:e}=s;let{cursor:n}=s;const i=t.length;let r=e[e.length-1].children;for(;n<i;){const o=t[n];if(o.type!=="tag-start"){r.push(o),n++;continue}const a=t[++n];n++;const l=a.content.toLowerCase();if(o.close){let C=e.length,j=!1;for(;--C>-1;)if(e[C].tagName===l){j=!0;break}for(;n<i&&t[n].type==="tag-end";)n++;if(j){e.splice(C);break}else continue}let d=L.html.closingElements.has(l);if(d&&(d=!fr(l,e)),d){let C=e.length-1;for(;C>0;){if(l===e[C].tagName){e.splice(C);const j=C-1;r=e[j].children;break}C=C-1}}const p=[];let m;for(;n<i&&(m=t[n],m.type!=="tag-end");)p.push(m.content),n++;n++;const w=[],b={type:"element",tagName:a.content,attributes:p,children:w};if(r.push(b),!(m.close||L.html.voidElements.has(l))){e.push({tagName:l,children:w});const C={tokens:t,cursor:n,stack:e};ms(C),n=C.cursor}}s.cursor=n}L.html={skipElements:new Set(["style","script"]),voidElements:new Set(["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),closingElements:new Set(["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"]),renderHTMLTag:!1};function gr(s,t){for(;s.firstChild;)s.removeChild(s.firstChild);const e=ps(t,s.ownerDocument);for(let n=0;n<e.length;n++)s.appendChild(e[n])}function br(){return L.miniGlobal?new Promise(s=>{L.miniGlobal.createSelectorQuery().select(`#${this.uid}`).boundingClientRect(e=>{s(e)}).exec()}):Promise.resolve(null)}function Er(s){if(s.nodeName==="template"){const e=s.ownerDocument.createElement(Je);return e.childNodes=s.childNodes,s.childNodes=[e],e.parentNode=s,e.childNodes.forEach(n=>{n.parentNode=e}),e}}function vr(s,t){var e,n;const i=ps(t,this.ownerDocument);for(let r=0;r<i.length;r++){const o=i[r];switch(s){case"beforebegin":(e=this.parentNode)===null||e===void 0||e.insertBefore(o,this);break;case"afterbegin":this.hasChildNodes()?this.insertBefore(o,this.childNodes[0]):this.appendChild(o);break;case"beforeend":this.appendChild(o);break;case"afterend":(n=this.parentNode)===null||n===void 0||n.appendChild(o);break}}}function _r(s=!1){const t=this.ownerDocument;let e;this.nodeType===1?e=t.createElement(this.nodeName):this.nodeType===3&&(e=t.createTextNode(""));for(const n in this){const i=this[n];[Gn,zn].includes(n)&&typeof i===Yn?e[n]=Object.assign({},i):n==="_value"?e[n]=i:n===K&&(e.style._value=Object.assign({},i._value),e.style._usedStyleProp=new Set(Array.from(i._usedStyleProp)))}return s&&(e.childNodes=this.childNodes.map(n=>n.cloneNode(!0))),e}function yr(s){let t=!1;return this.childNodes.some(e=>{const{uid:n}=e;if(n===s.uid||n===s.id||e.contains(s))return t=!0,!0}),t}ft()||(ENABLE_INNER_HTML&&(nt.extend("innerHTML",{set(s){gr.call(this,this,s)},get(){return""}}),ENABLE_ADJACENT_HTML&&nt.extend("insertAdjacentHTML",vr)),ENABLE_CLONE_NODE&&nt.extend("cloneNode",_r),ENABLE_CONTAINS&&nt.extend("contains",yr),ENABLE_SIZE_APIS&&V.extend("getBoundingClientRect",br),ENABLE_TEMPLATE_CONTENT&&V.extend("content",{get(){return Er(this)}}));class Me{constructor(t,e,n){this._stop=!1,this._end=!1,this.defaultPrevented=!1,this.button=0,this.timeStamp=Date.now(),this.type=t.toLowerCase(),this.mpEvent=n,this.bubbles=!!(e&&e.bubbles),this.cancelable=!!(e&&e.cancelable)}stopPropagation(){this._stop=!0}stopImmediatePropagation(){this._end=this._stop=!0}preventDefault(){this.defaultPrevented=!0}get target(){var t,e,n,i;const r=this.cacheTarget;if(r)return r;{const o=Object.create(((t=this.mpEvent)===null||t===void 0?void 0:t.target)||null),a=I.document.getElementById(((e=o.targetDataset)===null||e===void 0?void 0:e.sid)||((n=o.dataset)===null||n===void 0?void 0:n.sid)||o.id||null);o.dataset=a!==null?a.dataset:Et;for(const l in(i=this.mpEvent)===null||i===void 0?void 0:i.detail)o[l]=this.mpEvent.detail[l];return this.cacheTarget=o,o}}get currentTarget(){var t,e,n,i,r,o,a,l;const u=this.cacheCurrentTarget;if(u)return u;{const d=I.document,p=Object.create(((t=this.mpEvent)===null||t===void 0?void 0:t.currentTarget)||null),m=d.getElementById(((e=p.dataset)===null||e===void 0?void 0:e.sid)||p.id||null),w=d.getElementById(((r=(i=(n=this.mpEvent)===null||n===void 0?void 0:n.target)===null||i===void 0?void 0:i.dataset)===null||r===void 0?void 0:r.sid)||((a=(o=this.mpEvent)===null||o===void 0?void 0:o.target)===null||a===void 0?void 0:a.id)||null);if(m===null||m&&m===w)return this.cacheCurrentTarget=this.target,this.target;p.dataset=m.dataset;for(const b in(l=this.mpEvent)===null||l===void 0?void 0:l.detail)p[b]=this.mpEvent.detail[b];return this.cacheCurrentTarget=p,p}}}function ln(s,t){if(typeof s=="string")return new Me(s,{bubbles:!0,cancelable:!0});const e=new Me(s.type,{bubbles:!0,cancelable:!0},s);for(const n in s)n===Jn||n===Qn||n===he||n===Zn||(e[n]=s[n]);return e.type===Kn&&(t==null?void 0:t.nodeName)===Ze&&(e[Xn]=13),e}const Bt={};function Sn(s){const t=s[ue];return M(t)||delete s[ue],t}function ye(s){var t,e;s.type===void 0&&Object.defineProperty(s,"type",{value:s._type}),s.detail===void 0&&Object.defineProperty(s,"detail",{value:s._detail||Object.assign({},s)}),s.currentTarget=s.currentTarget||s.target||Object.assign({},s),T.call("modifyMpEventImpl",s);const n=s.currentTarget,i=((t=n.dataset)===null||t===void 0?void 0:t.sid)||n.id||((e=s.detail)===null||e===void 0?void 0:e.id)||"",r=I.document.getElementById(i);if(r){const o=()=>{const a=ln(s,r);T.call("modifyTaroEvent",a,r),T.call("dispatchTaroEvent",a,r),T.call("dispatchTaroEventFinish",a,r)};if(T.isExist("batchedEventUpdates")){const a=s.type;if(!T.call("isBubbleEvents",a)||!Ui(r,a)||a===ts&&r.props.catchMove)return T.call("batchedEventUpdates",()=>{Bt[a]&&(Bt[a].forEach(l=>l()),delete Bt[a]),o()}),Sn(s);(Bt[a]||(Bt[a]=[])).push(o)}else return o(),Sn(s)}}class gs extends V{get type(){var t;return(t=this.props[he])!==null&&t!==void 0?t:""}set type(t){this.setAttribute(he,t)}get value(){const t=this.props[Ie];return t??""}set value(t){this.setAttribute(Ie,t)}dispatchEvent(t){if(t.mpEvent){const e=t.mpEvent.detail.value;t.type===qn?this.props.value=e:t.type===Ze&&(this.value=e)}return super.dispatchEvent(t)}}class Tr{constructor(){this.recorder=new Map}start(t){L.debug&&this.recorder.set(t,Date.now())}stop(t){if(!L.debug)return;const e=Date.now(),n=this.recorder.get(t);this.recorder.delete(t);const i=e-n;console.log(`${t} 时长: ${i}ms`)}}const zt=new Tr;function wr(s,t){const e=t.slice(1);let n=s,i,r="";if(e.some((o,a)=>{const l=o.replace(/^\[(.+)\]$/,"$1").replace(/\bcn\b/g,"childNodes");if(n=n[l],it(n)&&(n=n.filter(u=>!Ht(u))),M(n))return!0;if(n.nodeName===Xe){const u=ke.get(n.sid);u&&(i=u,r=t.slice(a+2).join("."))}}),i)return{customWrapper:i,splitedPath:r}}class bs extends V{constructor(){super(),this.updatePayloads=[],this.updateCallbacks=[],this.pendingUpdate=!1,this.ctx=null,this.nodeName=Ot,this.tagName=Ot.toUpperCase()}get _path(){return Ot}get _root(){return this}enqueueUpdate(t){this.updatePayloads.push(t),!this.pendingUpdate&&this.ctx&&this.performUpdate()}performUpdate(t=!1,e){this.pendingUpdate=!0;const n=T.call("proxyToRaw",this.ctx);setTimeout(()=>{const i=`${Un} 开始时间戳 ${Date.now()}`;zt.start(i);const r=Object.create(null),o=new Set(t?["root.cn.[0]","root.cn[0]"]:[]);for(;this.updatePayloads.length>0;){const{path:b,value:k}=this.updatePayloads.shift();b.endsWith("cn")&&o.add(b),r[b]=k}for(const b in r){o.forEach(C=>{b.includes(C)&&b!==C&&delete r[b]});const k=r[b];z(k)&&(r[b]=k())}if(z(e))return e(r);this.pendingUpdate=!1;let a={};const l=new Map;if(t)a=r;else for(const b in r){const k=b.split("."),C=wr(this,k);if(C){const{customWrapper:j,splitedPath:Y}=C;l.set(j,Object.assign(Object.assign({},l.get(j)||{}),{[`i.${Y}`]:r[b]}))}else a[b]=r[b]}const u=l.size,d=Object.keys(a).length>0,p=u+(d?1:0);let m=0;const w=()=>{++m===p&&(zt.stop(i),this.flushUpdateCallback(),t&&zt.stop(me))};u&&l.forEach((b,k)=>{process.env.NODE_ENV!=="production"&&L.debug&&console.log("custom wrapper setData: ",b),k.setData(b,w)}),d&&(process.env.NODE_ENV!=="production"&&L.debug&&console.log("page setData:",a),n.setData(a,w))},0)}enqueueUpdateCallback(t,e){this.updateCallbacks.push(()=>{e?t.call(e):t()})}flushUpdateCallback(){const t=this.updateCallbacks;if(!t.length)return;const e=t.slice(0);this.updateCallbacks.length=0;for(let n=0;n<e.length;n++)e[n]()}}class De extends nt{constructor(t){super(),this.nodeType=3,this.nodeName="#text",this._value=t}set textContent(t){ht.record({target:this,type:"characterData",oldValue:this._value}),this._value=t,this.enqueueUpdate({path:`${this._path}.v`,value:t})}get textContent(){return this._value}set nodeValue(t){this.textContent=t}get nodeValue(){return this._value}set data(t){this.textContent=t}get data(){return this._value}}function h(s,t,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?s!==t||!n:!t.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(s):n?n.value:t.get(s)}function y(s,t,e,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?s!==t||!i:!t.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(s,e):i?i.value=e:t.set(s,e),e}var $;const Sr=/[!'()~]|%20|%00/g,Nr=/\+/g,Cr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};function Or(s){return Cr[s]}function Tt(s,t,e){const n=it(e)?e.join(","):e;t in s?s[t].push(n):s[t]=[n]}function Ar(s,t){Tt(this,t,s)}function Oe(s){return decodeURIComponent(s.replace(Nr," "))}function Nn(s){return encodeURIComponent(s).replace(Sr,Or)}class Ue{constructor(t){$.set(this,Object.create(null)),t??(t="");const e=h(this,$,"f");if(typeof t=="string"){t.charAt(0)==="?"&&(t=t.slice(1));for(let n=t.split("&"),i=0,r=n.length;i<r;i++){const o=n[i],a=o.indexOf("=");a>-1?Tt(e,Oe(o.slice(0,a)),Oe(o.slice(a+1))):o.length&&Tt(e,Oe(o),"")}}else if(it(t))for(let n=0,i=t.length;n<i;n++){const r=t[n];Tt(e,r[0],r[1])}else if(t.forEach)t.forEach(Ar,e);else for(const n in t)Tt(e,n,t[n])}append(t,e){Tt(h(this,$,"f"),t,e)}delete(t){delete h(this,$,"f")[t]}get(t){const e=h(this,$,"f");return t in e?e[t][0]:null}getAll(t){const e=h(this,$,"f");return t in e?e[t].slice(0):[]}has(t){return t in h(this,$,"f")}keys(){r