@zyzgroup/core-vue 0.0.53 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- var ZYZGroupCoreVue=function(M,a,re,w,ie,te){"use strict";function Bo(){return a.getCurrentInstance()}function Dt(e,t){return a.createVNode(e,t)}function Po(e){const t=Dt(e.component,e.props);e.appContext&&(t.appContext=e.appContext),a.render(t,e.selfContainer),e.parentContainer?.appendChild(e.selfContainer)}function Oo(e){let t;a.onMounted(()=>{t=e()}),a.onUnmounted(()=>{t?.()})}const $o={class:"page"},Ao={class:"page-header"},Vo={class:"page-main"},Lo={class:"page-main-scroll"},No={class:"page-footer"},Mo={class:"page-global"},Do=a.defineComponent({customOptions:{},inheritAttrs:!0,__name:"LayoutPage",setup(e,{expose:t}){return t({}),(n,o)=>(a.openBlock(),a.createElementBlock("div",$o,[a.createElementVNode("div",Ao,[a.renderSlot(n.$slots,"header",{},void 0,!0)]),a.createElementVNode("div",Vo,[a.createElementVNode("div",Lo,[a.renderSlot(n.$slots,"default",{},void 0,!0)])]),a.createElementVNode("div",No,[a.renderSlot(n.$slots,"footer",{},void 0,!0)]),a.createElementVNode("div",Mo,[a.renderSlot(n.$slots,"global",{},void 0,!0)])]))}}),as="",j=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},be=j(Do,[["__scopeId","data-v-3c77fd20"]]),zo={class:"view-document"},jo=["src"],Uo=a.defineComponent({inheritAttrs:!0,customOptions:{LayoutPage:be},__name:"ViewDocument",props:{src:{default:""},title:{default:""}},setup(e){const t=e,n=re.useRoute();w.setWindowTitle(typeof n.params.title=="string"?n.params.title:t.title);const o=decodeURIComponent(typeof n.params.src=="string"?n.params.src:t.src);return(r,i)=>(a.openBlock(),a.createBlock(be,null,{default:a.withCtx(()=>[a.createElementVNode("div",zo,[a.createElementVNode("img",{class:"img",src:a.unref(o)},null,8,jo)])]),_:1}))}}),ls="",zt=j(Uo,[["__scopeId","data-v-786ac2a3"]]),jt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ae=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),s=r.pop(),u={provider:r.length>0?r[0]:o,prefix:s,name:c};return t&&!Ve(u)?null:u}const i=r[0],l=i.split("-");if(l.length>1){const c={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!Ve(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:i};return t&&!Ve(c,n)?null:c}return null},Ve=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Ut=Object.freeze({left:0,top:0,width:16,height:16}),Le=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ne=Object.freeze({...Ut,...Le}),it=Object.freeze({...Ne,body:"",hidden:!1});function Ho(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Ht(e,t){const n=Ho(e,t);for(const o in it)o in Le?o in e&&!(o in n)&&(n[o]=Le[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Go(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function i(l){if(n[l])return r[l]=[];if(!(l in r)){r[l]=null;const c=o[l]&&o[l].parent,s=c&&i(c);s&&(r[l]=[c].concat(s))}return r[l]}return Object.keys(n).concat(Object.keys(o)).forEach(i),r}function qo(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function l(c){i=Ht(o[c]||r[c],i)}return l(t),n.forEach(l),Ht(e,i)}function Gt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=Go(e);for(const r in o){const i=o[r];i&&(t(r,qo(e,r,i)),n.push(r))}return n}const Yo={provider:"",aliases:{},not_found:{},...Ut};function at(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function qt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!at(e,Yo))return null;const n=t.icons;for(const r in n){const i=n[r];if(!r||typeof i.body!="string"||!at(i,it))return null}const o=t.aliases||Object.create(null);for(const r in o){const i=o[r],l=i.parent;if(!r||typeof l!="string"||!n[l]&&!o[l]||!at(i,it))return null}return t}const Yt=Object.create(null);function Xo(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function we(e,t){const n=Yt[e]||(Yt[e]=Object.create(null));return n[t]||(n[t]=Xo(e,t))}function Xt(e,t){return qt(t)?Gt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function Qo(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Fe=!1;function Qt(e){return typeof e=="boolean"&&(Fe=e),Fe}function Ko(e){const t=typeof e=="string"?Ae(e,!0,Fe):e;if(t){const n=we(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function Zo(e,t){const n=Ae(e,!0,Fe);if(!n)return!1;const o=we(n.provider,n.prefix);return t?Qo(o,n.name,t):(o.missing.add(n.name),!0)}function Jo(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Fe&&!t&&!e.prefix){let r=!1;return qt(e)&&(e.prefix="",Gt(e,(i,l)=>{Zo(i,l)&&(r=!0)})),r}const n=e.prefix;if(!Ve({provider:t,prefix:n,name:"a"}))return!1;const o=we(t,n);return!!Xt(o,e)}const Kt=Object.freeze({width:null,height:null}),Zt=Object.freeze({...Kt,...Le}),Wo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,er=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Jt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(Wo);if(o===null||!o.length)return e;const r=[];let i=o.shift(),l=er.test(i);for(;;){if(l){const c=parseFloat(i);isNaN(c)?r.push(i):r.push(Math.ceil(c*t*n)/n)}else r.push(i);if(i=o.shift(),i===void 0)return r.join("");l=!l}}function tr(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),i=e.indexOf("</"+t);if(r===-1||i===-1)break;const l=e.indexOf(">",i);if(l===-1)break;n+=e.slice(r+1,i).trim(),e=e.slice(0,o).trim()+e.slice(l+1)}return{defs:n,content:e}}function nr(e,t){return e?"<defs>"+e+"</defs>"+t:t}function or(e,t,n){const o=tr(e);return nr(o.defs,t+o.content+n)}const rr=e=>e==="unset"||e==="undefined"||e==="none";function ir(e,t){const n={...Ne,...e},o={...Zt,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach(y=>{const h=[],b=y.hFlip,S=y.vFlip;let C=y.rotate;b?S?C+=2:(h.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),h.push("scale(-1 1)"),r.top=r.left=0):S&&(h.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),h.push("scale(1 -1)"),r.top=r.left=0);let x;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:x=r.height/2+r.top,h.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:h.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:x=r.width/2+r.left,h.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}C%2===1&&(r.left!==r.top&&(x=r.left,r.left=r.top,r.top=x),r.width!==r.height&&(x=r.width,r.width=r.height,r.height=x)),h.length&&(i=or(i,'<g transform="'+h.join(" ")+'">',"</g>"))});const l=o.width,c=o.height,s=r.width,u=r.height;let f,d;l===null?(d=c===null?"1em":c==="auto"?u:c,f=Jt(d,s/u)):(f=l==="auto"?s:l,d=c===null?Jt(f,u/s):c==="auto"?u:c);const m={},g=(y,h)=>{rr(h)||(m[y]=h.toString())};g("width",f),g("height",d);const p=[r.left,r.top,s,u];return m.viewBox=p.join(" "),{attributes:m,viewBox:p,body:i}}const ar=/\sid="(\S+)"/g,lr="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let sr=0;function cr(e,t=lr){const n=[];let o;for(;o=ar.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const l=typeof t=="function"?t(i):t+(sr++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+l+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const lt=Object.create(null);function ur(e,t){lt[e]=t}function st(e){return lt[e]||lt[""]}function ct(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ut=Object.create(null),Ie=["https://api.simplesvg.com","https://api.unisvg.com"],Me=[];for(;Ie.length>0;)Ie.length===1||Math.random()>.5?Me.push(Ie.shift()):Me.push(Ie.pop());ut[""]=ct({resources:["https://api.iconify.design"].concat(Me)});function fr(e,t){const n=ct(t);return n===null?!1:(ut[e]=n,!0)}function ft(e){return ut[e]}let Wt=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function dr(e,t){const n=ft(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(l=>{r=Math.max(r,l.length)});const i=t+".json?icons=";o=n.maxURL-r-n.path.length-i.length}return o}function pr(e){return e===404}const mr=(e,t,n)=>{const o=[],r=dr(e,t),i="icons";let l={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach((s,u)=>{c+=s.length+1,c>=r&&u>0&&(o.push(l),l={type:i,provider:e,prefix:t,icons:[]},c=s.length),l.icons.push(s)}),o.push(l),o};function hr(e){if(typeof e=="string"){const t=ft(e);if(t)return t.path}return"/"}const gr={prepare:mr,send:(e,t,n)=>{if(!Wt){n("abort",424);return}let o=hr(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),s=new URLSearchParams({icons:c});o+=i+".json?"+s.toString();break}case"custom":{const i=t.uri;o+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let r=503;Wt(e+o).then(i=>{const l=i.status;if(l!==200){setTimeout(()=>{n(pr(l)?"abort":"next",l)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",r)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",r)})}};function yr(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const i=r.provider,l=r.prefix,c=r.name,s=n[i]||(n[i]=Object.create(null)),u=s[l]||(s[l]=we(i,l));let f;c in u.icons?f=t.loaded:l===""||u.missing.has(c)?f=t.missing:f=t.pending;const d={provider:i,prefix:l,name:c};f.push(d)}),t}function en(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function vr(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(i=>{const l=i.icons,c=l.pending.length;l.pending=l.pending.filter(s=>{if(s.prefix!==r)return!0;const u=s.name;if(e.icons[u])l.loaded.push({provider:o,prefix:r,name:u});else if(e.missing.has(u))l.missing.push({provider:o,prefix:r,name:u});else return n=!0,!0;return!1}),l.pending.length!==c&&(n||en([e],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}let br=0;function wr(e,t,n){const o=br++,r=en.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),r}function Sr(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const i=typeof r=="string"?Ae(r,t,n):r;i&&o.push(i)}),o}var _r={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Cr(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let _=e.resources.slice(0);for(l=[];_.length>1;){const I=Math.floor(Math.random()*_.length);l.push(_[I]),_=_.slice(0,I).concat(_.slice(I+1))}l=l.concat(_)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let s="pending",u=0,f,d=null,m=[],g=[];typeof o=="function"&&g.push(o);function p(){d&&(clearTimeout(d),d=null)}function y(){s==="pending"&&(s="aborted"),p(),m.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),m=[]}function h(_,I){I&&(g=[]),typeof _=="function"&&g.push(_)}function b(){return{startTime:c,payload:t,status:s,queriesSent:u,queriesPending:m.length,subscribe:h,abort:y}}function S(){s="failed",g.forEach(_=>{_(void 0,f)})}function C(){m.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),m=[]}function x(_,I,B){const $=I!=="success";switch(m=m.filter(P=>P!==_),s){case"pending":break;case"failed":if($||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=B,S();return}if($){f=B,m.length||(l.length?F():S());return}if(p(),C(),!e.random){const P=e.resources.indexOf(_.resource);P!==-1&&P!==e.index&&(e.index=P)}s="completed",g.forEach(P=>{P(B)})}function F(){if(s!=="pending")return;p();const _=l.shift();if(_===void 0){if(m.length){d=setTimeout(()=>{p(),s==="pending"&&(C(),S())},e.timeout);return}S();return}const I={status:"pending",resource:_,callback:(B,$)=>{x(I,B,$)}};m.push(I),u++,d=setTimeout(F,e.rotate),n(_,t,I.callback)}return setTimeout(F),b}function tn(e){const t={..._r,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,s,u){const f=Cr(t,c,s,(d,m)=>{o(),u&&u(d,m)});return n.push(f),f}function i(c){return n.find(s=>c(s))||null}return{query:r,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function nn(){}const dt=Object.create(null);function kr(e){if(!dt[e]){const t=ft(e);if(!t)return;const n=tn(t),o={config:t,redundancy:n};dt[e]=o}return dt[e]}function Tr(e,t,n){let o,r;if(typeof e=="string"){const i=st(e);if(!i)return n(void 0,424),nn;r=i.send;const l=kr(e);l&&(o=l.redundancy)}else{const i=ct(e);if(i){o=tn(i);const l=e.resources?e.resources[0]:"",c=st(l);c&&(r=c.send)}}return!o||!r?(n(void 0,424),nn):o.query(t,r,n)().abort}function on(){}function xr(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,vr(e)}))}function Er(e){const t=[],n=[];return e.forEach(o=>{(o.match(jt)?t:n).push(o)}),{valid:t,invalid:n}}function Re(e,t,n){function o(){const r=e.pendingIcons;t.forEach(i=>{r&&r.delete(i),e.icons[i]||e.missing.add(i)})}if(n&&typeof n=="object")try{if(!Xt(e,n).length){o();return}}catch(r){console.error(r)}o(),xr(e)}function rn(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Fr(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;const i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){rn(e.loadIcons(r,o,n),f=>{Re(e,r,f)});return}if(i){r.forEach(f=>{const d=i(f,o,n);rn(d,m=>{const g=m?{prefix:o,icons:{[f]:m}}:null;Re(e,[f],g)})});return}const{valid:l,invalid:c}=Er(r);if(c.length&&Re(e,c,null),!l.length)return;const s=o.match(jt)?st(n):null;if(!s){Re(e,l,null);return}s.prepare(n,o,l).forEach(f=>{Tr(n,f,d=>{Re(e,f.icons,d)})})}))}const Ir=(e,t)=>{const n=Sr(e,!0,Qt()),o=yr(n);if(!o.pending.length){let s=!0;return t&&setTimeout(()=>{s&&t(o.loaded,o.missing,o.pending,on)}),()=>{s=!1}}const r=Object.create(null),i=[];let l,c;return o.pending.forEach(s=>{const{provider:u,prefix:f}=s;if(f===c&&u===l)return;l=u,c=f,i.push(we(u,f));const d=r[u]||(r[u]=Object.create(null));d[f]||(d[f]=[])}),o.pending.forEach(s=>{const{provider:u,prefix:f,name:d}=s,m=we(u,f),g=m.pendingIcons||(m.pendingIcons=new Set);g.has(d)||(g.add(d),r[u][f].push(d))}),i.forEach(s=>{const u=r[s.provider][s.prefix];u.length&&Fr(s,u)}),t?wr(t,o,i):on};function Rr(e,t){const n={...e};for(const o in t){const r=t[o],i=typeof r;o in Kt?(r===null||r&&(i==="string"||i==="number"))&&(n[o]=r):i===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const Br=/[\s,]+/;function Pr(e,t){t.split(Br).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Or(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/r,i%1===0?o(i):0)}}return t}function $r(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Ar(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Vr(e){return"data:image/svg+xml,"+Ar(e)}function Lr(e){return'url("'+Vr(e)+'")'}const an={...Zt,inline:!1},Nr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Mr={display:"inline-block"},pt={backgroundColor:"currentColor"},ln={backgroundColor:"transparent"},sn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},cn={webkitMask:pt,mask:pt,background:ln};for(const e in cn){const t=cn[e];for(const n in sn)t[e+n]=sn[n]}const De={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";De[e+"-flip"]=t,De[e.slice(0,1)+"-flip"]=t,De[e+"Flip"]=t});function un(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const fn=(e,t)=>{const n=Rr(an,t),o={...Nr},r=t.mode||"svg",i={},l=t.style,c=typeof l=="object"&&!(l instanceof Array)?l:{};for(let y in t){const h=t[y];if(h!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[y]=h===!0||h==="true"||h===1;break;case"flip":typeof h=="string"&&Pr(n,h);break;case"color":i.color=h;break;case"rotate":typeof h=="string"?n[y]=Or(h):typeof h=="number"&&(n[y]=h);break;case"ariaHidden":case"aria-hidden":h!==!0&&h!=="true"&&delete o["aria-hidden"];break;default:{const b=De[y];b?(h===!0||h==="true"||h===1)&&(n[b]=!0):an[y]===void 0&&(o[y]=h)}}}const s=ir(e,n),u=s.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),r==="svg"){o.style={...i,...c},Object.assign(o,u);let y=0,h=t.id;return typeof h=="string"&&(h=h.replace(/-/g,"_")),o.innerHTML=cr(s.body,h?()=>h+"ID"+y++:"iconifyVue"),a.h("svg",o)}const{body:f,width:d,height:m}=e,g=r==="mask"||(r==="bg"?!1:f.indexOf("currentColor")!==-1),p=$r(f,{...u,width:d+"",height:m+""});return o.style={...i,"--svg":Lr(p),width:un(u.width),height:un(u.height),...Mr,...g?pt:ln,...c},a.h("span",o)};if(Qt(!0),ur("",gr),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Jo(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;fr(n,r)||console.error(o)}catch{console.error(o)}}}}const Dr={...Ne,body:""},zr=a.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let o;if(typeof e!="string"||(o=Ae(e,!1,!0))===null)return this.abortLoading(),null;let r=Ko(o);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:Ir([o],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),n){r=Object.assign({},r);const l=n(r.body,o.name,o.prefix,o.provider);typeof l=="string"&&(r.body=l)}const i=["iconify"];return o.prefix!==""&&i.push("iconify--"+o.prefix),o.provider!==""&&i.push("iconify--"+o.provider),{data:r,classes:i}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return fn(Dr,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),fn({...Ne,...t.data},n)}}),dn=a.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:w.getCSSVar("--xg-blue")}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("span",{class:"icon",style:a.normalizeStyle(["color: "+n.color,"display: inline-flex","justify-content: center","align-items: center","cursor: pointer","font-size: 1em"])},[a.createVNode(a.unref(zr),{icon:t.icon,color:n.color},null,8,["icon","color"])],4))}}),jr={class:"loading-11",ref:"loading11"},Ur={class:"container container-1"},Hr={class:"container container-2"},Gr={class:"container container-3"},qr=a.defineComponent({__name:"Loading11",props:{color:{default:w.getCSSVar("--xg-blue")},width:{default:"0.8em"}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",jr,[a.createElementVNode("div",{class:"loading-11-inner",style:a.normalizeStyle({width:t.width,height:t.width})},[a.createElementVNode("div",Ur,[a.createElementVNode("div",{class:"dot dot-1",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-2",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-3",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-4",style:a.normalizeStyle({backgroundColor:t.color})},null,4)]),a.createElementVNode("div",Hr,[a.createElementVNode("div",{class:"dot dot-1",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-2",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-3",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-4",style:a.normalizeStyle({backgroundColor:t.color})},null,4)]),a.createElementVNode("div",Gr,[a.createElementVNode("div",{class:"dot dot-1",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-2",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-3",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-4",style:a.normalizeStyle({backgroundColor:t.color})},null,4)])],4)],512))}}),us="",pn=j(qr,[["__scopeId","data-v-b6f6b2a6"]]),Yr={key:0,class:"loading",style:{"margin-right":"6px"}},mt=.03,ht=.06,gt=a.defineComponent({customOptions:{Loading11:pn},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},width:{default:"auto"},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"16px"},fontWeight:{default:"normal"},borderRadius:{default:"4px"},stylePattern:{default:"fullfill"},fontColor:{},borderColor:{},bgColor:{},bgColorStart:{},bgColorEnd:{},asyncClick:{}},emits:["yz-click","click"],setup(e,{expose:t,emit:n}){const o=e,r=n,i=a.ref(),l=w.getCSSVar("--xg-blue","#5a82f0"),c=a.ref(o.fontColor),s=a.ref(o.borderColor),u=a.ref(o.bgColor),f=a.ref(c.value),d=a.ref(s.value),m=a.ref(u.value),g=a.ref(o.bgColorStart||""),p=a.ref(o.bgColorEnd||""),y=o.bgColorStart&&o.bgColorEnd;function h($){switch($){case"transparent":s.value=o.borderColor||"rgba(255,255,255,0)",u.value=o.bgColor||"rgba(255,255,255,0)",c.value=o.fontColor||l;break;case"outline":s.value=o.borderColor||l,u.value=o.bgColor||"rgba(255,255,255,0)",c.value=o.fontColor||l;break;case"fullfill":default:s.value=o.borderColor||"rgba(255,255,255,0)",u.value=o.bgColor||l,c.value=o.fontColor||w.__color.set(u.value).opposite(!0).toString();break}f.value=c.value,d.value=s.value,m.value=u.value,y&&(g.value=o.bgColorStart,p.value=o.bgColorEnd,u.value=`linear-gradient(180deg, ${g.value} 0%, ${p.value} 100%)`)}a.watch(()=>o.stylePattern,()=>{h(o.stylePattern)},{immediate:!0});const b=a.ref(o.disabled?"0.6":"1"),S=a.ref(o.disabled?"not-allowed":"pointer");let C=!1;const x=()=>{o.disabled||(C=!0,o.stylePattern=="transparent"&&(c.value=w.__color.set(f.value).darken(mt).toString()),s.value=w.__color.set(d.value).darken(mt).toString(),y?u.value=`linear-gradient(180deg, ${p.value} 0%, ${g.value} 100%)`:u.value=w.__color.set(m.value).darken(mt).toString())},F=()=>{o.disabled||(C=!1,c.value=f.value,s.value=d.value,y?u.value=`linear-gradient(180deg, ${g.value} 0%, ${p.value} 100%)`:u.value=m.value)},_=a.ref(!1),I=()=>{o.disabled||_.value||(o.stylePattern=="transparent"&&(c.value=w.__color.set(f.value).darken(ht).toString()),s.value=w.__color.set(d.value).darken(ht).toString(),y?u.value=`linear-gradient(180deg, ${g.value} 0%, ${p.value} 100%)`:u.value=w.__color.set(m.value).darken(ht).toString(),setTimeout(()=>{C?x():F()},150),r("yz-click"),r("click"),o.asyncClick&&(_.value=!0,o.asyncClick().then(()=>{_.value=!1}).catch(()=>{_.value=!1})))},B=ie.throttle(I,300);return t({el:i}),($,P)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"el",ref:i,class:"button",style:a.normalizeStyle([`opacity: ${b.value}`,`border: 1px solid ${s.value}`,`background: ${u.value}`,`color: ${c.value}`,`border-radius: ${o.borderRadius}`,`width: ${o.width}`,`height: ${o.height}`,`line-height: ${o.height}`,`font-size: ${o.fontSize}`,`cursor: ${S.value}`,"user-select: none","box-sizing: border-box","display: inline-flex","justify-content: center","align-items: center","z-index: 0"]),onMouseover:x,onMouseleave:F,onClick:P[0]||(P[0]=(...q)=>a.unref(B)&&a.unref(B)(...q))},[a.createElementVNode("label",{class:"label truncate",style:a.normalizeStyle({padding:"0 "+$.padding,cursor:S.value,display:"inline-flex",justifyContent:"center",alignItems:"center",fontWeight:o.fontWeight||"normal"})},[_.value?(a.openBlock(),a.createElementBlock("div",Yr,[a.createVNode(pn,{color:c.value},null,8,["color"])])):a.createCommentVNode("",!0),a.renderSlot($.$slots,"default",{},()=>[$.icon&&$.iconPosition==="left"?(a.openBlock(),a.createBlock(dn,{key:0,icon:$.icon,color:c.value,style:a.normalizeStyle({marginRight:"4px",cursor:S.value})},null,8,["icon","color","style"])):a.createCommentVNode("",!0),a.createElementVNode("span",{style:a.normalizeStyle({cursor:S.value})},a.toDisplayString($.label),5),$.icon&&$.iconPosition==="right"?(a.openBlock(),a.createBlock(dn,{key:1,icon:$.icon,color:c.value,style:a.normalizeStyle({marginLeft:"4px",cursor:S.value})},null,8,["icon","color","style"])):a.createCommentVNode("",!0)])],4)],36))}}),Xr={class:"xg-footer-inner"},Qr=a.defineComponent({customOptions:{Button:gt},inheritAttrs:!0,__name:"Footer",setup(e){const t=re.useRouter();function n(){t.push("/park")}const o=a.ref("0px");let r;return a.onMounted(()=>{r=w.useSafeArea$().subscribe(i=>{o.value=i.bottom,console.log(i)})}),a.onUnmounted(()=>{r?.unsubscribe()}),(i,l)=>(a.openBlock(),a.createElementBlock("div",{class:"xg-footer",style:a.normalizeStyle({paddingBottom:o.value})},[a.createElementVNode("div",Xr,[a.createVNode(gt,{label:"去支付",width:"100%",onClick:n})])],4))}}),fs="",mn=j(Qr,[["__scopeId","data-v-c7cbc911"]]),Kr={class:"text"},Zr=a.defineComponent({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"}},setup(e,{expose:t,emit:n}){const o=e,r=[{name:"蓝牌",style:{"background-color":"#0078f0",color:"#ffffff"}},{name:"绿牌",style:{"background-color":"#00f08c",color:"#000000"}},{name:"黄牌",style:{"background-color":"#fac800",color:"#000000"}},{name:"黄绿",style:{background:"linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%)",color:"#000000"}},{name:"黑牌",style:{"background-color":"#222222",color:"#ffffff"}},{name:"白牌",style:{"background-color":"#ffffff",color:"#000000",border:"1px solid #999999"}},{name:"未知",style:{"background-color":"#cccccc",color:"#ffffff"}}];function i(u){switch(u){case"b":case"蓝牌":u="蓝牌";break;case"g":case"绿牌":u="绿牌";break;case"y":case"黄牌":u="黄牌";break;case"q":case"黄绿":u="黄绿";break;case"d":case"黑牌":u="黑牌";break;case"w":case"白牌":u="白牌";break;default:u="未知";break}const f=r.filter(d=>d.name===u);return f.length?f[0]:i("未知")}const l=a.ref(i(o.plateType||"")),c=a.ref(),s=a.ref(14);return a.onMounted(()=>{s.value=w.getEmSize(c.value)}),t({}),(u,f)=>(a.openBlock(),a.createElementBlock("div",{class:"plate-display",ref_key:"el",ref:c},[u.displayType=="dot"&&u.plate!=="无牌车"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["leading",u.displayType]),style:a.normalizeStyle({...l.value.style,width:s.value+"px",height:s.value+"px",marginRight:.36*s.value+"px"})},a.toDisplayString(l.value.name),7)):a.createCommentVNode("",!0),u.displayType=="chinese"&&u.plate!=="无牌车"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["leading",u.displayType]),style:a.normalizeStyle(l.value.style)},a.toDisplayString(l.value.name),7)):a.createCommentVNode("",!0),u.displayType=="plaintext"&&u.plate!=="无牌车"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["leading",u.displayType])},a.toDisplayString(l.value.name),3)):a.createCommentVNode("",!0),a.createElementVNode("div",Kr,a.toDisplayString(u.plate),1)],512))}}),ds="",hn=j(Zr,[["__scopeId","data-v-a815b5f2"]]),U=a.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},supportCopyText:{type:Boolean,default:!1}},emits:["ready","update","clipboard_success","clipboard_error","start","end"],setup(e,{expose:t,emit:n}){const o=e,r=n;let i="start";const l=()=>{i="start",r("start")},c=()=>{i="end",r("end")},s=()=>{i=="start"?c():l()},u=a.ref();let f,d,m=!1;return a.watchEffect(()=>{u.value&&(f||(f=w.useElementEventBus(u.value),f.eb.on("resize",()=>{m&&r("update",f)}),f.eb.on("mouseEnter",()=>{o.effectTriggerTiming=="mouseMove"&&s()}),f.eb.on("mouseLeave",()=>{o.effectTriggerTiming=="mouseMove"&&s()}),f.eb.on("tap",()=>{if(o.effectTriggerTiming=="click"&&s(),o.supportCopyText){const g=w.getInnerText(u.value);w.useClipboard(g).then(()=>{r("clipboard_success",g)}).catch(p=>{r("clipboard_error",p.toString())})}}),o.effectTriggerTiming!=="manual"&&l(),o.effectTriggerTiming=="immediate"&&s(),f.start().then(()=>{d?.(f),r("ready",f),m=!0})))}),a.onMounted(()=>{}),a.onUnmounted(()=>{f?.end()}),t({getController:()=>new Promise(g=>{if(f)return g(f);d=g}),getElement:()=>u.value,getRect:()=>u.value.getBoundingClientRect()}),(g,p)=>(a.openBlock(),a.createElementBlock("div",a.mergeProps({ref_key:"r",ref:u,class:"container",style:{position:"relative",boxSizing:"border-box",display:o.type=="shrink"?"inline-block":"block",width:o.type=="full"?"100%":"auto",height:o.type=="full"?"100%":"auto"}},g.$attrs),[a.renderSlot(g.$slots,"default")],16))}}),gn=a.defineComponent({customOptions:{Container:U},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(e,{expose:t,emit:n}){const o=e,r=n,i=a.reactive({}),l=a.reactive({});let c=o.name,s=o.duration,u=o.timingFunction,f=o.delay,d=o.repeat,m=o.direction;function g(_){switch(c=_,c){case"superRainbow":s=o.duration||15e3;break;case"heartBeat":s=o.duration||1300;break;case"statusProcessing":s=o.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":s=o.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":s=o.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":s=o.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":s=o.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":s=o.duration||600;break;default:s=o.duration||500;break}switch(c){case"superRainbow":u=o.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":u=o.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":u=o.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":u=o.timingFunction||"ease-in-out";break;default:u=o.timingFunction||"ease";break}switch(c){default:f=o.delay||0;break}switch(c){case"superRainbow":case"statusProcessing":d=o.repeat||"infinite";break;default:d=o.repeat||1;break}switch(c){case"superRainbow":m=o.direction||"alternate";break;default:m=o.direction||"normal";break}switch(c){case"hinge":case"rotateFall":l.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":l.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":l.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":l.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":l.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":l.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":l.transformOrigin="right bottom";break;default:delete l.transformOrigin;break}switch(c){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":i.overflow="visible";break;default:i.overflow="hidden";break}switch(c){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":l.backfaceVisibility="visible";break;default:delete l.backfaceVisibility;break}}const p=a.ref(),y=_=>{i.perspective=o.perspective,_.eb.on("animationstart",I=>{r("cssanimationstart",I.animationName)}),_.eb.on("animationend",I=>{r("cssanimationend",I.animationName)})};function h(){p.value.style.animation="none",p.value.offsetHeight,p.value.style.animation=null}const b=()=>{l.animation="none"},S=()=>{h(),l.animation=`${s}ms ${u} ${f}ms ${d} ${m} ${o.fillMode} ${o.playState} ${c}`},C=_=>{_&&g(_),b(),m="normal",S()},x=_=>{_&&g(_),b(),m="reverse",S()},F=()=>{l.animation="none"};return a.watch(()=>o.name,()=>{g(o.name)},{immediate:!0}),t({trigger:C,triggerReverse:x,clear:F}),(_,I)=>(a.openBlock(),a.createBlock(U,{class:"css-animation",type:o.containerType,supportCopyText:o.supportCopyText,effectTriggerTiming:o.effectTriggerTiming,style:a.normalizeStyle(i),onReady:y,onStart:b,onEnd:S},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"css-animation-inner",ref_key:"animationRef",ref:p,style:a.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...l})},[a.renderSlot(_.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),ps="",yn=a.defineComponent({customOptions:{Container:U,CSSAnimation:gn},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:w.Easing.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(e,{expose:t,emit:n}){const o=e,r=n,i=a.ref(),l=a.reactive({}),c=()=>{r("ready",_,I)},s=()=>{y()},u=a.ref();let f="rotateRightSideFirst",d=o.effect;function m(B,$){switch(d){case"static":$();break;default:B();break}}let g=!1;const p=new w.Timeline,y=()=>{const B={},$={};p.clear(),p.frameDuration=o.duration,m(()=>{f=d},()=>{p.addTween(B,$,{delay:o.delay/o.duration,easeFunction:o.easeFunction,onStart:()=>{r(g?"pageCloseStart":"pageOpenStart")},onUpdate:P=>{l.transform="","x"in P&&(l.transform+=` translateX(${P.x}%)`),"y"in P&&(l.transform+=` translateY(${P.y}%)`),"rx"in P&&(l.transform+=` rotateX(${P.rx}deg)`),"ry"in P&&(l.transform+=` rotateY(${P.ry}deg)`),"scale"in P&&(l.transform+=` scale(${P.scale})`),"opacity"in P&&(l.opacity=`${P.opacity}`)},onComplete:()=>{r(g?"pageCloseEnd":"pageOpenEnd")}})})};a.watch(()=>[o.effect,o.delay,o.duration,o.easeFunction],()=>{d=o.effect,y()},{immediate:!0});const h=()=>{r(g?"pageCloseStart":"pageOpenStart")},b=()=>{r(g?"pageCloseEnd":"pageOpenEnd")},S=()=>{m(()=>{u.value.trigger(f)},()=>{p.play()})},C=()=>{m(()=>{u.value.triggerReverse(f)},()=>{p.reverse()})},x=()=>{l.transform="none",l.opacity="1"};function F(){m(()=>{x()},()=>{u.value?.clear()})}const _=B=>{B&&(d=B,y()),g=!1,F(),S()},I=B=>{B&&(d=B,y()),g=!0,F(),C()};return t({open:_,close:I,clear:x}),(B,$)=>(a.openBlock(),a.createBlock(U,{class:"page",ref_key:"pageRef",ref:i,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:c,onUpdate:s},{default:a.withCtx(()=>[a.createVNode(gn,{ref_key:"cssAnimationRef",ref:u,containerType:"full",effectTriggerTiming:"manual",duration:o.duration,delay:o.delay,timingFunction:o.timingFunction,onCssanimationstart:h,onCssanimationend:b},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"page-inner",style:a.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...l})},[a.renderSlot(B.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),vn=a.defineComponent({customOptions:{Page:yn,Container:U},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:w.Easing.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(e,{expose:t,emit:n}){const o=e,r=n;let i=-1,l=-1,c;const s=[];let u=[],f=[],d=[];function m(R){return R>=0&&R<u.length}function g(){return l>i}function p(R,v,oe){switch(R){case i:return g()?v:oe;case l:return g()?oe:v;default:return"static"}}function y(R,v){switch(R){case"moveToLeft":return p(v,"moveToLeft","moveFromRight");case"moveToRight":return p(v,"moveToRight","moveFromLeft");case"moveToTop":return p(v,"moveToTop","moveFromBottom");case"moveToBottom":return p(v,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return p(v,"fade","moveFromLeft");case"moveFromRightPrevFade":return p(v,"fade","moveFromRight");case"moveFromTopPrevFade":return p(v,"fade","moveFromTop");case"moveFromBottomPrevFade":return p(v,"fade","moveFromBottom");case"moveToLeftFade":return p(v,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return p(v,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return p(v,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return p(v,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return p(v,"moveToLeft","moveFromRight");case"moveToRightEasing":return p(v,"moveToRight","moveFromLeft");case"moveToTopEasing":return p(v,"moveToTop","moveFromBottom");case"moveToBottomEasing":return p(v,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return p(v,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return p(v,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return p(v,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return p(v,"scaleToSmall","moveFromBottom");case"scaleSmall":return p(v,"scaleToSmall","scaleFromLarge");case"scaleLarge":return p(v,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return p(v,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return p(v,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return p(v,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return p(v,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return p(v,"moveToBottom","scaleFromSmall");case"glueToLeft":return p(v,"rotateRightSideFirst","moveFromRight");case"glueToRight":return p(v,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return p(v,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return p(v,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return p(v,"flipOutLeft","flipInRight");case"flipToRight":return p(v,"flipOutRight","flipInLeft");case"flipToTop":return p(v,"flipOutTop","flipInBottom");case"flipToBottom":return p(v,"flipOutBottom","flipInTop");case"rotateFall":return p(v,"rotateFall","scaleFromSmall");case"newspaper":return p(v,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return p(v,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return p(v,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return p(v,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return p(v,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return p(v,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return p(v,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return p(v,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return p(v,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return p(v,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return p(v,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return p(v,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return p(v,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return p(v,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return p(v,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return p(v,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return p(v,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return p(v,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return p(v,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return p(v,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return p(v,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return p(v,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return p(v,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return p(v,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return p(v,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return p(v,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return p(v,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return p(v,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return p(v,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return p(v,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return p(v,"rotateSlideOut","rotateSlideIn")}}function h(R,v=600,oe=600){switch(R){case i:return v;case l:return oe;default:return o.duration}}function b(R,v){switch(R){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return h(v,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return h(v,700,600);case"scaleSmall":return h(v,700,500);case"scaleLarge":return h(v,500,700);case"scaleToLargePrevScaleToSmall":return h(v,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return h(v,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return h(v,800,600);default:return o.duration}}let S=o.timingFunction;function C(R){switch(R){default:return o.easeFunction}}function x(R,v){switch(R){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(v){case i:S=g()?"ease-in-out":"ease";break;case l:default:S=g()?"ease":"ease-in-out"}return C(v);default:return S=o.timingFunction,o.easeFunction}}function F(R,v=300){switch(R){case l:return o.delay+v;default:return o.delay}}function _(R,v){switch(R){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return F(v,500);case"scaleSmall":case"scaleLarge":return F(v,300);case"scaleToLargePrevScaleToSmall":return F(v,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return F(v,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return F(v,180);default:return o.delay}}let I=2,B=2;const $=()=>{I=2,B=2},P=()=>{I=2,B=3},q=()=>{I=3,B=2};function le(R){switch(o.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":q();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":g()?q():P();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":g()?P():q();break;default:$();break}m(i)&&i==R&&(d[i].style.zIndex=`${I}`,d[i].style.visibility="visible"),m(l)&&l==R&&(d[l].style.zIndex=`${B}`,d[l].style.visibility="visible")}function L(R){P(),R==i&&(d[i].style.zIndex=`${I}`,d[i].style.visibility="hidden"),R==l&&(d[l].style.zIndex=`${B}`,d[l].style.visibility="visible",s.shift()?.(),r("routeChangeEnd",i,l,u.length),i=l)}const z=a.ref();function ne(R=0,v=!1){if(!z.value)return;let oe=0;a.render(a.h("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},u.map((D,Q)=>{const se=y(o.effect,Q);return a.h("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:i==Q?"visible":"hidden",zIndex:v?"1":"0"}},D.pageKey?{key:D.pageKey}:{}),a.h(yn,{effect:se,duration:b(o.effect,Q),easeFunction:x(o.effect,Q),timingFunction:S,delay:_(o.effect,Q),onReady:(rs,is)=>{f[Q]={open:rs,close:is},++oe==R&&(c?.(),r("renderComplete"))},onPageOpenStart:()=>{le(Q)},onPageOpenEnd:()=>{L(Q)},onPageCloseStart:()=>{le(Q)},onPageCloseEnd:()=>{L(Q)}},{default:()=>D.component instanceof HTMLElement?a.h("div",{...D.attributes,innerHTML:D.component.innerHTML}):a.h(D.component,D.attributes,()=>D.child)}))})),z.value),d=z.value.children[0].children}a.watch(()=>o.effect,()=>{ne()});function ye(R=[]){u=[...R],u.forEach(v=>{v.pageKey=v.pageKey||ie.generateUUID()}),c=()=>{i=-1,X(0)},ne(u.length,!0)}function Lt(R){R.pageKey=R.pageKey||ie.generateUUID(),u.push(R),c=()=>{X(u.length-1)},ne(1,u.length==1)}function rt(){u.length<=1||X(u.length-2,()=>{u.splice(u.length-1,1),i=u.length-1,ne()})}function Nt(){X(i+1)}function ve(){X(i-1)}const Mt=new ie.AsyncTaskQueue(1);function X(R,v){Mt.addTask(()=>new Promise(oe=>{const D=()=>{v?.(),oe()};if(!m(R)){D();return}if(l=R,l==i){D();return}s.push(D),ne(),r("routeChangeStart",i,l,u.length),g()?(m(i)&&f[i].open(),m(l)&&f[l].open()):(m(i)&&f[i].close(),m(l)&&f[l].close())}))}return t({reset:ye,push:Lt,pop:rt,forward:Nt,back:ve,goto:X,currentPageIndex:()=>i,totalPages:()=>u.length}),(R,v)=>(a.openBlock(),a.createElementBlock("div",{class:"routes",ref_key:"routesRef",ref:z,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),bn=a.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},global:{type:Boolean,default:!0},color:{default:"rgba(0, 0, 0, 0.25)"}},setup(e,{expose:t}){const n=e,o=a.computed(()=>({display:n.visible?"block":"none",overflow:"hidden","background-color":n.color,position:"fixed","z-index":"99999",width:"100%",height:"100%",inset:"0"})),r=a.ref(),i=w.atomReadStyle(document.documentElement,"overflow")||"visible";let l="";return a.watch(()=>n.visible,()=>{n.global?w.atomWriteStyle(document.documentElement,"overflow",n.visible?"hidden":i):(l||(l=w.atomReadStyle(r.value.parentElement,"overflow")||"visible"),w.atomWriteStyle(r.value.parentElement,"overflow",n.visible?"hidden":l))},{immediate:!0}),t({}),(c,s)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"el",ref:r,class:"overlay",style:a.normalizeStyle(o.value)},[a.renderSlot(c.$slots,"default")],4))}}),Be=a.defineComponent({customOptions:{Overlay:bn,Container:U},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},global:{type:Boolean,default:!0},overlayBgColor:{},popValue:{}},emits:["open","close","resize","clickOverlay"],setup(e,{expose:t,emit:n}){const o=e,r=n,i=new w.Timeline({frameDuration:o.dur}),l=a.reactive({position:"absolute",opacity:"1",transformOrigin:"center",willChange:"transform"}),c=a.ref(!1),s=a.ref("full");a.watch(()=>[o.directionFrom,o.popValue],()=>{i.clear();const y=!o.popValue,h=o.popValue?o.popValue:100,b=o.popValue?"px":"%";switch(o.directionFrom){case"left":l.height="100%",y?delete l.width:l.width=`${h}${b}`,l.top="0",l.bottom="0",delete l.right,i.addTween({left:h},{left:0},{easeFunction:w.Easing.Quadratic.Out,onUpdate(S){l.left=`-${S.left}${b}`},onComplete:d});break;case"right":l.height="100%",y?delete l.width:l.width=`${h}${b}`,l.top="0",l.bottom="0",delete l.left,i.addTween({right:h},{right:0},{easeFunction:w.Easing.Quadratic.Out,onUpdate(S){l.right=`-${S.right}${b}`},onComplete:d});break;case"top":l.width="100%",y?delete l.height:l.height=`${h}${b}`,l.left="0",l.right="0",delete l.bottom,i.addTween({top:h},{top:0},{easeFunction:w.Easing.Quadratic.Out,onUpdate(S){l.top=`-${S.top}${b}`},onComplete:d});break;case"bottom":l.width="100%",y?delete l.height:l.height=`${h}${b}`,l.left="0",l.right="0",delete l.top,i.addTween({bottom:h},{bottom:0},{easeFunction:w.Easing.Quadratic.Out,onUpdate(S){l.bottom=`-${S.bottom}${b}`},onComplete:d});break;case"center":delete l.width,delete l.height,l.left="50%",delete l.right,l.top="50%",delete l.bottom,i.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:w.Easing.Quadratic.Out,onUpdate(S){l.transform=`translate(-50%, -50%) scale(${S.scale})`,l.opacity=`${S.opacity}`},onComplete:d});break;case"absolute":l.width=o.absoluteWidth,l.height=o.absoluteHeight,l.left=o.absoluteLeft,l.top=o.absoluteTop,delete l.right,delete l.bottom;break}switch(o.directionFrom){case"center":s.value="shrink",l.transform="translate(-50%, -50%)";break;case"absolute":s.value="shrink",delete l.transform,delete l.opacity;break;default:s.value="full",delete l.transform,delete l.opacity;break}y&&(s.value="shrink")},{immediate:!0}),a.watch(()=>o.absoluteLeft,()=>{switch(o.directionFrom){case"absolute":l.left=o.absoluteLeft;break}}),a.watch(()=>o.absoluteTop,()=>{switch(o.directionFrom){case"absolute":l.top=o.absoluteTop;break}}),a.watch(()=>o.absoluteWidth,()=>{switch(o.directionFrom){case"absolute":l.width=o.absoluteWidth;break}}),a.watch(()=>o.absoluteHeight,()=>{switch(o.directionFrom){case"absolute":l.height=o.absoluteHeight;break}});const u=y=>{r("resize",y.rect)};let f="open";function d(){f=="open"?r("open"):(c.value=!1,r("close"))}function m(){c.value=!0,f="open",i.play()}function g(){switch(f="close",o.directionFrom){case"absolute":d();break;default:i.reverse();break}}function p(y){const h=o.directionFrom=="absolute"&&o.absoluteWidth=="100%"&&o.absoluteHeight=="100%"?"pop-content":"pop";y.target&&w.hasClass(y.target,h)&&(o.closeWhenClickOverlay&&g(),r("clickOverlay"))}return t({open:m,close:g}),(y,h)=>(a.openBlock(),a.createBlock(bn,{visible:c.value,global:o.global,color:o.overlayBgColor},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%"},onClick:p},[a.createVNode(U,{class:"pop-content",type:s.value,style:a.normalizeStyle(l),onReady:u,onUpdate:u},{default:a.withCtx(()=>[a.renderSlot(y.$slots,"default",{},()=>[h[0]||(h[0]=a.createElementVNode("div",null,null,-1))])]),_:3},8,["type","style"])])]),_:3},8,["visible","global","color"]))}}),Jr=["src"],Wr=a.defineComponent({name:"Image",customOptions:{Container:U,Pop:Be},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(e,{expose:t,emit:n}){const o=e,r=n,i=new w.Timeline({frameDuration:o.dur}),l=a.ref(0),c=a.ref(0),s=a.ref(0),u=a.ref(0),f=a.ref(0),d=a.ref(0),m=a.ref(0),g=a.ref(0),p=a.ref(!0),y=a.ref(0),h=a.ref(0);w.useLoadImage(o.src).then(L=>{y.value=L.width,h.value=L.height,_()}).catch(()=>{p.value=!1});const b=a.ref(0),S=a.ref(0),C=L=>{b.value=L.rect.width,S.value=L.rect.height,_()},x=a.ref(0),F=a.ref(0);function _(){if(!b.value||!S.value||!y.value||!h.value)return;const L=w.computeImageDisplayRect(o.mode,y.value,h.value,b.value,S.value);x.value=L.width,F.value=L.height;const{width:z,height:ne}=w.getViewportSize(),ye=w.computeImageDisplayRect("aspectFit",y.value,h.value,z,ne);m.value=ye.width,g.value=ye.height,f.value=(z-m.value)/2,d.value=(ne-g.value)/2}const I=L=>{r("settled",L.rect.x,L.rect.y,L.rect.width,L.rect.height)};let B=!1;const $=a.ref(),P=a.ref();async function q(){if(!o.openImageDetailWhenClick)return;const L=await $.value.getRect();i.clear(),i.addTween({left:L.x,top:L.y,width:L.width,height:L.height},{left:f.value,top:d.value,width:m.value,height:g.value},{easeFunction:w.Easing.Quadratic.Out,onUpdate(z){l.value=z.left,c.value=z.top,s.value=z.width,u.value=z.height},onComplete(){B&&P.value.close(),B=!B}}),B||(P.value.open(),i.play())}function le(){B&&i.reverse()}return t({}),(L,z)=>(a.openBlock(),a.createBlock(U,{class:"image",type:"full",style:a.normalizeStyle({backgroundColor:o.bgColor}),onReady:C,onUpdate:C,onClick:q},{default:a.withCtx(()=>[p.value?(a.openBlock(),a.createBlock(U,{key:0,class:"image-inner",ref_key:"imageRef",ref:$,type:"shrink",style:a.normalizeStyle({width:x.value+"px",height:F.value+"px",backgroundImage:`url(${o.src})`,backgroundSize:`${x.value}px ${F.value}px`}),onReady:I,onUpdate:I},null,8,["style"])):a.createCommentVNode("",!0),p.value?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(U,{key:1,type:"shrink"},{default:a.withCtx(()=>[a.createElementVNode("img",{src:o.src,style:{display:"block",objectFit:"contain"}},null,8,Jr)]),_:1})),a.createVNode(Be,{ref_key:"popRef",ref:P,"direction-from":"absolute","absolute-left":`${l.value}px`,"absolute-top":`${c.value}px`,"absolute-width":`${s.value}px`,"absolute-height":`${u.value}px`,"close-when-click-overlay":!1,onClickOverlay:le},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"image-pop",style:a.normalizeStyle({width:"100%",height:"100%",backgroundImage:`url(${o.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),ms="",wn=j(Wr,[["__scopeId","data-v-67c2d0de"]]),ei={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Sn=a.defineComponent({customOptions:{Image:wn,Container:U,Routes:vn},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(e,{expose:t,emit:n}){const o=e,r=a.ref(0);function i(m,g){r.value=g}const l=a.ref(),c=m=>{m.eb.on("panLeft",()=>{l.value?.forward()}),m.eb.on("panRight",()=>{l.value?.back()}),l.value.reset(o.urls.map(g=>({component:a.h(wn,{mode:"aspectFit",src:g,openImageDetailWhenClick:!1})})))},s=a.ref();function u(){s.value?.open()}function f(){s.value?.close()}const d=m=>{m.target&&w.hasClass(m.target,"image")&&f()};return t({open:u,close:f}),(m,g)=>(a.openBlock(),a.createBlock(Be,{ref_key:"popRef",ref:s,directionFrom:"absolute",onClick:d},{default:a.withCtx(()=>[o.urls.length>1?(a.openBlock(),a.createElementBlock("div",ei,a.toDisplayString(r.value+1)+" / "+a.toDisplayString(o.urls.length),1)):a.createCommentVNode("",!0),a.createVNode(U,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:c},{default:a.withCtx(()=>[a.createVNode(vn,{ref_key:"routesRef",ref:l,effect:o.effect,onRouteChangeEnd:i},null,8,["effect"])]),_:1})]),_:1},512))}}),ti={class:"pop-tel"},ni=["href"],oi=a.defineComponent({customOptions:{Pop:Be},inheritAttrs:!0,__name:"PopTel",props:{tel:{}},setup(e,{expose:t,emit:n}){const o=a.ref();function r(){o.value?.open()}function i(){o.value?.close()}return t({open:r,close:i}),(l,c)=>(a.openBlock(),a.createBlock(Be,{directionFrom:"bottom",closeWhenClickOverlay:!1,ref_key:"el",ref:o},{default:a.withCtx(()=>[a.createElementVNode("div",ti,[a.createElementVNode("div",null,a.toDisplayString(l.tel),1),a.createElementVNode("a",{class:"pop-tel-call",onClick:i,href:`tel:${l.tel}`}," 呼叫 ",8,ni),a.createElementVNode("div",{class:"pop-tel-cancel",onClick:i}," 取消 ")])]),_:1},512))}}),hs="",_n=j(oi,[["__scopeId","data-v-c1425500"]]),ri={class:"lot-main"},ii={class:"lot-detail"},ai={class:"bold"},li=a.defineComponent({customOptions:{LayoutPage:be,Footer:mn,PlateDisplay:hn,ViewDocument:zt,PopTel:_n,ImageView:Sn},inheritAttrs:!0,__name:"Lot",setup(e){const t=re.useRouter();function n(){t.push({name:"view-document",params:{title:"收费标准",src:encodeURIComponent("https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159")}})}const o=a.ref();function r(){o.value?.open()}const i=a.ref();function l(){i.value?.open()}return(c,s)=>(a.openBlock(),a.createBlock(be,{class:"lot"},{footer:a.withCtx(()=>[a.createVNode(mn)]),global:a.withCtx(()=>[a.createVNode(_n,{tel:"15851575410",ref_key:"popTelEl",ref:o},null,512),a.createVNode(Sn,{urls:["https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159","https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159"],ref_key:"imageViewEl",ref:i},null,512)]),default:a.withCtx(()=>[s[15]||(s[15]=a.createElementVNode("div",{class:"lot-main-bg"},null,-1)),a.createElementVNode("div",ri,[s[12]||(s[12]=a.createElementVNode("div",null,"若临测试泊位机器人停车场",-1)),s[13]||(s[13]=a.createElementVNode("div",null,[a.createElementVNode("div"),a.createElementVNode("div",null,"编号"),a.createElementVNode("div")],-1)),s[14]||(s[14]=a.createElementVNode("div",null,[a.createElementVNode("span",null,"103"),a.createElementVNode("span",null,"002")],-1)),a.createElementVNode("div",null,[s[0]||(s[0]=a.createElementVNode("div",null,"停车场主页",-1)),s[1]||(s[1]=a.createElementVNode("div",null,"更换附近车位",-1)),a.createElementVNode("div",{onClick:n},"收费标准")]),a.createElementVNode("div",ii,[s[4]||(s[4]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"待支付"),a.createElementVNode("div",{class:"red"},"¥0.01")],-1)),s[5]||(s[5]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"已支付"),a.createElementVNode("div",null,"¥0.01")],-1)),s[6]||(s[6]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"订单编号"),a.createElementVNode("div",null,"33333333333")],-1)),s[7]||(s[7]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"开始时间"),a.createElementVNode("div",null,"2025-04-08 09:41:25")],-1)),s[8]||(s[8]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"停车时长"),a.createElementVNode("div",null,"51小时53分钟15秒")],-1)),s[9]||(s[9]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"优惠券"),a.createElementVNode("div",{class:"red"},"1分钟")],-1)),s[10]||(s[10]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"优惠信息"),a.createElementVNode("div",{class:"red"},"xxxx")],-1)),s[11]||(s[11]=a.createElementVNode("div",{class:"lot-detail-gap"},null,-1)),a.createElementVNode("div",null,[s[2]||(s[2]=a.createElementVNode("div",null,"车牌号",-1)),a.createElementVNode("div",ai,[a.createVNode(hn,{plate:"苏U77777","plate-type":"b"})])]),a.createElementVNode("div",null,[s[3]||(s[3]=a.createElementVNode("div",null,"现场照片",-1)),a.createElementVNode("div",{onClick:l},"查看")])]),a.createElementVNode("div",{class:"lot-actions"},[a.createElementVNode("div",{onClick:r},"联系客服")])])]),_:1}))}}),gs="",si=j(li,[["__scopeId","data-v-feee85ac"]]),ci=a.defineComponent({customOptions:{LayoutPage:be},inheritAttrs:!0,__name:"Park",setup(e){return(t,n)=>(a.openBlock(),a.createBlock(be,{class:"park"},{default:a.withCtx(()=>n[0]||(n[0]=[a.createTextVNode("Park")])),_:1}))}}),ys="",ui=j(ci,[["__scopeId","data-v-9704593b"]]),vs="",fi={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",w.isIE&&this.$el.appendChild(e),e.data="about:blank",w.isIE||this.$el.appendChild(e)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!w.isIE&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},di={class:"resize-observer",tabindex:"-1"};function pi(e,t,n,o,r,i){return a.openBlock(),a.createElementBlock("div",di)}const mi=j(fi,[["render",pi],["__scopeId","data-v-d5987ae1"]]);var Pe=function(){var e=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(f){f.preventDefault(),o(++e%t.children.length)},!1);function n(f){return t.appendChild(f.dom),f}function o(f){for(var d=0;d<t.children.length;d++)t.children[d].style.display=d===f?"block":"none";e=f}var r=(performance||Date).now(),i=r,l=0,c=n(new Pe.Panel("FPS","#0ff","#002")),s=n(new Pe.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var u=n(new Pe.Panel("MB","#f08","#201"));return o(0),{REVISION:16,dom:t,addPanel:n,showPanel:o,begin:function(){r=(performance||Date).now()},end:function(){l++;var f=(performance||Date).now();if(s.update(f-r,200),f>i+1e3&&(c.update(l*1e3/(f-i),100),i=f,l=0,u)){var d=performance.memory;u.update(d.usedJSHeapSize/1048576,d.jsHeapSizeLimit/1048576)}return f},update:function(){r=this.end()},domElement:t,setMode:o}};Pe.Panel=function(e,t,n){var o=1/0,r=0,i=Math.round,l=i(window.devicePixelRatio||1),c=80*l,s=48*l,u=3*l,f=2*l,d=3*l,m=15*l,g=74*l,p=30*l,y=document.createElement("canvas");y.width=c,y.height=s,y.style.cssText="width:80px;height:48px";var h=y.getContext("2d");return h.font="bold "+9*l+"px Helvetica,Arial,sans-serif",h.textBaseline="top",h.fillStyle=n,h.fillRect(0,0,c,s),h.fillStyle=t,h.fillText(e,u,f),h.fillRect(d,m,g,p),h.fillStyle=n,h.globalAlpha=.9,h.fillRect(d,m,g,p),{dom:y,update:function(b,S){o=Math.min(o,b),r=Math.max(r,b),h.fillStyle=n,h.globalAlpha=1,h.fillRect(0,0,c,m),h.fillStyle=t,h.fillText(i(b)+" "+e+" ("+i(o)+"-"+i(r)+")",u,f),h.drawImage(y,d+l,m,g-l,p,d,m,g-l,p),h.fillRect(d+g-l,m,l,p),h.fillStyle=n,h.globalAlpha=.9,h.fillRect(d+g-l,m,l,i((1-b/S)*p))}}};const hi=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(e,{expose:t}){const n=a.ref();return a.onMounted(()=>{const o=new Pe;o.domElement.style.margin="1em",n.value.appendChild(o.domElement),w.requestAnimationFrameCycle(()=>(o.update(),!0))}),t({}),(o,r)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"containerRef",ref:n},null,512))}}),gi=["width","height"],yi=["fill"],Cn=a.defineComponent({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:"#cccccc"}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height||t.width,style:{"transform-origin":"center"},fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:t.color},null,8,yi)],8,gi))}}),vi=a.defineComponent({customOptions:{Container:U,SVGDown:Cn},inheritAttrs:!0,__name:"Accordion",props:{initOpen:{type:Boolean,default:!1},titleHeight:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close"],setup(e,{expose:t,emit:n}){const o=e,r=n,i=a.ref(),l=a.ref(Number.MAX_SAFE_INTEGER+"px"),c=a.ref(!0);a.onMounted(()=>{a.nextTick(()=>{l.value=i.value.getBoundingClientRect().height+"px",c.value=o.initOpen})});function s(){c.value=!c.value,c.value?r("open"):r("close")}const u=a.ref(0);return a.watchEffect(()=>{u.value=c.value?0:-90}),t({}),(f,d)=>(a.openBlock(),a.createBlock(U,null,{default:a.withCtx(()=>[a.createElementVNode("div",{class:"accordion",style:a.normalizeStyle({background:o.bgColor,color:o.fontColor,borderRadius:o.borderRadius})},[a.createElementVNode("div",{class:"accordion-title",onClick:s,style:a.normalizeStyle({height:o.titleHeight,lineHeight:o.titleHeight,margin:`0 ${o.padding}`,transitionDelay:`${c.value?0:o.duration}ms`,borderBottom:`${c.value?1:0}px solid ${o.borderColor}`})},[a.renderSlot(f.$slots,"title",{},()=>[d[0]||(d[0]=a.createTextVNode("title"))],!0),a.createVNode(Cn,{class:"arrow",style:a.normalizeStyle({transition:`transform ${o.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),a.createElementVNode("div",{class:"accordion-content",ref_key:"content",ref:i,style:a.normalizeStyle({margin:`0 ${o.padding}`,transition:`max-height ${o.duration}ms ease-in-out`,maxHeight:c.value?l.value:"0"})},[a.renderSlot(f.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),ws="",bi=j(vi,[["__scopeId","data-v-bd7d3b4a"]]),wi=a.defineComponent({__name:"ProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},showText:{type:Boolean,default:!1}},emits:["complete"],setup(e,{expose:t,emit:n}){const o=e,r=a.ref(0);function i(l){r.value=Math.min(Math.max(0,l),100)}return t({goto:i}),(l,c)=>(a.openBlock(),a.createElementBlock("div",{class:"bar",style:a.normalizeStyle({border:`1px solid ${o.borderColor}`,borderRadius:o.borderRadius,backgroundColor:o.bgColor})},[a.createElementVNode("div",{class:"bar-inner",style:a.normalizeStyle({width:r.value+"%",backgroundColor:o.progressColor})},a.toDisplayString(o.showText?r.value+"%":""),5)],4))}}),Ss="",kn=j(wi,[["__scopeId","data-v-6caeec52"]]),Si={class:"page-vertical-scroll-progress-bar"},_i=a.defineComponent({customOptions:{ProgressBar:kn},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(e,{expose:t,emit:n}){const o=e,r=n,i=a.ref(),l=w.useScroll$().subscribe(c=>{const s=w.getVerticalScrollPercentInPage();r("progress",s),i.value?.goto(s)});return a.onUnmounted(()=>{l.unsubscribe()}),t({}),(c,s)=>(a.openBlock(),a.createElementBlock("div",Si,[a.createVNode(kn,{ref_key:"bar",ref:i,bgColor:o.bgColor,progressColor:o.progressColor,borderColor:o.borderColor,borderRadius:o.borderRadius,duringTimeGap:o.duringTimeGap,showText:o.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),_s="",Ci=j(_i,[["__scopeId","data-v-fff9363f"]]),Tn=a.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Box",props:{type:{default:"div"},shapes:{default:()=>[]},loop:{type:Boolean,default:!1},supportCopyToClipboard:{type:Boolean,default:!1}},emits:["init","resize","frameInit","frame","copyToClipboardSuccess","copyToClipboardError"],setup(e,{expose:t,emit:n}){const o=e,r=n,i=a.ref(),l=o.type!=="div";let c,s=!1,u=!1,f,d,m;return a.watch(()=>o.shapes,()=>{u=!1}),a.watchEffect(()=>{i.value&&(f||(f=w.useResize$(i.value).subscribe(g=>{const p={el:i.value,rect:g};s||(r("init",p),s=!0,l&&(c=w.useDraw(p.el,o.type),m=w.requestAnimationFrameCycle(()=>(u||(r("frameInit",c),u=!0),r("frame",c),c.draw(...o.shapes),o.loop)))),r("resize",p)}),o.supportCopyToClipboard&&(d=w.tap$(i.value).subscribe(()=>{const g=w.getInnerText(i.value);w.useClipboard(g).then(()=>{r("copyToClipboardSuccess",g)}).catch(p=>{r("copyToClipboardError",p.toString())})}))))}),a.onMounted(()=>{}),a.onUnmounted(()=>{f?.unsubscribe(),d?.unsubscribe(),m?.()}),t({getElement:()=>i.value,getRect:()=>i.value.getBoundingClientRect()}),(g,p)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"r",ref:i,class:"box",style:{position:"relative",boxSizing:"border-box"}},[a.renderSlot(g.$slots,"default")],512))}}),ki={style:{position:"relative",overflow:"hidden"}},Ti={style:{position:"fixed",top:"0",left:"0","z-index":"100",width:"100%",height:"6px"}},xi={class:"btns"},Ei=a.defineComponent({__name:"ShapeShowCase",setup(e){const t=f=>{console.log("ResizeObserver",f.width,f.height)};let n=[],o=f=>{},r=f=>{},i=[],l=f=>{},c=f=>{};const s=a.ref("shapes"),u=[{name:"shapes",onClick:()=>{s.value="shapes";const f=new w.BallShape({ballRadius:4,attrs:{fill:"#ff0000"}}),d=f.clone(),m=new w.LineShape({lineLength:100,lineDegree:0,attrs:{stroke:w.Color.random().toString(),strokeWidth:"1"}});m.moveTo(100,100);const g=m.clone(),p=m.clone();p.rotateTo(30);const y=p.clone(),h=m.intersection(p);h&&f.moveTo(h.x,h.y);const b=g.intersection(y);b&&d.moveTo(b.x,b.y);const S=new w.TreeShapeCombo({},{attrs:{stroke:"#ff0000",strokeWidth:"1"},drag:{enable:!0}});S.comboMove(100,100);const C=S.clone(),x=S.clone();x.setAttr("stroke","#0000ff"),x.comboRotate(30);const F=x.clone(),_=new w.RectShape({x:100,y:200,scale:.5,degree:5,rectWidth:100,rectHeight:60,rectBorderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"1"},drag:{enable:!0}}),I=_.clone(),B=new w.HeartShape({x:200,y:200,scale:.5,degree:-10,attrs:{fill:w.Color.random().toString(),stroke:"#ff0000",strokeWidth:"3"},drag:{enable:!0}}),$=B.clone(),P=new w.HeartVariantShape({x:220,y:200,scale:.5,degree:0,attrs:{fill:w.Color.random().toString(),stroke:"#ff0000",strokeWidth:"3"},drag:{enable:!0}}),q=P.clone(),le=new w.StarShape({x:240,y:200,scale:1,degree:0,attrs:{fill:w.Color.random().toString()},drag:{enable:!0}}),L=le.clone(),z=new w.FoxShape({x:260,y:200,scale:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},drag:{enable:!0}}),ne=z.clone(),ye=new w.RabbitShape({x:300,y:200,scale:1,degree:0,attrs:{fill:w.Color.random().toString(),stroke:"#ff0000",strokeWidth:"1"},drag:{enable:!0}}),Lt=ye.clone(),rt=new w.CrossShape({x:320,y:200,scale:1,degree:0,attrs:{fill:w.Color.random().toString()},drag:{enable:!0}}),Nt=rt.clone(),ve=new w.ShipShapeCombo({showFlame:!0},{attrs:{stroke:w.Color.random().toString()},drag:{enable:!0}});ve.comboMove(400,100),ve.comboRotate(30),ve.comboScale(2);const Mt=ve.clone(),X=new w.SegmentShapeCombo({segmentWidth:100,segmentHeight:20},{attrs:{stroke:w.Color.random().toString()},drag:{enable:!0}});X.comboMove(200,100),X.comboRotate(0),X.comboScale(1);const R=X.clone();R.comboRotate(30);const v=X.clone(),oe=R.clone(),D=new w.SliderShapeCombo({sliderMin:0,sliderMax:200,sliderStep:2,sliderDefaultValue:10,sliderWidth:200});D.comboMove(250,100),D.comboRotate(30),D.value$.subscribe(se=>{console.log("slider : "+se)});const Q=D.clone();Q.value$.subscribe(se=>{console.log("sliderClone : "+se)}),n=[m,p,S,x,_,B,P,le,z,ye,rt,ve,X,R,D,f],i=[g,y,C,F,I,$,q,L,ne,Lt,Nt,Mt,v,oe,Q,d],o=se=>{},l=se=>{},r=se=>{},c=se=>{}}},{name:"checkCollision",onClick:()=>{s.value="checkCollision";const f=new w.BallShape({ballRadius:30,attrs:{fill:w.Color.random().toString()},mass:2,vx:2}),d=f.clone(),m=new w.BallShape({ballRadius:30,attrs:{fill:w.Color.random().toString()},mass:1,vx:-2}),g=m.clone();n=[f,m],i=[d,g];let p=!1;const y=h=>{if(p)return;p=!0;const b=h.rect.height*.5;f.moveTo(50,b),m.moveTo(h.rect.width-50,b),d.moveTo(50,b),g.moveTo(h.rect.width-50,b)};o=h=>{y(h)},l=h=>{y(h)},r=h=>{f.checkCollision(m),f.animate(),m.animate()},c=h=>{d.checkCollision(g),d.animate(),g.animate()}}},{name:"followMouse",onClick:()=>{s.value="followMouse";const f=new w.ArrowShape({attrs:{fill:w.Color.random().toString()},scale:.5,followMouse:!0}),d=f.clone(),m=new w.LineShape({attrs:{"stroke-width":"1",stroke:"#666666"}}),g=m.clone();n=[m,f],i=[g,d];let p=!1;const y=h=>{if(p)return;p=!0;const b=h.rect.width*.5,S=h.rect.height*.5;m.moveTo(b,S),g.moveTo(b,S)};o=h=>{y(h)},l=h=>{y(h)},r=h=>{m.lineToAbsolutePoint(f)},c=h=>{g.lineToAbsolutePoint(d)}}},{name:"dragBall",onClick:()=>{s.value="dragBall";const f=new w.BallShape({ballRadius:30,attrs:{fill:w.Color.random().toString()}}),d=f.clone();n=[f],i=[d];let m=!1;const g=p=>{if(m)return;m=!0;const y=p.rect.width*.5,h=p.rect.height*.5;f.moveTo(y,h),d.moveTo(y,h),d.drag=f.drag={enable:!0,targetToAfterDrop:{x:y,y:h}}};o=p=>{g(p)},l=p=>{g(p)},r=p=>{},c=p=>{}}},{name:"animateSpringMassShapes",onClick:()=>{s.value="animateSpringMassShapes";const f=[],d=[],m=new w.Color("#000000"),g=30;for(let C=0;C<g;C++){const x=Math.random()*10+2,F=new w.BallShape({ballRadius:x,attrs:{fill:w.Color.random().toString()}});F.vx=Math.random()*6-3,F.vy=Math.random()*6-3,F.mass=x,f.push(F)}const p=f.map(C=>C.clone()),y=d.map(C=>C.clone());n=[...f],i=[...y,...p];let h=!1;const b=C=>{h||(h=!0,f.forEach((x,F)=>{const _=Math.random()*C.rect.width,I=Math.random()*C.rect.height;x.moveTo(_,I),p[F].moveTo(_,I)}))};o=C=>{b(C)},l=C=>{b(C)};const S=(C,x,F)=>(w.animateSpringMassShapes(x,{x:0,y:0,width:C.rect.width,height:C.rect.height},{spring:5e-4}).forEach(([_,I,B,$,P],q)=>{if(F[q])F[q].moveTo(_,I),F[q].lineToAbsolutePoint({x:B,y:$}),F[q].setAttr("stroke",m.setAlpha(P).toString());else{const le=new w.LineShape({x:_,y:I,lineDx:B-_,lineDy:$-I,attrs:{strokeWidth:"1",stroke:m.setAlpha(P).toString()}});F.push(le)}}),C);r=C=>{S(C,f,d)},c=C=>{S(C,p,y),i=[...y,...p]}}},{name:"gravitateShapes",onClick:()=>{s.value="gravitateShapes";const f=30,d=[];for(let y=0;y<f;y++){const h=Math.random()*25+5,b=new w.BallShape({ballRadius:h,attrs:{fill:w.Color.random().toString()}});b.mass=h,d.push(b)}const m=d.map(y=>y.clone());n=[...d],i=[...m];let g=!1;const p=y=>{g||(g=!0,d.forEach((h,b)=>{const S=Math.random()*y.rect.width,C=Math.random()*y.rect.height;h.moveTo(S,C),m[b].moveTo(S,C)}))};o=y=>{p(y)},l=y=>{p(y)},r=y=>{w.gravitateShapes(d)},c=y=>{w.gravitateShapes(m)}}}];return a.onMounted(()=>{u[0].onClick()}),(f,d)=>(a.openBlock(),a.createElementBlock("div",ki,[a.createElementVNode("div",Ti,[a.createVNode(Ci)]),a.createVNode(hi),a.createVNode(mi,{onResize:t}),a.createVNode(bi,{initOpen:!0,style:{margin:"30px"}},{title:a.withCtx(()=>d[0]||(d[0]=[a.createTextVNode("Shape")])),content:a.withCtx(()=>[a.createElementVNode("div",xi,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(u,m=>a.createVNode(gt,{key:m.name,item:m,onClick:m.onClick,stylePattern:s.value==m.name?"fullfill":"outline"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),a.createVNode(Tn,{type:"svg",shapes:a.unref(n),loop:!0,style:{width:"100%",height:"300px","background-color":"rgba(0, 0, 0, 0.1)"},onFrameInit:a.unref(o),onFrame:a.unref(r)},null,8,["shapes","onFrameInit","onFrame"]),a.createVNode(Tn,{type:"canvas",shapes:a.unref(i),loop:!0,style:{width:"100%",height:"300px","background-color":"rgba(0, 0, 0, 0.2)"},onFrameInit:a.unref(l),onFrame:a.unref(c)},null,8,["shapes","onFrameInit","onFrame"])]),_:1})]))}}),Cs="",Fi=j(Ei,[["__scopeId","data-v-d5aaa1a0"]]);function A(e){return typeof e=="function"}function Ii(e){return A(e?.lift)}function T(e){return function(t){if(Ii(t))return t.lift(function(n){try{return e(n,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}var yt=function(e,t){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},yt(e,t)};function K(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Ri(e,t,n,o){function r(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function c(f){try{u(o.next(f))}catch(d){l(d)}}function s(f){try{u(o.throw(f))}catch(d){l(d)}}function u(f){f.done?i(f.value):r(f.value).then(c,s)}u((o=o.apply(e,t||[])).next())})}function vt(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=c(0),l.throw=c(1),l.return=c(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(u){return function(f){return s([u,f])}}function s(u){if(o)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(n=0)),n;)try{if(o=1,r&&(i=u[0]&2?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],r=0}finally{o=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Z(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,i=[],l;try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(c){l={error:c}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return i}function W(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function Se(e){return this instanceof Se?(this.v=e,this):new Se(e)}function Bi(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,i=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",l),r[Symbol.asyncIterator]=function(){return this},r;function l(g){return function(p){return Promise.resolve(p).then(g,d)}}function c(g,p){o[g]&&(r[g]=function(y){return new Promise(function(h,b){i.push([g,y,h,b])>1||s(g,y)})},p&&(r[g]=p(r[g])))}function s(g,p){try{u(o[g](p))}catch(y){m(i[0][3],y)}}function u(g){g.value instanceof Se?Promise.resolve(g.value.v).then(f,d):m(i[0][2],g)}function f(g){s("next",g)}function d(g){s("throw",g)}function m(g,p){g(p),i.shift(),i.length&&s(i[0][0],i[0][1])}}function Pi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Z=="function"?Z(e):e[Symbol.iterator](),n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n);function o(i){n[i]=e[i]&&function(l){return new Promise(function(c,s){l=e[i](l),r(c,s,l.done,l.value)})}}function r(i,l,c,s){Promise.resolve(s).then(function(u){i({value:u,done:c})},l)}}typeof SuppressedError=="function"&&SuppressedError;var xn=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function En(e){return A(e?.then)}function _e(e){var t=function(o){Error.call(o),o.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var bt=_e(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
1
+ var ZYZGroupCoreVue=function(M,i,re,b,ie,te){"use strict";function Ao(){return i.getCurrentInstance()}function zt(e,t){return i.createVNode(e,t)}function Lo(e){const t=zt(e.component,e.props);e.appContext&&(t.appContext=e.appContext),i.render(t,e.selfContainer),e.parentContainer?.appendChild(e.selfContainer)}function No(e){let t;i.onMounted(()=>{t=e()}),i.onUnmounted(()=>{t?.()})}const Mo={class:"page"},Do={class:"page-header"},zo={class:"page-main"},jo={class:"page-main-scroll"},Uo={class:"page-footer"},Ho={class:"page-global"},Go=i.defineComponent({customOptions:{},inheritAttrs:!0,__name:"LayoutPage",setup(e,{expose:t}){return t({}),(n,o)=>(i.openBlock(),i.createElementBlock("div",Mo,[i.createElementVNode("div",Do,[i.renderSlot(n.$slots,"header",{},void 0,!0)]),i.createElementVNode("div",zo,[i.createElementVNode("div",jo,[i.renderSlot(n.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",Uo,[i.renderSlot(n.$slots,"footer",{},void 0,!0)]),i.createElementVNode("div",Ho,[i.renderSlot(n.$slots,"global",{},void 0,!0)])]))}}),$c="",z=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},_e=z(Go,[["__scopeId","data-v-3c77fd20"]]),qo={class:"view-document"},Yo=["src"],Xo=i.defineComponent({inheritAttrs:!0,customOptions:{LayoutPage:_e},__name:"ViewDocument",props:{src:{default:""},title:{default:""}},setup(e){const t=e,n=re.useRoute();b.setWindowTitle(typeof n.params.title=="string"?n.params.title:t.title);const o=decodeURIComponent(typeof n.params.src=="string"?n.params.src:t.src);return(r,a)=>(i.openBlock(),i.createBlock(_e,null,{default:i.withCtx(()=>[i.createElementVNode("div",qo,[i.createElementVNode("img",{class:"img",src:i.unref(o)},null,8,Yo)])]),_:1}))}}),Vc="",jt=z(Xo,[["__scopeId","data-v-786ac2a3"]]),Ut=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ae=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),s=r.pop(),u={provider:r.length>0?r[0]:o,prefix:s,name:c};return t&&!Le(u)?null:u}const a=r[0],l=a.split("-");if(l.length>1){const c={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!Le(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:a};return t&&!Le(c,n)?null:c}return null},Le=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Ht=Object.freeze({left:0,top:0,width:16,height:16}),Ne=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Me=Object.freeze({...Ht,...Ne}),at=Object.freeze({...Me,body:"",hidden:!1});function Qo(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Gt(e,t){const n=Qo(e,t);for(const o in at)o in Ne?o in e&&!(o in n)&&(n[o]=Ne[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Ko(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function a(l){if(n[l])return r[l]=[];if(!(l in r)){r[l]=null;const c=o[l]&&o[l].parent,s=c&&a(c);s&&(r[l]=[c].concat(s))}return r[l]}return Object.keys(n).concat(Object.keys(o)).forEach(a),r}function Zo(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let a={};function l(c){a=Gt(o[c]||r[c],a)}return l(t),n.forEach(l),Gt(e,a)}function qt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=Ko(e);for(const r in o){const a=o[r];a&&(t(r,Zo(e,r,a)),n.push(r))}return n}const Jo={provider:"",aliases:{},not_found:{},...Ht};function lt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Yt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!lt(e,Jo))return null;const n=t.icons;for(const r in n){const a=n[r];if(!r||typeof a.body!="string"||!lt(a,at))return null}const o=t.aliases||Object.create(null);for(const r in o){const a=o[r],l=a.parent;if(!r||typeof l!="string"||!n[l]&&!o[l]||!lt(a,at))return null}return t}const Xt=Object.create(null);function Wo(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function we(e,t){const n=Xt[e]||(Xt[e]=Object.create(null));return n[t]||(n[t]=Wo(e,t))}function Qt(e,t){return Yt(t)?qt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function er(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Be=!1;function Kt(e){return typeof e=="boolean"&&(Be=e),Be}function tr(e){const t=typeof e=="string"?Ae(e,!0,Be):e;if(t){const n=we(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function nr(e,t){const n=Ae(e,!0,Be);if(!n)return!1;const o=we(n.provider,n.prefix);return t?er(o,n.name,t):(o.missing.add(n.name),!0)}function or(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Be&&!t&&!e.prefix){let r=!1;return Yt(e)&&(e.prefix="",qt(e,(a,l)=>{nr(a,l)&&(r=!0)})),r}const n=e.prefix;if(!Le({provider:t,prefix:n,name:"a"}))return!1;const o=we(t,n);return!!Qt(o,e)}const Zt=Object.freeze({width:null,height:null}),Jt=Object.freeze({...Zt,...Ne}),rr=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ir=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Wt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(rr);if(o===null||!o.length)return e;const r=[];let a=o.shift(),l=ir.test(a);for(;;){if(l){const c=parseFloat(a);isNaN(c)?r.push(a):r.push(Math.ceil(c*t*n)/n)}else r.push(a);if(a=o.shift(),a===void 0)return r.join("");l=!l}}function ar(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),a=e.indexOf("</"+t);if(r===-1||a===-1)break;const l=e.indexOf(">",a);if(l===-1)break;n+=e.slice(r+1,a).trim(),e=e.slice(0,o).trim()+e.slice(l+1)}return{defs:n,content:e}}function lr(e,t){return e?"<defs>"+e+"</defs>"+t:t}function cr(e,t,n){const o=ar(e);return lr(o.defs,t+o.content+n)}const sr=e=>e==="unset"||e==="undefined"||e==="none";function ur(e,t){const n={...Me,...e},o={...Jt,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,o].forEach(y=>{const h=[],_=y.hFlip,w=y.vFlip;let C=y.rotate;_?w?C+=2:(h.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),h.push("scale(-1 1)"),r.top=r.left=0):w&&(h.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),h.push("scale(1 -1)"),r.top=r.left=0);let T;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:T=r.height/2+r.top,h.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:h.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:T=r.width/2+r.left,h.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}C%2===1&&(r.left!==r.top&&(T=r.left,r.left=r.top,r.top=T),r.width!==r.height&&(T=r.width,r.width=r.height,r.height=T)),h.length&&(a=cr(a,'<g transform="'+h.join(" ")+'">',"</g>"))});const l=o.width,c=o.height,s=r.width,u=r.height;let f,d;l===null?(d=c===null?"1em":c==="auto"?u:c,f=Wt(d,s/u)):(f=l==="auto"?s:l,d=c===null?Wt(f,u/s):c==="auto"?u:c);const m={},g=(y,h)=>{sr(h)||(m[y]=h.toString())};g("width",f),g("height",d);const p=[r.left,r.top,s,u];return m.viewBox=p.join(" "),{attributes:m,viewBox:p,body:a}}const fr=/\sid="(\S+)"/g,dr="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let pr=0;function mr(e,t=dr){const n=[];let o;for(;o=fr.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const l=typeof t=="function"?t(a):t+(pr++).toString(),c=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+l+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const ct=Object.create(null);function hr(e,t){ct[e]=t}function st(e){return ct[e]||ct[""]}function ut(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ft=Object.create(null),Re=["https://api.simplesvg.com","https://api.unisvg.com"],De=[];for(;Re.length>0;)Re.length===1||Math.random()>.5?De.push(Re.shift()):De.push(Re.pop());ft[""]=ut({resources:["https://api.iconify.design"].concat(De)});function gr(e,t){const n=ut(t);return n===null?!1:(ft[e]=n,!0)}function dt(e){return ft[e]}let en=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function yr(e,t){const n=dt(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(l=>{r=Math.max(r,l.length)});const a=t+".json?icons=";o=n.maxURL-r-n.path.length-a.length}return o}function vr(e){return e===404}const br=(e,t,n)=>{const o=[],r=yr(e,t),a="icons";let l={type:a,provider:e,prefix:t,icons:[]},c=0;return n.forEach((s,u)=>{c+=s.length+1,c>=r&&u>0&&(o.push(l),l={type:a,provider:e,prefix:t,icons:[]},c=s.length),l.icons.push(s)}),o.push(l),o};function _r(e){if(typeof e=="string"){const t=dt(e);if(t)return t.path}return"/"}const wr={prepare:br,send:(e,t,n)=>{if(!en){n("abort",424);return}let o=_r(t.provider);switch(t.type){case"icons":{const a=t.prefix,c=t.icons.join(","),s=new URLSearchParams({icons:c});o+=a+".json?"+s.toString();break}case"custom":{const a=t.uri;o+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let r=503;en(e+o).then(a=>{const l=a.status;if(l!==200){setTimeout(()=>{n(vr(l)?"abort":"next",l)});return}return r=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",r)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",r)})}};function Sr(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,a)=>r.provider!==a.provider?r.provider.localeCompare(a.provider):r.prefix!==a.prefix?r.prefix.localeCompare(a.prefix):r.name.localeCompare(a.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const a=r.provider,l=r.prefix,c=r.name,s=n[a]||(n[a]=Object.create(null)),u=s[l]||(s[l]=we(a,l));let f;c in u.icons?f=t.loaded:l===""||u.missing.has(c)?f=t.missing:f=t.pending;const d={provider:a,prefix:l,name:c};f.push(d)}),t}function tn(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function Cr(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(a=>{const l=a.icons,c=l.pending.length;l.pending=l.pending.filter(s=>{if(s.prefix!==r)return!0;const u=s.name;if(e.icons[u])l.loaded.push({provider:o,prefix:r,name:u});else if(e.missing.has(u))l.missing.push({provider:o,prefix:r,name:u});else return n=!0,!0;return!1}),l.pending.length!==c&&(n||tn([e],a.id),a.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),a.abort))})}))}let kr=0;function xr(e,t,n){const o=kr++,r=tn.bind(null,n,o);if(!t.pending.length)return r;const a={id:o,icons:t,callback:e,abort:r};return n.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(a)}),r}function Tr(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const a=typeof r=="string"?Ae(r,t,n):r;a&&o.push(a)}),o}var Er={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Fr(e,t,n,o){const r=e.resources.length,a=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let S=e.resources.slice(0);for(l=[];S.length>1;){const B=Math.floor(Math.random()*S.length);l.push(S[B]),S=S.slice(0,B).concat(S.slice(B+1))}l=l.concat(S)}else l=e.resources.slice(a).concat(e.resources.slice(0,a));const c=Date.now();let s="pending",u=0,f,d=null,m=[],g=[];typeof o=="function"&&g.push(o);function p(){d&&(clearTimeout(d),d=null)}function y(){s==="pending"&&(s="aborted"),p(),m.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),m=[]}function h(S,B){B&&(g=[]),typeof S=="function"&&g.push(S)}function _(){return{startTime:c,payload:t,status:s,queriesSent:u,queriesPending:m.length,subscribe:h,abort:y}}function w(){s="failed",g.forEach(S=>{S(void 0,f)})}function C(){m.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),m=[]}function T(S,B,R){const P=B!=="success";switch(m=m.filter(x=>x!==S),s){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(B==="abort"){f=R,w();return}if(P){f=R,m.length||(l.length?F():w());return}if(p(),C(),!e.random){const x=e.resources.indexOf(S.resource);x!==-1&&x!==e.index&&(e.index=x)}s="completed",g.forEach(x=>{x(R)})}function F(){if(s!=="pending")return;p();const S=l.shift();if(S===void 0){if(m.length){d=setTimeout(()=>{p(),s==="pending"&&(C(),w())},e.timeout);return}w();return}const B={status:"pending",resource:S,callback:(R,P)=>{T(B,R,P)}};m.push(B),u++,d=setTimeout(F,e.rotate),n(S,t,B.callback)}return setTimeout(F),_}function nn(e){const t={...Er,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,s,u){const f=Fr(t,c,s,(d,m)=>{o(),u&&u(d,m)});return n.push(f),f}function a(c){return n.find(s=>c(s))||null}return{query:r,find:a,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function on(){}const pt=Object.create(null);function Ir(e){if(!pt[e]){const t=dt(e);if(!t)return;const n=nn(t),o={config:t,redundancy:n};pt[e]=o}return pt[e]}function Br(e,t,n){let o,r;if(typeof e=="string"){const a=st(e);if(!a)return n(void 0,424),on;r=a.send;const l=Ir(e);l&&(o=l.redundancy)}else{const a=ut(e);if(a){o=nn(a);const l=e.resources?e.resources[0]:"",c=st(l);c&&(r=c.send)}}return!o||!r?(n(void 0,424),on):o.query(t,r,n)().abort}function rn(){}function Rr(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Cr(e)}))}function Or(e){const t=[],n=[];return e.forEach(o=>{(o.match(Ut)?t:n).push(o)}),{valid:t,invalid:n}}function Oe(e,t,n){function o(){const r=e.pendingIcons;t.forEach(a=>{r&&r.delete(a),e.icons[a]||e.missing.add(a)})}if(n&&typeof n=="object")try{if(!Qt(e,n).length){o();return}}catch(r){console.error(r)}o(),Rr(e)}function an(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Pr(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;const a=e.loadIcon;if(e.loadIcons&&(r.length>1||!a)){an(e.loadIcons(r,o,n),f=>{Oe(e,r,f)});return}if(a){r.forEach(f=>{const d=a(f,o,n);an(d,m=>{const g=m?{prefix:o,icons:{[f]:m}}:null;Oe(e,[f],g)})});return}const{valid:l,invalid:c}=Or(r);if(c.length&&Oe(e,c,null),!l.length)return;const s=o.match(Ut)?st(n):null;if(!s){Oe(e,l,null);return}s.prepare(n,o,l).forEach(f=>{Br(n,f,d=>{Oe(e,f.icons,d)})})}))}const $r=(e,t)=>{const n=Tr(e,!0,Kt()),o=Sr(n);if(!o.pending.length){let s=!0;return t&&setTimeout(()=>{s&&t(o.loaded,o.missing,o.pending,rn)}),()=>{s=!1}}const r=Object.create(null),a=[];let l,c;return o.pending.forEach(s=>{const{provider:u,prefix:f}=s;if(f===c&&u===l)return;l=u,c=f,a.push(we(u,f));const d=r[u]||(r[u]=Object.create(null));d[f]||(d[f]=[])}),o.pending.forEach(s=>{const{provider:u,prefix:f,name:d}=s,m=we(u,f),g=m.pendingIcons||(m.pendingIcons=new Set);g.has(d)||(g.add(d),r[u][f].push(d))}),a.forEach(s=>{const u=r[s.provider][s.prefix];u.length&&Pr(s,u)}),t?xr(t,o,a):rn};function Vr(e,t){const n={...e};for(const o in t){const r=t[o],a=typeof r;o in Zt?(r===null||r&&(a==="string"||a==="number"))&&(n[o]=r):a===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const Ar=/[\s,]+/;function Lr(e,t){t.split(Ar).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Nr(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/r,a%1===0?o(a):0)}}return t}function Mr(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Dr(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function zr(e){return"data:image/svg+xml,"+Dr(e)}function jr(e){return'url("'+zr(e)+'")'}const ln={...Jt,inline:!1},Ur={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Hr={display:"inline-block"},mt={backgroundColor:"currentColor"},cn={backgroundColor:"transparent"},sn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},un={webkitMask:mt,mask:mt,background:cn};for(const e in un){const t=un[e];for(const n in sn)t[e+n]=sn[n]}const ze={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";ze[e+"-flip"]=t,ze[e.slice(0,1)+"-flip"]=t,ze[e+"Flip"]=t});function fn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const dn=(e,t)=>{const n=Vr(ln,t),o={...Ur},r=t.mode||"svg",a={},l=t.style,c=typeof l=="object"&&!(l instanceof Array)?l:{};for(let y in t){const h=t[y];if(h!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[y]=h===!0||h==="true"||h===1;break;case"flip":typeof h=="string"&&Lr(n,h);break;case"color":a.color=h;break;case"rotate":typeof h=="string"?n[y]=Nr(h):typeof h=="number"&&(n[y]=h);break;case"ariaHidden":case"aria-hidden":h!==!0&&h!=="true"&&delete o["aria-hidden"];break;default:{const _=ze[y];_?(h===!0||h==="true"||h===1)&&(n[_]=!0):ln[y]===void 0&&(o[y]=h)}}}const s=ur(e,n),u=s.attributes;if(n.inline&&(a.verticalAlign="-0.125em"),r==="svg"){o.style={...a,...c},Object.assign(o,u);let y=0,h=t.id;return typeof h=="string"&&(h=h.replace(/-/g,"_")),o.innerHTML=mr(s.body,h?()=>h+"ID"+y++:"iconifyVue"),i.h("svg",o)}const{body:f,width:d,height:m}=e,g=r==="mask"||(r==="bg"?!1:f.indexOf("currentColor")!==-1),p=Mr(f,{...u,width:d+"",height:m+""});return o.style={...a,"--svg":jr(p),width:fn(u.width),height:fn(u.height),...Hr,...g?mt:cn,...c},i.h("span",o)};if(Kt(!0),hr("",wr),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!or(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;gr(n,r)||console.error(o)}catch{console.error(o)}}}}const Gr={...Me,body:""},qr=i.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let o;if(typeof e!="string"||(o=Ae(e,!1,!0))===null)return this.abortLoading(),null;let r=tr(o);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:$r([o],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),n){r=Object.assign({},r);const l=n(r.body,o.name,o.prefix,o.provider);typeof l=="string"&&(r.body=l)}const a=["iconify"];return o.prefix!==""&&a.push("iconify--"+o.prefix),o.provider!==""&&a.push("iconify--"+o.provider),{data:r,classes:a}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return dn(Gr,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),dn({...Me,...t.data},n)}}),pn=i.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:b.getCSSVar("--xg-blue")}},setup(e){const t=e;return(n,o)=>(i.openBlock(),i.createElementBlock("span",{class:"icon",style:i.normalizeStyle(["color: "+n.color,"display: inline-flex","justify-content: center","align-items: center","cursor: pointer","font-size: 1em"])},[i.createVNode(i.unref(qr),{icon:t.icon,color:n.color},null,8,["icon","color"])],4))}}),Yr={class:"loading-11",ref:"loading11"},Xr={class:"container container-1"},Qr={class:"container container-2"},Kr={class:"container container-3"},Zr=i.defineComponent({__name:"Loading11",props:{color:{default:b.getCSSVar("--xg-blue")},width:{default:"0.8em"}},setup(e){const t=e;return(n,o)=>(i.openBlock(),i.createElementBlock("div",Yr,[i.createElementVNode("div",{class:"loading-11-inner",style:i.normalizeStyle({width:t.width,height:t.width})},[i.createElementVNode("div",Xr,[i.createElementVNode("div",{class:"dot dot-1",style:i.normalizeStyle({backgroundColor:t.color})},null,4),i.createElementVNode("div",{class:"dot dot-2",style:i.normalizeStyle({backgroundColor:t.color})},null,4),i.createElementVNode("div",{class:"dot dot-3",style:i.normalizeStyle({backgroundColor:t.color})},null,4),i.createElementVNode("div",{class:"dot dot-4",style:i.normalizeStyle({backgroundColor:t.color})},null,4)]),i.createElementVNode("div",Qr,[i.createElementVNode("div",{class:"dot dot-1",style:i.normalizeStyle({backgroundColor:t.color})},null,4),i.createElementVNode("div",{class:"dot dot-2",style:i.normalizeStyle({backgroundColor:t.color})},null,4),i.createElementVNode("div",{class:"dot dot-3",style:i.normalizeStyle({backgroundColor:t.color})},null,4),i.createElementVNode("div",{class:"dot dot-4",style:i.normalizeStyle({backgroundColor:t.color})},null,4)]),i.createElementVNode("div",Kr,[i.createElementVNode("div",{class:"dot dot-1",style:i.normalizeStyle({backgroundColor:t.color})},null,4),i.createElementVNode("div",{class:"dot dot-2",style:i.normalizeStyle({backgroundColor:t.color})},null,4),i.createElementVNode("div",{class:"dot dot-3",style:i.normalizeStyle({backgroundColor:t.color})},null,4),i.createElementVNode("div",{class:"dot dot-4",style:i.normalizeStyle({backgroundColor:t.color})},null,4)])],4)],512))}}),Nc="",mn=z(Zr,[["__scopeId","data-v-b6f6b2a6"]]),Jr={key:0,class:"loading",style:{"margin-right":"6px"}},ht=.03,gt=.06,Se=i.defineComponent({customOptions:{Loading11:mn},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},width:{default:"auto"},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"16px"},fontWeight:{default:"normal"},borderRadius:{default:"4px"},stylePattern:{default:"fullfill"},fontColor:{},borderColor:{},bgColor:{},bgColorStart:{},bgColorEnd:{},asyncClick:{}},emits:["yz-click","click"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=i.ref(),l=b.getCSSVar("--xg-blue","#5a82f0"),c=i.ref(o.fontColor),s=i.ref(o.borderColor),u=i.ref(o.bgColor),f=i.ref(c.value),d=i.ref(s.value),m=i.ref(u.value),g=i.ref(o.bgColorStart||""),p=i.ref(o.bgColorEnd||""),y=o.bgColorStart&&o.bgColorEnd;function h(P){switch(P){case"transparent":s.value=o.borderColor||"rgba(255,255,255,0)",u.value=o.bgColor||"rgba(255,255,255,0)",c.value=o.fontColor||l;break;case"outline":s.value=o.borderColor||l,u.value=o.bgColor||"rgba(255,255,255,0)",c.value=o.fontColor||l;break;case"fullfill":default:s.value=o.borderColor||"rgba(255,255,255,0)",u.value=o.bgColor||l,c.value=o.fontColor||b.__color.set(u.value).opposite(!0).toString();break}f.value=c.value,d.value=s.value,m.value=u.value,y&&(g.value=o.bgColorStart,p.value=o.bgColorEnd,u.value=`linear-gradient(180deg, ${g.value} 0%, ${p.value} 100%)`)}i.watch(()=>o.stylePattern,()=>{h(o.stylePattern)},{immediate:!0});const _=i.ref(o.disabled?"0.6":"1"),w=i.ref(o.disabled?"not-allowed":"pointer");let C=!1;const T=()=>{o.disabled||(C=!0,o.stylePattern=="transparent"&&(c.value=b.__color.set(f.value).darken(ht).toString()),s.value=b.__color.set(d.value).darken(ht).toString(),y?u.value=`linear-gradient(180deg, ${p.value} 0%, ${g.value} 100%)`:u.value=b.__color.set(m.value).darken(ht).toString())},F=()=>{o.disabled||(C=!1,c.value=f.value,s.value=d.value,y?u.value=`linear-gradient(180deg, ${g.value} 0%, ${p.value} 100%)`:u.value=m.value)},S=i.ref(!1),B=()=>{o.disabled||S.value||(o.stylePattern=="transparent"&&(c.value=b.__color.set(f.value).darken(gt).toString()),s.value=b.__color.set(d.value).darken(gt).toString(),y?u.value=`linear-gradient(180deg, ${g.value} 0%, ${p.value} 100%)`:u.value=b.__color.set(m.value).darken(gt).toString(),setTimeout(()=>{C?T():F()},150),r("yz-click"),r("click"),o.asyncClick&&(S.value=!0,o.asyncClick().then(()=>{S.value=!1}).catch(()=>{S.value=!1})))},R=ie.throttle(B,300);return t({el:a}),(P,x)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"el",ref:a,class:"button",style:i.normalizeStyle([`opacity: ${_.value}`,`border: 1px solid ${s.value}`,`background: ${u.value}`,`color: ${c.value}`,`border-radius: ${o.borderRadius}`,`width: ${o.width}`,`height: ${o.height}`,`line-height: ${o.height}`,`font-size: ${o.fontSize}`,`cursor: ${w.value}`,"user-select: none","box-sizing: border-box","display: inline-flex","justify-content: center","align-items: center","z-index: 0"]),onMouseover:T,onMouseleave:F,onClick:x[0]||(x[0]=(...q)=>i.unref(R)&&i.unref(R)(...q))},[i.createElementVNode("label",{class:"label truncate",style:i.normalizeStyle({padding:"0 "+P.padding,cursor:w.value,display:"inline-flex",justifyContent:"center",alignItems:"center",fontWeight:o.fontWeight||"normal"})},[S.value?(i.openBlock(),i.createElementBlock("div",Jr,[i.createVNode(mn,{color:c.value},null,8,["color"])])):i.createCommentVNode("",!0),i.renderSlot(P.$slots,"default",{},()=>[P.icon&&P.iconPosition==="left"?(i.openBlock(),i.createBlock(pn,{key:0,icon:P.icon,color:c.value,style:i.normalizeStyle({marginRight:"4px",cursor:w.value})},null,8,["icon","color","style"])):i.createCommentVNode("",!0),i.createElementVNode("span",{style:i.normalizeStyle({cursor:w.value})},i.toDisplayString(P.label),5),P.icon&&P.iconPosition==="right"?(i.openBlock(),i.createBlock(pn,{key:1,icon:P.icon,color:c.value,style:i.normalizeStyle({marginLeft:"4px",cursor:w.value})},null,8,["icon","color","style"])):i.createCommentVNode("",!0)])],4)],36))}}),yt=i.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},global:{type:Boolean,default:!0},color:{default:"rgba(0, 0, 0, 0.25)"}},setup(e,{expose:t}){const n=e,o=i.computed(()=>({display:n.visible?"block":"none",overflow:"hidden","background-color":n.color,position:"fixed","z-index":"99999",width:"100%",height:"100%",inset:"0"})),r=i.ref(),a=b.atomReadStyle(document.documentElement,"overflow")||"visible";let l="";return i.watch(()=>n.visible,()=>{n.global?b.atomWriteStyle(document.documentElement,"overflow",n.visible?"hidden":a):(l||(l=b.atomReadStyle(r.value.parentElement,"overflow")||"visible"),b.atomWriteStyle(r.value.parentElement,"overflow",n.visible?"hidden":l))},{immediate:!0}),t({}),(c,s)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"el",ref:r,class:"overlay",style:i.normalizeStyle(o.value)},[i.renderSlot(c.$slots,"default")],4))}}),j=i.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},supportCopyText:{type:Boolean,default:!1}},emits:["ready","update","clipboard_success","clipboard_error","start","end"],setup(e,{expose:t,emit:n}){const o=e,r=n;let a="start";const l=()=>{a="start",r("start")},c=()=>{a="end",r("end")},s=()=>{a=="start"?c():l()},u=i.ref();let f,d,m=!1;return i.watchEffect(()=>{u.value&&(f||(f=b.useElementEventBus(u.value),f.eb.on("resize",()=>{m&&r("update",f)}),f.eb.on("mouseEnter",()=>{o.effectTriggerTiming=="mouseMove"&&s()}),f.eb.on("mouseLeave",()=>{o.effectTriggerTiming=="mouseMove"&&s()}),f.eb.on("tap",()=>{if(o.effectTriggerTiming=="click"&&s(),o.supportCopyText){const g=b.getInnerText(u.value);b.useClipboard(g).then(()=>{r("clipboard_success",g)}).catch(p=>{r("clipboard_error",p.toString())})}}),o.effectTriggerTiming!=="manual"&&l(),o.effectTriggerTiming=="immediate"&&s(),f.start().then(()=>{d?.(f),r("ready",f),m=!0})))}),i.onMounted(()=>{}),i.onUnmounted(()=>{f?.end()}),t({getController:()=>new Promise(g=>{if(f)return g(f);d=g}),getElement:()=>u.value,getRect:()=>u.value.getBoundingClientRect()}),(g,p)=>(i.openBlock(),i.createElementBlock("div",i.mergeProps({ref_key:"r",ref:u,class:"container",style:{position:"relative",boxSizing:"border-box",display:o.type=="shrink"?"inline-block":"block",width:o.type=="full"?"100%":"auto",height:o.type=="full"?"100%":"auto"}},g.$attrs),[i.renderSlot(g.$slots,"default")],16))}}),de=i.defineComponent({customOptions:{Overlay:yt,Container:j},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},global:{type:Boolean,default:!0},overlayBgColor:{},popValue:{}},emits:["open","close","resize","clickOverlay"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=new b.Timeline({frameDuration:o.dur}),l=i.reactive({position:"absolute",opacity:"1",transformOrigin:"center",willChange:"transform"}),c=i.ref(!1),s=i.ref("full");i.watch(()=>[o.directionFrom,o.popValue],()=>{a.clear();const y=!o.popValue,h=o.popValue?o.popValue:100,_=o.popValue?"px":"%";switch(o.directionFrom){case"left":l.height="100%",y?delete l.width:l.width=`${h}${_}`,l.top="0",l.bottom="0",delete l.right,a.addTween({left:h},{left:0},{easeFunction:b.Easing.Quadratic.Out,onUpdate(w){l.left=`-${w.left}${_}`},onComplete:d});break;case"right":l.height="100%",y?delete l.width:l.width=`${h}${_}`,l.top="0",l.bottom="0",delete l.left,a.addTween({right:h},{right:0},{easeFunction:b.Easing.Quadratic.Out,onUpdate(w){l.right=`-${w.right}${_}`},onComplete:d});break;case"top":l.width="100%",y?delete l.height:l.height=`${h}${_}`,l.left="0",l.right="0",delete l.bottom,a.addTween({top:h},{top:0},{easeFunction:b.Easing.Quadratic.Out,onUpdate(w){l.top=`-${w.top}${_}`},onComplete:d});break;case"bottom":l.width="100%",y?delete l.height:l.height=`${h}${_}`,l.left="0",l.right="0",delete l.top,a.addTween({bottom:h},{bottom:0},{easeFunction:b.Easing.Quadratic.Out,onUpdate(w){l.bottom=`-${w.bottom}${_}`},onComplete:d});break;case"center":delete l.width,delete l.height,l.left="50%",delete l.right,l.top="50%",delete l.bottom,a.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:b.Easing.Quadratic.Out,onUpdate(w){l.transform=`translate(-50%, -50%) scale(${w.scale})`,l.opacity=`${w.opacity}`},onComplete:d});break;case"absolute":l.width=o.absoluteWidth,l.height=o.absoluteHeight,l.left=o.absoluteLeft,l.top=o.absoluteTop,delete l.right,delete l.bottom;break}switch(o.directionFrom){case"center":s.value="shrink",l.transform="translate(-50%, -50%)";break;case"absolute":s.value="shrink",delete l.transform,delete l.opacity;break;default:s.value="full",delete l.transform,delete l.opacity;break}y&&(s.value="shrink")},{immediate:!0}),i.watch(()=>o.absoluteLeft,()=>{switch(o.directionFrom){case"absolute":l.left=o.absoluteLeft;break}}),i.watch(()=>o.absoluteTop,()=>{switch(o.directionFrom){case"absolute":l.top=o.absoluteTop;break}}),i.watch(()=>o.absoluteWidth,()=>{switch(o.directionFrom){case"absolute":l.width=o.absoluteWidth;break}}),i.watch(()=>o.absoluteHeight,()=>{switch(o.directionFrom){case"absolute":l.height=o.absoluteHeight;break}});const u=y=>{r("resize",y.rect)};let f="open";function d(){f=="open"?r("open"):(c.value=!1,r("close"))}function m(){c.value=!0,f="open",a.play()}function g(){switch(f="close",o.directionFrom){case"absolute":d();break;default:a.reverse();break}}function p(y){const h=o.directionFrom=="absolute"&&o.absoluteWidth=="100%"&&o.absoluteHeight=="100%"?"pop-content":"pop";y.target&&b.hasClass(y.target,h)&&(o.closeWhenClickOverlay&&g(),r("clickOverlay"))}return t({open:m,close:g}),(y,h)=>(i.openBlock(),i.createBlock(yt,{visible:c.value,global:o.global,color:o.overlayBgColor},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%"},onClick:p},[i.createVNode(j,{class:"pop-content",type:s.value,style:i.normalizeStyle(l),onReady:u,onUpdate:u},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"default",{},()=>[h[0]||(h[0]=i.createElementVNode("div",null,null,-1))])]),_:3},8,["type","style"])])]),_:3},8,["visible","global","color"]))}}),Wr={viewBox:"6 6 12 12",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",fill:"none",style:{display:"block",transformOrigin:"center"}},ei=["fill"],ti=["fill"],hn=i.defineComponent({__name:"SVGClose",props:{color:{default:"#666666"}},setup(e){const t=e;return(n,o)=>(i.openBlock(),i.createElementBlock("svg",Wr,[i.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.22785 6.22781C6.53159 5.92407 7.02405 5.92407 7.32779 6.22781L17.7722 16.6722C18.0759 16.976 18.0759 17.4685 17.7722 17.7722C17.4685 18.0759 16.976 18.0759 16.6723 17.7722L6.22785 7.32775C5.92411 7.02401 5.92411 6.53155 6.22785 6.22781Z",fill:t.color},null,8,ei),i.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.7722 6.22781C18.0759 6.53155 18.0759 7.02401 17.7722 7.32775L7.32775 17.7722C7.02401 18.0759 6.53155 18.0759 6.22781 17.7722C5.92406 17.4685 5.92407 16.976 6.22781 16.6722L16.6722 6.22781C16.976 5.92406 17.4684 5.92406 17.7722 6.22781Z",fill:t.color},null,8,ti)]))}}),ni={viewBox:"4 4 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{display:"block",transformOrigin:"center"}},oi=["id"],ri=["stop-color"],ii=["stop-color"],ai=["fill"],li=["fill"],ci=["fill"],gn=i.defineComponent({__name:"SVGWarn",props:{colorStart:{default:b.getCSSVar("--xg-red","#fa503c")},colorEnd:{default:b.getCSSVar("--xg-red-light","#fa8c78")}},setup(e){const t=e,n=i.computed(()=>b.__color.set(t.colorStart).opposite(!0).toString());return(o,r)=>(i.openBlock(),i.createElementBlock("svg",ni,[i.createElementVNode("defs",null,[i.createElementVNode("linearGradient",{id:`circle_bg_${o.colorStart}_${o.colorEnd}`,x1:"12",y1:"4",x2:"12",y2:"16",gradientUnits:"userSpaceOnUse"},[i.createElementVNode("stop",{offset:"0","stop-color":o.colorStart},null,8,ri),i.createElementVNode("stop",{offset:"1","stop-color":o.colorEnd},null,8,ii)],8,oi)]),i.createElementVNode("circle",{cx:"12",cy:"12",r:"8",fill:`url(#circle_bg_${o.colorStart}_${o.colorEnd})`},null,8,ai),i.createElementVNode("path",{d:"M11.4666 8.80006C11.4666 8.50551 11.7053 8.26672 11.9999 8.26672C12.2944 8.26672 12.5332 8.50551 12.5332 8.80006V13.0667C12.5332 13.3613 12.2944 13.6001 11.9999 13.6001C11.7053 13.6001 11.4666 13.3613 11.4666 13.0667V8.80006Z",fill:n.value},null,8,li),i.createElementVNode("path",{d:"M11.4666 15.2001C11.4666 14.9055 11.7053 14.6667 11.9999 14.6667C12.2944 14.6667 12.5332 14.9055 12.5332 15.2001C12.5332 15.4946 12.2944 15.7334 11.9999 15.7334C11.7053 15.7334 11.4666 15.4946 11.4666 15.2001Z",fill:n.value},null,8,ci)]))}}),si=["viewBox"],ui=["cx","cy","rx","ry","fill"],yn=i.defineComponent({__name:"SVGEllipse",props:{color:{default:"#e6e6e6"}},setup(e){const t=e,n=i.ref(0),o=i.ref(0);function r(a){n.value=a.rect.width,o.value=a.rect.height}return(a,l)=>(i.openBlock(),i.createBlock(j,{type:"full",onReady:r},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${n.value} ${o.value}`,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",fill:"none",style:{display:"block",transformOrigin:"center"}},[i.createElementVNode("ellipse",{cx:n.value*.5,cy:o.value*.5,rx:n.value*.5,ry:o.value*.5,fill:t.color},null,8,ui)],8,si))]),_:1}))}}),fi={class:"dialog-parent"},di={key:0,class:"top-icon"},pi={class:"top-icon-warn"},mi={class:"top-icon-warn-shadow"},hi={key:0,class:"title"},gi={key:0,class:"title-inner"},yi={class:"custom-content"},vi={class:"custom-content-default"},bi=i.defineComponent({customOptions:{Overlay:yt,Pop:de,Button:Se,SVGClose:hn,SVGWarn:gn,SVGEllipse:yn},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200},minWidth:{default:"280px"},maxWidth:{default:"320px"},overlayBgColor:{},stylePattern:{default:"fullfill"},borderRadius:{default:"12px"}},emits:["open","close","cancel","confirm"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=i.ref(),l=i.ref(""),c=i.ref(""),s=i.ref(!1),u=i.ref(""),f=i.ref(""),d=i.ref(o.stylePattern),m=i.ref("transparent"),g=i.ref("transparent"),p=i.ref(!1),y=i.ref(""),h=i.ref(""),_=i.ref(!1);function w(x){switch(d.value=x,x){case"fullfill":m.value="fullfill",g.value="fullfill",p.value=!1,y.value="",h.value="",_.value=!1;break;case"transparent":m.value="transparent",g.value="transparent",p.value=!1,y.value="",h.value="",_.value=!1;break;case"icon-warn-red":m.value="transparent",g.value="fullfill",p.value=!0,y.value=b.getCSSVar("--xg-red","#fa503c"),h.value=b.getCSSVar("--xg-red-light","#fa8c78"),_.value=!0;break;case"icon-warn-blue":m.value="transparent",g.value="fullfill",p.value=!0,y.value=b.getCSSVar("--xg-blue","#5a82f0"),h.value=b.getCSSVar("--xg-blue-light","#66b3ff"),_.value=!0;break}}i.watch(()=>o.stylePattern,()=>{w(o.stylePattern)},{immediate:!0});let C,T;const F=()=>{r("open")},S=()=>{r("close")};function B(x){l.value=x?.title||"",c.value=x?.content||"",s.value=typeof x?.showClose=="boolean"?x?.showClose:!1,u.value=x?.cancelText||"",f.value=x?.confirmText||"",w(x?.stylePattern||o.stylePattern),C=x?.onCancel,T=x?.onConfirm,a.value.open()}function R(){a.value.close(),C?.(),r("cancel")}function P(){a.value.close(),T?.(),r("confirm")}return t({open:B,close:R}),(x,q)=>(i.openBlock(),i.createBlock(de,{ref_key:"popRef",ref:a,directionFrom:"center",closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,overlayBgColor:o.overlayBgColor,onOpen:F,onClose:S},{default:i.withCtx(()=>[i.createElementVNode("div",fi,[i.createElementVNode("div",{class:"dialog",style:i.normalizeStyle({minWidth:o.minWidth,maxWidth:o.maxWidth})},[p.value?(i.openBlock(),i.createElementBlock("div",di,[i.createElementVNode("div",pi,[i.createVNode(gn,{colorStart:y.value,colorEnd:h.value},null,8,["colorStart","colorEnd"])]),i.createElementVNode("div",mi,[i.createVNode(yn)])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"dialog-inner",style:i.normalizeStyle({paddingTop:p.value?"24px":"0px",borderRadius:o.borderRadius})},[l.value||s.value?(i.openBlock(),i.createElementBlock("div",hi,[l.value?(i.openBlock(),i.createElementBlock("div",gi,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),s.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:"close",onClick:R},[i.createElementVNode("div",null,[i.createVNode(hn)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",yi,[i.renderSlot(x.$slots,"default",{},()=>[i.createElementVNode("div",vi,i.toDisplayString(c.value),1)],!0)]),u.value||f.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["btns",[d.value,_.value?"vertical":""]])},[u.value?(i.openBlock(),i.createBlock(Se,{key:0,class:"btn",fontColor:"#333333",stylePattern:m.value,borderRadius:p.value?"44px":"0",borderColor:p.value?"#cccccc":"",bgColor:m.value=="transparent"?"#ffffff":"#f5f5f5",onClick:R},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(u.value),1)]),_:1},8,["stylePattern","borderRadius","borderColor","bgColor"])):i.createCommentVNode("",!0),f.value?(i.openBlock(),i.createBlock(Se,{key:1,class:"btn",stylePattern:g.value,borderRadius:p.value?"44px":"0",bgColor:g.value=="transparent"?"#ffffff":"",bgColorStart:y.value,bgColorEnd:h.value,fontWeight:g.value=="transparent"?"bold":"",onClick:P},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.value),1)]),_:1},8,["stylePattern","borderRadius","bgColor","bgColorStart","bgColorEnd","fontWeight"])):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0)],4)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),Mc="",_i=z(bi,[["__scopeId","data-v-9cfe37ca"]]),vn=document.getElementById("teleport")||document.documentElement;function bn(e){{const t=document.createElement("div");vn.appendChild(t);const n=i.h(_i,{onClose:()=>{vn.removeChild(t)}});return i.render(n,t),n.component?.exposed?.open(e),()=>{n.component?.exposed?.close()}}}const wi={class:"xg-footer-inner"},Si=i.defineComponent({customOptions:{Button:Se},inheritAttrs:!0,__name:"Footer",props:{billsn:{default:0}},setup(e){const t=e,n=i.inject("context");re.useRouter();function o(){n.axios.post(`/api/v6/bill/${t.billsn}/pay`,{type:"B",openid:"quickpassapp"}).then(l=>{console.log(l),console.log(JSON.stringify(l)),bn({title:"",content:"请求成功,自行查看结果",confirmText:"知道了"})}).catch(l=>{console.log(l),console.log(JSON.stringify(l)),bn({title:"接口出错",content:l.response.data.error,confirmText:"知道了"})})}const r=i.ref("0px");let a;return i.onMounted(()=>{a=b.useSafeArea$().subscribe(l=>{r.value=l.bottom})}),i.onUnmounted(()=>{a?.unsubscribe()}),(l,c)=>(i.openBlock(),i.createElementBlock("div",{class:"xg-footer",style:i.normalizeStyle({paddingBottom:r.value})},[i.createElementVNode("div",wi,[i.createVNode(Se,{label:"去支付",width:"100%",onClick:o})])],4))}}),Dc="",_n=z(Si,[["__scopeId","data-v-3382d9b1"]]),Ci={class:"text"},ki=i.defineComponent({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"}},setup(e,{expose:t,emit:n}){const o=e,r=[{name:"蓝牌",style:{"background-color":"#0078f0",color:"#ffffff"}},{name:"绿牌",style:{"background-color":"#00f08c",color:"#000000"}},{name:"黄牌",style:{"background-color":"#fac800",color:"#000000"}},{name:"黄绿",style:{background:"linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%)",color:"#000000"}},{name:"黑牌",style:{"background-color":"#222222",color:"#ffffff"}},{name:"白牌",style:{"background-color":"#ffffff",color:"#000000",border:"1px solid #999999"}},{name:"未知",style:{"background-color":"#cccccc",color:"#ffffff"}}];function a(u){switch(u){case"b":case"蓝牌":u="蓝牌";break;case"g":case"绿牌":u="绿牌";break;case"y":case"黄牌":u="黄牌";break;case"q":case"黄绿":u="黄绿";break;case"d":case"黑牌":u="黑牌";break;case"w":case"白牌":u="白牌";break;default:u="未知";break}const f=r.filter(d=>d.name===u);return f.length?f[0]:a("未知")}const l=i.ref(a(o.plateType||"")),c=i.ref(),s=i.ref(14);return i.onMounted(()=>{s.value=b.getEmSize(c.value)}),t({}),(u,f)=>(i.openBlock(),i.createElementBlock("div",{class:"plate-display",ref_key:"el",ref:c},[u.displayType=="dot"&&u.plate!=="无牌车"?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["leading",u.displayType]),style:i.normalizeStyle({...l.value.style,width:s.value+"px",height:s.value+"px",marginRight:.36*s.value+"px"})},i.toDisplayString(l.value.name),7)):i.createCommentVNode("",!0),u.displayType=="chinese"&&u.plate!=="无牌车"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["leading",u.displayType]),style:i.normalizeStyle(l.value.style)},i.toDisplayString(l.value.name),7)):i.createCommentVNode("",!0),u.displayType=="plaintext"&&u.plate!=="无牌车"?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["leading",u.displayType])},i.toDisplayString(l.value.name),3)):i.createCommentVNode("",!0),i.createElementVNode("div",Ci,i.toDisplayString(u.plate),1)],512))}}),zc="",wn=z(ki,[["__scopeId","data-v-a815b5f2"]]),Sn=i.defineComponent({customOptions:{Container:j},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=i.reactive({}),l=i.reactive({});let c=o.name,s=o.duration,u=o.timingFunction,f=o.delay,d=o.repeat,m=o.direction;function g(S){switch(c=S,c){case"superRainbow":s=o.duration||15e3;break;case"heartBeat":s=o.duration||1300;break;case"statusProcessing":s=o.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":s=o.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":s=o.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":s=o.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":s=o.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":s=o.duration||600;break;default:s=o.duration||500;break}switch(c){case"superRainbow":u=o.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":u=o.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":u=o.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":u=o.timingFunction||"ease-in-out";break;default:u=o.timingFunction||"ease";break}switch(c){default:f=o.delay||0;break}switch(c){case"superRainbow":case"statusProcessing":d=o.repeat||"infinite";break;default:d=o.repeat||1;break}switch(c){case"superRainbow":m=o.direction||"alternate";break;default:m=o.direction||"normal";break}switch(c){case"hinge":case"rotateFall":l.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":l.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":l.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":l.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":l.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":l.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":l.transformOrigin="right bottom";break;default:delete l.transformOrigin;break}switch(c){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":a.overflow="visible";break;default:a.overflow="hidden";break}switch(c){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":l.backfaceVisibility="visible";break;default:delete l.backfaceVisibility;break}}const p=i.ref(),y=S=>{a.perspective=o.perspective,S.eb.on("animationstart",B=>{r("cssanimationstart",B.animationName)}),S.eb.on("animationend",B=>{r("cssanimationend",B.animationName)})};function h(){p.value.style.animation="none",p.value.offsetHeight,p.value.style.animation=null}const _=()=>{l.animation="none"},w=()=>{h(),l.animation=`${s}ms ${u} ${f}ms ${d} ${m} ${o.fillMode} ${o.playState} ${c}`},C=S=>{S&&g(S),_(),m="normal",w()},T=S=>{S&&g(S),_(),m="reverse",w()},F=()=>{l.animation="none"};return i.watch(()=>o.name,()=>{g(o.name)},{immediate:!0}),t({trigger:C,triggerReverse:T,clear:F}),(S,B)=>(i.openBlock(),i.createBlock(j,{class:"css-animation",type:o.containerType,supportCopyText:o.supportCopyText,effectTriggerTiming:o.effectTriggerTiming,style:i.normalizeStyle(a),onReady:y,onStart:_,onEnd:w},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"css-animation-inner",ref_key:"animationRef",ref:p,style:i.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...l})},[i.renderSlot(S.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),jc="",Cn=i.defineComponent({customOptions:{Container:j,CSSAnimation:Sn},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:b.Easing.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=i.ref(),l=i.reactive({}),c=()=>{r("ready",S,B)},s=()=>{y()},u=i.ref();let f="rotateRightSideFirst",d=o.effect;function m(R,P){switch(d){case"static":P();break;default:R();break}}let g=!1;const p=new b.Timeline,y=()=>{const R={},P={};p.clear(),p.frameDuration=o.duration,m(()=>{f=d},()=>{p.addTween(R,P,{delay:o.delay/o.duration,easeFunction:o.easeFunction,onStart:()=>{r(g?"pageCloseStart":"pageOpenStart")},onUpdate:x=>{l.transform="","x"in x&&(l.transform+=` translateX(${x.x}%)`),"y"in x&&(l.transform+=` translateY(${x.y}%)`),"rx"in x&&(l.transform+=` rotateX(${x.rx}deg)`),"ry"in x&&(l.transform+=` rotateY(${x.ry}deg)`),"scale"in x&&(l.transform+=` scale(${x.scale})`),"opacity"in x&&(l.opacity=`${x.opacity}`)},onComplete:()=>{r(g?"pageCloseEnd":"pageOpenEnd")}})})};i.watch(()=>[o.effect,o.delay,o.duration,o.easeFunction],()=>{d=o.effect,y()},{immediate:!0});const h=()=>{r(g?"pageCloseStart":"pageOpenStart")},_=()=>{r(g?"pageCloseEnd":"pageOpenEnd")},w=()=>{m(()=>{u.value.trigger(f)},()=>{p.play()})},C=()=>{m(()=>{u.value.triggerReverse(f)},()=>{p.reverse()})},T=()=>{l.transform="none",l.opacity="1"};function F(){m(()=>{T()},()=>{u.value?.clear()})}const S=R=>{R&&(d=R,y()),g=!1,F(),w()},B=R=>{R&&(d=R,y()),g=!0,F(),C()};return t({open:S,close:B,clear:T}),(R,P)=>(i.openBlock(),i.createBlock(j,{class:"page",ref_key:"pageRef",ref:a,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:c,onUpdate:s},{default:i.withCtx(()=>[i.createVNode(Sn,{ref_key:"cssAnimationRef",ref:u,containerType:"full",effectTriggerTiming:"manual",duration:o.duration,delay:o.delay,timingFunction:o.timingFunction,onCssanimationstart:h,onCssanimationend:_},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"page-inner",style:i.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...l})},[i.renderSlot(R.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),kn=i.defineComponent({customOptions:{Page:Cn,Container:j},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:b.Easing.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(e,{expose:t,emit:n}){const o=e,r=n;let a=-1,l=-1,c;const s=[];let u=[],f=[],d=[];function m(O){return O>=0&&O<u.length}function g(){return l>a}function p(O,v,oe){switch(O){case a:return g()?v:oe;case l:return g()?oe:v;default:return"static"}}function y(O,v){switch(O){case"moveToLeft":return p(v,"moveToLeft","moveFromRight");case"moveToRight":return p(v,"moveToRight","moveFromLeft");case"moveToTop":return p(v,"moveToTop","moveFromBottom");case"moveToBottom":return p(v,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return p(v,"fade","moveFromLeft");case"moveFromRightPrevFade":return p(v,"fade","moveFromRight");case"moveFromTopPrevFade":return p(v,"fade","moveFromTop");case"moveFromBottomPrevFade":return p(v,"fade","moveFromBottom");case"moveToLeftFade":return p(v,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return p(v,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return p(v,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return p(v,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return p(v,"moveToLeft","moveFromRight");case"moveToRightEasing":return p(v,"moveToRight","moveFromLeft");case"moveToTopEasing":return p(v,"moveToTop","moveFromBottom");case"moveToBottomEasing":return p(v,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return p(v,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return p(v,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return p(v,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return p(v,"scaleToSmall","moveFromBottom");case"scaleSmall":return p(v,"scaleToSmall","scaleFromLarge");case"scaleLarge":return p(v,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return p(v,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return p(v,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return p(v,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return p(v,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return p(v,"moveToBottom","scaleFromSmall");case"glueToLeft":return p(v,"rotateRightSideFirst","moveFromRight");case"glueToRight":return p(v,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return p(v,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return p(v,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return p(v,"flipOutLeft","flipInRight");case"flipToRight":return p(v,"flipOutRight","flipInLeft");case"flipToTop":return p(v,"flipOutTop","flipInBottom");case"flipToBottom":return p(v,"flipOutBottom","flipInTop");case"rotateFall":return p(v,"rotateFall","scaleFromSmall");case"newspaper":return p(v,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return p(v,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return p(v,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return p(v,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return p(v,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return p(v,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return p(v,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return p(v,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return p(v,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return p(v,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return p(v,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return p(v,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return p(v,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return p(v,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return p(v,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return p(v,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return p(v,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return p(v,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return p(v,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return p(v,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return p(v,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return p(v,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return p(v,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return p(v,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return p(v,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return p(v,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return p(v,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return p(v,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return p(v,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return p(v,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return p(v,"rotateSlideOut","rotateSlideIn")}}function h(O,v=600,oe=600){switch(O){case a:return v;case l:return oe;default:return o.duration}}function _(O,v){switch(O){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return h(v,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return h(v,700,600);case"scaleSmall":return h(v,700,500);case"scaleLarge":return h(v,500,700);case"scaleToLargePrevScaleToSmall":return h(v,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return h(v,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return h(v,800,600);default:return o.duration}}let w=o.timingFunction;function C(O){switch(O){default:return o.easeFunction}}function T(O,v){switch(O){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(v){case a:w=g()?"ease-in-out":"ease";break;case l:default:w=g()?"ease":"ease-in-out"}return C(v);default:return w=o.timingFunction,o.easeFunction}}function F(O,v=300){switch(O){case l:return o.delay+v;default:return o.delay}}function S(O,v){switch(O){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return F(v,500);case"scaleSmall":case"scaleLarge":return F(v,300);case"scaleToLargePrevScaleToSmall":return F(v,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return F(v,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return F(v,180);default:return o.delay}}let B=2,R=2;const P=()=>{B=2,R=2},x=()=>{B=2,R=3},q=()=>{B=3,R=2};function le(O){switch(o.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":q();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":g()?q():x();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":g()?x():q();break;default:P();break}m(a)&&a==O&&(d[a].style.zIndex=`${B}`,d[a].style.visibility="visible"),m(l)&&l==O&&(d[l].style.zIndex=`${R}`,d[l].style.visibility="visible")}function L(O){x(),O==a&&(d[a].style.zIndex=`${B}`,d[a].style.visibility="hidden"),O==l&&(d[l].style.zIndex=`${R}`,d[l].style.visibility="visible",s.shift()?.(),r("routeChangeEnd",a,l,u.length),a=l)}const U=i.ref();function ne(O=0,v=!1){if(!U.value)return;let oe=0;i.render(i.h("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},u.map((D,Q)=>{const ce=y(o.effect,Q);return i.h("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:a==Q?"visible":"hidden",zIndex:v?"1":"0"}},D.pageKey?{key:D.pageKey}:{}),i.h(Cn,{effect:ce,duration:_(o.effect,Q),easeFunction:T(o.effect,Q),timingFunction:w,delay:S(o.effect,Q),onReady:(Oc,Pc)=>{f[Q]={open:Oc,close:Pc},++oe==O&&(c?.(),r("renderComplete"))},onPageOpenStart:()=>{le(Q)},onPageOpenEnd:()=>{L(Q)},onPageCloseStart:()=>{le(Q)},onPageCloseEnd:()=>{L(Q)}},{default:()=>D.component instanceof HTMLElement?i.h("div",{...D.attributes,innerHTML:D.component.innerHTML}):i.h(D.component,D.attributes,()=>D.child)}))})),U.value),d=U.value.children[0].children}i.watch(()=>o.effect,()=>{ne()});function ve(O=[]){u=[...O],u.forEach(v=>{v.pageKey=v.pageKey||ie.generateUUID()}),c=()=>{a=-1,X(0)},ne(u.length,!0)}function Nt(O){O.pageKey=O.pageKey||ie.generateUUID(),u.push(O),c=()=>{X(u.length-1)},ne(1,u.length==1)}function it(){u.length<=1||X(u.length-2,()=>{u.splice(u.length-1,1),a=u.length-1,ne()})}function Mt(){X(a+1)}function be(){X(a-1)}const Dt=new ie.AsyncTaskQueue(1);function X(O,v){Dt.addTask(()=>new Promise(oe=>{const D=()=>{v?.(),oe()};if(!m(O)){D();return}if(l=O,l==a){D();return}s.push(D),ne(),r("routeChangeStart",a,l,u.length),g()?(m(a)&&f[a].open(),m(l)&&f[l].open()):(m(a)&&f[a].close(),m(l)&&f[l].close())}))}return t({reset:ve,push:Nt,pop:it,forward:Mt,back:be,goto:X,currentPageIndex:()=>a,totalPages:()=>u.length}),(O,v)=>(i.openBlock(),i.createElementBlock("div",{class:"routes",ref_key:"routesRef",ref:U,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),xi=["src"],Ti=i.defineComponent({name:"Image",customOptions:{Container:j,Pop:de},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=new b.Timeline({frameDuration:o.dur}),l=i.ref(0),c=i.ref(0),s=i.ref(0),u=i.ref(0),f=i.ref(0),d=i.ref(0),m=i.ref(0),g=i.ref(0),p=i.ref(!0),y=i.ref(0),h=i.ref(0);b.useLoadImage(o.src).then(L=>{y.value=L.width,h.value=L.height,S()}).catch(()=>{p.value=!1});const _=i.ref(0),w=i.ref(0),C=L=>{_.value=L.rect.width,w.value=L.rect.height,S()},T=i.ref(0),F=i.ref(0);function S(){if(!_.value||!w.value||!y.value||!h.value)return;const L=b.computeImageDisplayRect(o.mode,y.value,h.value,_.value,w.value);T.value=L.width,F.value=L.height;const{width:U,height:ne}=b.getViewportSize(),ve=b.computeImageDisplayRect("aspectFit",y.value,h.value,U,ne);m.value=ve.width,g.value=ve.height,f.value=(U-m.value)/2,d.value=(ne-g.value)/2}const B=L=>{r("settled",L.rect.x,L.rect.y,L.rect.width,L.rect.height)};let R=!1;const P=i.ref(),x=i.ref();async function q(){if(!o.openImageDetailWhenClick)return;const L=await P.value.getRect();a.clear(),a.addTween({left:L.x,top:L.y,width:L.width,height:L.height},{left:f.value,top:d.value,width:m.value,height:g.value},{easeFunction:b.Easing.Quadratic.Out,onUpdate(U){l.value=U.left,c.value=U.top,s.value=U.width,u.value=U.height},onComplete(){R&&x.value.close(),R=!R}}),R||(x.value.open(),a.play())}function le(){R&&a.reverse()}return t({}),(L,U)=>(i.openBlock(),i.createBlock(j,{class:"image",type:"full",style:i.normalizeStyle({backgroundColor:o.bgColor}),onReady:C,onUpdate:C,onClick:q},{default:i.withCtx(()=>[p.value?(i.openBlock(),i.createBlock(j,{key:0,class:"image-inner",ref_key:"imageRef",ref:P,type:"shrink",style:i.normalizeStyle({width:T.value+"px",height:F.value+"px",backgroundImage:`url(${o.src})`,backgroundSize:`${T.value}px ${F.value}px`}),onReady:B,onUpdate:B},null,8,["style"])):i.createCommentVNode("",!0),p.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(j,{key:1,type:"shrink"},{default:i.withCtx(()=>[i.createElementVNode("img",{src:o.src,style:{display:"block",objectFit:"contain"}},null,8,xi)]),_:1})),i.createVNode(de,{ref_key:"popRef",ref:x,"direction-from":"absolute","absolute-left":`${l.value}px`,"absolute-top":`${c.value}px`,"absolute-width":`${s.value}px`,"absolute-height":`${u.value}px`,"close-when-click-overlay":!1,onClickOverlay:le},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"image-pop",style:i.normalizeStyle({width:"100%",height:"100%",backgroundImage:`url(${o.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),Uc="",xn=z(Ti,[["__scopeId","data-v-67c2d0de"]]),Ei={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Tn=i.defineComponent({customOptions:{Image:xn,Container:j,Routes:kn},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(e,{expose:t,emit:n}){const o=e,r=i.ref(0);function a(m,g){r.value=g}const l=i.ref(),c=m=>{m.eb.on("panLeft",()=>{l.value?.forward()}),m.eb.on("panRight",()=>{l.value?.back()}),l.value.reset(o.urls.map(g=>({component:i.h(xn,{mode:"aspectFit",src:g,openImageDetailWhenClick:!1})})))},s=i.ref();function u(){s.value?.open()}function f(){s.value?.close()}const d=m=>{m.target&&b.hasClass(m.target,"image")&&f()};return t({open:u,close:f}),(m,g)=>(i.openBlock(),i.createBlock(de,{ref_key:"popRef",ref:s,directionFrom:"absolute",onClick:d},{default:i.withCtx(()=>[o.urls.length>1?(i.openBlock(),i.createElementBlock("div",Ei,i.toDisplayString(r.value+1)+" / "+i.toDisplayString(o.urls.length),1)):i.createCommentVNode("",!0),i.createVNode(j,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:c},{default:i.withCtx(()=>[i.createVNode(kn,{ref_key:"routesRef",ref:l,effect:o.effect,onRouteChangeEnd:a},null,8,["effect"])]),_:1})]),_:1},512))}}),Fi={class:"pop-tel"},Ii=["href"],Bi=i.defineComponent({customOptions:{Pop:de},inheritAttrs:!0,__name:"PopTel",props:{tel:{}},setup(e,{expose:t,emit:n}){const o=i.ref();function r(){o.value?.open()}function a(){o.value?.close()}return t({open:r,close:a}),(l,c)=>(i.openBlock(),i.createBlock(de,{directionFrom:"bottom",closeWhenClickOverlay:!1,ref_key:"el",ref:o},{default:i.withCtx(()=>[i.createElementVNode("div",Fi,[i.createElementVNode("div",null,i.toDisplayString(l.tel),1),i.createElementVNode("a",{class:"pop-tel-call",onClick:a,href:`tel:${l.tel}`}," 呼叫 ",8,Ii),i.createElementVNode("div",{class:"pop-tel-cancel",onClick:a}," 取消 ")])]),_:1},512))}}),Hc="",En=z(Bi,[["__scopeId","data-v-c1425500"]]),Ri={class:"lot-main"},Oi={class:"lot-detail"},Pi={class:"red"},$i={class:"bold"},Vi=i.defineComponent({customOptions:{LayoutPage:_e,Footer:_n,PlateDisplay:wn,ViewDocument:jt,PopTel:En,ImageView:Tn},inheritAttrs:!0,__name:"Lot",setup(e){re.useRouter();let t=i.ref(0),n=i.ref(0);const o=i.ref();function r(){o.value?.open()}const a=i.ref(),l=i.inject("context");return i.onMounted(()=>{l.axios.post("/api/v6/lot/740/getwithorder6",{openid:"quickpassapp"}).then(c=>{console.log(c),console.log(JSON.stringify(c)),t.value=c.data.bill.sn,n.value=c.data.bill.fee}).catch(c=>{console.log(c),console.log(JSON.stringify(c))})}),(c,s)=>(i.openBlock(),i.createBlock(_e,{class:"lot"},{footer:i.withCtx(()=>[i.createVNode(_n,{billsn:i.unref(t)},null,8,["billsn"])]),global:i.withCtx(()=>[i.createVNode(En,{tel:"15851575410",ref_key:"popTelEl",ref:o},null,512),i.createVNode(Tn,{urls:["https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159","https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159"],ref_key:"imageViewEl",ref:a},null,512)]),default:i.withCtx(()=>[s[10]||(s[10]=i.createElementVNode("div",{class:"lot-main-bg"},null,-1)),i.createElementVNode("div",Ri,[s[6]||(s[6]=i.createElementVNode("div",null,"若临测试泊位机器人停车场",-1)),s[7]||(s[7]=i.createElementVNode("div",null,[i.createElementVNode("div"),i.createElementVNode("div",null,"编号"),i.createElementVNode("div")],-1)),s[8]||(s[8]=i.createElementVNode("div",null,[i.createElementVNode("span",null,"103"),i.createElementVNode("span",null,"003")],-1)),s[9]||(s[9]=i.createElementVNode("div",null,null,-1)),i.createElementVNode("div",Oi,[i.createElementVNode("div",null,[s[0]||(s[0]=i.createElementVNode("div",null,"待支付",-1)),i.createElementVNode("div",Pi,"¥"+i.toDisplayString((i.unref(n)/100).toFixed(2)),1)]),s[2]||(s[2]=i.createElementVNode("div",null,[i.createElementVNode("div",null,"订单编号"),i.createElementVNode("div",null,"33333333333")],-1)),s[3]||(s[3]=i.createElementVNode("div",null,[i.createElementVNode("div",null,"开始时间"),i.createElementVNode("div",null,"2025-04-08 09:41:25")],-1)),s[4]||(s[4]=i.createElementVNode("div",null,[i.createElementVNode("div",null,"停车时长"),i.createElementVNode("div",null,"1小时53分钟15秒")],-1)),s[5]||(s[5]=i.createElementVNode("div",{class:"lot-detail-gap"},null,-1)),i.createElementVNode("div",null,[s[1]||(s[1]=i.createElementVNode("div",null,"车牌号",-1)),i.createElementVNode("div",$i,[i.createVNode(wn,{plate:"苏U77777","plate-type":"b"})])])]),i.createElementVNode("div",{class:"lot-actions"},[i.createElementVNode("div",{onClick:r},"联系客服")])])]),_:1}))}}),Gc="",Ai=z(Vi,[["__scopeId","data-v-02ae2197"]]),Li=i.defineComponent({customOptions:{LayoutPage:_e},inheritAttrs:!0,__name:"Park",setup(e){return(t,n)=>(i.openBlock(),i.createBlock(_e,{class:"park"},{default:i.withCtx(()=>n[0]||(n[0]=[i.createTextVNode("Park")])),_:1}))}}),qc="",Ni=z(Li,[["__scopeId","data-v-9704593b"]]),Yc="",Mi={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",b.isIE&&this.$el.appendChild(e),e.data="about:blank",b.isIE||this.$el.appendChild(e)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!b.isIE&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Di={class:"resize-observer",tabindex:"-1"};function zi(e,t,n,o,r,a){return i.openBlock(),i.createElementBlock("div",Di)}const ji=z(Mi,[["render",zi],["__scopeId","data-v-d5987ae1"]]);var Pe=function(){var e=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(f){f.preventDefault(),o(++e%t.children.length)},!1);function n(f){return t.appendChild(f.dom),f}function o(f){for(var d=0;d<t.children.length;d++)t.children[d].style.display=d===f?"block":"none";e=f}var r=(performance||Date).now(),a=r,l=0,c=n(new Pe.Panel("FPS","#0ff","#002")),s=n(new Pe.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var u=n(new Pe.Panel("MB","#f08","#201"));return o(0),{REVISION:16,dom:t,addPanel:n,showPanel:o,begin:function(){r=(performance||Date).now()},end:function(){l++;var f=(performance||Date).now();if(s.update(f-r,200),f>a+1e3&&(c.update(l*1e3/(f-a),100),a=f,l=0,u)){var d=performance.memory;u.update(d.usedJSHeapSize/1048576,d.jsHeapSizeLimit/1048576)}return f},update:function(){r=this.end()},domElement:t,setMode:o}};Pe.Panel=function(e,t,n){var o=1/0,r=0,a=Math.round,l=a(window.devicePixelRatio||1),c=80*l,s=48*l,u=3*l,f=2*l,d=3*l,m=15*l,g=74*l,p=30*l,y=document.createElement("canvas");y.width=c,y.height=s,y.style.cssText="width:80px;height:48px";var h=y.getContext("2d");return h.font="bold "+9*l+"px Helvetica,Arial,sans-serif",h.textBaseline="top",h.fillStyle=n,h.fillRect(0,0,c,s),h.fillStyle=t,h.fillText(e,u,f),h.fillRect(d,m,g,p),h.fillStyle=n,h.globalAlpha=.9,h.fillRect(d,m,g,p),{dom:y,update:function(_,w){o=Math.min(o,_),r=Math.max(r,_),h.fillStyle=n,h.globalAlpha=1,h.fillRect(0,0,c,m),h.fillStyle=t,h.fillText(a(_)+" "+e+" ("+a(o)+"-"+a(r)+")",u,f),h.drawImage(y,d+l,m,g-l,p,d,m,g-l,p),h.fillRect(d+g-l,m,l,p),h.fillStyle=n,h.globalAlpha=.9,h.fillRect(d+g-l,m,l,a((1-_/w)*p))}}};const Ui=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(e,{expose:t}){const n=i.ref();return i.onMounted(()=>{const o=new Pe;o.domElement.style.margin="1em",n.value.appendChild(o.domElement),b.requestAnimationFrameCycle(()=>(o.update(),!0))}),t({}),(o,r)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"containerRef",ref:n},null,512))}}),Hi=["width","height"],Gi=["fill"],Fn=i.defineComponent({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:"#cccccc"}},setup(e){const t=e;return(n,o)=>(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height||t.width,style:{"transform-origin":"center"},fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:t.color},null,8,Gi)],8,Hi))}}),qi=i.defineComponent({customOptions:{Container:j,SVGDown:Fn},inheritAttrs:!0,__name:"Accordion",props:{initOpen:{type:Boolean,default:!1},titleHeight:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=i.ref(),l=i.ref(Number.MAX_SAFE_INTEGER+"px"),c=i.ref(!0);i.onMounted(()=>{i.nextTick(()=>{l.value=a.value.getBoundingClientRect().height+"px",c.value=o.initOpen})});function s(){c.value=!c.value,c.value?r("open"):r("close")}const u=i.ref(0);return i.watchEffect(()=>{u.value=c.value?0:-90}),t({}),(f,d)=>(i.openBlock(),i.createBlock(j,null,{default:i.withCtx(()=>[i.createElementVNode("div",{class:"accordion",style:i.normalizeStyle({background:o.bgColor,color:o.fontColor,borderRadius:o.borderRadius})},[i.createElementVNode("div",{class:"accordion-title",onClick:s,style:i.normalizeStyle({height:o.titleHeight,lineHeight:o.titleHeight,margin:`0 ${o.padding}`,transitionDelay:`${c.value?0:o.duration}ms`,borderBottom:`${c.value?1:0}px solid ${o.borderColor}`})},[i.renderSlot(f.$slots,"title",{},()=>[d[0]||(d[0]=i.createTextVNode("title"))],!0),i.createVNode(Fn,{class:"arrow",style:i.normalizeStyle({transition:`transform ${o.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),i.createElementVNode("div",{class:"accordion-content",ref_key:"content",ref:a,style:i.normalizeStyle({margin:`0 ${o.padding}`,transition:`max-height ${o.duration}ms ease-in-out`,maxHeight:c.value?l.value:"0"})},[i.renderSlot(f.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),Qc="",Yi=z(qi,[["__scopeId","data-v-bd7d3b4a"]]),Xi=i.defineComponent({__name:"ProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},showText:{type:Boolean,default:!1}},emits:["complete"],setup(e,{expose:t,emit:n}){const o=e,r=i.ref(0);function a(l){r.value=Math.min(Math.max(0,l),100)}return t({goto:a}),(l,c)=>(i.openBlock(),i.createElementBlock("div",{class:"bar",style:i.normalizeStyle({border:`1px solid ${o.borderColor}`,borderRadius:o.borderRadius,backgroundColor:o.bgColor})},[i.createElementVNode("div",{class:"bar-inner",style:i.normalizeStyle({width:r.value+"%",backgroundColor:o.progressColor})},i.toDisplayString(o.showText?r.value+"%":""),5)],4))}}),Kc="",In=z(Xi,[["__scopeId","data-v-6caeec52"]]),Qi={class:"page-vertical-scroll-progress-bar"},Ki=i.defineComponent({customOptions:{ProgressBar:In},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=i.ref(),l=b.useScroll$().subscribe(c=>{const s=b.getVerticalScrollPercentInPage();r("progress",s),a.value?.goto(s)});return i.onUnmounted(()=>{l.unsubscribe()}),t({}),(c,s)=>(i.openBlock(),i.createElementBlock("div",Qi,[i.createVNode(In,{ref_key:"bar",ref:a,bgColor:o.bgColor,progressColor:o.progressColor,borderColor:o.borderColor,borderRadius:o.borderRadius,duringTimeGap:o.duringTimeGap,showText:o.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),Zc="",Zi=z(Ki,[["__scopeId","data-v-fff9363f"]]),Bn=i.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Box",props:{type:{default:"div"},shapes:{default:()=>[]},loop:{type:Boolean,default:!1},supportCopyToClipboard:{type:Boolean,default:!1}},emits:["init","resize","frameInit","frame","copyToClipboardSuccess","copyToClipboardError"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=i.ref(),l=o.type!=="div";let c,s=!1,u=!1,f,d,m;return i.watch(()=>o.shapes,()=>{u=!1}),i.watchEffect(()=>{a.value&&(f||(f=b.useResize$(a.value).subscribe(g=>{const p={el:a.value,rect:g};s||(r("init",p),s=!0,l&&(c=b.useDraw(p.el,o.type),m=b.requestAnimationFrameCycle(()=>(u||(r("frameInit",c),u=!0),r("frame",c),c.draw(...o.shapes),o.loop)))),r("resize",p)}),o.supportCopyToClipboard&&(d=b.tap$(a.value).subscribe(()=>{const g=b.getInnerText(a.value);b.useClipboard(g).then(()=>{r("copyToClipboardSuccess",g)}).catch(p=>{r("copyToClipboardError",p.toString())})}))))}),i.onMounted(()=>{}),i.onUnmounted(()=>{f?.unsubscribe(),d?.unsubscribe(),m?.()}),t({getElement:()=>a.value,getRect:()=>a.value.getBoundingClientRect()}),(g,p)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"r",ref:a,class:"box",style:{position:"relative",boxSizing:"border-box"}},[i.renderSlot(g.$slots,"default")],512))}}),Ji={style:{position:"relative",overflow:"hidden"}},Wi={style:{position:"fixed",top:"0",left:"0","z-index":"100",width:"100%",height:"6px"}},ea={class:"btns"},ta=i.defineComponent({__name:"ShapeShowCase",setup(e){const t=f=>{console.log("ResizeObserver",f.width,f.height)};let n=[],o=f=>{},r=f=>{},a=[],l=f=>{},c=f=>{};const s=i.ref("shapes"),u=[{name:"shapes",onClick:()=>{s.value="shapes";const f=new b.BallShape({ballRadius:4,attrs:{fill:"#ff0000"}}),d=f.clone(),m=new b.LineShape({lineLength:100,lineDegree:0,attrs:{stroke:b.Color.random().toString(),strokeWidth:"1"}});m.moveTo(100,100);const g=m.clone(),p=m.clone();p.rotateTo(30);const y=p.clone(),h=m.intersection(p);h&&f.moveTo(h.x,h.y);const _=g.intersection(y);_&&d.moveTo(_.x,_.y);const w=new b.TreeShapeCombo({},{attrs:{stroke:"#ff0000",strokeWidth:"1"},drag:{enable:!0}});w.comboMove(100,100);const C=w.clone(),T=w.clone();T.setAttr("stroke","#0000ff"),T.comboRotate(30);const F=T.clone(),S=new b.RectShape({x:100,y:200,scale:.5,degree:5,rectWidth:100,rectHeight:60,rectBorderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"1"},drag:{enable:!0}}),B=S.clone(),R=new b.HeartShape({x:200,y:200,scale:.5,degree:-10,attrs:{fill:b.Color.random().toString(),stroke:"#ff0000",strokeWidth:"3"},drag:{enable:!0}}),P=R.clone(),x=new b.HeartVariantShape({x:220,y:200,scale:.5,degree:0,attrs:{fill:b.Color.random().toString(),stroke:"#ff0000",strokeWidth:"3"},drag:{enable:!0}}),q=x.clone(),le=new b.StarShape({x:240,y:200,scale:1,degree:0,attrs:{fill:b.Color.random().toString()},drag:{enable:!0}}),L=le.clone(),U=new b.FoxShape({x:260,y:200,scale:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},drag:{enable:!0}}),ne=U.clone(),ve=new b.RabbitShape({x:300,y:200,scale:1,degree:0,attrs:{fill:b.Color.random().toString(),stroke:"#ff0000",strokeWidth:"1"},drag:{enable:!0}}),Nt=ve.clone(),it=new b.CrossShape({x:320,y:200,scale:1,degree:0,attrs:{fill:b.Color.random().toString()},drag:{enable:!0}}),Mt=it.clone(),be=new b.ShipShapeCombo({showFlame:!0},{attrs:{stroke:b.Color.random().toString()},drag:{enable:!0}});be.comboMove(400,100),be.comboRotate(30),be.comboScale(2);const Dt=be.clone(),X=new b.SegmentShapeCombo({segmentWidth:100,segmentHeight:20},{attrs:{stroke:b.Color.random().toString()},drag:{enable:!0}});X.comboMove(200,100),X.comboRotate(0),X.comboScale(1);const O=X.clone();O.comboRotate(30);const v=X.clone(),oe=O.clone(),D=new b.SliderShapeCombo({sliderMin:0,sliderMax:200,sliderStep:2,sliderDefaultValue:10,sliderWidth:200});D.comboMove(250,100),D.comboRotate(30),D.value$.subscribe(ce=>{console.log("slider : "+ce)});const Q=D.clone();Q.value$.subscribe(ce=>{console.log("sliderClone : "+ce)}),n=[m,p,w,T,S,R,x,le,U,ve,it,be,X,O,D,f],a=[g,y,C,F,B,P,q,L,ne,Nt,Mt,Dt,v,oe,Q,d],o=ce=>{},l=ce=>{},r=ce=>{},c=ce=>{}}},{name:"checkCollision",onClick:()=>{s.value="checkCollision";const f=new b.BallShape({ballRadius:30,attrs:{fill:b.Color.random().toString()},mass:2,vx:2}),d=f.clone(),m=new b.BallShape({ballRadius:30,attrs:{fill:b.Color.random().toString()},mass:1,vx:-2}),g=m.clone();n=[f,m],a=[d,g];let p=!1;const y=h=>{if(p)return;p=!0;const _=h.rect.height*.5;f.moveTo(50,_),m.moveTo(h.rect.width-50,_),d.moveTo(50,_),g.moveTo(h.rect.width-50,_)};o=h=>{y(h)},l=h=>{y(h)},r=h=>{f.checkCollision(m),f.animate(),m.animate()},c=h=>{d.checkCollision(g),d.animate(),g.animate()}}},{name:"followMouse",onClick:()=>{s.value="followMouse";const f=new b.ArrowShape({attrs:{fill:b.Color.random().toString()},scale:.5,followMouse:!0}),d=f.clone(),m=new b.LineShape({attrs:{"stroke-width":"1",stroke:"#666666"}}),g=m.clone();n=[m,f],a=[g,d];let p=!1;const y=h=>{if(p)return;p=!0;const _=h.rect.width*.5,w=h.rect.height*.5;m.moveTo(_,w),g.moveTo(_,w)};o=h=>{y(h)},l=h=>{y(h)},r=h=>{m.lineToAbsolutePoint(f)},c=h=>{g.lineToAbsolutePoint(d)}}},{name:"dragBall",onClick:()=>{s.value="dragBall";const f=new b.BallShape({ballRadius:30,attrs:{fill:b.Color.random().toString()}}),d=f.clone();n=[f],a=[d];let m=!1;const g=p=>{if(m)return;m=!0;const y=p.rect.width*.5,h=p.rect.height*.5;f.moveTo(y,h),d.moveTo(y,h),d.drag=f.drag={enable:!0,targetToAfterDrop:{x:y,y:h}}};o=p=>{g(p)},l=p=>{g(p)},r=p=>{},c=p=>{}}},{name:"animateSpringMassShapes",onClick:()=>{s.value="animateSpringMassShapes";const f=[],d=[],m=new b.Color("#000000"),g=30;for(let C=0;C<g;C++){const T=Math.random()*10+2,F=new b.BallShape({ballRadius:T,attrs:{fill:b.Color.random().toString()}});F.vx=Math.random()*6-3,F.vy=Math.random()*6-3,F.mass=T,f.push(F)}const p=f.map(C=>C.clone()),y=d.map(C=>C.clone());n=[...f],a=[...y,...p];let h=!1;const _=C=>{h||(h=!0,f.forEach((T,F)=>{const S=Math.random()*C.rect.width,B=Math.random()*C.rect.height;T.moveTo(S,B),p[F].moveTo(S,B)}))};o=C=>{_(C)},l=C=>{_(C)};const w=(C,T,F)=>(b.animateSpringMassShapes(T,{x:0,y:0,width:C.rect.width,height:C.rect.height},{spring:5e-4}).forEach(([S,B,R,P,x],q)=>{if(F[q])F[q].moveTo(S,B),F[q].lineToAbsolutePoint({x:R,y:P}),F[q].setAttr("stroke",m.setAlpha(x).toString());else{const le=new b.LineShape({x:S,y:B,lineDx:R-S,lineDy:P-B,attrs:{strokeWidth:"1",stroke:m.setAlpha(x).toString()}});F.push(le)}}),C);r=C=>{w(C,f,d)},c=C=>{w(C,p,y),a=[...y,...p]}}},{name:"gravitateShapes",onClick:()=>{s.value="gravitateShapes";const f=30,d=[];for(let y=0;y<f;y++){const h=Math.random()*25+5,_=new b.BallShape({ballRadius:h,attrs:{fill:b.Color.random().toString()}});_.mass=h,d.push(_)}const m=d.map(y=>y.clone());n=[...d],a=[...m];let g=!1;const p=y=>{g||(g=!0,d.forEach((h,_)=>{const w=Math.random()*y.rect.width,C=Math.random()*y.rect.height;h.moveTo(w,C),m[_].moveTo(w,C)}))};o=y=>{p(y)},l=y=>{p(y)},r=y=>{b.gravitateShapes(d)},c=y=>{b.gravitateShapes(m)}}}];return i.onMounted(()=>{u[0].onClick()}),(f,d)=>(i.openBlock(),i.createElementBlock("div",Ji,[i.createElementVNode("div",Wi,[i.createVNode(Zi)]),i.createVNode(Ui),i.createVNode(ji,{onResize:t}),i.createVNode(Yi,{initOpen:!0,style:{margin:"30px"}},{title:i.withCtx(()=>d[0]||(d[0]=[i.createTextVNode("Shape")])),content:i.withCtx(()=>[i.createElementVNode("div",ea,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(u,m=>i.createVNode(Se,{key:m.name,item:m,onClick:m.onClick,stylePattern:s.value==m.name?"fullfill":"outline"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),i.createVNode(Bn,{type:"svg",shapes:i.unref(n),loop:!0,style:{width:"100%",height:"300px","background-color":"rgba(0, 0, 0, 0.1)"},onFrameInit:i.unref(o),onFrame:i.unref(r)},null,8,["shapes","onFrameInit","onFrame"]),i.createVNode(Bn,{type:"canvas",shapes:i.unref(a),loop:!0,style:{width:"100%",height:"300px","background-color":"rgba(0, 0, 0, 0.2)"},onFrameInit:i.unref(l),onFrame:i.unref(c)},null,8,["shapes","onFrameInit","onFrame"])]),_:1})]))}}),Jc="",na=z(ta,[["__scopeId","data-v-d5aaa1a0"]]);function V(e){return typeof e=="function"}function oa(e){return V(e?.lift)}function E(e){return function(t){if(oa(t))return t.lift(function(n){try{return e(n,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}var vt=function(e,t){return vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},vt(e,t)};function K(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function ra(e,t,n,o){function r(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function c(f){try{u(o.next(f))}catch(d){l(d)}}function s(f){try{u(o.throw(f))}catch(d){l(d)}}function u(f){f.done?a(f.value):r(f.value).then(c,s)}u((o=o.apply(e,t||[])).next())})}function bt(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=c(0),l.throw=c(1),l.return=c(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(u){return function(f){return s([u,f])}}function s(u){if(o)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(n=0)),n;)try{if(o=1,r&&(a=u[0]&2?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],r=0}finally{o=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Z(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,a=[],l;try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(c){l={error:c}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return a}function W(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}function Ce(e){return this instanceof Ce?(this.v=e,this):new Ce(e)}function ia(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,a=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",l),r[Symbol.asyncIterator]=function(){return this},r;function l(g){return function(p){return Promise.resolve(p).then(g,d)}}function c(g,p){o[g]&&(r[g]=function(y){return new Promise(function(h,_){a.push([g,y,h,_])>1||s(g,y)})},p&&(r[g]=p(r[g])))}function s(g,p){try{u(o[g](p))}catch(y){m(a[0][3],y)}}function u(g){g.value instanceof Ce?Promise.resolve(g.value.v).then(f,d):m(a[0][2],g)}function f(g){s("next",g)}function d(g){s("throw",g)}function m(g,p){g(p),a.shift(),a.length&&s(a[0][0],a[0][1])}}function aa(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Z=="function"?Z(e):e[Symbol.iterator](),n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n);function o(a){n[a]=e[a]&&function(l){return new Promise(function(c,s){l=e[a](l),r(c,s,l.done,l.value)})}}function r(a,l,c,s){Promise.resolve(s).then(function(u){a({value:u,done:c})},l)}}typeof SuppressedError=="function"&&SuppressedError;var Rn=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function On(e){return V(e?.then)}function ke(e){var t=function(o){Error.call(o),o.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var _t=ke(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
2
2
  `+n.map(function(o,r){return r+1+") "+o.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=n}});function de(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ce=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,o,r,i;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Z(l),s=c.next();!s.done;s=c.next()){var u=s.value;u.remove(this)}}catch(y){t={error:y}}finally{try{s&&!s.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}else l.remove(this);var f=this.initialTeardown;if(A(f))try{f()}catch(y){i=y instanceof bt?y.errors:[y]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var m=Z(d),g=m.next();!g.done;g=m.next()){var p=g.value;try{Rn(p)}catch(y){i=i??[],y instanceof bt?i=W(W([],J(i)),J(y.errors)):i.push(y)}}}catch(y){o={error:y}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(o)throw o.error}}}if(i)throw new bt(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Rn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&de(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&de(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Fn=ce.EMPTY;function In(e){return e instanceof ce||e&&"closed"in e&&A(e.remove)&&A(e.add)&&A(e.unsubscribe)}function Rn(e){A(e)?e():e.unsubscribe()}var Bn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wt={setTimeout:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=wt.delegate;return r?.setTimeout?r.setTimeout.apply(r,W([e,t],J(n))):setTimeout.apply(void 0,W([e,t],J(n)))},clearTimeout:function(e){var t=wt.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Pn(e){wt.setTimeout(function(){throw e})}function Y(){}function ze(e){e()}var St=function(e){K(t,e);function t(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,In(n)&&n.add(o)):o.destination=Vi,o}return t.create=function(n,o,r){return new Oe(n,o,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ce),Oi=Function.prototype.bind;function _t(e,t){return Oi.call(e,t)}var $i=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(o){je(o)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(o){je(o)}else je(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){je(n)}},e}(),Oe=function(e){K(t,e);function t(n,o,r){var i=e.call(this)||this,l;if(A(n)||!n)l={next:n??void 0,error:o??void 0,complete:r??void 0};else{var c;i&&Bn.useDeprecatedNextContext?(c=Object.create(n),c.unsubscribe=function(){return i.unsubscribe()},l={next:n.next&&_t(n.next,c),error:n.error&&_t(n.error,c),complete:n.complete&&_t(n.complete,c)}):l=n}return i.destination=new $i(l),i}return t}(St);function je(e){Pn(e)}function Ai(e){throw e}var Vi={closed:!0,next:Y,error:Ai,complete:Y},Ct=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function H(e){return e}function Li(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return On(e)}function On(e){return e.length===0?H:e.length===1?e[0]:function(n){return e.reduce(function(o,r){return r(o)},n)}}var N=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,o){var r=this,i=Mi(t)?t:new Oe(t,n,o);return ze(function(){var l=r,c=l.operator,s=l.source;i.add(c?c.call(i,s):s?r._subscribe(i):r._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var o=this;return n=$n(n),new n(function(r,i){var l=new Oe({next:function(c){try{t(c)}catch(s){i(s),l.unsubscribe()}},error:i,complete:r});o.subscribe(l)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Ct]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return On(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=$n(t),new t(function(o,r){var i;n.subscribe(function(l){return i=l},function(l){return r(l)},function(){return o(i)})})},e.create=function(t){return new e(t)},e}();function $n(e){var t;return(t=e??Bn.Promise)!==null&&t!==void 0?t:Promise}function Ni(e){return e&&A(e.next)&&A(e.error)&&A(e.complete)}function Mi(e){return e&&e instanceof St||Ni(e)&&In(e)}function An(e){return A(e[Ct])}function Vn(e){return Symbol.asyncIterator&&A(e?.[Symbol.asyncIterator])}function Ln(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Di(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Nn=Di();function Mn(e){return A(e?.[Nn])}function Dn(e){return Bi(this,arguments,function(){var n,o,r,i;return vt(this,function(l){switch(l.label){case 0:n=e.getReader(),l.label=1;case 1:l.trys.push([1,,9,10]),l.label=2;case 2:return[4,Se(n.read())];case 3:return o=l.sent(),r=o.value,i=o.done,i?[4,Se(void 0)]:[3,5];case 4:return[2,l.sent()];case 5:return[4,Se(r)];case 6:return[4,l.sent()];case 7:return l.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function zn(e){return A(e?.getReader)}function O(e){if(e instanceof N)return e;if(e!=null){if(An(e))return zi(e);if(xn(e))return ji(e);if(En(e))return Ui(e);if(Vn(e))return jn(e);if(Mn(e))return Hi(e);if(zn(e))return Gi(e)}throw Ln(e)}function zi(e){return new N(function(t){var n=e[Ct]();if(A(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ji(e){return new N(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Ui(e){return new N(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Pn)})}function Hi(e){return new N(function(t){var n,o;try{for(var r=Z(e),i=r.next();!i.done;i=r.next()){var l=i.value;if(t.next(l),t.closed)return}}catch(c){n={error:c}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}t.complete()})}function jn(e){return new N(function(t){qi(e,t).catch(function(n){return t.error(n)})})}function Gi(e){return jn(Dn(e))}function qi(e,t){var n,o,r,i;return Ri(this,void 0,void 0,function(){var l,c;return vt(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=Pi(e),s.label=1;case 1:return[4,n.next()];case 2:if(o=s.sent(),!!o.done)return[3,4];if(l=o.value,t.next(l),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=s.sent(),r={error:c},[3,11];case 6:return s.trys.push([6,,9,10]),o&&!o.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function k(e,t,n,o,r){return new Un(e,t,n,o,r)}var Un=function(e){K(t,e);function t(n,o,r,i,l,c){var s=e.call(this,n)||this;return s.onFinalize=l,s.shouldUnsubscribe=c,s._next=o?function(u){try{o(u)}catch(f){n.error(f)}}:e.prototype._next,s._error=i?function(u){try{i(u)}catch(f){n.error(f)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(St);function Hn(e){return T(function(t,n){var o=!1,r=null,i=null,l=!1,c=function(){if(i?.unsubscribe(),i=null,o){o=!1;var u=r;r=null,n.next(u)}l&&n.complete()},s=function(){i=null,l&&n.complete()};t.subscribe(k(n,function(u){o=!0,r=u,i||O(e(u)).subscribe(i=k(n,c,s))},function(){l=!0,(!o||!i||i.closed)&&n.complete()}))})}var Yi=function(e){K(t,e);function t(n,o){return e.call(this)||this}return t.prototype.schedule=function(n,o){return this},t}(ce),Ue={setInterval:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=Ue.delegate;return r?.setInterval?r.setInterval.apply(r,W([e,t],J(n))):setInterval.apply(void 0,W([e,t],J(n)))},clearInterval:function(e){var t=Ue.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},Gn=function(e){K(t,e);function t(n,o){var r=e.call(this,n,o)||this;return r.scheduler=n,r.work=o,r.pending=!1,r}return t.prototype.schedule=function(n,o){var r;if(o===void 0&&(o=0),this.closed)return this;this.state=n;var i=this.id,l=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(l,i,o)),this.pending=!0,this.delay=o,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(l,this.id,o),this},t.prototype.requestAsyncId=function(n,o,r){return r===void 0&&(r=0),Ue.setInterval(n.flush.bind(n,this),r)},t.prototype.recycleAsyncId=function(n,o,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return o;o!=null&&Ue.clearInterval(o)},t.prototype.execute=function(n,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(n,o);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,o){var r=!1,i;try{this.work(n)}catch(l){r=!0,i=l||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,o=n.id,r=n.scheduler,i=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,de(i,this),o!=null&&(this.id=this.recycleAsyncId(r,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Yi),He={now:function(){return(He.delegate||Date).now()},delegate:void 0},qn=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,o){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(o,n)},e.now=He.now,e}(),Yn=function(e){K(t,e);function t(n,o){o===void 0&&(o=qn.now);var r=e.call(this,n,o)||this;return r.actions=[],r._active=!1,r}return t.prototype.flush=function(n){var o=this.actions;if(this._active){o.push(n);return}var r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=o.shift());if(this._active=!1,r){for(;n=o.shift();)n.unsubscribe();throw r}},t}(qn),ae=new Yn(Gn),Xi=ae;function kt(e){return e&&A(e.schedule)}function Qi(e){return e instanceof Date&&!isNaN(e)}function V(e,t,n){e===void 0&&(e=0),n===void 0&&(n=Xi);var o=-1;return t!=null&&(kt(t)?n=t:o=t),new N(function(r){var i=Qi(e)?+e-n.now():e;i<0&&(i=0);var l=0;return n.schedule(function(){r.closed||(r.next(l++),0<=o?this.schedule(void 0,o):r.complete())},i)})}function Ki(e,t){return t===void 0&&(t=ae),Hn(function(){return V(e,t)})}function Zi(e){return T(function(t,n){var o=[];return t.subscribe(k(n,function(r){return o.push(r)},function(){n.next(o),n.complete()})),O(e).subscribe(k(n,function(){var r=o;o=[],n.next(r)},Y)),function(){o=null}})}function Ji(e,t){return t===void 0&&(t=null),t=t??e,T(function(n,o){var r=[],i=0;n.subscribe(k(o,function(l){var c,s,u,f,d=null;i++%t===0&&r.push([]);try{for(var m=Z(r),g=m.next();!g.done;g=m.next()){var p=g.value;p.push(l),e<=p.length&&(d=d??[],d.push(p))}}catch(b){c={error:b}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(c)throw c.error}}if(d)try{for(var y=Z(d),h=y.next();!h.done;h=y.next()){var p=h.value;de(r,p),o.next(p)}}catch(b){u={error:b}}finally{try{h&&!h.done&&(f=y.return)&&f.call(y)}finally{if(u)throw u.error}}},function(){var l,c;try{for(var s=Z(r),u=s.next();!u.done;u=s.next()){var f=u.value;o.next(f)}}catch(d){l={error:d}}finally{try{u&&!u.done&&(c=s.return)&&c.call(s)}finally{if(l)throw l.error}}o.complete()},void 0,function(){r=null}))})}function Tt(e){return e[e.length-1]}function Ge(e){return A(Tt(e))?e.pop():void 0}function Ce(e){return kt(Tt(e))?e.pop():void 0}function Wi(e,t){return typeof Tt(e)=="number"?e.pop():t}function ee(e,t,n,o,r){o===void 0&&(o=0),r===void 0&&(r=!1);var i=t.schedule(function(){n(),r?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(i),!r)return i}function ea(e){for(var t,n,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];var i=(t=Ce(o))!==null&&t!==void 0?t:ae,l=(n=o[0])!==null&&n!==void 0?n:null,c=o[1]||1/0;return T(function(s,u){var f=[],d=!1,m=function(y){var h=y.buffer,b=y.subs;b.unsubscribe(),de(f,y),u.next(h),d&&g()},g=function(){if(f){var y=new ce;u.add(y);var h=[],b={buffer:h,subs:y};f.push(b),ee(y,i,function(){return m(b)},e)}};l!==null&&l>=0?ee(u,i,g,l,!0):d=!0,g();var p=k(u,function(y){var h,b,S=f.slice();try{for(var C=Z(S),x=C.next();!x.done;x=C.next()){var F=x.value,_=F.buffer;_.push(y),c<=_.length&&m(F)}}catch(I){h={error:I}}finally{try{x&&!x.done&&(b=C.return)&&b.call(C)}finally{if(h)throw h.error}}},function(){for(;f?.length;)u.next(f.shift().buffer);p?.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return f=null});s.subscribe(p)})}function ta(e,t){return T(function(n,o){var r=[];O(e).subscribe(k(o,function(i){var l=[];r.push(l);var c=new ce,s=function(){de(r,l),o.next(l),c.unsubscribe()};c.add(O(t(i)).subscribe(k(o,s,Y)))},Y)),n.subscribe(k(o,function(i){var l,c;try{for(var s=Z(r),u=s.next();!u.done;u=s.next()){var f=u.value;f.push(i)}}catch(d){l={error:d}}finally{try{u&&!u.done&&(c=s.return)&&c.call(s)}finally{if(l)throw l.error}}},function(){for(;r.length>0;)o.next(r.shift());o.complete()}))})}function na(e){return T(function(t,n){var o=null,r=null,i=function(){r?.unsubscribe();var l=o;o=[],l&&n.next(l),O(e()).subscribe(r=k(n,i,Y))};i(),t.subscribe(k(n,function(l){return o?.push(l)},function(){o&&n.next(o),n.complete()},void 0,function(){return o=r=null}))})}var oa=Array.isArray,ra=Object.getPrototypeOf,ia=Object.prototype,aa=Object.keys;function Xn(e){if(e.length===1){var t=e[0];if(oa(t))return{args:t,keys:null};if(la(t)){var n=aa(t);return{args:n.map(function(o){return t[o]}),keys:n}}}return{args:e,keys:null}}function la(e){return e&&typeof e=="object"&&ra(e)===ia}function xt(e,t){return t===void 0&&(t=0),T(function(n,o){n.subscribe(k(o,function(r){return ee(o,e,function(){return o.next(r)},t)},function(){return ee(o,e,function(){return o.complete()},t)},function(r){return ee(o,e,function(){return o.error(r)},t)}))})}function Qn(e,t){return t===void 0&&(t=0),T(function(n,o){o.add(e.schedule(function(){return n.subscribe(o)},t))})}function sa(e,t){return O(e).pipe(Qn(t),xt(t))}function ca(e,t){return O(e).pipe(Qn(t),xt(t))}function ua(e,t){return new N(function(n){var o=0;return t.schedule(function(){o===e.length?n.complete():(n.next(e[o++]),n.closed||this.schedule())})})}function Kn(e,t){return new N(function(n){var o;return ee(n,t,function(){o=e[Nn](),ee(n,t,function(){var r,i,l;try{r=o.next(),i=r.value,l=r.done}catch(c){n.error(c);return}l?n.complete():n.next(i)},0,!0)}),function(){return A(o?.return)&&o.return()}})}function Zn(e,t){if(!e)throw new Error("Iterable cannot be null");return new N(function(n){ee(n,t,function(){var o=e[Symbol.asyncIterator]();ee(n,t,function(){o.next().then(function(r){r.done?n.complete():n.next(r.value)})},0,!0)})})}function fa(e,t){return Zn(Dn(e),t)}function da(e,t){if(e!=null){if(An(e))return sa(e,t);if(xn(e))return ua(e,t);if(En(e))return ca(e,t);if(Vn(e))return Zn(e,t);if(Mn(e))return Kn(e,t);if(zn(e))return fa(e,t)}throw Ln(e)}function ue(e,t){return t?da(e,t):O(e)}function E(e,t){return T(function(n,o){var r=0;n.subscribe(k(o,function(i){o.next(e.call(t,i,r++))}))})}var pa=Array.isArray;function ma(e,t){return pa(t)?e.apply(void 0,W([],J(t))):e(t)}function Et(e){return E(function(t){return ma(e,t)})}function Jn(e,t){return e.reduce(function(n,o,r){return n[o]=t[r],n},{})}function qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ce(e),o=Ge(e),r=Xn(e),i=r.args,l=r.keys;if(i.length===0)return ue([],n);var c=new N(ha(i,n,l?function(s){return Jn(l,s)}:H));return o?c.pipe(Et(o)):c}function ha(e,t,n){return n===void 0&&(n=H),function(o){Wn(t,function(){for(var r=e.length,i=new Array(r),l=r,c=r,s=function(f){Wn(t,function(){var d=ue(e[f],t),m=!1;d.subscribe(k(o,function(g){i[f]=g,m||(m=!0,c--),c||o.next(n(i.slice()))},function(){--l||o.complete()}))},o)},u=0;u<r;u++)s(u)},o)}}function Wn(e,t,n){e?ee(n,e,t):t()}function eo(e,t,n,o,r,i,l,c){var s=[],u=0,f=0,d=!1,m=function(){d&&!s.length&&!u&&t.complete()},g=function(y){return u<o?p(y):s.push(y)},p=function(y){i&&t.next(y),u++;var h=!1;O(n(y,f++)).subscribe(k(t,function(b){r?.(b),i?g(b):t.next(b)},function(){h=!0},void 0,function(){if(h)try{u--;for(var b=function(){var S=s.shift();l?ee(t,l,function(){return p(S)}):p(S)};s.length&&u<o;)b();m()}catch(S){t.error(S)}}))};return e.subscribe(k(t,g,function(){d=!0,m()})),function(){c?.()}}function fe(e,t,n){return n===void 0&&(n=1/0),A(t)?fe(function(o,r){return E(function(i,l){return t(o,i,r,l)})(O(e(o,r)))},n):(typeof t=="number"&&(n=t),T(function(o,r){return eo(o,r,e,n)}))}function to(e,t,n,o,r){return function(i,l){var c=n,s=t,u=0;i.subscribe(k(l,function(f){var d=u++;s=c?e(s,f,d):(c=!0,f),o&&l.next(s)},r&&function(){c&&l.next(s),l.complete()}))}}function pe(e,t){return T(to(e,t,arguments.length>=2,!1,!0))}var ga=function(e,t){return e.push(t),e};function no(){return T(function(e,t){pe(ga,[])(e).subscribe(t)})}function ya(e,t){return Li(no(),fe(function(n){return e(n)}),t?Et(t):H)}function va(e){return ya(qe,e)}var ba=Array.isArray;function oo(e){return e.length===1&&ba(e[0])?e[0]:e}function Ye(e){return e===void 0&&(e=1/0),fe(H,e)}function ro(){return Ye(1)}function wa(e,t){return A(t)?fe(e,t,1):fe(e,1)}var Sa=_e(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ke=function(e){K(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var o=new io(this,this);return o.operator=n,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new Sa},t.prototype.next=function(n){var o=this;ze(function(){var r,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=Z(o.currentObservers),c=l.next();!c.done;c=l.next()){var s=c.value;s.next(n)}}catch(u){r={error:u}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var o=this;ze(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var r=o.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;ze(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var o=this,r=this,i=r.hasError,l=r.isStopped,c=r.observers;return i||l?Fn:(this.currentObservers=null,c.push(n),new ce(function(){o.currentObservers=null,de(c,n)}))},t.prototype._checkFinalizedStatuses=function(n){var o=this,r=o.hasError,i=o.thrownError,l=o.isStopped;r?n.error(i):l&&n.complete()},t.prototype.asObservable=function(){var n=new N;return n.source=this,n},t.create=function(n,o){return new io(n,o)},t}(N),io=function(e){K(t,e);function t(n,o){var r=e.call(this)||this;return r.destination=n,r.source=o,r}return t.prototype.next=function(n){var o,r;(r=(o=this.destination)===null||o===void 0?void 0:o.next)===null||r===void 0||r.call(o,n)},t.prototype.error=function(n){var o,r;(r=(o=this.destination)===null||o===void 0?void 0:o.error)===null||r===void 0||r.call(o,n)},t.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},t.prototype._subscribe=function(n){var o,r;return(r=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&r!==void 0?r:Fn},t}(ke);function _a(e){return pe(function(t,n,o){return!e||e(n,o)?t+1:t},0)}function Ca(e){return T(function(t,n){var o=!1,r=null,i=null,l=function(){if(i?.unsubscribe(),i=null,o){o=!1;var c=r;r=null,n.next(c)}};t.subscribe(k(n,function(c){i?.unsubscribe(),o=!0,r=c,i=k(n,l,Y),O(e(c)).subscribe(i)},function(){l(),n.complete()},void 0,function(){r=i=null}))})}function Xe(e,t){return t===void 0&&(t=ae),T(function(n,o){var r=null,i=null,l=null,c=function(){if(r){r.unsubscribe(),r=null;var u=i;i=null,o.next(u)}};function s(){var u=l+e,f=t.now();if(f<u){r=this.schedule(void 0,u-f),o.add(r);return}c()}n.subscribe(k(o,function(u){i=u,l=t.now(),r||(r=t.schedule(s,e),o.add(r))},function(){c(),o.complete()},void 0,function(){i=r=null}))})}function Qe(e){return T(function(t,n){var o=!1;t.subscribe(k(n,function(r){o=!0,n.next(r)},function(){o||n.next(e),n.complete()}))})}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ro()(ue(e,Ce(e)))}var me=new N(function(e){return e.complete()});function Te(e){return e<=0?function(){return me}:T(function(t,n){var o=0;t.subscribe(k(n,function(r){++o<=e&&(n.next(r),e<=o&&n.complete())}))})}function ao(){return T(function(e,t){e.subscribe(k(t,Y))})}function ka(e){return E(function(){return e})}function G(e,t){return t?function(n){return Ke(t.pipe(Te(1),ao()),n.pipe(G(e)))}:fe(function(n,o){return O(e(n,o)).pipe(Te(1),ka(n))})}function Ta(e,t){t===void 0&&(t=ae);var n=V(e,t);return G(function(){return n})}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ce(e);return ue(e,n)}function xa(e,t){return T(function(n,o){var r=new Set;n.subscribe(k(o,function(i){var l=e?e(i):i;r.has(l)||(r.add(l),o.next(i))})),t&&O(t).subscribe(k(o,function(){return r.clear()},Y))})}function Ft(e,t){return t===void 0&&(t=H),e=e??Ea,T(function(n,o){var r,i=!0;n.subscribe(k(o,function(l){var c=t(l);(i||!e(r,c))&&(i=!1,r=c,o.next(l))}))})}function Ea(e,t){return e===t}var lo=_e(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}});function $e(e,t){return T(function(n,o){var r=0;n.subscribe(k(o,function(i){return e.call(t,i,r++)&&o.next(i)}))})}var Ze=_e(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function It(e){return e===void 0&&(e=Fa),T(function(t,n){var o=!1;t.subscribe(k(n,function(r){o=!0,n.next(r)},function(){return o?n.complete():n.error(e())}))})}function Fa(){return new Ze}function Ia(e,t){if(e<0)throw new lo;var n=arguments.length>=2;return function(o){return o.pipe($e(function(r,i){return i===e}),Te(1),n?Qe(t):It(function(){return new lo}))}}function Ra(e,t){return T(function(n,o){var r=0;n.subscribe(k(o,function(i){e.call(t,i,r++,n)||(o.next(!1),o.complete())},function(){o.next(!0),o.complete()}))})}function Rt(e,t){return t?function(n){return n.pipe(Rt(function(o,r){return O(e(o,r)).pipe(E(function(i,l){return t(o,i,r,l)}))}))}:T(function(n,o){var r=0,i=null,l=!1;n.subscribe(k(o,function(c){i||(i=k(o,void 0,function(){i=null,l&&o.complete()}),O(e(c,r++)).subscribe(i))},function(){l=!0,!i&&o.complete()}))})}function Ba(){return Rt(H)}function Pa(e){return T(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function Oa(e,t){return T(so(e,t,"value"))}function so(e,t,n){var o=n==="index";return function(r,i){var l=0;r.subscribe(k(i,function(c){var s=l++;e.call(t,c,s,r)&&(i.next(o?s:c),i.complete())},function(){i.next(o?-1:void 0),i.complete()}))}}function $a(e,t){return T(so(e,t,"index"))}function Aa(e,t){var n=arguments.length>=2;return function(o){return o.pipe(e?$e(function(r,i){return e(r,i,o)}):H,Te(1),n?Qe(t):It(function(){return new Ze}))}}function Va(e,t,n,o){return T(function(r,i){var l;!t||typeof t=="function"?l=t:(n=t.duration,l=t.element,o=t.connector);var c=new Map,s=function(p){c.forEach(p),p(i)},u=function(p){return s(function(y){return y.error(p)})},f=0,d=!1,m=new Un(i,function(p){try{var y=e(p),h=c.get(y);if(!h){c.set(y,h=o?o():new ke);var b=g(y,h);if(i.next(b),n){var S=k(h,function(){h.complete(),S?.unsubscribe()},void 0,void 0,function(){return c.delete(y)});m.add(O(n(b)).subscribe(S))}}h.next(l?l(p):p)}catch(C){u(C)}},function(){return s(function(p){return p.complete()})},u,function(){return c.clear()},function(){return d=!0,f===0});r.subscribe(m);function g(p,y){var h=new N(function(b){f++;var S=y.subscribe(b);return function(){S.unsubscribe(),--f===0&&d&&m.unsubscribe()}});return h.key=p,h}})}function La(){return T(function(e,t){e.subscribe(k(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}function co(e){return e<=0?function(){return me}:T(function(t,n){var o=[];t.subscribe(k(n,function(r){o.push(r),e<o.length&&o.shift()},function(){var r,i;try{for(var l=Z(o),c=l.next();!c.done;c=l.next()){var s=c.value;n.next(s)}}catch(u){r={error:u}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}n.complete()},void 0,function(){o=null}))})}function Na(e,t){var n=arguments.length>=2;return function(o){return o.pipe(e?$e(function(r,i){return e(r,i,o)}):H,co(1),n?Qe(t):It(function(){return new Ze}))}}function Ma(e){return pe(A(e)?function(t,n){return e(t,n)>0?t:n}:function(t,n){return t>n?t:n})}function Da(e,t,n){return n===void 0&&(n=1/0),T(function(o,r){var i=t;return eo(o,r,function(l,c){return e(i,l,c)},n,function(l){i=l},!1,void 0,function(){return i=null})})}function za(e){return pe(A(e)?function(t,n){return e(t,n)<0?t:n}:function(t,n){return t<n?t:n})}function ja(){return T(function(e,t){var n,o=!1;e.subscribe(k(t,function(r){var i=n;n=r,o&&t.next([i,r]),o=!0}))})}var uo=function(e){K(t,e);function t(n){var o=e.call(this)||this;return o._value=n,o}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var o=e.prototype._subscribe.call(this,n);return!o.closed&&n.next(this._value),o},t.prototype.getValue=function(){var n=this,o=n.hasError,r=n.thrownError,i=n._value;if(o)throw r;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(ke),Je=function(e){K(t,e);function t(n,o,r){n===void 0&&(n=1/0),o===void 0&&(o=1/0),r===void 0&&(r=He);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=o,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(n){var o=this,r=o.isStopped,i=o._buffer,l=o._infiniteTimeWindow,c=o._timestampProvider,s=o._windowTime;r||(i.push(n),!l&&i.push(c.now()+s)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(n),r=this,i=r._infiniteTimeWindow,l=r._buffer,c=l.slice(),s=0;s<c.length&&!n.closed;s+=i?1:2)n.next(c[s]);return this._checkFinalizedStatuses(n),o},t.prototype._trimBuffer=function(){var n=this,o=n._bufferSize,r=n._timestampProvider,i=n._buffer,l=n._infiniteTimeWindow,c=(l?1:2)*o;if(o<1/0&&c<i.length&&i.splice(0,i.length-c),!l){for(var s=r.now(),u=0,f=1;f<i.length&&i[f]<=s;f+=2)u=f;u&&i.splice(0,u+1)}},t}(ke);function Ua(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=oo(e),e.length===1?O(e[0]):new N(Ha(e))}function Ha(e){return function(t){for(var n=[],o=function(i){n.push(O(e[i]).subscribe(k(t,function(l){if(n){for(var c=0;c<n.length;c++)c!==i&&n[c].unsubscribe();n=null}t.next(l)})))},r=0;n&&!t.closed&&r<e.length;r++)o(r)}}function Ga(e){var t,n=1/0,o;return e!=null&&(typeof e=="object"?(t=e.count,n=t===void 0?1/0:t,o=e.delay):n=e),n<=0?function(){return me}:T(function(r,i){var l=0,c,s=function(){if(c?.unsubscribe(),c=null,o!=null){var f=typeof o=="number"?V(o):O(o(l)),d=k(i,function(){d.unsubscribe(),u()});f.subscribe(d)}else u()},u=function(){var f=!1;c=r.subscribe(k(i,void 0,function(){++l<n?c?s():f=!0:i.complete()})),f&&s()};u()})}function fo(e){return T(function(t,n){var o=!1,r=null;t.subscribe(k(n,function(i){o=!0,r=i})),O(e).subscribe(k(n,function(){if(o){o=!1;var i=r;r=null,n.next(i)}},Y))})}function po(e,t){return e===void 0&&(e=0),t===void 0&&(t=ae),e<0&&(e=0),V(e,e,t)}function qa(e,t){return t===void 0&&(t=ae),fo(po(e,t))}function Ya(e,t){return T(to(e,t,arguments.length>=2,!0))}function Xa(e,t){return t===void 0&&(t=function(n,o){return n===o}),T(function(n,o){var r=mo(),i=mo(),l=function(s){o.next(s),o.complete()},c=function(s,u){var f=k(o,function(d){var m=u.buffer,g=u.complete;m.length===0?g?l(!1):s.buffer.push(d):!t(d,m.shift())&&l(!1)},function(){s.complete=!0;var d=u.complete,m=u.buffer;d&&l(m.length===0),f?.unsubscribe()});return f};n.subscribe(c(r,i)),O(e).subscribe(c(i,r))})}function mo(){return{buffer:[],complete:!1}}function We(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new ke}:t,o=e.resetOnError,r=o===void 0?!0:o,i=e.resetOnComplete,l=i===void 0?!0:i,c=e.resetOnRefCountZero,s=c===void 0?!0:c;return function(u){var f,d,m,g=0,p=!1,y=!1,h=function(){d?.unsubscribe(),d=void 0},b=function(){h(),f=m=void 0,p=y=!1},S=function(){var C=f;b(),C?.unsubscribe()};return T(function(C,x){g++,!y&&!p&&h();var F=m=m??n();x.add(function(){g--,g===0&&!y&&!p&&(d=Bt(S,s))}),F.subscribe(x),!f&&g>0&&(f=new Oe({next:function(_){return F.next(_)},error:function(_){y=!0,h(),d=Bt(b,r,_),F.error(_)},complete:function(){p=!0,h(),d=Bt(b,l),F.complete()}}),O(C).subscribe(f))})(u)}}function Bt(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(t===!0){e();return}if(t!==!1){var r=new Oe({next:function(){r.unsubscribe(),e()}});return O(t.apply(void 0,W([],J(n)))).subscribe(r)}}var Qa=_e(function(e){return function(n){e(this),this.name="SequenceError",this.message=n}}),Ka=_e(function(e){return function(n){e(this),this.name="NotFoundError",this.message=n}});function Za(e){return T(function(t,n){var o=!1,r,i=!1,l=0;t.subscribe(k(n,function(c){i=!0,(!e||e(c,l++,t))&&(o&&n.error(new Qa("Too many matching values")),o=!0,r=c)},function(){o?(n.next(r),n.complete()):n.error(i?new Ka("No matching values"):new Ze)}))})}function Ja(e){return $e(function(t,n){return e<=n})}function Wa(e){return e<=0?H:T(function(t,n){var o=new Array(e),r=0;return t.subscribe(k(n,function(i){var l=r++;if(l<e)o[l]=i;else{var c=l%e,s=o[c];o[c]=i,n.next(s)}})),function(){o=null}})}function el(e){return T(function(t,n){var o=!1,r=k(n,function(){r?.unsubscribe(),o=!0},Y);O(e).subscribe(r),t.subscribe(k(n,function(i){return o&&n.next(i)}))})}function tl(e){return T(function(t,n){var o=!1,r=0;t.subscribe(k(n,function(i){return(o||(o=!e(i,r++)))&&n.next(i)}))})}function nl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ce(e);return T(function(o,r){(n?Ke(e,o,n):Ke(e,o)).subscribe(r)})}function et(e,t){return T(function(n,o){var r=null,i=0,l=!1,c=function(){return l&&!r&&o.complete()};n.subscribe(k(o,function(s){r?.unsubscribe();var u=0,f=i++;O(e(s,f)).subscribe(r=k(o,function(d){return o.next(t?t(s,d,f,u++):d)},function(){r=null,c()}))},function(){l=!0,c()}))})}function ol(){return et(H)}function rl(e,t){return T(function(n,o){var r=t;return et(function(i,l){return e(r,i,l)},function(i,l){return r=l,l})(n).subscribe(o),function(){r=null}})}function tt(e){return T(function(t,n){O(e).subscribe(k(n,function(){return n.complete()},Y)),!n.closed&&t.subscribe(n)})}function il(e,t){return t===void 0&&(t=!1),T(function(n,o){var r=0;n.subscribe(k(o,function(i){var l=e(i,r++);(l||t)&&o.next(i),!l&&o.complete()}))})}function ge(e,t,n){var o=A(e)||t||n?{next:e,error:t,complete:n}:e;return o?T(function(r,i){var l;(l=o.subscribe)===null||l===void 0||l.call(o);var c=!0;r.subscribe(k(i,function(s){var u;(u=o.next)===null||u===void 0||u.call(o,s),i.next(s)},function(){var s;c=!1,(s=o.complete)===null||s===void 0||s.call(o),i.complete()},function(s){var u;c=!1,(u=o.error)===null||u===void 0||u.call(o,s),i.error(s)},function(){var s,u;c&&((s=o.unsubscribe)===null||s===void 0||s.call(o)),(u=o.finalize)===null||u===void 0||u.call(o)}))}):H}function ho(e,t){return T(function(n,o){var r=t??{},i=r.leading,l=i===void 0?!0:i,c=r.trailing,s=c===void 0?!1:c,u=!1,f=null,d=null,m=!1,g=function(){d?.unsubscribe(),d=null,s&&(h(),m&&o.complete())},p=function(){d=null,m&&o.complete()},y=function(b){return d=O(e(b)).subscribe(k(o,g,p))},h=function(){if(u){u=!1;var b=f;f=null,o.next(b),!m&&y(b)}};n.subscribe(k(o,function(b){u=!0,f=b,!(d&&!d.closed)&&(l?h():y(b))},function(){m=!0,!(s&&u&&d&&!d.closed)&&o.complete()}))})}function al(e,t,n){t===void 0&&(t=ae);var o=V(e,t);return ho(function(){return o},n)}function ll(e){return e===void 0&&(e=ae),T(function(t,n){var o=e.now();t.subscribe(k(n,function(r){var i=e.now(),l=i-o;o=i,n.next(new sl(r,l))}))})}var sl=function(){function e(t,n){this.value=t,this.interval=n}return e}();function go(e){return e===void 0&&(e=He),E(function(t){return{value:t,timestamp:e.now()}})}function cl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ge(e);return T(function(o,r){for(var i=e.length,l=new Array(i),c=e.map(function(){return!1}),s=!1,u=function(d){O(e[d]).subscribe(k(r,function(m){l[d]=m,!s&&!c[d]&&(c[d]=!0,(s=c.every(H))&&(c=null))},Y))},f=0;f<i;f++)u(f);o.subscribe(k(r,function(d){if(s){var m=W([d],J(l));r.next(n?n.apply(void 0,W([],J(m))):m)}}))})}function ul(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ge(e),o=oo(e);return o.length?new N(function(r){var i=o.map(function(){return[]}),l=o.map(function(){return!1});r.add(function(){i=l=null});for(var c=function(u){O(o[u]).subscribe(k(r,function(f){if(i[u].push(f),i.every(function(m){return m.length})){var d=i.map(function(m){return m.shift()});r.next(n?n.apply(void 0,W([],J(d))):d),i.some(function(m,g){return!m.length&&l[g]})&&r.complete()}},function(){l[u]=!0,!i[u].length&&r.complete()}))},s=0;!r.closed&&s<o.length;s++)c(s);return function(){i=l=null}}):me}var fl=function(e){K(t,e);function t(n,o){n===void 0&&(n=dl),o===void 0&&(o=1/0);var r=e.call(this,n,function(){return r.frame})||this;return r.maxFrames=o,r.frame=0,r.index=-1,r}return t.prototype.flush=function(){for(var n=this,o=n.actions,r=n.maxFrames,i,l;(l=o[0])&&l.delay<=r&&(o.shift(),this.frame=l.delay,!(i=l.execute(l.state,l.delay))););if(i){for(;l=o.shift();)l.unsubscribe();throw i}},t.frameTimeFactor=10,t}(Yn),dl=function(e){K(t,e);function t(n,o,r){r===void 0&&(r=n.index+=1);var i=e.call(this,n,o)||this;return i.scheduler=n,i.work=o,i.index=r,i.active=!0,i.index=n.index=r,i}return t.prototype.schedule=function(n,o){if(o===void 0&&(o=0),Number.isFinite(o)){if(!this.id)return e.prototype.schedule.call(this,n,o);this.active=!1;var r=new t(this.scheduler,this.work);return this.add(r),r.schedule(n,o)}else return ce.EMPTY},t.prototype.requestAsyncId=function(n,o,r){r===void 0&&(r=0),this.delay=n.frame+r;var i=n.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(n,o,r){},t.prototype._execute=function(n,o){if(this.active===!0)return e.prototype._execute.call(this,n,o)},t.sortActions=function(n,o){return n.delay===o.delay?n.index===o.index?0:n.index>o.index?1:-1:n.delay>o.delay?1:-1},t}(Gn);function Pt(e){return new N(function(t){O(e()).subscribe(t)})}function pl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ge(e),o=Xn(e),r=o.args,i=o.keys,l=new N(function(c){var s=r.length;if(!s){c.complete();return}for(var u=new Array(s),f=s,d=s,m=function(p){var y=!1;O(r[p]).subscribe(k(c,function(h){y||(y=!0,d--),u[p]=h},function(){return f--},void 0,function(){(!f||!y)&&(d||c.next(i?Jn(i,u):u),c.complete())}))},g=0;g<s;g++)m(g)});return n?l.pipe(Et(n)):l}function ml(e,t,n,o,r){var i,l,c,s;arguments.length===1?(i=e,s=i.initialState,t=i.condition,n=i.iterate,l=i.resultSelector,c=l===void 0?H:l,r=i.scheduler):(s=e,!o||kt(o)?(c=H,r=o):c=o);function u(){var f;return vt(this,function(d){switch(d.label){case 0:f=s,d.label=1;case 1:return!t||t(f)?[4,c(f)]:[3,4];case 2:d.sent(),d.label=3;case 3:return f=n(f),[3,1];case 4:return[2]}})}return Pt(r?function(){return Kn(u(),r)}:u)}function hl(e,t,n){return Pt(function(){return e()?t:n})}function gl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ce(e),o=Wi(e,1/0),r=e;return r.length?r.length===1?O(r[0]):Ye(o)(ue(r,n)):me}function xe(e,t,n){if(t==null&&(t=e,e=0),t<=0)return me;var o=t+e;return new N(n?function(r){var i=e;return n.schedule(function(){i<o?(r.next(i++),this.schedule()):r.complete()})}:function(r){for(var i=e;i<o&&!r.closed;)r.next(i++);r.complete()})}const yo={"Creation Observables":{defer:{label:"defer(() => of(10, 20, 30))",inputs:[],apply:function(e,t){return Pt(()=>he(10,20,30).pipe(G(n=>V(n,t))))}},EMPTY:{label:"EMPTY",inputs:[],apply:function(e,t){return me}},from:{label:"from([10, 20, 30])",inputs:[],apply:function(e,t){return ue([10,20,30]).pipe(G(n=>V(n,t)))}},fromEvent:{label:"fromEvent(document, 'click')",inputs:[],apply:function(e,t){let n=30;return ue(["ev","ev"]).pipe(G(o=>V(n+=20,t)))}},fromEventPattern:{label:"fromEventPattern(addHandler, removeHandler)",inputs:[],apply:function(e,t){let n=30;return ue(["ev","ev"]).pipe(G(o=>V(n+=20,t)))}},generate:{label:"generate({initialState: 0,condition: (x) => x < 3,iterate: (x) => x + 1,resultSelector: (x) => x})",inputs:[],apply:function(e,t){return ml({initialState:0,condition:n=>n<3,iterate:n=>n+1,resultSelector:n=>n}).pipe(G(n=>V(n*10,t)))}},iif:{label:"iif(() => boolean, trueObservable, falseObservable)",inputs:[],apply:function(e,t){return hl(()=>!0,he("true"),he("false"))}},interval:{label:"interval(10, scheduler)",inputs:[],apply:function(e,t){return po(10,t)}},of:{label:"of(1,2,3)",inputs:[],apply:function(e,t){return he(1,2,3).pipe(G(n=>V(n*10,t)))}},range:{label:"range(1, 10)",inputs:[],apply:function(e,t){return xe(1,10).pipe(G(n=>V(n*10,t)))}},timer:{label:"timer(start: 30, interval: 10)",inputs:[],apply:function(e,t){return V(30,10,t)}}},"Combination Operators":{combineLatest:{label:"combineLatest([$0, $1])",inputs:[[{t:0,c:1},{t:20,c:2},{t:65,c:3},{t:75,c:4},{t:92,c:5}],[{t:10,c:"A"},{t:25,c:"B"},{t:50,c:"C"},{t:57,c:"D"}]],apply:function(e){return qe([e[0],e[1]]).pipe(E(([t,n])=>`[${t.content},${n.content}]`))}},concat:{label:"concat",inputs:[[{t:0,c:1},{t:15,c:1},{t:50,c:1},57],[{t:0,c:2},{t:8,c:2},12]],apply:function(e){return Ke(...e)}},forkJoin:{label:"forkJoin",inputs:[[{t:0,c:"A"},{t:15,c:"B"},{t:30,c:"C"},50],[{t:37,c:"D"},{t:68,c:"E"},80]],apply:function(e){return pl(e).pipe(E(([t,n])=>`[${t.content},${n.content}]`))}},merge:{label:"merge",inputs:[[{t:0,c:1},{t:15,c:1},{t:50,c:1},57],[{t:0,c:2},{t:8,c:2},12]],apply:function(e){return gl(...e)}},race:{label:"race",inputs:[[{t:10,c:20},{t:20,c:40},{t:30,c:60}],[{t:5,c:1},{t:15,c:2},{t:25,c:3}],[{t:20,c:0},{t:32,c:0},{t:44,c:0}]],apply:function(e){return Ua(e)}},zip:{label:"zip",inputs:[[{t:0,c:1},{t:20,c:2},{t:65,c:3},{t:75,c:4},{t:92,c:5}],[{t:10,c:"A"},{t:25,c:"B"},{t:50,c:"C"},{t:57,c:"D"}]],apply:function(e){return ul(e[0],e[1],(t,n)=>""+t.content+n.content)}}},"Flattern Operators":{combineLatestAll:{label:"combineLatestAll",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:20,c:"C"},25],[{t:0,c:"D"},{t:10,c:"E"},{t:20,c:"F"},25]],apply:function(e,t){return xe(0,e.length).pipe(G(o=>V(o*20,t)),E(o=>e[o])).pipe(va(),E(([o,r])=>`[${o.content},${r.content}]`))}},concatAll:{label:"concatAll",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:20,c:"C"},25],[{t:0,c:"D"},{t:10,c:"E"},{t:20,c:"F"},25],[{t:0,c:"G"},{t:10,c:"H"},{t:20,c:"I"},25]],apply:function(e,t){return xe(0,e.length).pipe(G(o=>V(o*20,t)),E(o=>e[o])).pipe(ro())}},exhaustAll:{label:"exhaustAll",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:20,c:"C"},25],[{t:0,c:"D"},{t:10,c:"E"},{t:20,c:"F"},25],[{t:0,c:"G"},{t:10,c:"H"},{t:20,c:"I"},25]],apply:function(e,t){return xe(0,e.length).pipe(G(o=>V(o*20,t)),E(o=>e[o])).pipe(Ba())}},mergeAll:{label:"mergeAll",inputs:[[{t:0,c:"A"},{t:5,c:"B"},{t:15,c:"C"},25],[{t:0,c:"D"},{t:8,c:"E"},{t:18,c:"F"},25],[{t:0,c:"G"},{t:10,c:"H"},{t:20,c:"I"},25]],apply:function(e,t){return xe(0,e.length).pipe(G(o=>V(o*20,t)),E(o=>e[o])).pipe(Ye())}},switchAll:{label:"switchAll",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:20,c:"C"},25],[{t:0,c:"D"},{t:10,c:"E"},{t:20,c:"F"},25],[{t:0,c:"G"},{t:10,c:"H"},{t:20,c:"I"},25]],apply:function(e,t){return xe(0,e.length).pipe(G(o=>V(o*20,t)),E(o=>e[o])).pipe(ol())}}},"Multicasting Operators":{share:{label:"share",inputs:[[{t:10,c:"1"},{t:20,c:"2"},{t:70,c:"1"}]],apply:(e,t)=>e[0].pipe(E(n=>n.content),We())}},"Transformation Operators":{buffer:{label:"buffer",inputs:[[{t:9,c:"A"},{t:23,c:"B"},{t:40,c:"C"},{t:54,c:"D"},{t:60,c:"E"},{t:85,c:"F"}],[{t:33,c:0},{t:66,c:0},{t:90,c:0}]],apply:function(e){return e[0].pipe(E(t=>t.content),Zi(e[1]),E(t=>`[${t}]`))}},bufferCount:{label:"bufferCount(3, 2)",inputs:[[{t:9,c:"A"},{t:23,c:"B"},{t:40,c:"C"},{t:54,c:"D"},{t:71,c:"E"},{t:85,c:"F"},90]],apply:function(e){return e[0].pipe(E(t=>t.content),Ji(3,2),E(t=>`[${t}]`),ge(console.log))}},bufferTime:{label:"bufferTime(30)",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:22,c:"C"},{t:61,c:"D"},{t:71,c:"E"},{t:95,c:"F"}]],apply:function(e,t){return e[0].pipe(E(n=>n.content),ea(30,t),E(n=>`[${n}]`))}},bufferToggle:{label:"bufferToggle(open$, x => timer(x))",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3},{t:30,c:4},{t:40,c:5},{t:50,c:6},{t:60,c:7},{t:70,c:8},{t:80,c:9}],[{t:15,c:10},{t:45,c:30}]],apply:function(e,t){return e[0].pipe(E(n=>n.content),ta(e[1],n=>V(n.content,t)),E(n=>`[${n}]`))}},bufferWhen:{label:"bufferWhen",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3},{t:30,c:4},{t:40,c:5},{t:50,c:6},{t:60,c:7},{t:70,c:8},{t:80,c:9}],[{t:35,c:0},{t:50,c:0}]],apply:function(e){return e[0].pipe(E(t=>t.content),na(()=>e[1]),E(t=>`[${t}]`))}},concatMap:{label:"concatMap",inputs:[[{t:0,c:"A"},{t:42,c:"B"},{t:55,c:"C"}],[{t:0,c:1},{t:10,c:2},{t:20,c:3},20]],apply:function(e,t){return e[0].pipe(wa(n=>e[1].pipe(E(o=>""+n.content+o.content))))}},exhaustMap:{label:"exhaustMap",inputs:[[{t:0,c:"A"},{t:42,c:"B"},{t:55,c:"C"}],[{t:0,c:1},{t:10,c:2},{t:20,c:3},20]],apply:function(e,t){return e[0].pipe(Rt(n=>e[1].pipe(E(o=>""+n.content+o.content))))}},groupBy:{label:"groupBy(i => i.content)【结果3,4重合】",inputs:[[{t:10,c:1},{t:20,c:2},{t:30,c:1},{t:40,c:2},{t:50,c:1},60]],apply:function(e,t){return e[0].pipe(Va(n=>n.content),fe(n=>n.pipe(pe((o,r)=>o+r.content,0))),ge(console.log))}},map:{label:"map(x => 10 * x)",inputs:[[{t:10,c:1},{t:20,c:2},{t:50,c:3}]],apply:function(e){return e[0].pipe(E(t=>t.content*10))}},mergeMap:{label:"mergeMap",inputs:[[{t:0,c:"A"},{t:42,c:"B"},{t:55,c:"C"}],[{t:0,c:1},{t:10,c:2},{t:20,c:3},20]],apply:function(e,t){return e[0].pipe(fe(n=>e[1].pipe(E(o=>""+n.content+o.content))))}},mergeScan:{label:"mergeScan",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},70]],apply:function(e){return e[0].pipe(Da((t,n)=>he(t+n.content),0))}},pairwise:{label:"pairwise",inputs:[[{t:9,c:"A"},{t:23,c:"B"},{t:40,c:"C"},{t:54,c:"D"},{t:71,c:"E"},{t:85,c:"F"}]],apply:function(e){return e[0].pipe(E(t=>t.content),ja(),E(t=>`[${t}]`))}},repeat:{label:"repeat(3)",inputs:[[{t:0,c:"A"},{t:12,c:"B"},26]],apply:function(e){return e[0].pipe(Ga(3))}},scan:{label:"scan",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5}]],apply:function(e){return e[0].pipe(Ya((t,n)=>t+n.content,0))}},startWith:{label:"startWith(1)",inputs:[[{t:30,c:2},{t:40,c:3}]],apply:function(e,t){return e[0].pipe(nl(1,t))}},switchMap:{label:"switchMap",inputs:[[{t:0,c:"A"},{t:42,c:"B"},{t:55,c:"C"}],[{t:0,c:1},{t:10,c:2},{t:20,c:3},25]],apply:function(e,t){return e[0].pipe(E(n=>n.content),et(()=>e[1].pipe(E(n=>n.content)),(n,o)=>""+n+o))}},switchScan:{label:"switchScan",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},70]],apply:function(e){return e[0].pipe(rl((t,n)=>he(t+n.content),0))}},withLatestFrom:{label:'withLatestFrom(input, (x, y) => "" + x + y)',inputs:[[{t:0,c:1},{t:20,c:2},{t:65,c:3},{t:75,c:4},{t:92,c:5}],[{t:10,c:"A"},{t:25,c:"B"},{t:50,c:"C"},{t:57,c:"D"}]],apply:function(e){return e[0].pipe(cl(e[1],(t,n)=>""+t.content+n.content))}}},"Filtering Operators":{audit:{label:"audit",inputs:[[{t:0,c:1},{t:26,c:2},{t:34,c:3},{t:40,c:4},{t:45,c:5},{t:79,c:6}],[{t:30,c:"A"},{t:60,c:"B"}]],apply:function(e,t){return e[0].pipe(Hn(()=>e[1].pipe(ge(console.log))))}},auditTime:{label:"auditTime(30)",inputs:[[{t:0,c:0},{t:26,c:26},{t:34,c:34},{t:40,c:40},{t:45,c:45},{t:79,c:79}]],apply:function(e,t){return e[0].pipe(Ki(30,t))}},debounce:{label:"debounce",inputs:[[{t:0,c:1},{t:26,c:2},{t:34,c:1},{t:40,c:1},{t:45,c:2},{t:79,c:1}]],apply:function(e,t){return e[0].pipe(Ca(n=>V(n.content*10,t)))}},debounceTime:{label:"debounceTime(10)",inputs:[[{t:0,c:1},{t:26,c:2},{t:34,c:3},{t:40,c:4},{t:45,c:5},{t:79,c:6}]],apply:function(e,t){return e[0].pipe(Xe(10,t))}},distinct:{label:"distinct",inputs:[[{t:5,c:1},{t:20,c:2},{t:35,c:2},{t:60,c:1},{t:70,c:3}]],apply:function(e){return e[0].pipe(xa(t=>t.content))}},distinctUntilChanged:{label:"distinctUntilChanged",inputs:[[{t:5,c:1},{t:20,c:2},{t:35,c:2},{t:60,c:1},{t:70,c:3}]],apply:function(e){return e[0].pipe(Ft(void 0,t=>t.content))}},elementAt:{label:"elementAt(2)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4}]],apply:function(e,t){return e[0].pipe(Ia(2))}},filter:{label:"filter(x => x > 10)",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1}]],apply:function(e){return e[0].pipe($e(t=>t.content>10))}},find:{label:"find(x => x > 10)",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1}]],apply:function(e,t){return e[0].pipe(Oa(n=>n.content>10))}},findIndex:{label:"findIndex(x => x > 10)",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1}]],apply:function(e,t){return e[0].pipe($a(({content:n})=>n>10))}},first:{label:"first",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4},85]],apply:function(e){return e[0].pipe(Aa())}},ignoreElements:{label:"ignoreElements",inputs:[[{t:20,c:"A"},{t:40,c:"B"},{t:50,c:"C"},{t:75,c:"D"},90]],apply:function(e){return e[0].pipe(ao())}},last:{label:"last",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4},85]],apply:function(e){return e[0].pipe(Na())}},sample:{label:"sample",inputs:[[{t:0,c:1},{t:20,c:2},{t:40,c:3},{t:60,c:4},{t:80,c:5}],[{t:10,c:"A"},{t:25,c:"B"},{t:33,c:"C"},{t:70,c:"D"},90]],apply:function(e){return e[0].pipe(fo(e[1]))}},sampleTime:{label:"sampleTime(10)",inputs:[[{t:0,c:1},{t:20,c:2},{t:40,c:3},{t:60,c:4},{t:80,c:5}]],apply:function(e,t){return e[0].pipe(qa(10,t))}},single:{label:"single",inputs:[[{t:0,c:1},{t:20,c:2},{t:40,c:3},{t:60,c:4},{t:80,c:5},100]],apply:function(e,t){return e[0].pipe(Za(n=>n.content==3))}},skip:{label:"skip(2)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4}]],apply:function(e){return e[0].pipe(Ja(2))}},skipLast:{label:"skipLast(2)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4}]],apply:function(e){return e[0].pipe(Wa(2))}},skipUntil:{label:"skipUntil",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3},{t:30,c:4},{t:40,c:5},{t:50,c:6},{t:60,c:7},{t:70,c:8},{t:80,c:9}],[{t:45,c:0},{t:73,c:0}]],apply:function(e){return e[0].pipe(el(e[1]))}},skipWhile:{label:"skipWhile(x => x < 5)",inputs:[[{t:5,c:1},{t:20,c:3},{t:35,c:6},{t:50,c:4},{t:65,c:7},{t:80,c:2}]],apply:function(e){return e[0].pipe(tl(t=>t.content<5))}},take:{label:"take(2)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4},85]],apply:function(e,t){return e[0].pipe(Te(2))}},takeLast:{label:"takeLast(1)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4},85]],apply:function(e){return e[0].pipe(co(1))}},takeUntil:{label:"takeUntil",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3},{t:30,c:4},{t:40,c:5},{t:50,c:6},{t:60,c:7},{t:70,c:8},{t:80,c:9}],[{t:45,c:0},{t:73,c:0}]],apply:function(e){return e[0].pipe(tt(e[1]))}},takeWhile:{label:"takeWhile(x => x < 5)",inputs:[[{t:5,c:1},{t:20,c:3},{t:35,c:6},{t:50,c:4},{t:65,c:7},{t:80,c:2}]],apply:function(e){return e[0].pipe(il(t=>t.content<5))}},throttle:{label:"throttle",inputs:[[{t:0,c:1},{t:26,c:2},{t:34,c:1},{t:40,c:1},{t:45,c:2},{t:79,c:1}]],apply:function(e,t){return e[0].pipe(ho(n=>V(n.content*10,1e3,t)))}},throttleTime:{label:"throttleTime(25)",inputs:[[{t:0,c:"A"},{t:8,c:"B"},{t:16,c:"C"},{t:40,c:"D"},{t:55,c:"E"},{t:60,c:"F"},{t:70,c:"G"}]],apply:function(e,t){return e[0].pipe(al(25,t))}}},"Conditional Operators":{defaultIfEmpty:{label:"defaultIfEmpty(true)",inputs:[[99]],apply:function(e){return e[0].pipe(Qe(!0))}},every:{label:"every(x => x < 10)",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},80]],apply:function(e){return e[0].pipe(Ra(({content:t})=>t<10))}},isEmpty:{label:"isEmpty(true)",inputs:[[99]],apply:function(e){return e[0].pipe(La())}},sequenceEqual:{label:"sequenceEqual",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},85],[{t:2,c:1},{t:20,c:2},{t:40,c:3},{t:70,c:4},{t:77,c:5},85]],apply:function(e){return e[0].pipe(Xa(e[1],(t,n)=>t.content===n.content))}}},"Utility Operators":{delay:{label:"delay(20)",inputs:[[{t:10,c:"1"},{t:20,c:"2"},{t:70,c:"1"}]],apply:(e,t)=>e[0].pipe(E(n=>n.content),Ta(20,t))},delayWhen:{label:"delayWhen(x => timer(20 * x))",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:1}]],apply:function(e,t){return e[0].pipe(G(({content:n})=>V(n*20,1e3,t)))}},finalize:{label:"finalize",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3}]],apply:function(e,t){return e[0].pipe(Pa(()=>console.log("finalize")))}},tap:{label:"tap",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:1}]],apply:function(e,t){return e[0].pipe(ge(n=>n.content))}},timeInterval:{label:"timeInterval",inputs:[[{t:10,c:"A"},{t:20,c:"B"},{t:60,c:"C"},{t:90,c:"D"}]],apply:function(e,t){return e[0].pipe(ll(t),E(({value:n,interval:o})=>parseInt(o)))}},timestamp:{label:"timestamp",inputs:[[{t:10,c:"A"},{t:20,c:"B"},{t:60,c:"C"},{t:90,c:"D"}]],apply:function(e,t){return e[0].pipe(go(t),E(({value:n,timestamp:o})=>parseInt(o)))}},toArray:{label:"toArray",inputs:[[{t:10,c:"A"},{t:20,c:"B"},{t:60,c:"C"},70]],apply:function(e,t){return e[0].pipe(E(n=>n.content),no(),E(n=>`[${n}]`))}}},"Mathematical Operators":{count:{label:"count(x => x > 10)",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1},80]],apply:function(e){return e[0].pipe(_a(({content:t})=>t>10))}},max:{label:"max",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1},80]],apply:function(e){return e[0].pipe(Ma((t,n)=>t.content>n.content?1:t.content<n.content?-1:0))}},min:{label:"min",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1},80]],apply:function(e){return e[0].pipe(za((t,n)=>t.content>n.content?1:t.content<n.content?-1:0))}},reduce:{label:"reduce((x, y) => x + y)",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},80]],apply:function(e){return e[0].pipe(pe((t,n)=>Object.assign(t,{content:t.content+n.content,id:t.id+n.id})))}}}},yl=Object.values(yo).reduce((e,t)=>Object.assign(e,t),{}),Ot=100,vl=.3,Ee={blue:"#3EA1CB",yellow:"#FFCB46",red:"#FF6946",green:"#82D736",white:"#FFFFFF",almostWhite:"#ECECEC",greyLight:"#D4D4D4",grey:"#A7A7A7",greyDark:"#7C7C7C",black:"#323232"},bl={color:Ee.greyDark},wl={backgroundColor:Ee.white},nt={spaceTiny:"5px",spaceSmall:"10px",spaceMedium:"22px",spaceLarge:"32px",spaceHuge:"42px",animationDurationQuick:"100ms",animationDurationNormal:"200ms",animationDurationSlow:"400ms"},Sl={fontFamily:{base:"'Source Sans Pro', sans-serif",code:"'Source Code Pro', monospace",special:"'Signika', Helvetica, serif"}.base},_l={"box-shadow":"0px 1px 2px 1px rgba(0,0,0,0.17)"},Cl={padding:`${nt.spaceSmall} ${nt.spaceMedium}`},vo=[Ee.blue,Ee.green,Ee.yellow,Ee.red];Object.assign({fontSize:"1rem",lineHeight:"1.6rem"},bl),nt.spaceLarge;const kl=Object.assign(wl,_l,{borderRadius:"2px"});function bo(e,t,n){return`
3
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function pe(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var se=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,o,r,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Z(l),s=c.next();!s.done;s=c.next()){var u=s.value;u.remove(this)}}catch(y){t={error:y}}finally{try{s&&!s.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}else l.remove(this);var f=this.initialTeardown;if(V(f))try{f()}catch(y){a=y instanceof _t?y.errors:[y]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var m=Z(d),g=m.next();!g.done;g=m.next()){var p=g.value;try{Vn(p)}catch(y){a=a??[],y instanceof _t?a=W(W([],J(a)),J(y.errors)):a.push(y)}}}catch(y){o={error:y}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(o)throw o.error}}}if(a)throw new _t(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Vn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&pe(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&pe(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Pn=se.EMPTY;function $n(e){return e instanceof se||e&&"closed"in e&&V(e.remove)&&V(e.add)&&V(e.unsubscribe)}function Vn(e){V(e)?e():e.unsubscribe()}var An={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wt={setTimeout:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=wt.delegate;return r?.setTimeout?r.setTimeout.apply(r,W([e,t],J(n))):setTimeout.apply(void 0,W([e,t],J(n)))},clearTimeout:function(e){var t=wt.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ln(e){wt.setTimeout(function(){throw e})}function Y(){}function je(e){e()}var St=function(e){K(t,e);function t(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,$n(n)&&n.add(o)):o.destination=ua,o}return t.create=function(n,o,r){return new $e(n,o,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(se),la=Function.prototype.bind;function Ct(e,t){return la.call(e,t)}var ca=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(o){Ue(o)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(o){Ue(o)}else Ue(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Ue(n)}},e}(),$e=function(e){K(t,e);function t(n,o,r){var a=e.call(this)||this,l;if(V(n)||!n)l={next:n??void 0,error:o??void 0,complete:r??void 0};else{var c;a&&An.useDeprecatedNextContext?(c=Object.create(n),c.unsubscribe=function(){return a.unsubscribe()},l={next:n.next&&Ct(n.next,c),error:n.error&&Ct(n.error,c),complete:n.complete&&Ct(n.complete,c)}):l=n}return a.destination=new ca(l),a}return t}(St);function Ue(e){Ln(e)}function sa(e){throw e}var ua={closed:!0,next:Y,error:sa,complete:Y},kt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function H(e){return e}function fa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Nn(e)}function Nn(e){return e.length===0?H:e.length===1?e[0]:function(n){return e.reduce(function(o,r){return r(o)},n)}}var N=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,o){var r=this,a=pa(t)?t:new $e(t,n,o);return je(function(){var l=r,c=l.operator,s=l.source;a.add(c?c.call(a,s):s?r._subscribe(a):r._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var o=this;return n=Mn(n),new n(function(r,a){var l=new $e({next:function(c){try{t(c)}catch(s){a(s),l.unsubscribe()}},error:a,complete:r});o.subscribe(l)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[kt]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Nn(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Mn(t),new t(function(o,r){var a;n.subscribe(function(l){return a=l},function(l){return r(l)},function(){return o(a)})})},e.create=function(t){return new e(t)},e}();function Mn(e){var t;return(t=e??An.Promise)!==null&&t!==void 0?t:Promise}function da(e){return e&&V(e.next)&&V(e.error)&&V(e.complete)}function pa(e){return e&&e instanceof St||da(e)&&$n(e)}function Dn(e){return V(e[kt])}function zn(e){return Symbol.asyncIterator&&V(e?.[Symbol.asyncIterator])}function jn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ma(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Un=ma();function Hn(e){return V(e?.[Un])}function Gn(e){return ia(this,arguments,function(){var n,o,r,a;return bt(this,function(l){switch(l.label){case 0:n=e.getReader(),l.label=1;case 1:l.trys.push([1,,9,10]),l.label=2;case 2:return[4,Ce(n.read())];case 3:return o=l.sent(),r=o.value,a=o.done,a?[4,Ce(void 0)]:[3,5];case 4:return[2,l.sent()];case 5:return[4,Ce(r)];case 6:return[4,l.sent()];case 7:return l.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function qn(e){return V(e?.getReader)}function $(e){if(e instanceof N)return e;if(e!=null){if(Dn(e))return ha(e);if(Rn(e))return ga(e);if(On(e))return ya(e);if(zn(e))return Yn(e);if(Hn(e))return va(e);if(qn(e))return ba(e)}throw jn(e)}function ha(e){return new N(function(t){var n=e[kt]();if(V(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ga(e){return new N(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ya(e){return new N(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Ln)})}function va(e){return new N(function(t){var n,o;try{for(var r=Z(e),a=r.next();!a.done;a=r.next()){var l=a.value;if(t.next(l),t.closed)return}}catch(c){n={error:c}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}t.complete()})}function Yn(e){return new N(function(t){_a(e,t).catch(function(n){return t.error(n)})})}function ba(e){return Yn(Gn(e))}function _a(e,t){var n,o,r,a;return ra(this,void 0,void 0,function(){var l,c;return bt(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=aa(e),s.label=1;case 1:return[4,n.next()];case 2:if(o=s.sent(),!!o.done)return[3,4];if(l=o.value,t.next(l),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=s.sent(),r={error:c},[3,11];case 6:return s.trys.push([6,,9,10]),o&&!o.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function k(e,t,n,o,r){return new Xn(e,t,n,o,r)}var Xn=function(e){K(t,e);function t(n,o,r,a,l,c){var s=e.call(this,n)||this;return s.onFinalize=l,s.shouldUnsubscribe=c,s._next=o?function(u){try{o(u)}catch(f){n.error(f)}}:e.prototype._next,s._error=a?function(u){try{a(u)}catch(f){n.error(f)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(St);function Qn(e){return E(function(t,n){var o=!1,r=null,a=null,l=!1,c=function(){if(a?.unsubscribe(),a=null,o){o=!1;var u=r;r=null,n.next(u)}l&&n.complete()},s=function(){a=null,l&&n.complete()};t.subscribe(k(n,function(u){o=!0,r=u,a||$(e(u)).subscribe(a=k(n,c,s))},function(){l=!0,(!o||!a||a.closed)&&n.complete()}))})}var wa=function(e){K(t,e);function t(n,o){return e.call(this)||this}return t.prototype.schedule=function(n,o){return this},t}(se),He={setInterval:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=He.delegate;return r?.setInterval?r.setInterval.apply(r,W([e,t],J(n))):setInterval.apply(void 0,W([e,t],J(n)))},clearInterval:function(e){var t=He.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},Kn=function(e){K(t,e);function t(n,o){var r=e.call(this,n,o)||this;return r.scheduler=n,r.work=o,r.pending=!1,r}return t.prototype.schedule=function(n,o){var r;if(o===void 0&&(o=0),this.closed)return this;this.state=n;var a=this.id,l=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(l,a,o)),this.pending=!0,this.delay=o,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(l,this.id,o),this},t.prototype.requestAsyncId=function(n,o,r){return r===void 0&&(r=0),He.setInterval(n.flush.bind(n,this),r)},t.prototype.recycleAsyncId=function(n,o,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return o;o!=null&&He.clearInterval(o)},t.prototype.execute=function(n,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(n,o);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,o){var r=!1,a;try{this.work(n)}catch(l){r=!0,a=l||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),a},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,o=n.id,r=n.scheduler,a=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,pe(a,this),o!=null&&(this.id=this.recycleAsyncId(r,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(wa),Ge={now:function(){return(Ge.delegate||Date).now()},delegate:void 0},Zn=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,o){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(o,n)},e.now=Ge.now,e}(),Jn=function(e){K(t,e);function t(n,o){o===void 0&&(o=Zn.now);var r=e.call(this,n,o)||this;return r.actions=[],r._active=!1,r}return t.prototype.flush=function(n){var o=this.actions;if(this._active){o.push(n);return}var r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=o.shift());if(this._active=!1,r){for(;n=o.shift();)n.unsubscribe();throw r}},t}(Zn),ae=new Jn(Kn),Sa=ae;function xt(e){return e&&V(e.schedule)}function Ca(e){return e instanceof Date&&!isNaN(e)}function A(e,t,n){e===void 0&&(e=0),n===void 0&&(n=Sa);var o=-1;return t!=null&&(xt(t)?n=t:o=t),new N(function(r){var a=Ca(e)?+e-n.now():e;a<0&&(a=0);var l=0;return n.schedule(function(){r.closed||(r.next(l++),0<=o?this.schedule(void 0,o):r.complete())},a)})}function ka(e,t){return t===void 0&&(t=ae),Qn(function(){return A(e,t)})}function xa(e){return E(function(t,n){var o=[];return t.subscribe(k(n,function(r){return o.push(r)},function(){n.next(o),n.complete()})),$(e).subscribe(k(n,function(){var r=o;o=[],n.next(r)},Y)),function(){o=null}})}function Ta(e,t){return t===void 0&&(t=null),t=t??e,E(function(n,o){var r=[],a=0;n.subscribe(k(o,function(l){var c,s,u,f,d=null;a++%t===0&&r.push([]);try{for(var m=Z(r),g=m.next();!g.done;g=m.next()){var p=g.value;p.push(l),e<=p.length&&(d=d??[],d.push(p))}}catch(_){c={error:_}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(c)throw c.error}}if(d)try{for(var y=Z(d),h=y.next();!h.done;h=y.next()){var p=h.value;pe(r,p),o.next(p)}}catch(_){u={error:_}}finally{try{h&&!h.done&&(f=y.return)&&f.call(y)}finally{if(u)throw u.error}}},function(){var l,c;try{for(var s=Z(r),u=s.next();!u.done;u=s.next()){var f=u.value;o.next(f)}}catch(d){l={error:d}}finally{try{u&&!u.done&&(c=s.return)&&c.call(s)}finally{if(l)throw l.error}}o.complete()},void 0,function(){r=null}))})}function Tt(e){return e[e.length-1]}function qe(e){return V(Tt(e))?e.pop():void 0}function xe(e){return xt(Tt(e))?e.pop():void 0}function Ea(e,t){return typeof Tt(e)=="number"?e.pop():t}function ee(e,t,n,o,r){o===void 0&&(o=0),r===void 0&&(r=!1);var a=t.schedule(function(){n(),r?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(a),!r)return a}function Fa(e){for(var t,n,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];var a=(t=xe(o))!==null&&t!==void 0?t:ae,l=(n=o[0])!==null&&n!==void 0?n:null,c=o[1]||1/0;return E(function(s,u){var f=[],d=!1,m=function(y){var h=y.buffer,_=y.subs;_.unsubscribe(),pe(f,y),u.next(h),d&&g()},g=function(){if(f){var y=new se;u.add(y);var h=[],_={buffer:h,subs:y};f.push(_),ee(y,a,function(){return m(_)},e)}};l!==null&&l>=0?ee(u,a,g,l,!0):d=!0,g();var p=k(u,function(y){var h,_,w=f.slice();try{for(var C=Z(w),T=C.next();!T.done;T=C.next()){var F=T.value,S=F.buffer;S.push(y),c<=S.length&&m(F)}}catch(B){h={error:B}}finally{try{T&&!T.done&&(_=C.return)&&_.call(C)}finally{if(h)throw h.error}}},function(){for(;f?.length;)u.next(f.shift().buffer);p?.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return f=null});s.subscribe(p)})}function Ia(e,t){return E(function(n,o){var r=[];$(e).subscribe(k(o,function(a){var l=[];r.push(l);var c=new se,s=function(){pe(r,l),o.next(l),c.unsubscribe()};c.add($(t(a)).subscribe(k(o,s,Y)))},Y)),n.subscribe(k(o,function(a){var l,c;try{for(var s=Z(r),u=s.next();!u.done;u=s.next()){var f=u.value;f.push(a)}}catch(d){l={error:d}}finally{try{u&&!u.done&&(c=s.return)&&c.call(s)}finally{if(l)throw l.error}}},function(){for(;r.length>0;)o.next(r.shift());o.complete()}))})}function Ba(e){return E(function(t,n){var o=null,r=null,a=function(){r?.unsubscribe();var l=o;o=[],l&&n.next(l),$(e()).subscribe(r=k(n,a,Y))};a(),t.subscribe(k(n,function(l){return o?.push(l)},function(){o&&n.next(o),n.complete()},void 0,function(){return o=r=null}))})}var Ra=Array.isArray,Oa=Object.getPrototypeOf,Pa=Object.prototype,$a=Object.keys;function Wn(e){if(e.length===1){var t=e[0];if(Ra(t))return{args:t,keys:null};if(Va(t)){var n=$a(t);return{args:n.map(function(o){return t[o]}),keys:n}}}return{args:e,keys:null}}function Va(e){return e&&typeof e=="object"&&Oa(e)===Pa}function Et(e,t){return t===void 0&&(t=0),E(function(n,o){n.subscribe(k(o,function(r){return ee(o,e,function(){return o.next(r)},t)},function(){return ee(o,e,function(){return o.complete()},t)},function(r){return ee(o,e,function(){return o.error(r)},t)}))})}function eo(e,t){return t===void 0&&(t=0),E(function(n,o){o.add(e.schedule(function(){return n.subscribe(o)},t))})}function Aa(e,t){return $(e).pipe(eo(t),Et(t))}function La(e,t){return $(e).pipe(eo(t),Et(t))}function Na(e,t){return new N(function(n){var o=0;return t.schedule(function(){o===e.length?n.complete():(n.next(e[o++]),n.closed||this.schedule())})})}function to(e,t){return new N(function(n){var o;return ee(n,t,function(){o=e[Un](),ee(n,t,function(){var r,a,l;try{r=o.next(),a=r.value,l=r.done}catch(c){n.error(c);return}l?n.complete():n.next(a)},0,!0)}),function(){return V(o?.return)&&o.return()}})}function no(e,t){if(!e)throw new Error("Iterable cannot be null");return new N(function(n){ee(n,t,function(){var o=e[Symbol.asyncIterator]();ee(n,t,function(){o.next().then(function(r){r.done?n.complete():n.next(r.value)})},0,!0)})})}function Ma(e,t){return no(Gn(e),t)}function Da(e,t){if(e!=null){if(Dn(e))return Aa(e,t);if(Rn(e))return Na(e,t);if(On(e))return La(e,t);if(zn(e))return no(e,t);if(Hn(e))return to(e,t);if(qn(e))return Ma(e,t)}throw jn(e)}function ue(e,t){return t?Da(e,t):$(e)}function I(e,t){return E(function(n,o){var r=0;n.subscribe(k(o,function(a){o.next(e.call(t,a,r++))}))})}var za=Array.isArray;function ja(e,t){return za(t)?e.apply(void 0,W([],J(t))):e(t)}function Ft(e){return I(function(t){return ja(e,t)})}function oo(e,t){return e.reduce(function(n,o,r){return n[o]=t[r],n},{})}function Ye(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xe(e),o=qe(e),r=Wn(e),a=r.args,l=r.keys;if(a.length===0)return ue([],n);var c=new N(Ua(a,n,l?function(s){return oo(l,s)}:H));return o?c.pipe(Ft(o)):c}function Ua(e,t,n){return n===void 0&&(n=H),function(o){ro(t,function(){for(var r=e.length,a=new Array(r),l=r,c=r,s=function(f){ro(t,function(){var d=ue(e[f],t),m=!1;d.subscribe(k(o,function(g){a[f]=g,m||(m=!0,c--),c||o.next(n(a.slice()))},function(){--l||o.complete()}))},o)},u=0;u<r;u++)s(u)},o)}}function ro(e,t,n){e?ee(n,e,t):t()}function io(e,t,n,o,r,a,l,c){var s=[],u=0,f=0,d=!1,m=function(){d&&!s.length&&!u&&t.complete()},g=function(y){return u<o?p(y):s.push(y)},p=function(y){a&&t.next(y),u++;var h=!1;$(n(y,f++)).subscribe(k(t,function(_){r?.(_),a?g(_):t.next(_)},function(){h=!0},void 0,function(){if(h)try{u--;for(var _=function(){var w=s.shift();l?ee(t,l,function(){return p(w)}):p(w)};s.length&&u<o;)_();m()}catch(w){t.error(w)}}))};return e.subscribe(k(t,g,function(){d=!0,m()})),function(){c?.()}}function fe(e,t,n){return n===void 0&&(n=1/0),V(t)?fe(function(o,r){return I(function(a,l){return t(o,a,r,l)})($(e(o,r)))},n):(typeof t=="number"&&(n=t),E(function(o,r){return io(o,r,e,n)}))}function ao(e,t,n,o,r){return function(a,l){var c=n,s=t,u=0;a.subscribe(k(l,function(f){var d=u++;s=c?e(s,f,d):(c=!0,f),o&&l.next(s)},r&&function(){c&&l.next(s),l.complete()}))}}function me(e,t){return E(ao(e,t,arguments.length>=2,!1,!0))}var Ha=function(e,t){return e.push(t),e};function lo(){return E(function(e,t){me(Ha,[])(e).subscribe(t)})}function Ga(e,t){return fa(lo(),fe(function(n){return e(n)}),t?Ft(t):H)}function qa(e){return Ga(Ye,e)}var Ya=Array.isArray;function co(e){return e.length===1&&Ya(e[0])?e[0]:e}function Xe(e){return e===void 0&&(e=1/0),fe(H,e)}function so(){return Xe(1)}function Xa(e,t){return V(t)?fe(e,t,1):fe(e,1)}var Qa=ke(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Te=function(e){K(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var o=new uo(this,this);return o.operator=n,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new Qa},t.prototype.next=function(n){var o=this;je(function(){var r,a;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=Z(o.currentObservers),c=l.next();!c.done;c=l.next()){var s=c.value;s.next(n)}}catch(u){r={error:u}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var o=this;je(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var r=o.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;je(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var o=this,r=this,a=r.hasError,l=r.isStopped,c=r.observers;return a||l?Pn:(this.currentObservers=null,c.push(n),new se(function(){o.currentObservers=null,pe(c,n)}))},t.prototype._checkFinalizedStatuses=function(n){var o=this,r=o.hasError,a=o.thrownError,l=o.isStopped;r?n.error(a):l&&n.complete()},t.prototype.asObservable=function(){var n=new N;return n.source=this,n},t.create=function(n,o){return new uo(n,o)},t}(N),uo=function(e){K(t,e);function t(n,o){var r=e.call(this)||this;return r.destination=n,r.source=o,r}return t.prototype.next=function(n){var o,r;(r=(o=this.destination)===null||o===void 0?void 0:o.next)===null||r===void 0||r.call(o,n)},t.prototype.error=function(n){var o,r;(r=(o=this.destination)===null||o===void 0?void 0:o.error)===null||r===void 0||r.call(o,n)},t.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},t.prototype._subscribe=function(n){var o,r;return(r=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&r!==void 0?r:Pn},t}(Te);function Ka(e){return me(function(t,n,o){return!e||e(n,o)?t+1:t},0)}function Za(e){return E(function(t,n){var o=!1,r=null,a=null,l=function(){if(a?.unsubscribe(),a=null,o){o=!1;var c=r;r=null,n.next(c)}};t.subscribe(k(n,function(c){a?.unsubscribe(),o=!0,r=c,a=k(n,l,Y),$(e(c)).subscribe(a)},function(){l(),n.complete()},void 0,function(){r=a=null}))})}function Qe(e,t){return t===void 0&&(t=ae),E(function(n,o){var r=null,a=null,l=null,c=function(){if(r){r.unsubscribe(),r=null;var u=a;a=null,o.next(u)}};function s(){var u=l+e,f=t.now();if(f<u){r=this.schedule(void 0,u-f),o.add(r);return}c()}n.subscribe(k(o,function(u){a=u,l=t.now(),r||(r=t.schedule(s,e),o.add(r))},function(){c(),o.complete()},void 0,function(){a=r=null}))})}function Ke(e){return E(function(t,n){var o=!1;t.subscribe(k(n,function(r){o=!0,n.next(r)},function(){o||n.next(e),n.complete()}))})}function Ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return so()(ue(e,xe(e)))}var he=new N(function(e){return e.complete()});function Ee(e){return e<=0?function(){return he}:E(function(t,n){var o=0;t.subscribe(k(n,function(r){++o<=e&&(n.next(r),e<=o&&n.complete())}))})}function fo(){return E(function(e,t){e.subscribe(k(t,Y))})}function Ja(e){return I(function(){return e})}function G(e,t){return t?function(n){return Ze(t.pipe(Ee(1),fo()),n.pipe(G(e)))}:fe(function(n,o){return $(e(n,o)).pipe(Ee(1),Ja(n))})}function Wa(e,t){t===void 0&&(t=ae);var n=A(e,t);return G(function(){return n})}function ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xe(e);return ue(e,n)}function el(e,t){return E(function(n,o){var r=new Set;n.subscribe(k(o,function(a){var l=e?e(a):a;r.has(l)||(r.add(l),o.next(a))})),t&&$(t).subscribe(k(o,function(){return r.clear()},Y))})}function It(e,t){return t===void 0&&(t=H),e=e??tl,E(function(n,o){var r,a=!0;n.subscribe(k(o,function(l){var c=t(l);(a||!e(r,c))&&(a=!1,r=c,o.next(l))}))})}function tl(e,t){return e===t}var po=ke(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}});function Ve(e,t){return E(function(n,o){var r=0;n.subscribe(k(o,function(a){return e.call(t,a,r++)&&o.next(a)}))})}var Je=ke(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Bt(e){return e===void 0&&(e=nl),E(function(t,n){var o=!1;t.subscribe(k(n,function(r){o=!0,n.next(r)},function(){return o?n.complete():n.error(e())}))})}function nl(){return new Je}function ol(e,t){if(e<0)throw new po;var n=arguments.length>=2;return function(o){return o.pipe(Ve(function(r,a){return a===e}),Ee(1),n?Ke(t):Bt(function(){return new po}))}}function rl(e,t){return E(function(n,o){var r=0;n.subscribe(k(o,function(a){e.call(t,a,r++,n)||(o.next(!1),o.complete())},function(){o.next(!0),o.complete()}))})}function Rt(e,t){return t?function(n){return n.pipe(Rt(function(o,r){return $(e(o,r)).pipe(I(function(a,l){return t(o,a,r,l)}))}))}:E(function(n,o){var r=0,a=null,l=!1;n.subscribe(k(o,function(c){a||(a=k(o,void 0,function(){a=null,l&&o.complete()}),$(e(c,r++)).subscribe(a))},function(){l=!0,!a&&o.complete()}))})}function il(){return Rt(H)}function al(e){return E(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function ll(e,t){return E(mo(e,t,"value"))}function mo(e,t,n){var o=n==="index";return function(r,a){var l=0;r.subscribe(k(a,function(c){var s=l++;e.call(t,c,s,r)&&(a.next(o?s:c),a.complete())},function(){a.next(o?-1:void 0),a.complete()}))}}function cl(e,t){return E(mo(e,t,"index"))}function sl(e,t){var n=arguments.length>=2;return function(o){return o.pipe(e?Ve(function(r,a){return e(r,a,o)}):H,Ee(1),n?Ke(t):Bt(function(){return new Je}))}}function ul(e,t,n,o){return E(function(r,a){var l;!t||typeof t=="function"?l=t:(n=t.duration,l=t.element,o=t.connector);var c=new Map,s=function(p){c.forEach(p),p(a)},u=function(p){return s(function(y){return y.error(p)})},f=0,d=!1,m=new Xn(a,function(p){try{var y=e(p),h=c.get(y);if(!h){c.set(y,h=o?o():new Te);var _=g(y,h);if(a.next(_),n){var w=k(h,function(){h.complete(),w?.unsubscribe()},void 0,void 0,function(){return c.delete(y)});m.add($(n(_)).subscribe(w))}}h.next(l?l(p):p)}catch(C){u(C)}},function(){return s(function(p){return p.complete()})},u,function(){return c.clear()},function(){return d=!0,f===0});r.subscribe(m);function g(p,y){var h=new N(function(_){f++;var w=y.subscribe(_);return function(){w.unsubscribe(),--f===0&&d&&m.unsubscribe()}});return h.key=p,h}})}function fl(){return E(function(e,t){e.subscribe(k(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}function ho(e){return e<=0?function(){return he}:E(function(t,n){var o=[];t.subscribe(k(n,function(r){o.push(r),e<o.length&&o.shift()},function(){var r,a;try{for(var l=Z(o),c=l.next();!c.done;c=l.next()){var s=c.value;n.next(s)}}catch(u){r={error:u}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}n.complete()},void 0,function(){o=null}))})}function dl(e,t){var n=arguments.length>=2;return function(o){return o.pipe(e?Ve(function(r,a){return e(r,a,o)}):H,ho(1),n?Ke(t):Bt(function(){return new Je}))}}function pl(e){return me(V(e)?function(t,n){return e(t,n)>0?t:n}:function(t,n){return t>n?t:n})}function ml(e,t,n){return n===void 0&&(n=1/0),E(function(o,r){var a=t;return io(o,r,function(l,c){return e(a,l,c)},n,function(l){a=l},!1,void 0,function(){return a=null})})}function hl(e){return me(V(e)?function(t,n){return e(t,n)<0?t:n}:function(t,n){return t<n?t:n})}function gl(){return E(function(e,t){var n,o=!1;e.subscribe(k(t,function(r){var a=n;n=r,o&&t.next([a,r]),o=!0}))})}var go=function(e){K(t,e);function t(n){var o=e.call(this)||this;return o._value=n,o}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var o=e.prototype._subscribe.call(this,n);return!o.closed&&n.next(this._value),o},t.prototype.getValue=function(){var n=this,o=n.hasError,r=n.thrownError,a=n._value;if(o)throw r;return this._throwIfClosed(),a},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Te),We=function(e){K(t,e);function t(n,o,r){n===void 0&&(n=1/0),o===void 0&&(o=1/0),r===void 0&&(r=Ge);var a=e.call(this)||this;return a._bufferSize=n,a._windowTime=o,a._timestampProvider=r,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=o===1/0,a._bufferSize=Math.max(1,n),a._windowTime=Math.max(1,o),a}return t.prototype.next=function(n){var o=this,r=o.isStopped,a=o._buffer,l=o._infiniteTimeWindow,c=o._timestampProvider,s=o._windowTime;r||(a.push(n),!l&&a.push(c.now()+s)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(n),r=this,a=r._infiniteTimeWindow,l=r._buffer,c=l.slice(),s=0;s<c.length&&!n.closed;s+=a?1:2)n.next(c[s]);return this._checkFinalizedStatuses(n),o},t.prototype._trimBuffer=function(){var n=this,o=n._bufferSize,r=n._timestampProvider,a=n._buffer,l=n._infiniteTimeWindow,c=(l?1:2)*o;if(o<1/0&&c<a.length&&a.splice(0,a.length-c),!l){for(var s=r.now(),u=0,f=1;f<a.length&&a[f]<=s;f+=2)u=f;u&&a.splice(0,u+1)}},t}(Te);function yl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=co(e),e.length===1?$(e[0]):new N(vl(e))}function vl(e){return function(t){for(var n=[],o=function(a){n.push($(e[a]).subscribe(k(t,function(l){if(n){for(var c=0;c<n.length;c++)c!==a&&n[c].unsubscribe();n=null}t.next(l)})))},r=0;n&&!t.closed&&r<e.length;r++)o(r)}}function bl(e){var t,n=1/0,o;return e!=null&&(typeof e=="object"?(t=e.count,n=t===void 0?1/0:t,o=e.delay):n=e),n<=0?function(){return he}:E(function(r,a){var l=0,c,s=function(){if(c?.unsubscribe(),c=null,o!=null){var f=typeof o=="number"?A(o):$(o(l)),d=k(a,function(){d.unsubscribe(),u()});f.subscribe(d)}else u()},u=function(){var f=!1;c=r.subscribe(k(a,void 0,function(){++l<n?c?s():f=!0:a.complete()})),f&&s()};u()})}function yo(e){return E(function(t,n){var o=!1,r=null;t.subscribe(k(n,function(a){o=!0,r=a})),$(e).subscribe(k(n,function(){if(o){o=!1;var a=r;r=null,n.next(a)}},Y))})}function vo(e,t){return e===void 0&&(e=0),t===void 0&&(t=ae),e<0&&(e=0),A(e,e,t)}function _l(e,t){return t===void 0&&(t=ae),yo(vo(e,t))}function wl(e,t){return E(ao(e,t,arguments.length>=2,!0))}function Sl(e,t){return t===void 0&&(t=function(n,o){return n===o}),E(function(n,o){var r=bo(),a=bo(),l=function(s){o.next(s),o.complete()},c=function(s,u){var f=k(o,function(d){var m=u.buffer,g=u.complete;m.length===0?g?l(!1):s.buffer.push(d):!t(d,m.shift())&&l(!1)},function(){s.complete=!0;var d=u.complete,m=u.buffer;d&&l(m.length===0),f?.unsubscribe()});return f};n.subscribe(c(r,a)),$(e).subscribe(c(a,r))})}function bo(){return{buffer:[],complete:!1}}function et(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new Te}:t,o=e.resetOnError,r=o===void 0?!0:o,a=e.resetOnComplete,l=a===void 0?!0:a,c=e.resetOnRefCountZero,s=c===void 0?!0:c;return function(u){var f,d,m,g=0,p=!1,y=!1,h=function(){d?.unsubscribe(),d=void 0},_=function(){h(),f=m=void 0,p=y=!1},w=function(){var C=f;_(),C?.unsubscribe()};return E(function(C,T){g++,!y&&!p&&h();var F=m=m??n();T.add(function(){g--,g===0&&!y&&!p&&(d=Ot(w,s))}),F.subscribe(T),!f&&g>0&&(f=new $e({next:function(S){return F.next(S)},error:function(S){y=!0,h(),d=Ot(_,r,S),F.error(S)},complete:function(){p=!0,h(),d=Ot(_,l),F.complete()}}),$(C).subscribe(f))})(u)}}function Ot(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(t===!0){e();return}if(t!==!1){var r=new $e({next:function(){r.unsubscribe(),e()}});return $(t.apply(void 0,W([],J(n)))).subscribe(r)}}var Cl=ke(function(e){return function(n){e(this),this.name="SequenceError",this.message=n}}),kl=ke(function(e){return function(n){e(this),this.name="NotFoundError",this.message=n}});function xl(e){return E(function(t,n){var o=!1,r,a=!1,l=0;t.subscribe(k(n,function(c){a=!0,(!e||e(c,l++,t))&&(o&&n.error(new Cl("Too many matching values")),o=!0,r=c)},function(){o?(n.next(r),n.complete()):n.error(a?new kl("No matching values"):new Je)}))})}function Tl(e){return Ve(function(t,n){return e<=n})}function El(e){return e<=0?H:E(function(t,n){var o=new Array(e),r=0;return t.subscribe(k(n,function(a){var l=r++;if(l<e)o[l]=a;else{var c=l%e,s=o[c];o[c]=a,n.next(s)}})),function(){o=null}})}function Fl(e){return E(function(t,n){var o=!1,r=k(n,function(){r?.unsubscribe(),o=!0},Y);$(e).subscribe(r),t.subscribe(k(n,function(a){return o&&n.next(a)}))})}function Il(e){return E(function(t,n){var o=!1,r=0;t.subscribe(k(n,function(a){return(o||(o=!e(a,r++)))&&n.next(a)}))})}function Bl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xe(e);return E(function(o,r){(n?Ze(e,o,n):Ze(e,o)).subscribe(r)})}function tt(e,t){return E(function(n,o){var r=null,a=0,l=!1,c=function(){return l&&!r&&o.complete()};n.subscribe(k(o,function(s){r?.unsubscribe();var u=0,f=a++;$(e(s,f)).subscribe(r=k(o,function(d){return o.next(t?t(s,d,f,u++):d)},function(){r=null,c()}))},function(){l=!0,c()}))})}function Rl(){return tt(H)}function Ol(e,t){return E(function(n,o){var r=t;return tt(function(a,l){return e(r,a,l)},function(a,l){return r=l,l})(n).subscribe(o),function(){r=null}})}function nt(e){return E(function(t,n){$(e).subscribe(k(n,function(){return n.complete()},Y)),!n.closed&&t.subscribe(n)})}function Pl(e,t){return t===void 0&&(t=!1),E(function(n,o){var r=0;n.subscribe(k(o,function(a){var l=e(a,r++);(l||t)&&o.next(a),!l&&o.complete()}))})}function ye(e,t,n){var o=V(e)||t||n?{next:e,error:t,complete:n}:e;return o?E(function(r,a){var l;(l=o.subscribe)===null||l===void 0||l.call(o);var c=!0;r.subscribe(k(a,function(s){var u;(u=o.next)===null||u===void 0||u.call(o,s),a.next(s)},function(){var s;c=!1,(s=o.complete)===null||s===void 0||s.call(o),a.complete()},function(s){var u;c=!1,(u=o.error)===null||u===void 0||u.call(o,s),a.error(s)},function(){var s,u;c&&((s=o.unsubscribe)===null||s===void 0||s.call(o)),(u=o.finalize)===null||u===void 0||u.call(o)}))}):H}function _o(e,t){return E(function(n,o){var r=t??{},a=r.leading,l=a===void 0?!0:a,c=r.trailing,s=c===void 0?!1:c,u=!1,f=null,d=null,m=!1,g=function(){d?.unsubscribe(),d=null,s&&(h(),m&&o.complete())},p=function(){d=null,m&&o.complete()},y=function(_){return d=$(e(_)).subscribe(k(o,g,p))},h=function(){if(u){u=!1;var _=f;f=null,o.next(_),!m&&y(_)}};n.subscribe(k(o,function(_){u=!0,f=_,!(d&&!d.closed)&&(l?h():y(_))},function(){m=!0,!(s&&u&&d&&!d.closed)&&o.complete()}))})}function $l(e,t,n){t===void 0&&(t=ae);var o=A(e,t);return _o(function(){return o},n)}function Vl(e){return e===void 0&&(e=ae),E(function(t,n){var o=e.now();t.subscribe(k(n,function(r){var a=e.now(),l=a-o;o=a,n.next(new Al(r,l))}))})}var Al=function(){function e(t,n){this.value=t,this.interval=n}return e}();function wo(e){return e===void 0&&(e=Ge),I(function(t){return{value:t,timestamp:e.now()}})}function Ll(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=qe(e);return E(function(o,r){for(var a=e.length,l=new Array(a),c=e.map(function(){return!1}),s=!1,u=function(d){$(e[d]).subscribe(k(r,function(m){l[d]=m,!s&&!c[d]&&(c[d]=!0,(s=c.every(H))&&(c=null))},Y))},f=0;f<a;f++)u(f);o.subscribe(k(r,function(d){if(s){var m=W([d],J(l));r.next(n?n.apply(void 0,W([],J(m))):m)}}))})}function Nl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=qe(e),o=co(e);return o.length?new N(function(r){var a=o.map(function(){return[]}),l=o.map(function(){return!1});r.add(function(){a=l=null});for(var c=function(u){$(o[u]).subscribe(k(r,function(f){if(a[u].push(f),a.every(function(m){return m.length})){var d=a.map(function(m){return m.shift()});r.next(n?n.apply(void 0,W([],J(d))):d),a.some(function(m,g){return!m.length&&l[g]})&&r.complete()}},function(){l[u]=!0,!a[u].length&&r.complete()}))},s=0;!r.closed&&s<o.length;s++)c(s);return function(){a=l=null}}):he}var Ml=function(e){K(t,e);function t(n,o){n===void 0&&(n=Dl),o===void 0&&(o=1/0);var r=e.call(this,n,function(){return r.frame})||this;return r.maxFrames=o,r.frame=0,r.index=-1,r}return t.prototype.flush=function(){for(var n=this,o=n.actions,r=n.maxFrames,a,l;(l=o[0])&&l.delay<=r&&(o.shift(),this.frame=l.delay,!(a=l.execute(l.state,l.delay))););if(a){for(;l=o.shift();)l.unsubscribe();throw a}},t.frameTimeFactor=10,t}(Jn),Dl=function(e){K(t,e);function t(n,o,r){r===void 0&&(r=n.index+=1);var a=e.call(this,n,o)||this;return a.scheduler=n,a.work=o,a.index=r,a.active=!0,a.index=n.index=r,a}return t.prototype.schedule=function(n,o){if(o===void 0&&(o=0),Number.isFinite(o)){if(!this.id)return e.prototype.schedule.call(this,n,o);this.active=!1;var r=new t(this.scheduler,this.work);return this.add(r),r.schedule(n,o)}else return se.EMPTY},t.prototype.requestAsyncId=function(n,o,r){r===void 0&&(r=0),this.delay=n.frame+r;var a=n.actions;return a.push(this),a.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(n,o,r){},t.prototype._execute=function(n,o){if(this.active===!0)return e.prototype._execute.call(this,n,o)},t.sortActions=function(n,o){return n.delay===o.delay?n.index===o.index?0:n.index>o.index?1:-1:n.delay>o.delay?1:-1},t}(Kn);function Pt(e){return new N(function(t){$(e()).subscribe(t)})}function zl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=qe(e),o=Wn(e),r=o.args,a=o.keys,l=new N(function(c){var s=r.length;if(!s){c.complete();return}for(var u=new Array(s),f=s,d=s,m=function(p){var y=!1;$(r[p]).subscribe(k(c,function(h){y||(y=!0,d--),u[p]=h},function(){return f--},void 0,function(){(!f||!y)&&(d||c.next(a?oo(a,u):u),c.complete())}))},g=0;g<s;g++)m(g)});return n?l.pipe(Ft(n)):l}function jl(e,t,n,o,r){var a,l,c,s;arguments.length===1?(a=e,s=a.initialState,t=a.condition,n=a.iterate,l=a.resultSelector,c=l===void 0?H:l,r=a.scheduler):(s=e,!o||xt(o)?(c=H,r=o):c=o);function u(){var f;return bt(this,function(d){switch(d.label){case 0:f=s,d.label=1;case 1:return!t||t(f)?[4,c(f)]:[3,4];case 2:d.sent(),d.label=3;case 3:return f=n(f),[3,1];case 4:return[2]}})}return Pt(r?function(){return to(u(),r)}:u)}function Ul(e,t,n){return Pt(function(){return e()?t:n})}function Hl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xe(e),o=Ea(e,1/0),r=e;return r.length?r.length===1?$(r[0]):Xe(o)(ue(r,n)):he}function Fe(e,t,n){if(t==null&&(t=e,e=0),t<=0)return he;var o=t+e;return new N(n?function(r){var a=e;return n.schedule(function(){a<o?(r.next(a++),this.schedule()):r.complete()})}:function(r){for(var a=e;a<o&&!r.closed;)r.next(a++);r.complete()})}const So={"Creation Observables":{defer:{label:"defer(() => of(10, 20, 30))",inputs:[],apply:function(e,t){return Pt(()=>ge(10,20,30).pipe(G(n=>A(n,t))))}},EMPTY:{label:"EMPTY",inputs:[],apply:function(e,t){return he}},from:{label:"from([10, 20, 30])",inputs:[],apply:function(e,t){return ue([10,20,30]).pipe(G(n=>A(n,t)))}},fromEvent:{label:"fromEvent(document, 'click')",inputs:[],apply:function(e,t){let n=30;return ue(["ev","ev"]).pipe(G(o=>A(n+=20,t)))}},fromEventPattern:{label:"fromEventPattern(addHandler, removeHandler)",inputs:[],apply:function(e,t){let n=30;return ue(["ev","ev"]).pipe(G(o=>A(n+=20,t)))}},generate:{label:"generate({initialState: 0,condition: (x) => x < 3,iterate: (x) => x + 1,resultSelector: (x) => x})",inputs:[],apply:function(e,t){return jl({initialState:0,condition:n=>n<3,iterate:n=>n+1,resultSelector:n=>n}).pipe(G(n=>A(n*10,t)))}},iif:{label:"iif(() => boolean, trueObservable, falseObservable)",inputs:[],apply:function(e,t){return Ul(()=>!0,ge("true"),ge("false"))}},interval:{label:"interval(10, scheduler)",inputs:[],apply:function(e,t){return vo(10,t)}},of:{label:"of(1,2,3)",inputs:[],apply:function(e,t){return ge(1,2,3).pipe(G(n=>A(n*10,t)))}},range:{label:"range(1, 10)",inputs:[],apply:function(e,t){return Fe(1,10).pipe(G(n=>A(n*10,t)))}},timer:{label:"timer(start: 30, interval: 10)",inputs:[],apply:function(e,t){return A(30,10,t)}}},"Combination Operators":{combineLatest:{label:"combineLatest([$0, $1])",inputs:[[{t:0,c:1},{t:20,c:2},{t:65,c:3},{t:75,c:4},{t:92,c:5}],[{t:10,c:"A"},{t:25,c:"B"},{t:50,c:"C"},{t:57,c:"D"}]],apply:function(e){return Ye([e[0],e[1]]).pipe(I(([t,n])=>`[${t.content},${n.content}]`))}},concat:{label:"concat",inputs:[[{t:0,c:1},{t:15,c:1},{t:50,c:1},57],[{t:0,c:2},{t:8,c:2},12]],apply:function(e){return Ze(...e)}},forkJoin:{label:"forkJoin",inputs:[[{t:0,c:"A"},{t:15,c:"B"},{t:30,c:"C"},50],[{t:37,c:"D"},{t:68,c:"E"},80]],apply:function(e){return zl(e).pipe(I(([t,n])=>`[${t.content},${n.content}]`))}},merge:{label:"merge",inputs:[[{t:0,c:1},{t:15,c:1},{t:50,c:1},57],[{t:0,c:2},{t:8,c:2},12]],apply:function(e){return Hl(...e)}},race:{label:"race",inputs:[[{t:10,c:20},{t:20,c:40},{t:30,c:60}],[{t:5,c:1},{t:15,c:2},{t:25,c:3}],[{t:20,c:0},{t:32,c:0},{t:44,c:0}]],apply:function(e){return yl(e)}},zip:{label:"zip",inputs:[[{t:0,c:1},{t:20,c:2},{t:65,c:3},{t:75,c:4},{t:92,c:5}],[{t:10,c:"A"},{t:25,c:"B"},{t:50,c:"C"},{t:57,c:"D"}]],apply:function(e){return Nl(e[0],e[1],(t,n)=>""+t.content+n.content)}}},"Flattern Operators":{combineLatestAll:{label:"combineLatestAll",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:20,c:"C"},25],[{t:0,c:"D"},{t:10,c:"E"},{t:20,c:"F"},25]],apply:function(e,t){return Fe(0,e.length).pipe(G(o=>A(o*20,t)),I(o=>e[o])).pipe(qa(),I(([o,r])=>`[${o.content},${r.content}]`))}},concatAll:{label:"concatAll",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:20,c:"C"},25],[{t:0,c:"D"},{t:10,c:"E"},{t:20,c:"F"},25],[{t:0,c:"G"},{t:10,c:"H"},{t:20,c:"I"},25]],apply:function(e,t){return Fe(0,e.length).pipe(G(o=>A(o*20,t)),I(o=>e[o])).pipe(so())}},exhaustAll:{label:"exhaustAll",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:20,c:"C"},25],[{t:0,c:"D"},{t:10,c:"E"},{t:20,c:"F"},25],[{t:0,c:"G"},{t:10,c:"H"},{t:20,c:"I"},25]],apply:function(e,t){return Fe(0,e.length).pipe(G(o=>A(o*20,t)),I(o=>e[o])).pipe(il())}},mergeAll:{label:"mergeAll",inputs:[[{t:0,c:"A"},{t:5,c:"B"},{t:15,c:"C"},25],[{t:0,c:"D"},{t:8,c:"E"},{t:18,c:"F"},25],[{t:0,c:"G"},{t:10,c:"H"},{t:20,c:"I"},25]],apply:function(e,t){return Fe(0,e.length).pipe(G(o=>A(o*20,t)),I(o=>e[o])).pipe(Xe())}},switchAll:{label:"switchAll",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:20,c:"C"},25],[{t:0,c:"D"},{t:10,c:"E"},{t:20,c:"F"},25],[{t:0,c:"G"},{t:10,c:"H"},{t:20,c:"I"},25]],apply:function(e,t){return Fe(0,e.length).pipe(G(o=>A(o*20,t)),I(o=>e[o])).pipe(Rl())}}},"Multicasting Operators":{share:{label:"share",inputs:[[{t:10,c:"1"},{t:20,c:"2"},{t:70,c:"1"}]],apply:(e,t)=>e[0].pipe(I(n=>n.content),et())}},"Transformation Operators":{buffer:{label:"buffer",inputs:[[{t:9,c:"A"},{t:23,c:"B"},{t:40,c:"C"},{t:54,c:"D"},{t:60,c:"E"},{t:85,c:"F"}],[{t:33,c:0},{t:66,c:0},{t:90,c:0}]],apply:function(e){return e[0].pipe(I(t=>t.content),xa(e[1]),I(t=>`[${t}]`))}},bufferCount:{label:"bufferCount(3, 2)",inputs:[[{t:9,c:"A"},{t:23,c:"B"},{t:40,c:"C"},{t:54,c:"D"},{t:71,c:"E"},{t:85,c:"F"},90]],apply:function(e){return e[0].pipe(I(t=>t.content),Ta(3,2),I(t=>`[${t}]`),ye(console.log))}},bufferTime:{label:"bufferTime(30)",inputs:[[{t:0,c:"A"},{t:10,c:"B"},{t:22,c:"C"},{t:61,c:"D"},{t:71,c:"E"},{t:95,c:"F"}]],apply:function(e,t){return e[0].pipe(I(n=>n.content),Fa(30,t),I(n=>`[${n}]`))}},bufferToggle:{label:"bufferToggle(open$, x => timer(x))",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3},{t:30,c:4},{t:40,c:5},{t:50,c:6},{t:60,c:7},{t:70,c:8},{t:80,c:9}],[{t:15,c:10},{t:45,c:30}]],apply:function(e,t){return e[0].pipe(I(n=>n.content),Ia(e[1],n=>A(n.content,t)),I(n=>`[${n}]`))}},bufferWhen:{label:"bufferWhen",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3},{t:30,c:4},{t:40,c:5},{t:50,c:6},{t:60,c:7},{t:70,c:8},{t:80,c:9}],[{t:35,c:0},{t:50,c:0}]],apply:function(e){return e[0].pipe(I(t=>t.content),Ba(()=>e[1]),I(t=>`[${t}]`))}},concatMap:{label:"concatMap",inputs:[[{t:0,c:"A"},{t:42,c:"B"},{t:55,c:"C"}],[{t:0,c:1},{t:10,c:2},{t:20,c:3},20]],apply:function(e,t){return e[0].pipe(Xa(n=>e[1].pipe(I(o=>""+n.content+o.content))))}},exhaustMap:{label:"exhaustMap",inputs:[[{t:0,c:"A"},{t:42,c:"B"},{t:55,c:"C"}],[{t:0,c:1},{t:10,c:2},{t:20,c:3},20]],apply:function(e,t){return e[0].pipe(Rt(n=>e[1].pipe(I(o=>""+n.content+o.content))))}},groupBy:{label:"groupBy(i => i.content)【结果3,4重合】",inputs:[[{t:10,c:1},{t:20,c:2},{t:30,c:1},{t:40,c:2},{t:50,c:1},60]],apply:function(e,t){return e[0].pipe(ul(n=>n.content),fe(n=>n.pipe(me((o,r)=>o+r.content,0))),ye(console.log))}},map:{label:"map(x => 10 * x)",inputs:[[{t:10,c:1},{t:20,c:2},{t:50,c:3}]],apply:function(e){return e[0].pipe(I(t=>t.content*10))}},mergeMap:{label:"mergeMap",inputs:[[{t:0,c:"A"},{t:42,c:"B"},{t:55,c:"C"}],[{t:0,c:1},{t:10,c:2},{t:20,c:3},20]],apply:function(e,t){return e[0].pipe(fe(n=>e[1].pipe(I(o=>""+n.content+o.content))))}},mergeScan:{label:"mergeScan",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},70]],apply:function(e){return e[0].pipe(ml((t,n)=>ge(t+n.content),0))}},pairwise:{label:"pairwise",inputs:[[{t:9,c:"A"},{t:23,c:"B"},{t:40,c:"C"},{t:54,c:"D"},{t:71,c:"E"},{t:85,c:"F"}]],apply:function(e){return e[0].pipe(I(t=>t.content),gl(),I(t=>`[${t}]`))}},repeat:{label:"repeat(3)",inputs:[[{t:0,c:"A"},{t:12,c:"B"},26]],apply:function(e){return e[0].pipe(bl(3))}},scan:{label:"scan",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5}]],apply:function(e){return e[0].pipe(wl((t,n)=>t+n.content,0))}},startWith:{label:"startWith(1)",inputs:[[{t:30,c:2},{t:40,c:3}]],apply:function(e,t){return e[0].pipe(Bl(1,t))}},switchMap:{label:"switchMap",inputs:[[{t:0,c:"A"},{t:42,c:"B"},{t:55,c:"C"}],[{t:0,c:1},{t:10,c:2},{t:20,c:3},25]],apply:function(e,t){return e[0].pipe(I(n=>n.content),tt(()=>e[1].pipe(I(n=>n.content)),(n,o)=>""+n+o))}},switchScan:{label:"switchScan",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},70]],apply:function(e){return e[0].pipe(Ol((t,n)=>ge(t+n.content),0))}},withLatestFrom:{label:'withLatestFrom(input, (x, y) => "" + x + y)',inputs:[[{t:0,c:1},{t:20,c:2},{t:65,c:3},{t:75,c:4},{t:92,c:5}],[{t:10,c:"A"},{t:25,c:"B"},{t:50,c:"C"},{t:57,c:"D"}]],apply:function(e){return e[0].pipe(Ll(e[1],(t,n)=>""+t.content+n.content))}}},"Filtering Operators":{audit:{label:"audit",inputs:[[{t:0,c:1},{t:26,c:2},{t:34,c:3},{t:40,c:4},{t:45,c:5},{t:79,c:6}],[{t:30,c:"A"},{t:60,c:"B"}]],apply:function(e,t){return e[0].pipe(Qn(()=>e[1].pipe(ye(console.log))))}},auditTime:{label:"auditTime(30)",inputs:[[{t:0,c:0},{t:26,c:26},{t:34,c:34},{t:40,c:40},{t:45,c:45},{t:79,c:79}]],apply:function(e,t){return e[0].pipe(ka(30,t))}},debounce:{label:"debounce",inputs:[[{t:0,c:1},{t:26,c:2},{t:34,c:1},{t:40,c:1},{t:45,c:2},{t:79,c:1}]],apply:function(e,t){return e[0].pipe(Za(n=>A(n.content*10,t)))}},debounceTime:{label:"debounceTime(10)",inputs:[[{t:0,c:1},{t:26,c:2},{t:34,c:3},{t:40,c:4},{t:45,c:5},{t:79,c:6}]],apply:function(e,t){return e[0].pipe(Qe(10,t))}},distinct:{label:"distinct",inputs:[[{t:5,c:1},{t:20,c:2},{t:35,c:2},{t:60,c:1},{t:70,c:3}]],apply:function(e){return e[0].pipe(el(t=>t.content))}},distinctUntilChanged:{label:"distinctUntilChanged",inputs:[[{t:5,c:1},{t:20,c:2},{t:35,c:2},{t:60,c:1},{t:70,c:3}]],apply:function(e){return e[0].pipe(It(void 0,t=>t.content))}},elementAt:{label:"elementAt(2)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4}]],apply:function(e,t){return e[0].pipe(ol(2))}},filter:{label:"filter(x => x > 10)",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1}]],apply:function(e){return e[0].pipe(Ve(t=>t.content>10))}},find:{label:"find(x => x > 10)",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1}]],apply:function(e,t){return e[0].pipe(ll(n=>n.content>10))}},findIndex:{label:"findIndex(x => x > 10)",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1}]],apply:function(e,t){return e[0].pipe(cl(({content:n})=>n>10))}},first:{label:"first",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4},85]],apply:function(e){return e[0].pipe(sl())}},ignoreElements:{label:"ignoreElements",inputs:[[{t:20,c:"A"},{t:40,c:"B"},{t:50,c:"C"},{t:75,c:"D"},90]],apply:function(e){return e[0].pipe(fo())}},last:{label:"last",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4},85]],apply:function(e){return e[0].pipe(dl())}},sample:{label:"sample",inputs:[[{t:0,c:1},{t:20,c:2},{t:40,c:3},{t:60,c:4},{t:80,c:5}],[{t:10,c:"A"},{t:25,c:"B"},{t:33,c:"C"},{t:70,c:"D"},90]],apply:function(e){return e[0].pipe(yo(e[1]))}},sampleTime:{label:"sampleTime(10)",inputs:[[{t:0,c:1},{t:20,c:2},{t:40,c:3},{t:60,c:4},{t:80,c:5}]],apply:function(e,t){return e[0].pipe(_l(10,t))}},single:{label:"single",inputs:[[{t:0,c:1},{t:20,c:2},{t:40,c:3},{t:60,c:4},{t:80,c:5},100]],apply:function(e,t){return e[0].pipe(xl(n=>n.content==3))}},skip:{label:"skip(2)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4}]],apply:function(e){return e[0].pipe(Tl(2))}},skipLast:{label:"skipLast(2)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4}]],apply:function(e){return e[0].pipe(El(2))}},skipUntil:{label:"skipUntil",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3},{t:30,c:4},{t:40,c:5},{t:50,c:6},{t:60,c:7},{t:70,c:8},{t:80,c:9}],[{t:45,c:0},{t:73,c:0}]],apply:function(e){return e[0].pipe(Fl(e[1]))}},skipWhile:{label:"skipWhile(x => x < 5)",inputs:[[{t:5,c:1},{t:20,c:3},{t:35,c:6},{t:50,c:4},{t:65,c:7},{t:80,c:2}]],apply:function(e){return e[0].pipe(Il(t=>t.content<5))}},take:{label:"take(2)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4},85]],apply:function(e,t){return e[0].pipe(Ee(2))}},takeLast:{label:"takeLast(1)",inputs:[[{t:30,c:1},{t:40,c:2},{t:65,c:3},{t:75,c:4},85]],apply:function(e){return e[0].pipe(ho(1))}},takeUntil:{label:"takeUntil",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3},{t:30,c:4},{t:40,c:5},{t:50,c:6},{t:60,c:7},{t:70,c:8},{t:80,c:9}],[{t:45,c:0},{t:73,c:0}]],apply:function(e){return e[0].pipe(nt(e[1]))}},takeWhile:{label:"takeWhile(x => x < 5)",inputs:[[{t:5,c:1},{t:20,c:3},{t:35,c:6},{t:50,c:4},{t:65,c:7},{t:80,c:2}]],apply:function(e){return e[0].pipe(Pl(t=>t.content<5))}},throttle:{label:"throttle",inputs:[[{t:0,c:1},{t:26,c:2},{t:34,c:1},{t:40,c:1},{t:45,c:2},{t:79,c:1}]],apply:function(e,t){return e[0].pipe(_o(n=>A(n.content*10,1e3,t)))}},throttleTime:{label:"throttleTime(25)",inputs:[[{t:0,c:"A"},{t:8,c:"B"},{t:16,c:"C"},{t:40,c:"D"},{t:55,c:"E"},{t:60,c:"F"},{t:70,c:"G"}]],apply:function(e,t){return e[0].pipe($l(25,t))}}},"Conditional Operators":{defaultIfEmpty:{label:"defaultIfEmpty(true)",inputs:[[99]],apply:function(e){return e[0].pipe(Ke(!0))}},every:{label:"every(x => x < 10)",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},80]],apply:function(e){return e[0].pipe(rl(({content:t})=>t<10))}},isEmpty:{label:"isEmpty(true)",inputs:[[99]],apply:function(e){return e[0].pipe(fl())}},sequenceEqual:{label:"sequenceEqual",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},85],[{t:2,c:1},{t:20,c:2},{t:40,c:3},{t:70,c:4},{t:77,c:5},85]],apply:function(e){return e[0].pipe(Sl(e[1],(t,n)=>t.content===n.content))}}},"Utility Operators":{delay:{label:"delay(20)",inputs:[[{t:10,c:"1"},{t:20,c:"2"},{t:70,c:"1"}]],apply:(e,t)=>e[0].pipe(I(n=>n.content),Wa(20,t))},delayWhen:{label:"delayWhen(x => timer(20 * x))",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:1}]],apply:function(e,t){return e[0].pipe(G(({content:n})=>A(n*20,1e3,t)))}},finalize:{label:"finalize",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:3}]],apply:function(e,t){return e[0].pipe(al(()=>console.log("finalize")))}},tap:{label:"tap",inputs:[[{t:0,c:1},{t:10,c:2},{t:20,c:1}]],apply:function(e,t){return e[0].pipe(ye(n=>n.content))}},timeInterval:{label:"timeInterval",inputs:[[{t:10,c:"A"},{t:20,c:"B"},{t:60,c:"C"},{t:90,c:"D"}]],apply:function(e,t){return e[0].pipe(Vl(t),I(({value:n,interval:o})=>parseInt(o)))}},timestamp:{label:"timestamp",inputs:[[{t:10,c:"A"},{t:20,c:"B"},{t:60,c:"C"},{t:90,c:"D"}]],apply:function(e,t){return e[0].pipe(wo(t),I(({value:n,timestamp:o})=>parseInt(o)))}},toArray:{label:"toArray",inputs:[[{t:10,c:"A"},{t:20,c:"B"},{t:60,c:"C"},70]],apply:function(e,t){return e[0].pipe(I(n=>n.content),lo(),I(n=>`[${n}]`))}}},"Mathematical Operators":{count:{label:"count(x => x > 10)",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1},80]],apply:function(e){return e[0].pipe(Ka(({content:t})=>t>10))}},max:{label:"max",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1},80]],apply:function(e){return e[0].pipe(pl((t,n)=>t.content>n.content?1:t.content<n.content?-1:0))}},min:{label:"min",inputs:[[{t:5,c:2},{t:15,c:30},{t:25,c:22},{t:35,c:5},{t:45,c:60},{t:55,c:1},80]],apply:function(e){return e[0].pipe(hl((t,n)=>t.content>n.content?1:t.content<n.content?-1:0))}},reduce:{label:"reduce((x, y) => x + y)",inputs:[[{t:5,c:1},{t:15,c:2},{t:25,c:3},{t:35,c:4},{t:65,c:5},80]],apply:function(e){return e[0].pipe(me((t,n)=>Object.assign(t,{content:t.content+n.content,id:t.id+n.id})))}}}},Gl=Object.values(So).reduce((e,t)=>Object.assign(e,t),{}),$t=100,ql=.3,Ie={blue:"#3EA1CB",yellow:"#FFCB46",red:"#FF6946",green:"#82D736",white:"#FFFFFF",almostWhite:"#ECECEC",greyLight:"#D4D4D4",grey:"#A7A7A7",greyDark:"#7C7C7C",black:"#323232"},Yl={color:Ie.greyDark},Xl={backgroundColor:Ie.white},ot={spaceTiny:"5px",spaceSmall:"10px",spaceMedium:"22px",spaceLarge:"32px",spaceHuge:"42px",animationDurationQuick:"100ms",animationDurationNormal:"200ms",animationDurationSlow:"400ms"},Ql={fontFamily:{base:"'Source Sans Pro', sans-serif",code:"'Source Code Pro', monospace",special:"'Signika', Helvetica, serif"}.base},Kl={"box-shadow":"0px 1px 2px 1px rgba(0,0,0,0.17)"},Zl={padding:`${ot.spaceSmall} ${ot.spaceMedium}`},Co=[Ie.blue,Ie.green,Ie.yellow,Ie.red];Object.assign({fontSize:"1rem",lineHeight:"1.6rem"},Yl),ot.spaceLarge;const Jl=Object.assign(Xl,Kl,{borderRadius:"2px"});function ko(e,t,n){return`
4
4
  display: block;
5
5
  position: absolute;
6
6
  left: 0;
@@ -10,5 +10,5 @@ var ZYZGroupCoreVue=function(M,a,re,w,ie,te){"use strict";function Bo(){return a
10
10
  -webkit-box-shadow: 0 ${e} ${t} 0 rgba(0,0,0,${n});
11
11
  -moz-box-shadow: 0 ${e} ${t} 0 rgba(0,0,0,${n});
12
12
  box-shadow: 0 ${e} ${t} 0 rgba(0,0,0,${n});
13
- `}const wo=w.useHashChange$().pipe(E(e=>{let t="merge";return e&&e.split("/rx/")[1]&&(t=e.split("/rx/")[1]),t})),$t=wo.pipe(E(e=>yl[e]),We({connector:()=>new Je(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),At=$t.pipe(et(e=>he(Rl(e.inputs))),We({connector:()=>new Je(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),So=new uo({}),Tl=So.pipe(Xe(100),Ft()),_o=new uo({}),Co=_o.pipe(Xe(100),Ft()),xl=qe([At,Co]).pipe(E(([e,t])=>{let n=t.time??0;for(const o of e)n=Math.max(n,o.end.time);return n})),El=qe([At,$t,Tl,Co,xl]).pipe(Xe(100),E(([e,t,n,o,r])=>{for(const s of e){const u=s.marbles.findIndex(f=>f.marbleID==n.marbleID);u>=0&&n.time&&(s.marbles[u].time=n.time),s.timelineID==o.timelineID&&o.time&&(s.end.time=o.time)}const i=new fl(void 0,Ot),l=e.map(s=>Il(i,s)),c=t.apply(l,i).pipe(tt(V(Ot+.01,i)));return Fl(i,c,r)}),Ye(),We({connector:()=>new Je(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1}));function Fl(e,t,n){const o=new Je(1),r=new ke;let i;return t.pipe(xt(e),go(e),E(({value:l,timestamp:c})=>{const s=typeof l!="object"?{marbleID:ko(l),content:l}:l;return ie.assoc("time",c/Ot*100,s)}),tt(r),pe((l,c)=>l.concat(c),[])).subscribe({next:l=>{o.next(l)},error:void 0,complete:()=>{i=e.now()}}),e.flush(),r.next(),o.pipe(E(l=>({timelineID:0,marbles:l,end:{time:ie.clamp(i,n,100)},interactive:!1})))}const Il=ie.curry(function(e,t){return new N(n=>{t.marbles.forEach(o=>e.schedule(()=>n.next(o),o.time))}).pipe(tt(V(t.end.time+1,e)))});function Rl(e){return e.map((t,n)=>({timelineID:n,marbles:Ol(Bl(t)),end:{time:Pl(t)},interactive:!0}))}function Bl(e){return typeof ie.last(e)=="number"?e.slice(0,-1):e}function Pl(e){const t=ie.last(e);return typeof t=="number"?t:100}function Ol(e){return e.map(({t,c:n})=>({marbleID:$l({time:t,content:n}),time:t,content:n}))}function ko(e){return typeof e=="string"?e.split("").map(r=>r.charCodeAt(0)).reduce((r,i)=>r*59+i*97):typeof e=="number"?e*877:e?877:2631}function $l({time:e,content:t}){const i=ko(t);return(e+i+7)*1046527%1e5}function To(e){const{width:t,left:n}=e.getBoundingClientRect(),o=100/t||.15,r=n+window.scrollX;return i=>(i-r)*o}const Al={viewBox:"0 0 7 10",style:{width:"48px",height:"68px",overflow:"visible"}},Vl={viewBox:"0 0 100 10",style:{width:"680px",height:"68px",overflow:"visible"}},xo=a.defineComponent({__name:"Timeline",setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(a.unref(Cl))},[(a.openBlock(),a.createElementBlock("svg",Al,n[0]||(n[0]=[a.createElementVNode("line",{x1:0,x2:112,y1:5,y2:5,style:{stroke:"black","stroke-width":"0.3"}},null,-1),a.createElementVNode("polygon",{points:"111.7,6.1 111.7,3.9 114,5"},null,-1)]))),(a.openBlock(),a.createElementBlock("svg",Vl,[a.renderSlot(t.$slots,"default")]))],4))}}),Ll=["transform"],Eo=a.defineComponent({__name:"Marble",props:{marbleID:{},time:{},isInteractive:{type:Boolean},content:{}},setup(e){const t=e,n=a.ref(t.time);a.watch(()=>t.time,g=>{n.value=g});const o=a.ref(!1),r=a.ref(!1),i=()=>{t.isInteractive&&(o.value=!0)},l=()=>{t.isInteractive&&(o.value=!1)};let c;const s=g=>{t.isInteractive&&(r.value=!0,c=g.currentTarget.parentElement)};function u(g){t.isInteractive&&r.value&&(n.value=To(c)(g.pageX),So.next({marbleID:t.marbleID,time:n.value}))}function f(g){t.isInteractive&&(r.value=!1)}const d=a.ref();a.watch(o,()=>{d.value=Object.assign({fill:vo[t.marbleID%vo.length],stroke:"black",strokeWidth:vl},o.value?{filter:"url(#dropshadow)"}:{}),console.log(d.value)},{immediate:!0});const m=Object.assign({fontSize:"2.5px"},Sl);return a.onMounted(()=>{document.addEventListener("mousemove",u),document.addEventListener("mouseup",f)}),a.onUnmounted(()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",f)}),(g,p)=>(a.openBlock(),a.createElementBlock("svg",{style:{overflow:"visible"},onMouseenter:i,onMouseleave:l,onMousedown:s},[a.createElementVNode("g",{class:"marble",transform:`translate(${n.value}, 5)`,style:a.normalizeStyle({cursor:o.value?"ew-resize":"default"})},[a.createElementVNode("circle",{r:"2.3",style:a.normalizeStyle(d.value)},null,4),a.createElementVNode("text",{"text-anchor":"middle",y:"0.8",style:a.normalizeStyle(a.unref(m))},a.toDisplayString(t.content),5)],12,Ll),p[0]||(p[0]=a.createStaticVNode('<filter id="#dropshadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="0.3"></feGaussianBlur><feOffset dx="0" dy="0.25" result="offsetblur"></feOffset><feFlood flood-color="rgba(0,0,0,0.4)"></feFlood><feComposite in2="offsetblur" operator="in"></feComposite><feMerge><feMergeNode></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter>',1))],32))}}),Nl=["x1","x2","y1","y2"],Fo=a.defineComponent({__name:"EndMarker",props:{timelineID:{},time:{},isInteractive:{type:Boolean}},setup(e){const t=e,n=a.ref(1.8),o=a.ref(t.time);a.watch(()=>t.time,m=>{o.value=m});const r=a.ref(!1),i=a.ref(!1),l=()=>{t.isInteractive&&(r.value=!0,n.value=3.2)},c=()=>{t.isInteractive&&(r.value=!1,n.value=1.8)};let s;const u=m=>{t.isInteractive&&(i.value=!0,s=m.currentTarget.parentElement)};function f(m){t.isInteractive&&i.value&&(o.value=To(s)(m.pageX),_o.next({timelineID:t.timelineID,time:o.value}))}function d(m){t.isInteractive&&(i.value=!1)}return a.onMounted(()=>{document.addEventListener("mousemove",f),document.addEventListener("mouseup",d)}),a.onUnmounted(()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",d)}),(m,g)=>(a.openBlock(),a.createElementBlock("svg",{style:{overflow:"visible"},onMouseenter:l,onMouseleave:c,onMousedown:u},[a.createElementVNode("line",{class:"end-marker",x1:o.value,x2:o.value,y1:5-n.value,y2:5+n.value,style:a.normalizeStyle({stroke:"black",strokeWidth:"0.3",cursor:r.value?"ew-resize":"default"})},null,12,Nl)],32))}}),Ml={class:"operatorBox"},Dl={style:{"font-size":"1.5em","font-weight":"400"}},zl=a.defineComponent({__name:"Sandbox",setup(e){a.useCssVars(l=>({"5f55d682":a.unref(nt).spaceMedium}));const t=bo("2px","10px","0.17"),n=bo("2px","5px","0.26"),o=a.ref(""),r=a.reactive([]);let i=a.reactive({timelineID:0,marbles:[],end:{time:0},interactive:!1});return $t.pipe(ge(l=>o.value=l.label)).subscribe(),At.pipe(E(l=>{r.length=0,l.forEach(c=>{r.push(c)})})).subscribe(),El.pipe(ge(l=>{Object.assign(i,l)})).subscribe(),(l,c)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(a.unref(kl))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r,(s,u)=>(a.openBlock(),a.createBlock(xo,{key:s.timelineID},{default:a.withCtx(()=>[a.createVNode(Fo,{timelineID:s.timelineID,time:s.end.time,isInteractive:!0},null,8,["timelineID","time"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.marbles,(f,d)=>(a.openBlock(),a.createBlock(Eo,{key:f.marbleID,marbleID:f.marbleID,time:f.time,isInteractive:!0,content:f.content},null,8,["marbleID","time","content"]))),128))]),_:2},1024))),128)),a.createElementVNode("div",Ml,[a.createElementVNode("div",{style:a.normalizeStyle(a.unref(t))},null,4),a.createElementVNode("span",Dl,a.toDisplayString(o.value),1),a.createElementVNode("div",{style:a.normalizeStyle(a.unref(n))},null,4)]),a.createVNode(xo,null,{default:a.withCtx(()=>[a.createVNode(Fo,{timelineID:a.unref(i).timelineID,time:a.unref(i).end.time,isInteractive:!1},null,8,["timelineID","time"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i).marbles,(s,u)=>(a.openBlock(),a.createBlock(Eo,{key:s.marbleID,marbleID:s.marbleID,time:s.time,isInteractive:!1,content:s.content},null,8,["marbleID","time","content"]))),128))]),_:1})],4))}}),$s="",jl={class:"wrap",style:{width:"1060px",margin:"0 auto"}},Ul={style:{display:"flex"}},Hl={style:{margin:"0",padding:"0","list-style-type":"none"}},Gl=["href"],ql={style:{flex:"0 0 820px","padding-top":"10px"}},Io="/rx/",Yl=a.defineComponent({__name:"RxMarbles",setup(e){const t=a.ref(),n=a.ref([]);return a.onMounted(()=>{wo.pipe(Te(1),ge(o=>{const r=n.value.find(i=>i.href.indexOf(`#${Io}${o}`)>=0);r&&t.value&&t.value.scrollTo({top:w.getElementPositionInPage(r).y})})).subscribe()}),(o,r)=>(a.openBlock(),a.createElementBlock("div",jl,[a.createElementVNode("div",Ul,[a.createElementVNode("div",{ref:i=>t.value=i,style:{flex:"1","margin-right":"32px","box-sizing":"border-box","overflow-y":"scroll",height:"100vh"}},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(yo),(i,l)=>(a.openBlock(),a.createElementBlock("ul",Hl,[(a.openBlock(),a.createElementBlock("li",{class:"li",key:l},a.toDisplayString(l),1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i,(c,s)=>(a.openBlock(),a.createElementBlock("a",{key:s,href:`#${Io}${s}`,class:"link",ref_for:!0,ref:u=>n.value.push(u),style:{position:"relative",display:"block",color:"#666666"}},a.toDisplayString(s),9,Gl))),128))]))),256))],512),a.createElementVNode("div",ql,[a.createVNode(zl)])])]))}}),As="",Xl=j(Yl,[["__scopeId","data-v-71a3979d"]]),Ql=re.createRouter({history:re.createWebHashHistory("/"),routes:[{path:"/",name:"xg",redirect:"/lot"},{path:"/shape",name:"shape",component:Fi},{path:"/lot",name:"lot",component:si},{path:"/park",name:"park",component:ui},{path:"/rx/:operator?",name:"rx",component:Xl},{path:"/view-document/:title/:src",name:"view-document",component:zt}],scrollBehavior:(e,t,n)=>n||{left:0,top:0}}),Vt=a.ref("next"),ot=[];Ql.beforeEach((e,t,n)=>{const o=ot.length,r=ot.findIndex(i=>i==e.name);o>1&&r>=0&&r<o-1?(Vt.value="prev",ot.splice(r+1)):(Vt.value="next",ot.push(e.name)),n()});const Kl="increment",Zl="decrement",Jl="incrementAction";function Wl(){return{store:te.useStore()}}function es(e,t){let n=te.mapState;return typeof e=="string"&&e.length>0?n=te.createNamespacedHelpers(e).mapState:t=e,Ro(t,n)}function ts(e,t){let n=te.mapGetters;return typeof e=="string"&&e.length>0?n=te.createNamespacedHelpers(e).mapGetters:t=e,Ro(t,n)}function ns(e,t){let n=te.mapMutations;return typeof e=="string"&&e.length>0?n=te.createNamespacedHelpers(e).mapMutations:t=e,Array.isArray(t),n(t)}function os(e,t){let n=te.mapActions;return typeof e=="string"&&e.length>0?n=te.createNamespacedHelpers(e).mapActions:t=e,Array.isArray(t),n(t)}function Ro(e,t){const n=te.useStore(),o={},r=t(e);return Object.keys(r).forEach(i=>{const l=r[i].bind({$store:n});o[i]=a.computed(l)}),o}return Object.defineProperty(M,"RouterLink",{enumerable:!0,get:()=>re.RouterLink}),Object.defineProperty(M,"RouterView",{enumerable:!0,get:()=>re.RouterView}),Object.defineProperty(M,"useRoute",{enumerable:!0,get:()=>re.useRoute}),Object.defineProperty(M,"useRouter",{enumerable:!0,get:()=>re.useRouter}),M.DECREMENT=Zl,M.INCREMENT=Kl,M.INCREMENTACTION=Jl,M.getInstance=Bo,M.getVNode=Dt,M.renderComponent=Po,M.routeDirection=Vt,M.useVueEffect=Oo,M.useVuex=Wl,M.useVuexActions=os,M.useVuexGetters=ts,M.useVuexMutations=ns,M.useVuexStates=es,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),M}({},vue,vue-router,ZYZGroupCoreWeb,ZYZGroupCoreCommon,vuex);
13
+ `}const xo=b.useHashChange$().pipe(I(e=>{let t="merge";return e&&e.split("/rx/")[1]&&(t=e.split("/rx/")[1]),t})),Vt=xo.pipe(I(e=>Gl[e]),et({connector:()=>new We(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),At=Vt.pipe(tt(e=>ge(rc(e.inputs))),et({connector:()=>new We(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),To=new go({}),Wl=To.pipe(Qe(100),It()),Eo=new go({}),Fo=Eo.pipe(Qe(100),It()),ec=Ye([At,Fo]).pipe(I(([e,t])=>{let n=t.time??0;for(const o of e)n=Math.max(n,o.end.time);return n})),tc=Ye([At,Vt,Wl,Fo,ec]).pipe(Qe(100),I(([e,t,n,o,r])=>{for(const s of e){const u=s.marbles.findIndex(f=>f.marbleID==n.marbleID);u>=0&&n.time&&(s.marbles[u].time=n.time),s.timelineID==o.timelineID&&o.time&&(s.end.time=o.time)}const a=new Ml(void 0,$t),l=e.map(s=>oc(a,s)),c=t.apply(l,a).pipe(nt(A($t+.01,a)));return nc(a,c,r)}),Xe(),et({connector:()=>new We(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1}));function nc(e,t,n){const o=new We(1),r=new Te;let a;return t.pipe(Et(e),wo(e),I(({value:l,timestamp:c})=>{const s=typeof l!="object"?{marbleID:Io(l),content:l}:l;return ie.assoc("time",c/$t*100,s)}),nt(r),me((l,c)=>l.concat(c),[])).subscribe({next:l=>{o.next(l)},error:void 0,complete:()=>{a=e.now()}}),e.flush(),r.next(),o.pipe(I(l=>({timelineID:0,marbles:l,end:{time:ie.clamp(a,n,100)},interactive:!1})))}const oc=ie.curry(function(e,t){return new N(n=>{t.marbles.forEach(o=>e.schedule(()=>n.next(o),o.time))}).pipe(nt(A(t.end.time+1,e)))});function rc(e){return e.map((t,n)=>({timelineID:n,marbles:lc(ic(t)),end:{time:ac(t)},interactive:!0}))}function ic(e){return typeof ie.last(e)=="number"?e.slice(0,-1):e}function ac(e){const t=ie.last(e);return typeof t=="number"?t:100}function lc(e){return e.map(({t,c:n})=>({marbleID:cc({time:t,content:n}),time:t,content:n}))}function Io(e){return typeof e=="string"?e.split("").map(r=>r.charCodeAt(0)).reduce((r,a)=>r*59+a*97):typeof e=="number"?e*877:e?877:2631}function cc({time:e,content:t}){const a=Io(t);return(e+a+7)*1046527%1e5}function Bo(e){const{width:t,left:n}=e.getBoundingClientRect(),o=100/t||.15,r=n+window.scrollX;return a=>(a-r)*o}const sc={viewBox:"0 0 7 10",style:{width:"48px",height:"68px",overflow:"visible"}},uc={viewBox:"0 0 100 10",style:{width:"680px",height:"68px",overflow:"visible"}},Ro=i.defineComponent({__name:"Timeline",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(i.unref(Zl))},[(i.openBlock(),i.createElementBlock("svg",sc,n[0]||(n[0]=[i.createElementVNode("line",{x1:0,x2:112,y1:5,y2:5,style:{stroke:"black","stroke-width":"0.3"}},null,-1),i.createElementVNode("polygon",{points:"111.7,6.1 111.7,3.9 114,5"},null,-1)]))),(i.openBlock(),i.createElementBlock("svg",uc,[i.renderSlot(t.$slots,"default")]))],4))}}),fc=["transform"],Oo=i.defineComponent({__name:"Marble",props:{marbleID:{},time:{},isInteractive:{type:Boolean},content:{}},setup(e){const t=e,n=i.ref(t.time);i.watch(()=>t.time,g=>{n.value=g});const o=i.ref(!1),r=i.ref(!1),a=()=>{t.isInteractive&&(o.value=!0)},l=()=>{t.isInteractive&&(o.value=!1)};let c;const s=g=>{t.isInteractive&&(r.value=!0,c=g.currentTarget.parentElement)};function u(g){t.isInteractive&&r.value&&(n.value=Bo(c)(g.pageX),To.next({marbleID:t.marbleID,time:n.value}))}function f(g){t.isInteractive&&(r.value=!1)}const d=i.ref();i.watch(o,()=>{d.value=Object.assign({fill:Co[t.marbleID%Co.length],stroke:"black",strokeWidth:ql},o.value?{filter:"url(#dropshadow)"}:{}),console.log(d.value)},{immediate:!0});const m=Object.assign({fontSize:"2.5px"},Ql);return i.onMounted(()=>{document.addEventListener("mousemove",u),document.addEventListener("mouseup",f)}),i.onUnmounted(()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",f)}),(g,p)=>(i.openBlock(),i.createElementBlock("svg",{style:{overflow:"visible"},onMouseenter:a,onMouseleave:l,onMousedown:s},[i.createElementVNode("g",{class:"marble",transform:`translate(${n.value}, 5)`,style:i.normalizeStyle({cursor:o.value?"ew-resize":"default"})},[i.createElementVNode("circle",{r:"2.3",style:i.normalizeStyle(d.value)},null,4),i.createElementVNode("text",{"text-anchor":"middle",y:"0.8",style:i.normalizeStyle(i.unref(m))},i.toDisplayString(t.content),5)],12,fc),p[0]||(p[0]=i.createStaticVNode('<filter id="#dropshadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="0.3"></feGaussianBlur><feOffset dx="0" dy="0.25" result="offsetblur"></feOffset><feFlood flood-color="rgba(0,0,0,0.4)"></feFlood><feComposite in2="offsetblur" operator="in"></feComposite><feMerge><feMergeNode></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter>',1))],32))}}),dc=["x1","x2","y1","y2"],Po=i.defineComponent({__name:"EndMarker",props:{timelineID:{},time:{},isInteractive:{type:Boolean}},setup(e){const t=e,n=i.ref(1.8),o=i.ref(t.time);i.watch(()=>t.time,m=>{o.value=m});const r=i.ref(!1),a=i.ref(!1),l=()=>{t.isInteractive&&(r.value=!0,n.value=3.2)},c=()=>{t.isInteractive&&(r.value=!1,n.value=1.8)};let s;const u=m=>{t.isInteractive&&(a.value=!0,s=m.currentTarget.parentElement)};function f(m){t.isInteractive&&a.value&&(o.value=Bo(s)(m.pageX),Eo.next({timelineID:t.timelineID,time:o.value}))}function d(m){t.isInteractive&&(a.value=!1)}return i.onMounted(()=>{document.addEventListener("mousemove",f),document.addEventListener("mouseup",d)}),i.onUnmounted(()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",d)}),(m,g)=>(i.openBlock(),i.createElementBlock("svg",{style:{overflow:"visible"},onMouseenter:l,onMouseleave:c,onMousedown:u},[i.createElementVNode("line",{class:"end-marker",x1:o.value,x2:o.value,y1:5-n.value,y2:5+n.value,style:i.normalizeStyle({stroke:"black",strokeWidth:"0.3",cursor:r.value?"ew-resize":"default"})},null,12,dc)],32))}}),pc={class:"operatorBox"},mc={style:{"font-size":"1.5em","font-weight":"400"}},hc=i.defineComponent({__name:"Sandbox",setup(e){i.useCssVars(l=>({"5f55d682":i.unref(ot).spaceMedium}));const t=ko("2px","10px","0.17"),n=ko("2px","5px","0.26"),o=i.ref(""),r=i.reactive([]);let a=i.reactive({timelineID:0,marbles:[],end:{time:0},interactive:!1});return Vt.pipe(ye(l=>o.value=l.label)).subscribe(),At.pipe(I(l=>{r.length=0,l.forEach(c=>{r.push(c)})})).subscribe(),tc.pipe(ye(l=>{Object.assign(a,l)})).subscribe(),(l,c)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(i.unref(Jl))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r,(s,u)=>(i.openBlock(),i.createBlock(Ro,{key:s.timelineID},{default:i.withCtx(()=>[i.createVNode(Po,{timelineID:s.timelineID,time:s.end.time,isInteractive:!0},null,8,["timelineID","time"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.marbles,(f,d)=>(i.openBlock(),i.createBlock(Oo,{key:f.marbleID,marbleID:f.marbleID,time:f.time,isInteractive:!0,content:f.content},null,8,["marbleID","time","content"]))),128))]),_:2},1024))),128)),i.createElementVNode("div",pc,[i.createElementVNode("div",{style:i.normalizeStyle(i.unref(t))},null,4),i.createElementVNode("span",mc,i.toDisplayString(o.value),1),i.createElementVNode("div",{style:i.normalizeStyle(i.unref(n))},null,4)]),i.createVNode(Ro,null,{default:i.withCtx(()=>[i.createVNode(Po,{timelineID:i.unref(a).timelineID,time:i.unref(a).end.time,isInteractive:!1},null,8,["timelineID","time"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a).marbles,(s,u)=>(i.openBlock(),i.createBlock(Oo,{key:s.marbleID,marbleID:s.marbleID,time:s.time,isInteractive:!1,content:s.content},null,8,["marbleID","time","content"]))),128))]),_:1})],4))}}),ss="",gc={class:"wrap",style:{width:"1060px",margin:"0 auto"}},yc={style:{display:"flex"}},vc={style:{margin:"0",padding:"0","list-style-type":"none"}},bc=["href"],_c={style:{flex:"0 0 820px","padding-top":"10px"}},$o="/rx/",wc=i.defineComponent({__name:"RxMarbles",setup(e){const t=i.ref(),n=i.ref([]);return i.onMounted(()=>{xo.pipe(Ee(1),ye(o=>{const r=n.value.find(a=>a.href.indexOf(`#${$o}${o}`)>=0);r&&t.value&&t.value.scrollTo({top:b.getElementPositionInPage(r).y})})).subscribe()}),(o,r)=>(i.openBlock(),i.createElementBlock("div",gc,[i.createElementVNode("div",yc,[i.createElementVNode("div",{ref:a=>t.value=a,style:{flex:"1","margin-right":"32px","box-sizing":"border-box","overflow-y":"scroll",height:"100vh"}},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(So),(a,l)=>(i.openBlock(),i.createElementBlock("ul",vc,[(i.openBlock(),i.createElementBlock("li",{class:"li",key:l},i.toDisplayString(l),1)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a,(c,s)=>(i.openBlock(),i.createElementBlock("a",{key:s,href:`#${$o}${s}`,class:"link",ref_for:!0,ref:u=>n.value.push(u),style:{position:"relative",display:"block",color:"#666666"}},i.toDisplayString(s),9,bc))),128))]))),256))],512),i.createElementVNode("div",_c,[i.createVNode(hc)])])]))}}),us="",Sc=z(wc,[["__scopeId","data-v-71a3979d"]]),Cc=re.createRouter({history:re.createWebHashHistory("/"),routes:[{path:"/",name:"xg",redirect:"/lot"},{path:"/shape",name:"shape",component:na},{path:"/lot",name:"lot",component:Ai},{path:"/park",name:"park",component:Ni},{path:"/rx/:operator?",name:"rx",component:Sc},{path:"/view-document/:title/:src",name:"view-document",component:jt}],scrollBehavior:(e,t,n)=>n||{left:0,top:0}}),Lt=i.ref("next"),rt=[];Cc.beforeEach((e,t,n)=>{const o=rt.length,r=rt.findIndex(a=>a==e.name);o>1&&r>=0&&r<o-1?(Lt.value="prev",rt.splice(r+1)):(Lt.value="next",rt.push(e.name)),n()});const kc="increment",xc="decrement",Tc="incrementAction";function Ec(){return{store:te.useStore()}}function Fc(e,t){let n=te.mapState;return typeof e=="string"&&e.length>0?n=te.createNamespacedHelpers(e).mapState:t=e,Vo(t,n)}function Ic(e,t){let n=te.mapGetters;return typeof e=="string"&&e.length>0?n=te.createNamespacedHelpers(e).mapGetters:t=e,Vo(t,n)}function Bc(e,t){let n=te.mapMutations;return typeof e=="string"&&e.length>0?n=te.createNamespacedHelpers(e).mapMutations:t=e,Array.isArray(t),n(t)}function Rc(e,t){let n=te.mapActions;return typeof e=="string"&&e.length>0?n=te.createNamespacedHelpers(e).mapActions:t=e,Array.isArray(t),n(t)}function Vo(e,t){const n=te.useStore(),o={},r=t(e);return Object.keys(r).forEach(a=>{const l=r[a].bind({$store:n});o[a]=i.computed(l)}),o}return Object.defineProperty(M,"RouterLink",{enumerable:!0,get:()=>re.RouterLink}),Object.defineProperty(M,"RouterView",{enumerable:!0,get:()=>re.RouterView}),Object.defineProperty(M,"useRoute",{enumerable:!0,get:()=>re.useRoute}),Object.defineProperty(M,"useRouter",{enumerable:!0,get:()=>re.useRouter}),M.DECREMENT=xc,M.INCREMENT=kc,M.INCREMENTACTION=Tc,M.getInstance=Ao,M.getVNode=zt,M.renderComponent=Lo,M.routeDirection=Lt,M.useVueEffect=No,M.useVuex=Ec,M.useVuexActions=Rc,M.useVuexGetters=Ic,M.useVuexMutations=Bc,M.useVuexStates=Fc,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),M}({},vue,vue-router,ZYZGroupCoreWeb,ZYZGroupCoreCommon,vuex);
14
14
  //# sourceMappingURL=zyzgroup_core_vue.iife.js.map