@cloudbase/cals 1.0.19-alpha.0 → 1.0.19-alpha.2

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.
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * @cloudbase/cals
3
+ * Copyright© 2023 Tencent
4
+ */
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).CloudBaseCals={})}(this,(function(e){"use strict";var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)};var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function i(e,t,n,r){return new(n||(n=Promise))((function(i,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function o(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}}function s(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var o=Array.isArray,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e,t){return e(t={exports:{}},t.exports),t.exports}var l="object"==typeof c&&c&&c.Object===Object&&c,u="object"==typeof self&&self&&self.Object===Object&&self,d=l||u||Function("return this")(),h=d.Symbol,f=Object.prototype,m=f.hasOwnProperty,v=f.toString,y=h?h.toStringTag:void 0;var g=function(e){var t=m.call(e,y),n=e[y];try{e[y]=void 0;var r=!0}catch(e){}var i=v.call(e);return r&&(t?e[y]=n:delete e[y]),i},b=Object.prototype.toString;var x=function(e){return b.call(e)},w=h?h.toStringTag:void 0;var C=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":w&&w in Object(e)?g(e):x(e)};var k=function(e){return null!=e&&"object"==typeof e};var S=function(e){return"symbol"==typeof e||k(e)&&"[object Symbol]"==C(e)},_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;var P=function(e,t){if(o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!S(e))||(T.test(e)||!_.test(e)||null!=t&&e in Object(t))};var E=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var I,D=function(e){if(!E(e))return!1;var t=C(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=d["__core-js_shared__"],N=(I=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var O=function(e){return!!N&&N in e},L=Function.prototype.toString;var R=function(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""},M=/^\[object .+?Constructor\]$/,F=Function.prototype,j=Object.prototype,V=F.toString,B=j.hasOwnProperty,W=RegExp("^"+V.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(e){return!(!E(e)||O(e))&&(D(e)?W:M).test(R(e))};var G=function(e,t){return null==e?void 0:e[t]};var H=function(e,t){var n=G(e,t);return U(n)?n:void 0},$=H(Object,"create");var z=function(){this.__data__=$?$(null):{},this.size=0};var X=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q=Object.prototype.hasOwnProperty;var Y=function(e){var t=this.__data__;if($){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return q.call(t,e)?t[e]:void 0},K=Object.prototype.hasOwnProperty;var J=function(e){var t=this.__data__;return $?void 0!==t[e]:K.call(t,e)};var Q=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this};function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Z.prototype.clear=z,Z.prototype.delete=X,Z.prototype.get=Y,Z.prototype.has=J,Z.prototype.set=Q;var ee=Z;var te=function(){this.__data__=[],this.size=0};var ne=function(e,t){return e===t||e!=e&&t!=t};var re=function(e,t){for(var n=e.length;n--;)if(ne(e[n][0],t))return n;return-1},ie=Array.prototype.splice;var ae=function(e){var t=this.__data__,n=re(t,e);return!(n<0)&&(n==t.length-1?t.pop():ie.call(t,n,1),--this.size,!0)};var se=function(e){var t=this.__data__,n=re(t,e);return n<0?void 0:t[n][1]};var oe=function(e){return re(this.__data__,e)>-1};var ce=function(e,t){var n=this.__data__,r=re(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pe.prototype.clear=te,pe.prototype.delete=ae,pe.prototype.get=se,pe.prototype.has=oe,pe.prototype.set=ce;var le=pe,ue=H(d,"Map");var de=function(){this.size=0,this.__data__={hash:new ee,map:new(ue||le),string:new ee}};var he=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var fe=function(e,t){var n=e.__data__;return he(t)?n["string"==typeof t?"string":"hash"]:n.map};var me=function(e){var t=fe(this,e).delete(e);return this.size-=t?1:0,t};var ve=function(e){return fe(this,e).get(e)};var ye=function(e){return fe(this,e).has(e)};var ge=function(e,t){var n=fe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}be.prototype.clear=de,be.prototype.delete=me,be.prototype.get=ve,be.prototype.has=ye,be.prototype.set=ge;var xe=be;function we(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(we.Cache||xe),n}we.Cache=xe;var Ce=we;var ke=function(e){var t=Ce(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_e=/\\(\\)?/g,Te=ke((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Se,(function(e,n,r,i){t.push(r?i.replace(_e,"$1"):n||e)})),t})),Pe=Te;var Ee=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},Ie=h?h.prototype:void 0,De=Ie?Ie.toString:void 0;var Ae=function e(t){if("string"==typeof t)return t;if(o(t))return Ee(t,e)+"";if(S(t))return De?De.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var Ne=function(e){return null==e?"":Ae(e)};var Oe=function(e,t){return o(e)?e:P(e,t)?[e]:Pe(Ne(e))};var Le=function(e){if("string"==typeof e||S(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Re=function(e,t){for(var n=0,r=(t=Oe(t,e)).length;null!=e&&n<r;)e=e[Le(t[n++])];return n&&n==r?e:void 0};var Me=function(e,t,n){var r=null==e?void 0:Re(e,t);return void 0===r?n:r};var Fe=function(){this.__data__=new le,this.size=0};var je=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Ve=function(e){return this.__data__.get(e)};var Be=function(e){return this.__data__.has(e)};var We=function(e,t){var n=this.__data__;if(n instanceof le){var r=n.__data__;if(!ue||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xe(r)}return n.set(e,t),this.size=n.size,this};function Ue(e){var t=this.__data__=new le(e);this.size=t.size}Ue.prototype.clear=Fe,Ue.prototype.delete=je,Ue.prototype.get=Ve,Ue.prototype.has=Be,Ue.prototype.set=We;var Ge=Ue;var He=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},$e=function(){try{var e=H(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var ze=function(e,t,n){"__proto__"==t&&$e?$e(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Xe=Object.prototype.hasOwnProperty;var qe=function(e,t,n){var r=e[t];Xe.call(e,t)&&ne(r,n)&&(void 0!==n||t in e)||ze(e,t,n)};var Ye=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],c=r?r(n[o],e[o],o,n,e):void 0;void 0===c&&(c=e[o]),i?ze(n,o,c):qe(n,o,c)}return n};var Ke=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Je=function(e){return k(e)&&"[object Arguments]"==C(e)},Qe=Object.prototype,Ze=Qe.hasOwnProperty,et=Qe.propertyIsEnumerable,tt=Je(function(){return arguments}())?Je:function(e){return k(e)&&Ze.call(e,"callee")&&!et.call(e,"callee")},nt=tt;var rt=function(){return!1},it=p((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?d.Buffer:void 0,a=(i?i.isBuffer:void 0)||rt;e.exports=a})),at=/^(?:0|[1-9]\d*)$/;var st=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&at.test(e))&&e>-1&&e%1==0&&e<t};var ot=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ct={};ct["[object Float32Array]"]=ct["[object Float64Array]"]=ct["[object Int8Array]"]=ct["[object Int16Array]"]=ct["[object Int32Array]"]=ct["[object Uint8Array]"]=ct["[object Uint8ClampedArray]"]=ct["[object Uint16Array]"]=ct["[object Uint32Array]"]=!0,ct["[object Arguments]"]=ct["[object Array]"]=ct["[object ArrayBuffer]"]=ct["[object Boolean]"]=ct["[object DataView]"]=ct["[object Date]"]=ct["[object Error]"]=ct["[object Function]"]=ct["[object Map]"]=ct["[object Number]"]=ct["[object Object]"]=ct["[object RegExp]"]=ct["[object Set]"]=ct["[object String]"]=ct["[object WeakMap]"]=!1;var pt=function(e){return k(e)&&ot(e.length)&&!!ct[C(e)]};var lt=function(e){return function(t){return e(t)}},ut=p((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&l.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a})),dt=ut&&ut.isTypedArray,ht=dt?lt(dt):pt,ft=Object.prototype.hasOwnProperty;var mt=function(e,t){var n=o(e),r=!n&&nt(e),i=!n&&!r&&it(e),a=!n&&!r&&!i&&ht(e),s=n||r||i||a,c=s?Ke(e.length,String):[],p=c.length;for(var l in e)!t&&!ft.call(e,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||st(l,p))||c.push(l);return c},vt=Object.prototype;var yt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||vt)};var gt=function(e,t){return function(n){return e(t(n))}},bt=gt(Object.keys,Object),xt=Object.prototype.hasOwnProperty;var wt=function(e){if(!yt(e))return bt(e);var t=[];for(var n in Object(e))xt.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Ct=function(e){return null!=e&&ot(e.length)&&!D(e)};var kt=function(e){return Ct(e)?mt(e):wt(e)};var St=function(e,t){return e&&Ye(t,kt(t),e)};var _t=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Tt=Object.prototype.hasOwnProperty;var Pt=function(e){if(!E(e))return _t(e);var t=yt(e),n=[];for(var r in e)("constructor"!=r||!t&&Tt.call(e,r))&&n.push(r);return n};var Et=function(e){return Ct(e)?mt(e,!0):Pt(e)};var It=function(e,t){return e&&Ye(t,Et(t),e)},Dt=p((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?d.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}));var At=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Nt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a};var Ot=function(){return[]},Lt=Object.prototype.propertyIsEnumerable,Rt=Object.getOwnPropertySymbols,Mt=Rt?function(e){return null==e?[]:(e=Object(e),Nt(Rt(e),(function(t){return Lt.call(e,t)})))}:Ot;var Ft=function(e,t){return Ye(e,Mt(e),t)};var jt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Vt=gt(Object.getPrototypeOf,Object),Bt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)jt(t,Mt(e)),e=Vt(e);return t}:Ot,Wt=Bt;var Ut=function(e,t){return Ye(e,Wt(e),t)};var Gt=function(e,t,n){var r=t(e);return o(e)?r:jt(r,n(e))};var Ht=function(e){return Gt(e,kt,Mt)};var $t=function(e){return Gt(e,Et,Wt)},zt=H(d,"DataView"),Xt=H(d,"Promise"),qt=H(d,"Set"),Yt=H(d,"WeakMap"),Kt="[object Map]",Jt="[object Promise]",Qt="[object Set]",Zt="[object WeakMap]",en="[object DataView]",tn=R(zt),nn=R(ue),rn=R(Xt),an=R(qt),sn=R(Yt),on=C;(zt&&on(new zt(new ArrayBuffer(1)))!=en||ue&&on(new ue)!=Kt||Xt&&on(Xt.resolve())!=Jt||qt&&on(new qt)!=Qt||Yt&&on(new Yt)!=Zt)&&(on=function(e){var t=C(e),n="[object Object]"==t?e.constructor:void 0,r=n?R(n):"";if(r)switch(r){case tn:return en;case nn:return Kt;case rn:return Jt;case an:return Qt;case sn:return Zt}return t});var cn=on,pn=Object.prototype.hasOwnProperty;var ln=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&pn.call(e,"index")&&(n.index=e.index,n.input=e.input),n},un=d.Uint8Array;var dn=function(e){var t=new e.constructor(e.byteLength);return new un(t).set(new un(e)),t};var hn=function(e,t){var n=t?dn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},fn=/\w*$/;var mn=function(e){var t=new e.constructor(e.source,fn.exec(e));return t.lastIndex=e.lastIndex,t},vn=h?h.prototype:void 0,yn=vn?vn.valueOf:void 0;var gn=function(e){return yn?Object(yn.call(e)):{}};var bn=function(e,t){var n=t?dn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var xn=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return dn(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return hn(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return bn(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return mn(e);case"[object Symbol]":return gn(e)}},wn=Object.create,Cn=function(){function e(){}return function(t){if(!E(t))return{};if(wn)return wn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),kn=Cn;var Sn=function(e){return"function"!=typeof e.constructor||yt(e)?{}:kn(Vt(e))};var _n=function(e){return k(e)&&"[object Map]"==cn(e)},Tn=ut&&ut.isMap,Pn=Tn?lt(Tn):_n;var En=function(e){return k(e)&&"[object Set]"==cn(e)},In=ut&&ut.isSet,Dn=In?lt(In):En,An="[object Arguments]",Nn="[object Function]",On="[object Object]",Ln={};Ln[An]=Ln["[object Array]"]=Ln["[object ArrayBuffer]"]=Ln["[object DataView]"]=Ln["[object Boolean]"]=Ln["[object Date]"]=Ln["[object Float32Array]"]=Ln["[object Float64Array]"]=Ln["[object Int8Array]"]=Ln["[object Int16Array]"]=Ln["[object Int32Array]"]=Ln["[object Map]"]=Ln["[object Number]"]=Ln[On]=Ln["[object RegExp]"]=Ln["[object Set]"]=Ln["[object String]"]=Ln["[object Symbol]"]=Ln["[object Uint8Array]"]=Ln["[object Uint8ClampedArray]"]=Ln["[object Uint16Array]"]=Ln["[object Uint32Array]"]=!0,Ln["[object Error]"]=Ln[Nn]=Ln["[object WeakMap]"]=!1;var Rn=function e(t,n,r,i,a,s){var c,p=1&n,l=2&n,u=4&n;if(r&&(c=a?r(t,i,a,s):r(t)),void 0!==c)return c;if(!E(t))return t;var d=o(t);if(d){if(c=ln(t),!p)return At(t,c)}else{var h=cn(t),f=h==Nn||"[object GeneratorFunction]"==h;if(it(t))return Dt(t,p);if(h==On||h==An||f&&!a){if(c=l||f?{}:Sn(t),!p)return l?Ut(t,It(c,t)):Ft(t,St(c,t))}else{if(!Ln[h])return a?t:{};c=xn(t,h,p)}}s||(s=new Ge);var m=s.get(t);if(m)return m;s.set(t,c),Dn(t)?t.forEach((function(i){c.add(e(i,n,r,i,t,s))})):Pn(t)&&t.forEach((function(i,a){c.set(a,e(i,n,r,a,t,s))}));var v=d?void 0:(u?l?$t:Ht:l?Et:kt)(t);return He(v||t,(function(i,a){v&&(i=t[a=i]),qe(c,a,e(i,n,r,a,t,s))})),c};var Mn=function(e){return Rn(e,5)};var Fn=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var jn=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a};var Vn=function(e,t){return t.length<2?e:Re(e,jn(t,0,-1))};var Bn=function(e,t){return t=Oe(t,e),null==(e=Vn(e,t))||delete e[Le(Fn(t))]};var Wn=function(e,t){return null==e||Bn(e,t)};var Un=function(e,t,n,r){if(!E(e))return e;for(var i=-1,a=(t=Oe(t,e)).length,s=a-1,o=e;null!=o&&++i<a;){var c=Le(t[i]),p=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var l=o[c];void 0===(p=r?r(l,c,o):void 0)&&(p=E(l)?l:st(t[i+1])?[]:{})}qe(o,c,p),o=o[c]}return e};var Gn,Hn,$n=function(e,t,n){return null==e?e:Un(e,t,n)},zn={CODE:"CODE",LIBRARY:"LIBRARY"};e.ECodeType=void 0,(Gn=e.ECodeType||(e.ECodeType={})).LIFECYCLE="lifecycle",Gn.CONFIG="config",Gn.STATE="state",Gn.COMPUTEDN="computed",Gn.HANDLER_FN="handler-fn",Gn.NORMAL_MODULE="normal-module",Gn.STYLE="style",Gn.THEME="theme",Gn.MPCONFIG="mp_config",Gn.RENDERER="renderer",e.ECodeName=void 0,(Hn=e.ECodeName||(e.ECodeName={})).LIFECYCLE="lifecycle",Hn.CONFIG="config",Hn.STATE="state",Hn.COMPUTEDN="computed",Hn.STYLE="style",Hn.THEME="theme",Hn.MPCONFIG="mp_config",Hn.RENDERER="renderer",Hn.HANDLER_FN="handler",Hn.NORMAL_MODULE="common",Hn.PLACEHOLDER="____index____";var Xn=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239],qn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],Yn="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Kn={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Jn="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Qn={5:Jn,"5module":Jn+" export import",6:Jn+" const class extends export import super"},Zn=/^in(stanceof)?$/,er=new RegExp("["+Yn+"]"),tr=new RegExp("["+Yn+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function nr(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function rr(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&er.test(String.fromCharCode(e)):!1!==t&&nr(e,qn)))}function ir(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&tr.test(String.fromCharCode(e)):!1!==t&&(nr(e,qn)||nr(e,Xn)))))}var ar=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function sr(e,t){return new ar(e,{beforeExpr:!0,binop:t})}var or={beforeExpr:!0},cr={startsExpr:!0},pr={};function lr(e,t){return void 0===t&&(t={}),t.keyword=e,pr[e]=new ar(e,t)}var ur={num:new ar("num",cr),regexp:new ar("regexp",cr),string:new ar("string",cr),name:new ar("name",cr),privateId:new ar("privateId",cr),eof:new ar("eof"),bracketL:new ar("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ar("]"),braceL:new ar("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ar("}"),parenL:new ar("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ar(")"),comma:new ar(",",or),semi:new ar(";",or),colon:new ar(":",or),dot:new ar("."),question:new ar("?",or),questionDot:new ar("?."),arrow:new ar("=>",or),template:new ar("template"),invalidTemplate:new ar("invalidTemplate"),ellipsis:new ar("...",or),backQuote:new ar("`",cr),dollarBraceL:new ar("${",{beforeExpr:!0,startsExpr:!0}),eq:new ar("=",{beforeExpr:!0,isAssign:!0}),assign:new ar("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ar("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ar("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:sr("||",1),logicalAND:sr("&&",2),bitwiseOR:sr("|",3),bitwiseXOR:sr("^",4),bitwiseAND:sr("&",5),equality:sr("==/!=/===/!==",6),relational:sr("</>/<=/>=",7),bitShift:sr("<</>>/>>>",8),plusMin:new ar("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:sr("%",10),star:sr("*",10),slash:sr("/",10),starstar:new ar("**",{beforeExpr:!0}),coalesce:sr("??",1),_break:lr("break"),_case:lr("case",or),_catch:lr("catch"),_continue:lr("continue"),_debugger:lr("debugger"),_default:lr("default",or),_do:lr("do",{isLoop:!0,beforeExpr:!0}),_else:lr("else",or),_finally:lr("finally"),_for:lr("for",{isLoop:!0}),_function:lr("function",cr),_if:lr("if"),_return:lr("return",or),_switch:lr("switch"),_throw:lr("throw",or),_try:lr("try"),_var:lr("var"),_const:lr("const"),_while:lr("while",{isLoop:!0}),_with:lr("with"),_new:lr("new",{beforeExpr:!0,startsExpr:!0}),_this:lr("this",cr),_super:lr("super",cr),_class:lr("class",cr),_extends:lr("extends",or),_export:lr("export"),_import:lr("import",cr),_null:lr("null",cr),_true:lr("true",cr),_false:lr("false",cr),_in:lr("in",{beforeExpr:!0,binop:7}),_instanceof:lr("instanceof",{beforeExpr:!0,binop:7}),_typeof:lr("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:lr("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:lr("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},dr=/\r\n?|\n|\u2028|\u2029/,hr=new RegExp(dr.source,"g");function fr(e){return 10===e||13===e||8232===e||8233===e}function mr(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(fr(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var vr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,yr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,gr=Object.prototype,br=gr.hasOwnProperty,xr=gr.toString,wr=Object.hasOwn||function(e,t){return br.call(e,t)},Cr=Array.isArray||function(e){return"[object Array]"===xr.call(e)};function kr(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function Sr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var _r=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Tr=function(e,t){this.line=e,this.column=t};Tr.prototype.offset=function(e){return new Tr(this.line,this.column+e)};var Pr=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function Er(e,t){for(var n=1,r=0;;){var i=mr(e,r,t);if(i<0)return new Tr(n,t-r);++n,r=i}}var Ir={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Dr=!1;function Ar(e){var t={};for(var n in Ir)t[n]=e&&wr(e,n)?e[n]:Ir[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Dr&&"object"==typeof console&&console.warn&&(Dr=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),Cr(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return Cr(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,s,o){var c={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(c.loc=new Pr(this,s,o)),e.ranges&&(c.range=[i,a]),t.push(c)}}(t,t.onComment)),t}var Nr=256;function Or(e,t){return 2|(e?4:0)|(t?8:0)}var Lr=function(e,t,n){this.options=e=Ar(e),this.sourceFile=e.sourceFile,this.keywords=kr(Qn[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=Kn[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=kr(r);var i=(r?r+" ":"")+Kn.strict;this.reservedWordsStrict=kr(i),this.reservedWordsStrictBind=kr(i+" "+Kn.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(dr).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=ur.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Rr={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Lr.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Rr.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Rr.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Rr.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Rr.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Nr)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Rr.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},Rr.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Rr.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Rr.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},Rr.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Nr)>0},Lr.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},Lr.parse=function(e,t){return new this(t,e).parse()},Lr.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Lr.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Lr.prototype,Rr);var Mr=Lr.prototype,Fr=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Mr.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){yr.lastIndex=e,e+=yr.exec(this.input)[0].length;var t=Fr.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){yr.lastIndex=e+t[0].length;var n=yr.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||dr.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,yr.lastIndex=e,e+=yr.exec(this.input)[0].length,";"===this.input[e]&&e++}},Mr.eat=function(e){return this.type===e&&(this.next(),!0)},Mr.isContextual=function(e){return this.type===ur.name&&this.value===e&&!this.containsEsc},Mr.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},Mr.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Mr.canInsertSemicolon=function(){return this.type===ur.eof||this.type===ur.braceR||dr.test(this.input.slice(this.lastTokEnd,this.start))},Mr.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Mr.semicolon=function(){this.eat(ur.semi)||this.insertSemicolon()||this.unexpected()},Mr.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Mr.expect=function(e){this.eat(e)||this.unexpected()},Mr.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var jr=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Mr.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},Mr.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},Mr.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Mr.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var Vr=Lr.prototype;Vr.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==ur.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Br={kind:"loop"},Wr={kind:"switch"};Vr.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;yr.lastIndex=this.pos;var t=yr.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r||92===r||r>55295&&r<56320)return!0;if(e)return!1;if(123===r)return!0;if(rr(r,!0)){for(var i=n+1;ir(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!Zn.test(a))return!0}return!1},Vr.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;yr.lastIndex=this.pos;var e,t=yr.exec(this.input),n=this.pos+t[0].length;return!(dr.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(ir(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},Vr.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet(e)&&(i=ur._var,r="let"),i){case ur._break:case ur._continue:return this.parseBreakContinueStatement(a,i.keyword);case ur._debugger:return this.parseDebuggerStatement(a);case ur._do:return this.parseDoStatement(a);case ur._for:return this.parseForStatement(a);case ur._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case ur._class:return e&&this.unexpected(),this.parseClass(a,!0);case ur._if:return this.parseIfStatement(a);case ur._return:return this.parseReturnStatement(a);case ur._switch:return this.parseSwitchStatement(a);case ur._throw:return this.parseThrowStatement(a);case ur._try:return this.parseTryStatement(a);case ur._const:case ur._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(a,r);case ur._while:return this.parseWhileStatement(a);case ur._with:return this.parseWithStatement(a);case ur.braceL:return this.parseBlock(!0,a);case ur.semi:return this.parseEmptyStatement(a);case ur._export:case ur._import:if(this.options.ecmaVersion>10&&i===ur._import){yr.lastIndex=this.pos;var s=yr.exec(this.input),o=this.pos+s[0].length,c=this.input.charCodeAt(o);if(40===c||46===c)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===ur._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var p=this.value,l=this.parseExpression();return i===ur.name&&"Identifier"===l.type&&this.eat(ur.colon)?this.parseLabeledStatement(a,p,l,e):this.parseExpressionStatement(a,l)}},Vr.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(ur.semi)||this.insertSemicolon()?e.label=null:this.type!==ur.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},Vr.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},Vr.parseDoStatement=function(e){return this.next(),this.labels.push(Br),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(ur._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(ur.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},Vr.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Br),this.enterScope(0),this.expect(ur.parenL),this.type===ur.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===ur._var||this.type===ur._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===ur._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===ur._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual("let"),s=!1,o=new jr,c=this.parseExpression(!(t>-1)||"await",o);return this.type===ur._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===ur._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&s&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,o),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},Vr.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Gr|(n?0:Hr),!1,t)},Vr.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(ur._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},Vr.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(ur.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},Vr.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(ur.braceL),this.labels.push(Wr),this.enterScope(0);for(var n=!1;this.type!==ur.braceR;)if(this.type===ur._case||this.type===ur._default){var r=this.type===ur._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(ur.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},Vr.parseThrowStatement=function(e){return this.next(),dr.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ur=[];Vr.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===ur._catch){var t=this.startNode();if(this.next(),this.eat(ur.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLValPattern(t.param,n?4:2),this.expect(ur.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(ur._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},Vr.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},Vr.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Br),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},Vr.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},Vr.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},Vr.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1){a[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var s=this.type.isLoop?"loop":this.type===ur._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var c=this.labels[o];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},Vr.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Vr.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(ur.braceL),e&&this.enterScope(0);this.type!==ur.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},Vr.parseFor=function(e,t){return e.init=t,this.expect(ur.semi),e.test=this.type===ur.semi?null:this.parseExpression(),this.expect(ur.semi),e.update=this.type===ur.parenR?null:this.parseExpression(),this.expect(ur.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},Vr.parseForIn=function(e,t){var n=this.type===ur._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(ur.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},Vr.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(ur.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===ur._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===ur._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(ur.comma))break}return e},Vr.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var Gr=1,Hr=2;function $r(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function zr(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}Vr.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===ur.star&&t&Hr&&this.unexpected(),e.generator=this.eat(ur.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Gr&&(e.id=4&t&&this.type!==ur.name?null:this.parseIdent(),!e.id||t&Hr||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Or(e.async,e.generator)),t&Gr||(e.id=this.type===ur.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,t&Gr?"FunctionDeclaration":"FunctionExpression")},Vr.parseFunctionParams=function(e){this.expect(ur.parenL),e.params=this.parseBindingList(ur.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Vr.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(ur.braceL);this.type!==ur.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(a&&this.raise(s.start,"Duplicate constructor in the same class"),a=!0):s.key&&"PrivateIdentifier"===s.key.type&&$r(r,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Vr.parseClassElement=function(e){if(this.eat(ur.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,a=!1,s="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(ur.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===ur.star?o=!0:r="static"}if(n.static=o,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==ur.star||this.canInsertSemicolon()?r="async":a=!0),!r&&(t>=9||!a)&&this.eat(ur.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===ur.parenL||"method"!==s||i||a){var p=!n.static&&zr(n,"constructor"),l=p&&e;p&&"method"!==s&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=p?"constructor":s,this.parseClassMethod(n,i,a,l)}else this.parseClassField(n);return n},Vr.isClassElementNameStart=function(){return this.type===ur.name||this.type===ur.privateId||this.type===ur.num||this.type===ur.string||this.type===ur.bracketL||this.type.keyword},Vr.parseClassElementName=function(e){this.type===ur.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Vr.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&zr(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==a.params.length&&this.raiseRecoverable(a.start,"getter should have no params"),"set"===e.kind&&1!==a.params.length&&this.raiseRecoverable(a.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===a.params[0].type&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},Vr.parseClassField=function(e){if(zr(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&zr(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(ur.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},Vr.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==ur.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},Vr.parseClassId=function(e,t){this.type===ur.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},Vr.parseClassSuper=function(e){e.superClass=this.eat(ur._extends)?this.parseExprSubscripts(!1):null},Vr.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Vr.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var s=n[a];wr(t,s.name)||(i?i.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}},Vr.parseExport=function(e,t){if(this.next(),this.eat(ur.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==ur.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(ur._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===ur._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|Gr,!1,n)}else if(this.type===ur._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==ur.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,s=e.specifiers;a<s.length;a+=1){var o=s[a];this.checkUnreserved(o.local),this.checkLocalExport(o.local),"Literal"===o.local.type&&this.raise(o.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},Vr.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),wr(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},Vr.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if("ArrayPattern"===n)for(var s=0,o=t.elements;s<o.length;s+=1){var c=o[s];c&&this.checkPatternExport(e,c)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},Vr.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},Vr.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Vr.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(ur.braceL);!this.eat(ur.braceR);){if(n)n=!1;else if(this.expect(ur.comma),this.afterTrailingComma(ur.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},Vr.parseImport=function(e){return this.next(),this.type===ur.string?(e.specifiers=Ur,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===ur.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Vr.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===ur.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(ur.comma))return e}if(this.type===ur.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(ur.braceL);!this.eat(ur.braceR);){if(t)t=!1;else if(this.expect(ur.comma),this.afterTrailingComma(ur.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},Vr.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===ur.string){var e=this.parseLiteral(this.value);return _r.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},Vr.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Vr.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Xr=Lr.prototype;Xr.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},Xr.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];6===this.options.ecmaVersion&&t&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return e},Xr.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Xr.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==ur.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Xr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case ur.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(ur.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case ur.braceL:return this.parseObj(!0)}return this.parseIdent()},Xr.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(ur.comma),t&&this.type===ur.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===ur.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===ur.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var s=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(s),r.push(s)}return r},Xr.parseBindingListItem=function(e){return e},Xr.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(ur.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Xr.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(wr(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},Xr.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case"ArrayPattern":for(var s=0,o=e.elements;s<o.length;s+=1){var c=o[s];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Xr.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var qr=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Yr={b_stat:new qr("{",!1),b_expr:new qr("{",!0),b_tmpl:new qr("${",!1),p_stat:new qr("(",!1),p_expr:new qr("(",!0),q_tmpl:new qr("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new qr("function",!1),f_expr:new qr("function",!0),f_expr_gen:new qr("function",!0,!1,null,!0),f_gen:new qr("function",!1,!1,null,!0)},Kr=Lr.prototype;Kr.initialContext=function(){return[Yr.b_stat]},Kr.curContext=function(){return this.context[this.context.length-1]},Kr.braceIsBlock=function(e){var t=this.curContext();return t===Yr.f_expr||t===Yr.f_stat||(e!==ur.colon||t!==Yr.b_stat&&t!==Yr.b_expr?e===ur._return||e===ur.name&&this.exprAllowed?dr.test(this.input.slice(this.lastTokEnd,this.start)):e===ur._else||e===ur.semi||e===ur.eof||e===ur.parenR||e===ur.arrow||(e===ur.braceL?t===Yr.b_stat:e!==ur._var&&e!==ur._const&&e!==ur.name&&!this.exprAllowed):!t.isExpr)},Kr.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Kr.updateContext=function(e){var t,n=this.type;n.keyword&&e===ur.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Kr.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},ur.parenR.updateContext=ur.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Yr.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},ur.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Yr.b_stat:Yr.b_expr),this.exprAllowed=!0},ur.dollarBraceL.updateContext=function(){this.context.push(Yr.b_tmpl),this.exprAllowed=!0},ur.parenL.updateContext=function(e){var t=e===ur._if||e===ur._for||e===ur._with||e===ur._while;this.context.push(t?Yr.p_stat:Yr.p_expr),this.exprAllowed=!0},ur.incDec.updateContext=function(){},ur._function.updateContext=ur._class.updateContext=function(e){!e.beforeExpr||e===ur._else||e===ur.semi&&this.curContext()!==Yr.p_stat||e===ur._return&&dr.test(this.input.slice(this.lastTokEnd,this.start))||(e===ur.colon||e===ur.braceL)&&this.curContext()===Yr.b_stat?this.context.push(Yr.f_stat):this.context.push(Yr.f_expr),this.exprAllowed=!1},ur.backQuote.updateContext=function(){this.curContext()===Yr.q_tmpl?this.context.pop():this.context.push(Yr.q_tmpl),this.exprAllowed=!1},ur.star.updateContext=function(e){if(e===ur._function){var t=this.context.length-1;this.context[t]===Yr.f_expr?this.context[t]=Yr.f_expr_gen:this.context[t]=Yr.f_gen}this.exprAllowed=!0},ur.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==ur.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Jr=Lr.prototype;function Qr(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Qr(e.expression)}Jr.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var s=t[r="$"+r];if(s)("init"===a?this.strict&&s.init||s.get||s.set:s.init||s[a])&&this.raiseRecoverable(i.start,"Redefinition of property");else s=t[r]={init:!1,get:!1,set:!1};s[a]=!0}}},Jr.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===ur.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(ur.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},Jr.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,s=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new jr,r=!0);var o=this.start,c=this.startLoc;this.type!==ur.parenL&&this.type!==ur.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var p=this.parseMaybeConditional(e,t);if(n&&(p=n.call(this,p,o,c)),this.type.isAssign){var l=this.startNodeAt(o,c);return l.operator=this.value,this.type===ur.eq&&(p=this.toAssignable(p,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===ur.eq?this.checkLValPattern(p):this.checkLValSimple(p),l.left=p,this.next(),l.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(l,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),p},Jr.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(ur.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(ur.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},Jr.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},Jr.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==ur._in)&&a>r){var s=this.type===ur.logicalOR||this.type===ur.logicalAND,o=this.type===ur.coalesce;o&&(a=ur.logicalAND.binop);var c=this.value;this.next();var p=this.start,l=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),p,l,a,i),d=this.buildBinary(t,n,e,u,c,s||o);return(s&&this.type===ur.coalesce||o&&(this.type===ur.logicalOR||this.type===ur.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,n,r,i)}return e},Jr.buildBinary=function(e,t,n,r,i,a){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=n,s.operator=i,s.right=r,this.finishNode(s,a?"LogicalExpression":"BinaryExpression")},Jr.parseMaybeUnary=function(e,t,n,r){var i,a=this.start,s=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===ur.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Qr(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==ur.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(a,s);p.operator=this.value,p.prefix=!1,p.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(p,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==ur._in&&this.unexpected();return n||!this.eat(ur.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,s,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},Jr.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},Jr.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var o=this.parseSubscript(e,t,n,r,a,s,i);if(o.optional&&(s=!0),o===e||"ArrowFunctionExpression"===o.type){if(s){var c=this.startNodeAt(t,n);c.expression=o,o=this.finishNode(c,"ChainExpression")}return o}e=o}},Jr.parseSubscript=function(e,t,n,r,i,a,s){var o=this.options.ecmaVersion>=11,c=o&&this.eat(ur.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(ur.bracketL);if(p||c&&this.type!==ur.parenL&&this.type!==ur.backQuote||this.eat(ur.dot)){var l=this.startNodeAt(t,n);l.object=e,p?(l.property=this.parseExpression(),this.expect(ur.bracketR)):this.type===ur.privateId&&"Super"!==e.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!p,o&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(!r&&this.eat(ur.parenL)){var u=new jr,d=this.yieldPos,h=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(ur.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(ur.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=h,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(t,n),m,!0,s);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var v=this.startNodeAt(t,n);v.callee=e,v.arguments=m,o&&(v.optional=c),e=this.finishNode(v,"CallExpression")}else if(this.type===ur.backQuote){(c||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,n);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},Jr.parseExprAtom=function(e,t){this.type===ur.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case ur._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==ur.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==ur.dot&&this.type!==ur.bracketL&&this.type!==ur.parenL&&this.unexpected(),this.finishNode(n,"Super");case ur._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case ur.name:var i=this.start,a=this.startLoc,s=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(ur._function))return this.overrideContext(Yr.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(ur.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[o],!1,t);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===ur.name&&!s&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(ur.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[o],!0,t)}return o;case ur.regexp:var c=this.value;return(n=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},n;case ur.num:case ur.string:return this.parseLiteral(this.value);case ur._null:case ur._true:case ur._false:return(n=this.startNode()).value=this.type===ur._null?null:this.type===ur._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case ur.parenL:var p=this.start,l=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),l;case ur.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(ur.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case ur.braceL:return this.overrideContext(Yr.b_expr),this.parseObj(!1,e);case ur._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case ur._class:return this.parseClass(this.startNode(),!1);case ur._new:return this.parseNew();case ur.backQuote:return this.parseTemplate();case ur._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Jr.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case ur.parenL:return this.parseDynamicImport(e);case ur.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},Jr.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(ur.parenR)){var t=this.start;this.eat(ur.comma)&&this.eat(ur.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Jr.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Jr.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},Jr.parseParenExpression=function(){this.expect(ur.parenL);var e=this.parseExpression();return this.expect(ur.parenR),e},Jr.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,o=this.start,c=this.startLoc,p=[],l=!0,u=!1,d=new jr,h=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==ur.parenR;){if(l?l=!1:this.expect(ur.comma),a&&this.afterTrailingComma(ur.parenR,!0)){u=!0;break}if(this.type===ur.ellipsis){s=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===ur.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var m=this.lastTokEnd,v=this.lastTokEndLoc;if(this.expect(ur.parenR),e&&!this.canInsertSemicolon()&&this.eat(ur.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=f,this.parseParenArrowList(r,i,p,t);p.length&&!u||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=f||this.awaitPos,p.length>1?((n=this.startNodeAt(o,c)).expressions=p,this.finishNodeAt(n,"SequenceExpression",m,v)):n=p[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(r,i);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")}return n},Jr.parseParenItem=function(e){return e},Jr.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Zr=[];Jr.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(ur.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,a=this.type===ur._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(ur.parenL)?e.arguments=this.parseExprList(ur.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Zr,this.finishNode(e,"NewExpression")},Jr.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===ur.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===ur.backQuote,this.finishNode(n,"TemplateElement")},Jr.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===ur.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(ur.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(ur.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},Jr.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===ur.name||this.type===ur.num||this.type===ur.string||this.type===ur.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===ur.star)&&!dr.test(this.input.slice(this.lastTokEnd,this.start))},Jr.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(ur.braceR);){if(r)r=!1;else if(this.expect(ur.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(ur.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},Jr.parseProperty=function(e,t){var n,r,i,a,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(ur.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===ur.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(this.type===ur.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),s.argument=this.parseMaybeAssign(!1,t),this.type===ur.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(ur.star)));var o=this.containsEsc;return this.parsePropertyName(s),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(s)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(ur.star),this.parsePropertyName(s,t)):r=!1,this.parsePropertyValue(s,e,n,r,i,a,t,o),this.finishNode(s,"Property")},Jr.parsePropertyValue=function(e,t,n,r,i,a,s,o){if((n||r)&&this.type===ur.colon&&this.unexpected(),this.eat(ur.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===ur.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===ur.comma||this.type===ur.braceR||this.type===ur.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===ur.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c="get"===e.kind?0:1;if(e.value.params.length!==c){var p=e.value.start;"get"===e.kind?this.raiseRecoverable(p,"getter should have no params"):this.raiseRecoverable(p,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},Jr.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(ur.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(ur.bracketR),e.key;e.computed=!1}return e.key=this.type===ur.num||this.type===ur.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Jr.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Jr.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Or(t,r.generator)|(n?128:0)),this.expect(ur.parenL),r.params=this.parseBindingList(ur.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(r,"FunctionExpression")},Jr.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|Or(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},Jr.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==ur.braceL,a=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!o||(s=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!a&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},Jr.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},Jr.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,1,t?null:n)}},Jr.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(ur.comma),t&&this.afterTrailingComma(e))break;var s=void 0;n&&this.type===ur.comma?s=null:this.type===ur.ellipsis?(s=this.parseSpread(r),r&&this.type===ur.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):s=this.parseMaybeAssign(!1,r),i.push(s)}return i},Jr.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},Jr.parseIdent=function(e,t){var n=this.startNode();return this.type===ur.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(n,"Identifier"),e||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},Jr.parsePrivateIdent=function(){var e=this.startNode();return this.type===ur.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},Jr.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===ur.semi||this.canInsertSemicolon()||this.type!==ur.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(ur.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Jr.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ei=Lr.prototype;ei.raise=function(e,t){var n=Er(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ei.raiseRecoverable=ei.raise,ei.curPosition=function(){if(this.options.locations)return new Tr(this.curLine,this.pos-this.lineStart)};var ti=Lr.prototype,ni=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ti.enterScope=function(e){this.scopeStack.push(new ni(e))},ti.exitScope=function(){this.scopeStack.pop()},ti.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ti.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var o=this.scopeStack[s];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},ti.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ti.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ti.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},ti.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var ri=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new Pr(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ii=Lr.prototype;function ai(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}ii.startNode=function(){return new ri(this,this.start,this.startLoc)},ii.startNodeAt=function(e,t){return new ri(this,e,t)},ii.finishNode=function(e,t){return ai.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ii.finishNodeAt=function(e,t,n,r){return ai.call(this,e,t,n,r)},ii.copyNode=function(e){var t=new ri(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var si="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",oi=si+" Extended_Pictographic",ci=oi+" EBase EComp EMod EPres ExtPict",pi={9:si,10:oi,11:oi,12:ci,13:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic EBase EComp EMod EPres ExtPict"},li="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ui="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",di=ui+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",hi=di+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",fi=hi+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",mi={9:ui,10:di,11:hi,12:fi,13:"Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith"},vi={};function yi(e){var t=vi[e]={binary:kr(pi[e]+" "+li),nonBinary:{General_Category:kr(li),Script:kr(mi[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var gi=0,bi=[9,10,11,12,13];gi<bi.length;gi+=1){yi(bi[gi])}var xi=Lr.prototype,wi=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=vi[e.options.ecmaVersion>=13?13:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Ci(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function ki(e){return e>=65&&e<=90||e>=97&&e<=122}function Si(e){return ki(e)||95===e}function _i(e){return Si(e)||Ti(e)}function Ti(e){return e>=48&&e<=57}function Pi(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ei(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ii(e){return e>=48&&e<=55}wi.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},wi.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},wi.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},wi.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},wi.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},wi.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},wi.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},wi.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},xi.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},xi.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},xi.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},xi.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},xi.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},xi.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},xi.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},xi.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},xi.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},xi.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},xi.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},xi.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},xi.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},xi.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},xi.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},xi.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},xi.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ci(t)&&(e.lastIntValue=t,e.advance(),!0)},xi.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Ci(n);)e.advance();return e.pos!==t},xi.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},xi.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},xi.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},xi.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Sr(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Sr(e.lastIntValue);return!0}return!1},xi.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return rr(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},xi.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return ir(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},xi.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},xi.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},xi.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},xi.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},xi.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},xi.regexp_eatZero=function(e){return 48===e.current()&&!Ti(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},xi.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},xi.regexp_eatControlLetter=function(e){var t=e.current();return!!ki(t)&&(e.lastIntValue=t%32,e.advance(),!0)},xi.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(i&&a>=55296&&a<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(a-55296)+(o-56320)+65536,!0}e.pos=s,e.lastIntValue=a}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},xi.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},xi.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},xi.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},xi.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},xi.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){wr(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},xi.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},xi.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Si(t=e.current());)e.lastStringValue+=Sr(t),e.advance();return""!==e.lastStringValue},xi.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";_i(t=e.current());)e.lastStringValue+=Sr(t),e.advance();return""!==e.lastStringValue},xi.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},xi.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},xi.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},xi.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Ii(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},xi.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},xi.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ti(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},xi.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},xi.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ti(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},xi.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Pi(n=e.current());)e.lastIntValue=16*e.lastIntValue+Ei(n),e.advance();return e.pos!==t},xi.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},xi.regexp_eatOctalDigit=function(e){var t=e.current();return Ii(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},xi.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Pi(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Ei(i),e.advance()}return!0};var Di=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Pr(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Ai=Lr.prototype;function Ni(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}Ai.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Di(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ai.getToken=function(){return this.next(),new Di(this)},"undefined"!=typeof Symbol&&(Ai[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===ur.eof,value:t}}}}),Ai.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(ur.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Ai.readToken=function(e){return rr(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Ai.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Ai.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=mr(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},Ai.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!fr(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Ai.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&vr.test(String.fromCharCode(e))))break e;++this.pos}}},Ai.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Ai.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(ur.ellipsis)):(++this.pos,this.finishToken(ur.dot))},Ai.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(ur.assign,2):this.finishOp(ur.slash,1)},Ai.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?ur.star:ur.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=ur.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(ur.assign,n+1):this.finishOp(r,n)},Ai.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(ur.assign,3);return this.finishOp(124===e?ur.logicalOR:ur.logicalAND,2)}return 61===t?this.finishOp(ur.assign,2):this.finishOp(124===e?ur.bitwiseOR:ur.bitwiseAND,1)},Ai.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(ur.assign,2):this.finishOp(ur.bitwiseXOR,1)},Ai.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!dr.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(ur.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(ur.assign,2):this.finishOp(ur.plusMin,1)},Ai.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(ur.assign,n+1):this.finishOp(ur.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(ur.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ai.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(ur.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(ur.arrow)):this.finishOp(61===e?ur.eq:ur.prefix,1)},Ai.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(ur.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(ur.assign,3);return this.finishOp(ur.coalesce,2)}}return this.finishOp(ur.question,1)},Ai.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,rr(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(ur.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Sr(e)+"'")},Ai.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(ur.parenL);case 41:return++this.pos,this.finishToken(ur.parenR);case 59:return++this.pos,this.finishToken(ur.semi);case 44:return++this.pos,this.finishToken(ur.comma);case 91:return++this.pos,this.finishToken(ur.bracketL);case 93:return++this.pos,this.finishToken(ur.bracketR);case 123:return++this.pos,this.finishToken(ur.braceL);case 125:return++this.pos,this.finishToken(ur.braceR);case 58:return++this.pos,this.finishToken(ur.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(ur.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(ur.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Sr(e)+"'")},Ai.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Ai.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(dr.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(a);var o=this.regexpState||(this.regexpState=new wi(this));o.reset(n,i,s),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=new RegExp(i,s)}catch(e){}return this.finishToken(ur.regexp,{pattern:i,flags:s,value:c})},Ai.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),a=this.pos,s=0,o=0,c=0,p=null==t?1/0:t;c<p;++c,++this.pos){var l=this.input.charCodeAt(this.pos),u=void 0;if(r&&95===l)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=l;else{if((u=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;o=l,s=s*e+u}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:s},Ai.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=Ni(this.input.slice(t,this.pos)),++this.pos):rr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ur.num,n)},Ai.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=Ni(this.input.slice(t,this.pos));return++this.pos,rr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ur.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),rr(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,s=(a=this.input.slice(t,this.pos),n?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(ur.num,s)},Ai.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Ai.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(fr(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(ur.string,t)};var Oi={};Ai.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Oi)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ai.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Oi;this.raise(e,t)},Ai.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==ur.template&&this.type!==ur.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(ur.template,e)):36===n?(this.pos+=2,this.finishToken(ur.dollarBraceL)):(++this.pos,this.finishToken(ur.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(fr(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Ai.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(ur.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Ai.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Sr(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;return this.invalidStringToken(n,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return fr(t)?"":String.fromCharCode(t)}},Ai.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Ai.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(ir(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?rr:ir)(s,r)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Sr(s),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Ai.readWord=function(){var e=this.readWord1(),t=ur.name;return this.keywords.test(e)&&(t=pr[e]),this.finishToken(t,e)};Lr.acorn={Parser:Lr,version:"8.7.1",defaultOptions:Ir,Position:Tr,SourceLocation:Pr,getLineInfo:Er,Node:ri,TokenType:ar,tokTypes:ur,keywordTypes:pr,TokContext:qr,tokContexts:Yr,isIdentifierChar:ir,isIdentifierStart:rr,Token:Di,isNewLine:fr,lineBreak:dr,lineBreakG:hr,nonASCIIwhitespace:vr};var Li,Ri,Mi={ecmaVersion:6,sourceType:"script",allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1},Fi="Literal",ji="BinaryExpression",Vi="MemberExpression",Bi="Identifier",Wi="SequenceExpression";e.PropBindType=void 0,(Li=e.PropBindType||(e.PropBindType={})).static="static",Li.state="rematch",Li.computed="computed",Li.forItem="for-item",Li.expression="expression",Li.prop="prop",Li.slot="slot",Li.dataVar="dataVar",Li.stateData="state",Li.paramData="params",Li.params="params",Li.scope="scope",e.ActionType=void 0,(Ri=e.ActionType||(e.ActionType={})).Rematch="rematch",Ri.Material="material",Ri.GeneralFunc="general-func",Ri.LifeCycle="lifecycle",Ri.PropEvent="prop-event",Ri.HandlerFn="handler-fn",Ri.Inline="inline",Ri.Platform="platform",Ri.DataSource="dataSource";var Ui=function(e){function n(t){var n=e.call(this,t.message)||this;return t.code&&(n.code=t.code||"PARSE_DYNAMIC_EXPRESSION_ERROR"),t.expression&&(n.expression=t.expression),n}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,e),n}(Error);function Gi(e,t){var n=e,r=[];if(n.type==Vi){if(e.$path)return s([],e.$path,!0);var i=n.object;switch(i.type){case Vi:r=Gi(i,t);break;case Bi:r=[i.name];break;default:throw new Ui({expression:e})}var a=n.property;if(n.computed){if(a.type!==Fi||a.regex)throw new Ui({expression:e});r.push(a.value)}else r.push(a.name);t&&t(r),e.$path=r}return s([],r,!0)}var Hi=function(){function t(t,r){this.expressionString=t,this.options=n(n({},r),{type:e.PropBindType.expression,value:this.expressionString});var i=function(e,t){return Lr.parse(e,t)}(this.expressionString,Mi),a=i.body[0].expression;this.expression=a}return t.prototype.parse=function(){switch(this.expression.type){case ji:return this.parseBinaryExpression(this.expression,this.options);case Vi:return this.parseSimpleExpression(this.expression,this.options);case Bi:if("$slot"==this.expression.name)return this.options.type=e.PropBindType.slot,this.options.value="",this.options;throw new Ui({expression:this.expression});default:throw new Ui({expression:this.expression})}},t.prototype.linkBinaryExpression=function(e){e.left.$parent=e,e.right.$parent=e},t.prototype.parseBinaryExpression=function(e,t){this.linkBinaryExpression(e);var n=e.operator,r=e.left,i=e.right;if(e.start,"in"!=n)throw new Ui({expression:e});return this.parseItemAliseExpression(r,t),this.parseSimpleExpression(i,t)},t.prototype.parseSimpleExpression=function(t,n){if(t.type!==Vi)throw new Ui({expression:t});var r=Gi(t),i=r.find((function(e){return"object"==typeof e})),a={memberProperty:r,index:0,replacer:"",expressionString:this.expressionString.slice(t.start,t.end)};switch(r[0]){case"$page":if(i||!this.options.pageId)throw new Ui({expression:t});if(a.index=1,a.replacer=this.options.pageId,"dataset"===r[1])return this.parseDataset(t,a,n);throw new Ui({expression:t});case"$app":if(a.index=1,a.replacer="global","dataset"===r[1])return this.parseDataset(t,a,n);throw new Ui({expression:t});case"$for":n.type=e.PropBindType.forItem,n.value=this.expressionString.slice(t.start,t.end).replace(/^\$for\./,"");break;default:throw new Ui({expression:t})}return n.expression=t,n},t.prototype.parseItemAliseExpression=function(e,t){switch(e.type){case Bi:return t;case Wi:var n=e.expressions;if(n.length>2||n.length<1)throw new Ui({expression:e});for(var r=0,i=n;r<i.length;r++){if(i[r].type!==Bi)throw new Ui({expression:e})}return t;default:throw new Ui({expression:e})}},t.prototype._generatePrefix=function(e,t){for(var n="",r=0;r<=t;r++)0!=r&&(n+="."),n+=e[r];return n},t.prototype._replaceExpression=function(e){var t=e.memberProperty,n=e.index,r=e.replacer,i=e.expressionString,a=void 0===i?this.expressionString:i,s=this._generatePrefix(t,n);return a.replace(new RegExp(s.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")),r)},t.prototype.parseDataset=function(t,r,i){switch(r.memberProperty[r.index+1]){case"state":i.type=e.PropBindType.stateData,i.value=this._replaceExpression(n(n({},r),{index:r.index+1}));break;case"params":i.type=e.PropBindType.params,i.value=this._replaceExpression(n(n({},r),{index:r.index+1}));break;default:throw new Ui({expression:t})}return this.options},t}();function $i(e,t){return void 0===t&&(t=!1),e=e.replace(/[_-]([a-z])/g,(function(e){return e[1].toUpperCase()})),t&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function zi(e){return"[object Object]"===Object.prototype.toString.call(e)}var Xi=function(e){if(!zi(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0};function qi(e){return!!e&&"classNameList"===e.propertyPath}function Yi(e,t){for(var n in e){var r=e[n],i=r.xComponent,a=r.properties;if(i){var s=i.moduleName,o=i.name;t[s]||(t[s]=new Set),t[s].add(o)}a&&Yi(a,t)}}function Ki(e,t,n,r){Object.keys(e).forEach((function(i){if(n.has(i)){var a=n.get(i);e[i].forEach((function(e){var s=a.components.find((function(t){return t.name===e}));if(s){if(!(t.indexOf(s)>-1)){t.push(s);var o={};Yi(s.componentInstances,o),Object.keys(o).forEach((function(e){r[e]?o[e].forEach((function(t){return r[e].add(t)})):r[e]=o[e]})),Ki(o,t,n,r)}}else console.warn("Component not found","".concat(i,":").concat(e))}))}}))}var Ji=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Qi=function(e){return this.__data__.has(e)};function Zi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new xe;++t<n;)this.add(e[t])}Zi.prototype.add=Zi.prototype.push=Ji,Zi.prototype.has=Qi;var ea=Zi;var ta=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var na=function(e,t){return e.has(t)};var ra=function(e,t,n,r,i,a){var s=1&n,o=e.length,c=t.length;if(o!=c&&!(s&&c>o))return!1;var p=a.get(e),l=a.get(t);if(p&&l)return p==t&&l==e;var u=-1,d=!0,h=2&n?new ea:void 0;for(a.set(e,t),a.set(t,e);++u<o;){var f=e[u],m=t[u];if(r)var v=s?r(m,f,u,t,e,a):r(f,m,u,e,t,a);if(void 0!==v){if(v)continue;d=!1;break}if(h){if(!ta(t,(function(e,t){if(!na(h,t)&&(f===e||i(f,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d};var ia=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var aa=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},sa=h?h.prototype:void 0,oa=sa?sa.valueOf:void 0;var ca=function(e,t,n,r,i,a,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new un(e),new un(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ne(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=ia;case"[object Set]":var c=1&r;if(o||(o=aa),e.size!=t.size&&!c)return!1;var p=s.get(e);if(p)return p==t;r|=2,s.set(e,t);var l=ra(o(e),o(t),r,i,a,s);return s.delete(e),l;case"[object Symbol]":if(oa)return oa.call(e)==oa.call(t)}return!1},pa=Object.prototype.hasOwnProperty;var la=function(e,t,n,r,i,a){var s=1&n,o=Ht(e),c=o.length;if(c!=Ht(t).length&&!s)return!1;for(var p=c;p--;){var l=o[p];if(!(s?l in t:pa.call(t,l)))return!1}var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var f=s;++p<c;){var m=e[l=o[p]],v=t[l];if(r)var y=s?r(v,m,l,t,e,a):r(m,v,l,e,t,a);if(!(void 0===y?m===v||i(m,v,n,r,a):y)){h=!1;break}f||(f="constructor"==l)}if(h&&!f){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h},ua="[object Arguments]",da="[object Array]",ha="[object Object]",fa=Object.prototype.hasOwnProperty;var ma=function(e,t,n,r,i,a){var s=o(e),c=o(t),p=s?da:cn(e),l=c?da:cn(t),u=(p=p==ua?ha:p)==ha,d=(l=l==ua?ha:l)==ha,h=p==l;if(h&&it(e)){if(!it(t))return!1;s=!0,u=!1}if(h&&!u)return a||(a=new Ge),s||ht(e)?ra(e,t,n,r,i,a):ca(e,t,p,n,r,i,a);if(!(1&n)){var f=u&&fa.call(e,"__wrapped__"),m=d&&fa.call(t,"__wrapped__");if(f||m){var v=f?e.value():e,y=m?t.value():t;return a||(a=new Ge),i(v,y,n,r,a)}}return!!h&&(a||(a=new Ge),la(e,t,n,r,i,a))};var va=function e(t,n,r,i,a){return t===n||(null==t||null==n||!k(t)&&!k(n)?t!=t&&n!=n:ma(t,n,r,i,e,a))};var ya=function(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Object(e);i--;){var o=n[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<a;){var c=(o=n[i])[0],p=e[c],l=o[1];if(s&&o[2]){if(void 0===p&&!(c in e))return!1}else{var u=new Ge;if(r)var d=r(p,l,c,e,t,u);if(!(void 0===d?va(l,p,3,r,u):d))return!1}}return!0};var ga=function(e){return e==e&&!E(e)};var ba=function(e){for(var t=kt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ga(i)]}return t};var xa=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var wa=function(e){var t=ba(e);return 1==t.length&&t[0][2]?xa(t[0][0],t[0][1]):function(n){return n===e||ya(n,e,t)}};var Ca=function(e,t){return null!=e&&t in Object(e)};var ka=function(e,t,n){for(var r=-1,i=(t=Oe(t,e)).length,a=!1;++r<i;){var s=Le(t[r]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&ot(i)&&st(s,i)&&(o(e)||nt(e))};var Sa=function(e,t){return null!=e&&ka(e,t,Ca)};var _a=function(e,t){return P(e)&&ga(t)?xa(Le(e),t):function(n){var r=Me(n,e);return void 0===r&&r===t?Sa(n,e):va(t,r,3)}};var Ta=function(e){return e};var Pa=function(e){return function(t){return null==t?void 0:t[e]}};var Ea=function(e){return function(t){return Re(t,e)}};var Ia=function(e){return P(e)?Pa(Le(e)):Ea(e)};var Da=function(e){return"function"==typeof e?e:null==e?Ta:"object"==typeof e?o(e)?_a(e[0],e[1]):wa(e):Ia(e)};var Aa=function(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),o=s.length;o--;){var c=s[e?o:++i];if(!1===n(a[c],c,a))break}return t}}();var Na=function(e,t){return function(n,r){if(null==n)return n;if(!Ct(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==r(s[a],a,s););return n}}((function(e,t){return e&&Aa(e,t,kt)}));var Oa=function(e,t){var n=-1,r=Ct(e)?Array(e.length):[];return Na(e,(function(e,i,a){r[++n]=t(e,i,a)})),r};var La=function(e,t){return(o(e)?Ee:Oa)(e,Da(t))};var Ra=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1};var Ma=function(e){return e!=e};var Fa=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var ja=function(e,t,n){return t==t?Fa(e,t,n):Ra(e,Ma,n)};var Va=function(e,t){return!!(null==e?0:e.length)&&ja(e,t,0)>-1};var Ba=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1};var Wa=function(){},Ua=qt&&1/aa(new qt([,-0]))[1]==1/0?function(e){return new qt(e)}:Wa;var Ga=function(e,t,n){var r=-1,i=Va,a=e.length,s=!0,o=[],c=o;if(n)s=!1,i=Ba;else if(a>=200){var p=t?null:Ua(e);if(p)return aa(p);s=!1,i=na,c=new ea}else c=t?[]:o;e:for(;++r<a;){var l=e[r],u=t?t(l):l;if(l=n||0!==l?l:0,s&&u==u){for(var d=c.length;d--;)if(c[d]===u)continue e;t&&c.push(u),o.push(l)}else i(c,u,n)||(c!==o&&c.push(u),o.push(l))}return o};var Ha=function(e){return e&&e.length?Ga(e):[]},$a=["top","right","bottom","left"];function za(e){return void 0===e&&(e={}),Object.keys(e).reduce((function(t,n){var r=e[n];return zi(r)?Xa(t,n,za(r)):Xa(t,n,e[n]),t}),{})}function Xa(e,t,n){null!=n&&""!==n&&"open"!==t&&(Xi(n)||(t.startsWith("--")?e[t]=n:e[$i(t)]=n))}function qa(e,t){if(t){var n="".concat(e);if(/^\d*.?\d+$/.test(n))return"".concat(n,"px")}return e}function Ya(e,t,n,r){var i=$i("".concat(n));4===Object.keys(t).length?1===Ha(La(t,(function(e){return e}))).length?Xa(e,i,qa(t.top,r)):t.top===t.bottom&&t.left===t.right?Xa(e,i,"".concat(qa(t.top,r)," ").concat(qa(t.right,r))):t.left===t.right?Xa(e,i,"".concat(qa(t.top,r)," ").concat(qa(t.right,r)," ").concat(qa(t.bottom,r))):Xa(e,i,"".concat(qa(t.top,r)," ").concat(qa(t.right,r)," ").concat(qa(t.bottom,r)," ").concat(qa(t.left,r))):$a.forEach((function(i){void 0!==t[i]&&Xa(e,$i("".concat(n,"_").concat(i)),qa(t[i],r))}))}function Ka(e,t,n){void 0===e&&(e={});var r=n||{},i=r.looseError,a=void 0!==i&&i,s=r.rpxCalcRoot;return Object.keys(e).reduce((function(n,r){var i=e[r];if(Bu[r])Xa(n,r,i);else if(null!=i)try{Xa(n,r,t(i,s))}catch(e){if(!a)throw e;console.warn("translate style error, key:value",r,i)}return n}),{})}function Ja(e,t){if(void 0===t&&(t=void 0),"string"==typeof e||"number"==typeof e)return"".concat(e).split(" ").map((function(e){var n=e.match(/^(-?\d*\.?\d+)(r?px)?$/);if(null==n?void 0:n[1]){var r=+n[1];return Number.isNaN(r/1)?r.toString():0===r?"0":"rpx"===(null==n?void 0:n[2])?t?"calc(".concat(r,"px / ").concat(t,")"):e:"".concat((r/28).toFixed(4),"rem")}return e})).join(" ");throw new Error("cssLen type error ".concat(e))}function Qa(e,t){return void 0===t&&(t=void 0),"".concat(e).split(" ").map((function(e){var n=e.match(/^(-?\d*\.?\d+)(px)?$/);if(null==n?void 0:n[1]){var r=+n[1];return Number.isNaN(r/1)?r.toString():0===r?"0":t?"calc(".concat(r,"px / ").concat(t,")"):"".concat(r,"rpx")}return e})).join(" ")}function Za(e,t){return void 0===t&&(t=void 0),"".concat(e).split(" ").map((function(e){var n=e.match(/^(-?\d*\.?\d+)(rpx)?$/);if(null==n?void 0:n[1]){var r=+n[1];return Number.isNaN(r/1)?r.toString():0===r?"0":"rpx"===(null==n?void 0:n[2])?t?"calc(".concat(r,"px / ").concat(t,")"):e:"".concat(+n[1],"px")}return e})).join(" ")}function es(e,t){void 0===e&&(e={}),void 0===t&&(t={toRem:!0,ignoreSelf:!1,addPXUnit:!1,toRpx:!1,rpxCalcRoot:void 0});var n=e.size,i=e.text,a=e.border,s=e.background,o=e.margin,c=e.padding,p=e.zIndex,l=e.position,u=e.display,d=e.flexConfig,h=e.custom,f=e.self,m=e.boxShadow,v={};if(n&&(Xa(v,"width",qa(n.width,!!t.addPXUnit)),Xa(v,"height",qa(n.height,!!t.addPXUnit))),o&&Ya(v,o,"margin",!!t.addPXUnit),c&&Ya(v,c,"padding",!!t.addPXUnit),u&&Xa(v,"display",u),"flex"===u&&d&&(d.justifyContent&&Xa(v,"justifyContent",d.justifyContent),d.alignItems&&Xa(v,"alignItems",d.alignItems),d.flexWrap&&d.flexDirection?Xa(v,"flexFlow","".concat(d.flexDirection," ").concat(d.flexWrap)):(d.flexWrap&&Xa(v,"flexWrap",d.flexWrap),d.flexDirection&&Xa(v,"flexDirection",d.flexDirection))),"number"!=typeof p&&0!=="".concat(p).search(/^\d+$/)||(v.zIndex=p),i&&(Xa(v,"color",i.color),Xa(v,"fontSize",qa(i.fontSize,!!t.addPXUnit)),Xa(v,"lineHeight",i.lineHeight),Xa(v,"textAlign",i.textAlign),Xa(v,"fontWeight",i.weight),void 0!==i.opacity&&Xa(v,"opacity",i.opacity/100)),a){var y=a.type,g=a.color,b=a.width,x=a.radius,w=a.radiusInfo;if("string"==typeof b)y&&"none"!==y?Xa(v,"border","".concat(qa(b,!!t.addPXUnit)," ").concat(y," ").concat(g||"")):(Xa(v,"borderWidth",qa(b,!!t.addPXUnit)),g&&Xa(v,"borderColor",g));else if("[object Object]"===Object.prototype.toString.call(b)&&0!==Object.keys(b).length){var C=b.top,k=void 0===C?"0":C,S=b.right,_=void 0===S?"0":S,T=b.bottom,P=void 0===T?"0":T,E=b.left,I=void 0===E?"0":E;Xa(v,"borderWidth","".concat(qa(k,!!t.addPXUnit)||"0"," ").concat(qa(_,!!t.addPXUnit)||"0"," ").concat(qa(P,!!t.addPXUnit)||"0"," ").concat(qa(I,!!t.addPXUnit)||"0")),y&&Xa(v,"borderStyle",y),g&&Xa(v,"borderColor",g)}if(void 0!==x&&Xa(v,"borderRadius",qa(x,!!t.addPXUnit)),w&&!Xi(w)){var D=w.topLeft,A=w.topRight,N=w.bottomRight,O=w.bottomLeft;4===Object.keys(w).length?(Object.values(w).some((function(e){return!!e}))&&(D||(D="0"),A||(A="0"),N||(N="0"),O||(O="0")),1===Ha(La(w,(function(e){return e}))).length?Xa(v,"borderRadius",qa(D,!!t.addPXUnit)):Xa(v,"borderRadius",D===N&&A===O?"".concat(qa(D,!!t.addPXUnit)," ").concat(qa(A,!!t.addPXUnit)):A===O?"".concat(qa(D,!!t.addPXUnit)," ").concat(qa(A,!!t.addPXUnit)," ").concat(qa(N,!!t.addPXUnit)):"".concat(qa(D,!!t.addPXUnit)," ").concat(qa(A,!!t.addPXUnit)," ").concat(qa(N,!!t.addPXUnit)," ").concat(qa(O,!!t.addPXUnit)))):(Xa(v,"borderTopLeftRadius",qa(D,!!t.addPXUnit)),Xa(v,"borderTopRightRadius",qa(A,!!t.addPXUnit)),Xa(v,"borderBottomRightRadius",qa(N,!!t.addPXUnit)),Xa(v,"borderBottomLeftRadius",qa(O,!!t.addPXUnit)))}"none"===y&&Xa(v,"border","none")}if(s){var L=s.bgType,R=(g=s.color,s.image),M=s.size,F=s.repeat,j=s.position,V=s.positionObj;"color"===L?Xa(v,"background",g):"image"===L&&(null!=R&&(R.search(/[()]/)>=0?v.background=R:v.background="url(".concat(R,")")),F&&(v.background+=" ".concat(F)),M&&Xa(v,"backgroundSize",qa(M,!!t.addPXUnit)),Xa(v,"backgroundPosition",j),V&&!Xi(V)&&(v.background+=" ".concat(qa(V.left,!!t.addPXUnit)," ").concat(qa(V.top,!!t.addPXUnit)))),void 0===L&&(Xa(v,"backgroundColor",g),null!=R&&(v.backgroundImage="url(".concat(R,")"),Xa(v,"backgroundRepeat",F),Xa(v,"backgroundSize",qa(M,!!t.addPXUnit)),Xa(v,"backgroundPosition",j)))}if(l&&(Xa(v,"position",l.position),void 0!==l.left&&Xa(v,"left",qa(l.left,!!t.addPXUnit)),void 0!==l.right&&Xa(v,"right",qa(l.right,!!t.addPXUnit)),void 0!==l.top&&Xa(v,"top",qa(l.top,!!t.addPXUnit)),void 0!==l.bottom&&Xa(v,"bottom",qa(l.bottom,!!t.addPXUnit))),m){var B=m;"[object Object]"===Object.prototype.toString.call(m)&&(B=[m]);var W="";Array.isArray(B)&&B.forEach((function(e,n){var r="",i=e.keyWord,a=e.offsetX,s=e.offsetY,o=e.blurRadius,c=e.spreadRadius,p=e.color,l=e.global,u=e.inset;("none"===i?r="none":l?r=l:(a||s)&&(u&&(r="inset "),r+=qa(a||0,!!t.addPXUnit),r+=" ".concat(qa(s||0,!!t.addPXUnit)),(o||c)&&(r+=" ".concat(qa(o||0,!!t.addPXUnit))),c&&(r+=" ".concat(qa(c,!!t.addPXUnit))),p&&(r+=" ".concat(p))),r)&&(W+=(W?" , ":"")+r)})),W&&Xa(v,"boxShadow",W)}if(h&&h.length>0&&h.map((function(e){Xa(v,e.key,e.value)})),f&&!t.ignoreSelf){var U=f,G=U.cssFloat,H=r(U,["cssFloat"]);Object.assign(v,H,{float:G})}for(var $ in v){var z=v[$];Array.isArray(z)&&(v[$]=z[z.length-1])}var X=t.defaultUnit,q={rpxCalcRoot:t.rpxCalcRoot};return X||(t.toRpx&&(X="rpx"),t.toRem&&(X="rem")),X?ts(v,X,q):v}function ts(e,t,n){return void 0===e&&(e={}),Ka(e,{px:Za,rem:Ja,rpx:Qa}[t]||function(e,t){return e},n)}function ns(t){var n,r,i={};if(t.data&&!0!==t.data._visible&&(i.waIf={value:t.data._visible}),null===(n=t.dataBinds)||void 0===n?void 0:n.length){var a=t.dataBinds.find((function(e){return"_visible"===e.propertyPath}));if(a){var s=(t.dataTypes||[]).find((function(e){return e.propertyPath===a.propertyPath}));s&&"bind"===s.type&&(i.waIf={type:a.type||e.PropBindType.state,value:a.bindDataPath,extra:a.extra})}var o=t.dataBinds.find((function(e){return"_waFor"===e.propertyPath}));o&&(i.waFor={type:o.type||e.PropBindType.state,value:o.bindDataPath,extra:o.extra});var c=t.dataBinds.find((function(e){return"_display"===e.propertyPath}));c&&(i.waDisplay={type:c.type||e.PropBindType.state,value:c.bindDataPath,extra:c.extra})}return i.waFor&&(null===(r=t.data)||void 0===r?void 0:r._waForKey)&&(i.waForKey={value:t.data._waForKey}),i}function rs(t){var n,r,i={},a=["_visible","_waFor","_waForKey","_display"];for(var s in t.data)a.indexOf(s)>-1||(i[s]={value:t.data[s]});return null===(r=null===(n=t.dataBinds)||void 0===n?void 0:n.forEach)||void 0===r||r.call(n,(function(n){if(!(a.indexOf(n.propertyPath)>-1)){var r=(t.dataTypes||[]).find((function(e){return e.propertyPath===n.propertyPath}));r&&"bind"===r.type&&(i[n.propertyPath]={type:n.type||e.PropBindType.state,value:n.bindDataPath,extra:n.extra})}})),i}function is(e){return void 0===e&&(e=[]),e.map((function(e){var t=e.sourceKey.split(":");return{key:e.key,trigger:e.trigger,type:e.type,handler:{moduleName:t[0],name:t[1]},data:rs(e),isCapturePhase:e.isCapturePhase,noPropagation:e.noPropagation}}))}function as(t){return void 0===t&&(t=[]),t.map((function(t){var n={key:t.key||"",sourceKey:"".concat(t.handler.moduleName,":").concat(t.handler.name),trigger:t.trigger,type:t.type,data:{},dataBinds:[],handler:t.handler,isCapturePhase:t.isCapturePhase,noPropagation:t.noPropagation};return function(t,n,r){void 0===t&&(t={});var i=Mn(n);for(var a in i.dataTypes=n.dataTypes||[],t){var s=t[a];if("static"===s.type||void 0===s.type)i.data=n.data||{},i.data[a]=s.value,i.dataTypes.push({propertyPath:a,type:"static"});else if("slot"===s.type)i.dataTypes.push({propertyPath:a,type:"slot"});else{if(i.dataBinds=n.dataBinds||[],s.value.startsWith("!")&&s.value!==e.PropBindType.expression){var o=/^!global./,c="";c=o.test(s.value)?s.value.replace(o,"!app.state."):s.value.replace(/^!\w+./,"!$page."),i.dataBinds.push({propertyPath:a,bindDataPath:c,type:e.PropBindType.expression,extra:s.extra})}else i.dataBinds.push({propertyPath:a,bindDataPath:s.value,type:s.type,extra:s.extra});i.dataTypes.push({propertyPath:a,type:"bind"})}}r&&Object.keys(r).forEach((function(e){var t=i.dataTypes.find((function(t){return t.propertyPath===e}));t?t.type="slot":r[e].xComponent||i.dataTypes.push({propertyPath:e,type:"slot"})}));return i}(t.data,n,null)}))}function ss(e){if(null!=e&&!(Array.isArray(e)&&0===e.length||zi(e)&&Xi(e)))return e}var os=["Input","FormItem","Icon","FormCell","Button","Tabs","TabPane","Selector","Divider","Textarea","Checkbox","Radio","Switch","Badge","Number","Form","Agree","ButtonGroup","CheckboxGroup","MultiSelector","Uploader","Preview","Date","Time","Region","Tips","Slider","CheckboxLabel","VerficationCode","IndexList","Poplayer","TestProps","Tabbar","Cascader","RadioGroup","RadioLabel","Footer","PhoneCode","PictureCode","Card","QRCode","Search","10086","Cell","Timeline","TimeRange","CircleContent","UploadBase"].concat(["wf-index-navigator","wf-index-weather","wf-service-list","wy-apply-receive","wf-msg","wf-lazy-image","wf-square-bone"],["eventUpload","projectCard","projectDetail","eventStep","dutyTaskCard","modalInput","DepartmentDoneStatus","projectBreadcrumb","projectEmpty","telphone","eventDetail","wideDivider","testminipro","eventUploadViewer","processLine","eventUploadVideoPlayer","error","delayTaskDoneStatus"],["apxt-popup-radio","spxt-submit-button","spxt-detail-form-info","spxt-handle-schedul","statistics-count","spxt-popup-select","spxt-submit-materials-info","spxt-detail-application-info","spxt-detail-result-receive","spxt-verification-processing","spxt-detail-material-info","spxt-ems-adrress","material-one","spxt-schedule","spxt-detail-meterial-submit","spxt-nomore-data","spxt-detail-base-info","spxt-large-title","matter-item","spxt-apply-item","material-switch-group-one","material-switch-one","material-group-one","drop-content-switch","material-drop-content","spxt-detail-material-group-info","spxt-module-title","spxt-tabs-scroll","material-upload-group","material-upload","material-upload-one","spxt-tag-status"],["ywtb-select-item","handling-situation","test-qiao","success-tag","table-list","ywtb-search-content","popup-animate","ywtb-title-cell","ywtb-tab-bar","ywtb-legal-person-info","ywtb-agree","ywtb-receive-result","ywtb-person-info","ywtb-create-address","ywtb-search-result","nav-to","ywtb-popup-select","ywtb-material-submission","ywtb-search-container","region-modal","ywtb-footer-button","home-filter","ywtb_reservation_list","ywtb-select-list","ywtb-search-history","drop-content","ywtb-step-item","ywtb-steps","ywtb-commitment","ywtb_card","ywtb-cell","ywtb-line-content","ywtb-business-item","ywtb-confirm"],["city-code-scan-container","citycode-add-relative","city-code-scan-callback","chongqing-code-bottom-label"]),cs=["Input","Textarea","Number","Selector","MultiSelector","Time","Date","Region","CheckboxGroup","Checkbox","RadioGroup","Radio","Switch","Slider","Uploader"],ps=["Audio","Button","Camera","Canvas","Checkbox","CheckboxeGroup","Container","DatePicker","Form","Icon","Iframe-web-view","Image","Input","Label","LivePlayer","LivePusher","Map","MultiSelector","Navigator","PickerView","PickerViewColumn","Progress","Radio","RadioGroup","RegionPicker","RichText","ScrollView","Selector","Slider","Slot","Swiper","SwiperItem","Switch","Text","TextArea","TimePicker","Uploader","Video","Wx-ad","Wx-cover-image","Wx-cover-view","Wx-movable-area","Wx-movable-view","Wx-navigation-bar","Wx-official-accout","Wx-open-data","Wx-page-mate"],ls=["modeltable","modelcreate","modelupdate","modeldetail"],us=/^cloudbase_bussiness.*$/i;var ds=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},hs=Math.max;var fs=function(e,t,n){return t=hs(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=hs(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(s),ds(e,this,o)}};var ms=function(e){return function(){return e}},vs=$e?function(e,t){return $e(e,"toString",{configurable:!0,enumerable:!1,value:ms(t),writable:!0})}:Ta,ys=Date.now;var gs=function(e){var t=0,n=0;return function(){var r=ys(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},bs=gs(vs);var xs=function(e,t){return bs(fs(e,t,Ta),e+"")};var ws=function(e,t,n){if(!E(n))return!1;var r=typeof t;return!!("number"==r?Ct(n)&&st(t,n.length):"string"==r&&t in n)&&ne(n[t],e)};var Cs=function(e){return xs((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&ws(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,a)}return t}))},ks=Cs((function(e,t,n,r){Ye(t,Et(t),e,r)})),Ss=Function.prototype,_s=Object.prototype,Ts=Ss.toString,Ps=_s.hasOwnProperty,Es=Ts.call(Object);var Is=function(e){if(!k(e)||"[object Object]"!=C(e))return!1;var t=Vt(e);if(null===t)return!0;var n=Ps.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ts.call(n)==Es};var Ds=function(e){if(!k(e))return!1;var t=C(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Is(e)},As=xs((function(e,t){try{return ds(e,void 0,t)}catch(e){return Ds(e)?e:new Error(e)}}));var Ns=function(e,t){return Ee(t,(function(t){return e[t]}))},Os=Object.prototype,Ls=Os.hasOwnProperty;var Rs=function(e,t,n,r){return void 0===e||ne(e,Os[n])&&!Ls.call(r,n)?t:e},Ms={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var Fs=function(e){return"\\"+Ms[e]},js=/<%=([\s\S]+?)%>/g;var Vs=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),Bs=/[&<>"']/g,Ws=RegExp(Bs.source);var Us={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:js,variable:"",imports:{_:{escape:function(e){return(e=Ne(e))&&Ws.test(e)?e.replace(Bs,Vs):e}}}},Gs=/\b__p \+= '';/g,Hs=/\b(__p \+=) '' \+/g,$s=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zs=/[()=,{}\[\]\/\s]/,Xs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qs=/($^)/,Ys=/['\n\r\u2028\u2029\\]/g,Ks=Object.prototype.hasOwnProperty;var Js,Qs=function(e,t,n){var r=Us.imports._.templateSettings||Us;n&&ws(e,t,n)&&(t=void 0),e=Ne(e),t=ks({},t,r,Rs);var i,a,s=ks({},t.imports,r.imports,Rs),o=kt(s),c=Ns(s,o),p=0,l=t.interpolate||qs,u="__p += '",d=RegExp((t.escape||qs).source+"|"+l.source+"|"+(l===js?Xs:qs).source+"|"+(t.evaluate||qs).source+"|$","g"),h=Ks.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(d,(function(t,n,r,s,o,c){return r||(r=s),u+=e.slice(p,c).replace(Ys,Fs),n&&(i=!0,u+="' +\n__e("+n+") +\n'"),o&&(a=!0,u+="';\n"+o+";\n__p += '"),r&&(u+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),p=c+t.length,t})),u+="';\n";var f=Ks.call(t,"variable")&&t.variable;if(f){if(zs.test(f))throw new Error("Invalid `variable` option passed into `_.template`")}else u="with (obj) {\n"+u+"\n}\n";u=(a?u.replace(Gs,""):u).replace(Hs,"$1").replace($s,"$1;"),u="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var m=As((function(){return Function(o,h+"return "+u).apply(void 0,c)}));if(m.source=u,Ds(m))throw m;return m};e.EExternalResourceType=void 0,(Js=e.EExternalResourceType||(e.EExternalResourceType={})).JSUrl="jsUrl",Js.CSSUrl="cssUrl",Js.CSSText="cssText",Js.JSText="jsText",Js.Bundle="bundle";var Zs,eo=Object.freeze({__proto__:null}),to=((Zs={appLifeCycle:"/**\n * 可通过 app 获取或修改全局应用的 变量 状态 等信息\n * 具体可以console.info 在编辑器Console面板查看更多信息\n * 如果需要 async-await,请在方法前 async\n **/\nexport default {\n onAppLaunch(launchOpts) {\n //console.log('---------\x3e LifeCycle onAppLaunch', launchOpts)\n },\n onAppShow(appShowOpts) {\n //console.log('---------\x3e LifeCycle onAppShow', appShowOpts)\n },\n onAppHide() {\n //console.log('---------\x3e LifeCycle onAppHide')\n },\n onAppError(options) {\n //console.log('---------\x3e LifeCycle onAppError', options)\n },\n onAppPageNotFound(options) {\n //console.log('---------\x3e LifeCycle onAppPageNotFound', options)\n },\n onAppUnhandledRejection(options) {\n //console.log('---------\x3e LifeCycle onAppUnhandledRejection', options)\n }\n}",pageLifeCycle:"/*\n* 可通过 $page 获取或修改当前页面的 变量 状态 handler lifecycle 等信息\n* 可通过 app 获取或修改全局应用的 变量 状态 等信息\n* 具体可以 console.info 在编辑器Console面板查看更多信息\n* 如果需要 async-await,请在方法前 async\n*/\n\nexport default {\n onPageLoad(query) {\n //console.log('---------\x3e LifeCycle onPageLoad', query)\n },\n onPageShow() {\n //console.log('---------\x3e LifeCycle onPageShow')\n },\n onPageReady() {\n //console.log('---------\x3e LifeCycle onPageReady')\n },\n onPageHide() {\n //console.log('---------\x3e LifeCycle onPageHide')\n },\n onPageUnload() {\n //console.log('---------\x3e LifeCycle onPageUnload')\n },\n}",compLifeCycle:"export default {\n onAttached() {\n //console.log('---------\x3e LifeCycle onAttached')\n },\n onDetached() {\n //console.log('---------\x3e LifeCycle onDetached')\n },\n}"})[e.ECodeType.STATE]="/*\n* <% if (type === 'app') { %>可通过 app.state.xxx 访问这里定义的状态<% } %><% if (type === 'page') { %>可通过 $page.state.xxx 访问这里定义的状态<% } %><% if (type === 'component') { %>可通过 $comp.state.xxx 访问这里定义的状态<% } %>\n* <% if (type === 'page') { %>注意:页面级别的状态仅在所属的页面有效<% } %>\n* 修改状态时,直接赋值即可。如:<% if (type === 'app') { %>$app.state.xxx = 'xxx'<% } %><% if (type === 'page') { %>$page.state.xxx = 'xxx'<% } %><% if (type === 'component') { %>$comp.state.xxx = 'xxx'<% } %>\n* 请注意:避免在页面处于后台状态时state,页面在后台时对全局state的修改会丢失!\n*/\n\n<% if (type !== 'component') { %>\nexport default {\n name: 'LowCode'\n}\n\n/* 在这里定义页面变量。\n* 页面变量区别于 state 的是:页面变量不会作响应处理,不可被绑定\n* <% if (type === 'page') { %>在 handler 中使用的例子:import { data } from '../state'<% } %>\n* <% if (type === 'app') { %>在 common 中使用的例子:import { data } from '../state'<% } %>\n*/\nexport const data = {\n\n}\n<% } %>\n<% if (type === 'component') { %>\nexport default function() {\n return {\n name: 'LowCode'\n }\n}\n<% } %>\n",Zs[e.ECodeType.COMPUTEDN]="\n/*\n* <% if (type === 'app') { %>可通过 app.computed.xxx 访问这里定义的计算状态<% } %><% if (type === 'page') { %>可通过 $page.computed.xxx 访问这里定义的计算状态<% } %><% if (type === 'component') { %>可通过 $comp.computed.xxx 访问这里定义的计算状态<% } %>\n* <% if (type === 'page') { %>注意:页面级别的计算状态仅在所属的页面有效<% } %>\n*/\n\nexport default {\n name() { return 'LowCode' }\n}",Zs[e.ECodeType.HANDLER_FN]="/**\n * <% if (type === 'component') { %>可通过 $comp.handler.xxx 访问这里定义的方法<% } %>\n * <% if (type === 'page') { %>可通过 $page 获取或修改当前页面的 变量 状态 handler lifecycle 等信息<% } %>\n * <% if (type === 'page') { %>可通过 app 获取或修改全局应用的 变量 状态 等信息<% } %>\n * <% if (type === 'page') { %>具体可以console.info 在编辑器Console面板查看更多信息<% } %>\n * <% if (type === 'page') { %>注意:该方法仅在所属的页面有效<% } %>\n * 如果需要 async-await,请修改成 export default async function() {}\n * 帮助文档 https://cloud.tencent.com/document/product/1301/57912\n **/\n\n/**\n * @param {Object} event - 事件对象\n * @param {string} event.type - 事件名\n * @param {any} event.detail - 事件携带自定义数据\n *\n * @param {Object} data\n * @param {any} data.target - 获取事件传参的数据\n **/\nexport default function({event, data}) {\n\n}",Zs[e.ECodeType.NORMAL_MODULE]="\n/*\n* 函数里面访问:通过 app.common.[name].xxx 访问这里定义的方法或值\n* 函数外面访问:通过 import(如在页面的 handler 引用的例子:import { xxx } from '../../common/[name]')\n*/\n\nexport function sayHi() {\n console.log('Hi LowCode')\n}\n",Zs[e.ECodeType.STYLE]="\n <% if (type !== 'component') { %>\n /**\n * 可以使用theme中定义的 mixin 和 定义变量\n **/\n <% } else {%>\n /**\n * 使用less书写样式\n * */\n <% } %>\n<%= type === 'component' ? '&':'' %>.<%= type === 'component' ? type: id%>-class-name {\n <% if (type === 'app') { %>// 使用样式变量<% } %>\n // 使用theme中的变量\n // color: <% if (type === 'app' || type === 'page') { %>@example-primary-color<% } %><% if (type === 'component') { %>blue<% } %>;\n\n // <%= version[0] === '4' ? '默认 rpx 会转换成 动态cals实现,px/PX/Px 均代表传统一样上的px':'默认 px 会转换成 rem,含大写字母 PX 和 Px 则不会转换' %>\n // margin-top: 20px;\n // 使用theme中的混合(mixins)\n // <%= type === 'component' ? '':'.mixins();' %>\n // 可写嵌套样式\n .<%= type === 'component' ? type: id%>-nest-class {\n // color: #fff;\n // 使用theme中的混合(mixins)\n // <%= type === 'component' ? '':'.mixins(green);' %>\n }\n}\n",Zs[e.ECodeType.THEME]="@example-primary-color: blue;",Zs[e.ECodeType.MPCONFIG]="export default {\n appJson: {\n // 小程序接口权限相关设置,可选\n /* permission: {\n 'scope.userLocation': {\n desc: '你的位置信息将用于小程序位置接口的效果展示',\n },\n }, */\n },\n}\n ",Zs[e.ECodeType.RENDERER]="/**\n * 可通过 $page 获取或修改当前页面的 变量 状态 handler lifecycle 等信息\n * 可通过 app 获取或修改全局应用的 变量 状态 等信息\n * 具体可以console.info 在编辑器Console面板查看更多信息\n * 注意:该方法仅在所属的页面有效\n**/\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\n\nexport default function(props) {\n return <div>自定义渲染</div>\n}",Zs);function no(t,n,r){var i=t.id,a=t.version,s={type:r,id:i,version:void 0===a?"":a};if(n===e.ECodeType.LIFECYCLE){var o="";switch(r){case"component":o=to.compLifeCycle;break;case"page":o=to.pageLifeCycle;break;case"app":o=to.appLifeCycle}return Qs(o)(s)}o=to[n]||"epxort default {}";return Qs(o)(s)}e.DEPENDENCIES_TYPE=void 0,(e.DEPENDENCIES_TYPE||(e.DEPENDENCIES_TYPE={})).COMPONENTS="components";var ro="weda",io="".concat(ro,":").concat(e.DEPENDENCIES_TYPE.COMPONENTS),ao="gsd-h5-react",so="CLOUDBASE_STANDARD";function oo(e,t){for(var n=e.split("."),r=t.split("."),i=0;i<3;i++){var a=Number(n[i]),s=Number(r[i]);if(a>s)return 1;if(s>a)return-1;if(!isNaN(a)&&isNaN(s))return 1;if(isNaN(a)&&!isNaN(s))return-1}return 0}function co(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return 10*Math.round(r/10)/n}function po(e,t,n){var r=e.find((function(e){return e.name===ao}));if(r){var i=r.version;return i.includes(".")?oo(t,i)<=0:Number(i)>=n}return!0}function lo(t){var n,r,i,a=t.ctx,s=t.key,o=t.dynamicValue,c=t.scope,p=void 0===c?"page":c,l=t.streamlineDefaultValue,u=o.value,d=a.dependenciesMap,h=void 0===d?{}:d;if(o.type&&"static"!==o.type)switch(s=":".concat(s),o.type){case e.PropBindType.state:case e.PropBindType.computed:case e.PropBindType.dataVar:case e.PropBindType.stateData:case e.PropBindType.params:var f=((n={})[e.PropBindType.prop]="props",n[e.PropBindType.state]="state",n[e.PropBindType.computed]="computed",n[e.PropBindType.dataVar]="dataVar",n[e.PropBindType.stateData]="dataset.state",n[e.PropBindType.params]="dataset.params",n),m=o.value,v=/^(.*?)\./,y=m,g=m.match(v);g&&(y=g[1]);var b="component"===p?"$comp":"$page";"global"===y?b="$app":(/^comp-\w+/.test(y)||/^\$comp_\w+/.test(y))&&(b="$comp"),b+=".".concat(f[o.type],"."),u=m.replace(v,b);break;case e.PropBindType.prop:u=o.value.startsWith("!")?o.value.replace("!","!$comp.props.data."):"$comp.props.data.".concat(o.value);break;case e.PropBindType.forItem:u="$for.".concat(o.value);break;case e.PropBindType.slot:u="$slot";case e.PropBindType.expression:}else if(l){var x=a.component||{},w=x.module,C=void 0===w?"":w,k=x.component,S=void 0===k?"":k,_="".concat(C,":").concat(S),T=null===(i=null===(r=null==h?void 0:h[_])||void 0===r?void 0:r.dataForm)||void 0===i?void 0:i[s];((null==T?void 0:T.default)===u||T&&void 0===T.default&&""===u)&&(u=void 0)}return{key:s,value:u,extra:o.extra}}var uo=/^:(.*)$/;function ho(t,n,r,i){var a,s=n.match(uo);if(s){var o=s[1],c=e.PropBindType.expression;try{var p=new Hi(r,{pageId:null===(a=t.page)||void 0===a?void 0:a.id}).parse();c=p.type,null!=(null==p?void 0:p.value)&&(r=p.value)}catch(t){if("boolean"==typeof r)c=e.PropBindType.static;else{c=e.PropBindType.expression;try{r=r.replace(/\$app\./g,"app.").replace(/\$for./g,"forItems.")}catch(e){}}}return{key:o,value:{type:c,value:r,extra:i}}}return{key:n,value:void 0===r?void 0:{type:void 0,value:r,extra:i}}}function fo(e){var t=e.ctx,n=e.map,r=void 0===n?{}:n,i=e.scope,a=void 0===i?"page":i,s=e.streamlineDefaultValue,o={},c={};return Object.keys(r).sort((function(e,t){var n=e.split("."),r=t.split("."),i=n[0].startsWith(":");return i!==r[0].startsWith(":")?i?-1:1:n>r?1:-1})).forEach((function(e){var n=lo({ctx:t,key:e,dynamicValue:r[e],scope:a,streamlineDefaultValue:s}),i=n.key,p=n.value,l=n.extra,u=i.match(/^:(.*)$/),d=i;u&&(d=u[1],Wn(o,d));var h=d.split(".");if(null==Me(o,i)){if(Array.isArray(p)&&(null==p?void 0:p.some((function(e){return!!(null==e?void 0:e.selectableBlock)})))){var f=Mn(p);p=null==f?void 0:f.map((function(e){var n,r,i,a=null===(n=null==e?void 0:e.selectableBlock)||void 0===n?void 0:n["x-props"],s=null===(i=null===(r=null==e?void 0:e.selectableBlock)||void 0===r?void 0:r["x-component"])||void 0===i?void 0:i.toLowerCase(),o=null==s?void 0:s.split(":")[0],c=null==s?void 0:s.split(":")[1];return a&&us.test(o)&&ls.includes(c)&&(e.selectableBlock=Fo(t,e.selectableBlock)),e}))}u&&h.length>=2?$n(o,function(e){var t=e.split(".");return t[t.length-1]=":".concat(t[t.length-1]),t.join(".")}(d),Mn(p)):o[i]=Mn(p)}c[d]=l})),{data:o,extra:c}}function mo(e,t,n){return void 0===n&&(n=""),Object.keys(t).forEach((function(r){var i=t[r];if(o(i)){if(null==i?void 0:i.some((function(e){return!!(null==e?void 0:e.selectableBlock)})))return;i.forEach((function(t,i){E(t)&&(t=mo(e,t,"".concat(""===n?"":"".concat(n,".")).concat(r,".").concat(i)))}))}else if(E(i))i=mo(e,i,"".concat(""===n?"":"".concat(n,".")).concat(r));else{var a=r.match(uo);a&&(e[":".concat(""===n?"":"".concat(n,".")).concat(a[1])]=t[r],t!==e&&Wn(t,r))}})),t}function vo(e,t,n){var r,i,a={},s=Mn(t);for(var o in(t=mo(s,s,""))||{}){var c=null==t?void 0:t[o],p=o.match(uo),l=ho(e,o,c,null==n?void 0:n[p?p[1]:o]),u=l.key,d=l.value;Array.isArray(null==d?void 0:d.value)&&(null===(r=null==d?void 0:d.value)||void 0===r?void 0:r.some((function(e){return!!(null==e?void 0:e.selectableBlock)})))&&(null===(i=null==d?void 0:d.value)||void 0===i||i.forEach((function(t){var n,r,i,a,s=null===(r=null===(n=null==t?void 0:t.selectableBlock)||void 0===n?void 0:n.module)||void 0===r?void 0:r.toLowerCase(),o=null===(a=null===(i=null==t?void 0:t.selectableBlock)||void 0===i?void 0:i.component)||void 0===a?void 0:a.toLowerCase();return t.selectableBlock&&us.test(s)&&ls.includes(o)&&(t.selectableBlock=jo(e,t.selectableBlock)),t}))),void 0!==d&&(a[u]=d)}return a}function yo(e,t,n){return void 0===n&&(n={}),fo({ctx:e,scope:t,map:n,streamlineDefaultValue:e.streamlineDefaultValue})}function go(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=["style","commonStyle","class"].reduce((function(e,t){return e[t]=!0,e[":".concat(t)]=!0,e}),{}),i={};for(var a in t)r[a]||(i[a]=t[a]);return vo(e,i,n)}function bo(e,t){if(!wo(t))return t;var n=JSON.parse(JSON.stringify(t));return Object.values(n.state).forEach((function(t){var n,r,i,a;"datasource"===t.varType&&((null===(n=t.initMethod)||void 0===n?void 0:n.params)&&(t.initMethod.params=null===(r=fo({ctx:e,map:t.initMethod.params}))||void 0===r?void 0:r.data),(null===(i=t.updateMethod)||void 0===i?void 0:i.params)&&(t.updateMethod.params=null===(a=fo({ctx:e,map:t.updateMethod.params}))||void 0===a?void 0:a.data))})),n}function xo(e,t){if(!wo(t))return t;var n=JSON.parse(JSON.stringify(t));return Object.values(n.state).forEach((function(t){var n,r;"datasource"===t.varType&&((null===(n=t.initMethod)||void 0===n?void 0:n.params)&&(t.initMethod.params=vo(e,t.initMethod.params)),(null===(r=t.updateMethod)||void 0===r?void 0:r.params)&&(t.updateMethod.params=vo(e,t.updateMethod.params)))})),n}function wo(e){if(!e||!e.state)return!1;var t=Object.values(e.state).every((function(e){var t,n;return"datasource"!==e.varType||!((null===(t=e.initMethod)||void 0===t?void 0:t.params)||(null===(n=e.updateMethod)||void 0===n?void 0:n.params))}));return!t}function Co(e,t,n){var r;void 0===n&&(n="page");var i={":if":t.waIf?lo({ctx:e,key:"waIf",dynamicValue:t.waIf,scope:n}).value:void 0,":for":t.waFor?"".concat(null===(r=e.component)||void 0===r?void 0:r.id," in ").concat(lo({ctx:e,key:"waFor",dynamicValue:t.waFor,scope:n}).value):void 0,key:t.waForKey?lo({ctx:e,key:"waForKey",dynamicValue:t.waForKey,scope:n}).value:void 0,":display":t.waDisplay?lo({ctx:e,key:"waDisplay",dynamicValue:t.waDisplay,scope:n}).value:void 0};for(var a in i){if(void 0!==i[a])return i}}function ko(t,n){var r=void 0!==(null==n?void 0:n[":if"])?ho(t,":if",n[":if"]).value:{value:!0},i=void 0!==(null==n?void 0:n[":display"])?ho(t,":display",n[":display"]).value:{value:!0},a=(null==n?void 0:n[":for"])?ho(t,":for",n[":for"]).value:void 0,s=(null==n?void 0:n.key)?ho(t,"key",n.key).value:void 0;if(a){var o=a.type,c=a.value;o===e.PropBindType.expression&&(a.value=c.replace(/^(.*?in\s)/,""))}var p={waIf:!0===(null==r?void 0:r.value)?void 0:r,waDisplay:!0===(null==i?void 0:i.value)?void 0:i,waFor:a,waForKey:s};for(var l in p){if(void 0!==p[l])return p}}function So(e,t){var n=fo({ctx:e,map:t.data})||{},r=n.data,i=n.extra,a=void 0===i?{}:i,s={id:t.key,eventName:t.trigger,type:t.type,handler:{name:t.handler.name,module:/^comp-\w+$/.test(t.handler.moduleName)?"$comp":t.handler.moduleName,params:r},isCapturePhase:t.isCapturePhase};return Object.keys(a).some((function(e){return void 0!==a[e]}))&&(s.extra||(s.extra={}),s.extra.handlerParamExtraData=a),s}function _o(e,t){var n,r,i,a;return{key:t.id,trigger:t.eventName,type:t.type,handler:{name:null===(n=t.handler)||void 0===n?void 0:n.name,moduleName:null===(r=t.handler)||void 0===r?void 0:r.module},data:vo(e,(null===(i=t.handler)||void 0===i?void 0:i.params)||{},(null===(a=null==t?void 0:t.extra)||void 0===a?void 0:a.handlerParamExtraData)||{}),isCapturePhase:!!t.isCapturePhase,noPropagation:!!t.noPropagation}}function To(e,t){var i=t.title,a=r(t,["title"]);return n(n({varType:"datasource"},a),{label:i})}function Po(e,t){var i=t.label,a=r(t,["label"]);return n(n({},a),{title:i})}function Eo(e,t){var r=t.type;return n(n({},t),{type:zn.CODE,codeType:r})}function Io(e,t){t.type;var i=t.codeType,a=r(t,["type","codeType"]);return n(n({},a),{type:i})}function Do(e,t,n){var r,i,a=e.dependencies,s=void 0===a?[]:a,o=e.dependenciesMap,c=void 0===o?{}:o;if(e.streamlineModuleName){t===(null===(r=s[0])||void 0===r?void 0:r.name)&&(t=void 0);for(var p=void 0,l=s.length-1;l>0;l--){var u=s[l],d=u.name;if(c["".concat(d,":").concat(n)]){p=u;break}}if(p){if((null==p?void 0:p.name)===t)return}else if((null===(i=s[0])||void 0===i?void 0:i.name)===t)return}else if(t&&!/-lcap-spinoff$/.test(t)&&!c["".concat(t,":").concat(n)]&&c["".concat(t,"-lcap-spinoff:").concat(n)])return"".concat(t,"-lcap-spinoff");return t}function Ao(e,t,r){var i,a,s,o,c,p,l,u,d,h,f,m,v,y,g,b,x;void 0===r&&(r="page");var w=null===(i=t.xComponent)||void 0===i?void 0:i.moduleName,C=(null===(a=t.xComponent)||void 0===a?void 0:a.name)||"",k=n(n({},e),{component:{id:t.id,module:w,component:null===(s=t.xComponent)||void 0===s?void 0:s.name}});k.dependencies&&!k.dependenciesMap&&(k.dependenciesMap=Vo(k.dependencies||[]));var S=yo(k,r,(null===(o=null==t?void 0:t.xProps)||void 0===o?void 0:o.data)||{})||{},_=S.data,T=void 0===_?{}:_,P=S.extra,E=void 0===P?{}:P,I=null,D=null;return(null===(c=null==t?void 0:t.xProps)||void 0===c?void 0:c.classListBind)&&(I=lo({ctx:k,key:"classListBind",dynamicValue:null===(p=null==t?void 0:t.xProps)||void 0===p?void 0:p.classListBind,scope:r})).extra&&(E.class=I.extra),(null===(l=null==t?void 0:t.xProps)||void 0===l?void 0:l.styleBind)&&(D=lo({ctx:k,key:"styleBind",dynamicValue:null===(u=null==t?void 0:t.xProps)||void 0===u?void 0:u.styleBind})).extra&&(E.style=D.extra),{id:t.id,label:ss(t.label),type:void 0,module:Do(k,w,C),component:C,attributes:ss(t.xProps?n(n({},T),{style:null===(d=t.xProps)||void 0===d?void 0:d.style,class:null===(f=null===(h=t.xProps)||void 0===h?void 0:h.classList)||void 0===f?void 0:f.join(" ")}):void 0),items:t.properties?Object.keys(t.properties).map((function(e){var i;return Ao(k,n({id:e},null===(i=t.properties)||void 0===i?void 0:i[e]),r)})):void 0,listeners:ss(null===(v=null===(m=t.xProps)||void 0===m?void 0:m.listeners)||void 0===v?void 0:v.map((function(e){return So(k,e)}))),directives:Co(k,(null===(y=t.xProps)||void 0===y?void 0:y.directives)||{},r)||{":if":!0},":class":I?I.value:void 0,":style":D?D.value:void 0,extra:{commonStyle:null===(g=t.xProps)||void 0===g?void 0:g.commonStyle,xIndex:t.xIndex,styleBindPath:null===(b=null==t?void 0:t.xProps)||void 0===b?void 0:b.styleBindPath,staticResourceAttribute:null===(x=null==t?void 0:t.xProps)||void 0===x?void 0:x.staticResourceAttribute,attributeExtraData:Xi(E)?void 0:E}}}function No(e,t){var n=t.reduce((function(t,n){var r,i,a,s,o,c,p,l,u,d=(n.extra||{}).attributeExtraData,h=void 0===d?{}:d,f=n[":style"]?ho(e,":style",n[":style"],h.style).value:void 0,m=n[":class"]?ho(e,":class",n[":class"],h.class).value:void 0,v={moduleName:n.module,name:n.component||void 0};v.name&&(v.moduleName=function(e,t,n){var r,i=e.dependencies,a=void 0===i?[]:i,s=e.dependenciesMap,o=void 0===s?{}:s,c=null===(r=a[0])||void 0===r?void 0:r.name;if(!n){for(var p=void 0,l=a.length-1;l>0;l--){var u=a[l],d=u.name;if(o["".concat(d,":").concat(t)]){p=u;break}}return p?null==p?void 0:p.name:c}return n&&!/-lcap-spinoff$/.test(n)&&!o["".concat(n,":").concat(t)]&&o["".concat(n,"-lcap-spinoff:").concat(t)]?"".concat(n,"-lcap-spinoff"):n}(e,v.name,v.moduleName)||v.moduleName);var y={data:go(e,n.attributes,h),directives:ko(e,n.directives||{}),style:null===(r=n.attributes)||void 0===r?void 0:r.style,styleBind:f?{type:f.type,value:f.value}:void 0,commonStyle:null===(i=null==n?void 0:n.extra)||void 0===i?void 0:i.commonStyle,staticResourceAttribute:null===(a=null==n?void 0:n.extra)||void 0===a?void 0:a.staticResourceAttribute,classList:null===(c=null===(o=null===(s=n.attributes)||void 0===s?void 0:s.class)||void 0===o?void 0:o.split(/\s/g))||void 0===c?void 0:c.filter((function(e){return!!e})),classListBind:n[":class"]?{value:null==m?void 0:m.value,type:null==m?void 0:m.type}:void 0,listeners:(null===(p=null==n?void 0:n.listeners)||void 0===p?void 0:p.map((function(t){return _o(e,t)})))||[]},g={xComponent:Object.values(v).find((function(e){return null!=e}))?v:void 0,xProps:Object.values(y).find((function(e){return Array.isArray(e)?!!e.length:null!=e&&!Xi(e)}))?y:void 0,xIndex:void 0!==(null===(l=n.extra)||void 0===l?void 0:l.xIndex)?null===(u=n.extra)||void 0===u?void 0:u.xIndex:void 0,label:void 0!==(null==n?void 0:n.label)?null==n?void 0:n.label:void 0,properties:n.items?No(e,n.items):void 0};return t[n.id]=g,t}),{});return n}function Oo(e,t){var r,i,a,s,o,c=n(n({},e),{page:t});c.dependencies&&!c.dependenciesMap&&(c.dependenciesMap=Vo(c.dependencies||[]));var p={id:t.id,type:"PAGE",component:"Page",attributes:ss(null===(r=yo(c,"page",t.data))||void 0===r?void 0:r.data),items:Object.keys(t.componentInstances||{}).map((function(e){return Ao(c,n({id:e},t.componentInstances[e]))})),directives:{":if":!0},resources:null===(i=null==t?void 0:t.lowCodes)||void 0===i?void 0:i.map((function(e){return Eo(0,e)})),dataset:bo(e,null==t?void 0:t.dataset),dataVariables:ss(null===(s=null===(a=null==t?void 0:t.vars)||void 0===a?void 0:a.data)||void 0===s?void 0:s.map((function(e){return To(0,e)}))),listeners:ss(null===(o=null==t?void 0:t.listeners)||void 0===o?void 0:o.map((function(e){return So(c,e)}))),extra:{commonStyle:null==t?void 0:t.commonStyle,xIndex:t.xIndex,staticResourceAttribute:null==t?void 0:t.staticResourceAttribute,hideAdminPortalMenu:null==t?void 0:t.hideAdminPortalMenu}};return t.styleBind&&(t[":style"]=lo({ctx:c,key:"styleBind",dynamicValue:t.styleBind}).value),t.classListBind&&(t[":class"]=lo({ctx:c,key:"classListBind",dynamicValue:t.classListBind})),p}function Lo(e,t){var r,i,a,s,o,c,p,l=n(n({},e),{page:t});return{id:t.id,isHome:t.id===e.homePageId,dataset:xo(e,t.dataset),vars:{data:(null===(r=t.dataVariables)||void 0===r?void 0:r.map((function(e){return Po(0,e)})))||[]},data:go(l,t.attributes,null===(i=null==t?void 0:t.extra)||void 0===i?void 0:i.attributeExtraData),componentInstances:No(l,t.items||[]),commonStyle:null===(a=null==t?void 0:t.extra)||void 0===a?void 0:a.commonStyle,staticResourceAttribute:null===(s=null==t?void 0:t.extra)||void 0===s?void 0:s.staticResourceAttribute,hideAdminPortalMenu:null===(o=null==t?void 0:t.extra)||void 0===o?void 0:o.hideAdminPortalMenu,lowCodes:null===(c=null==t?void 0:t.resources)||void 0===c?void 0:c.filter((function(e){return e.type===zn.CODE})).map((function(e){return Io(0,e)})),listeners:(null===(p=null==t?void 0:t.listeners)||void 0===p?void 0:p.map((function(e){return _o(l,e)})))||[]}}function Ro(e,t){var i,a=e.version,s=e.author,o=e.name,c=e.label,p=e.description,l=e.selectedPageId,u=e.pageInstanceList,d=e.lowCodes,h=void 0===d?[]:d,f=e.datasources,m=e.vars,v=e.dataset,y=e.extra,g=e.dependencies,b=e.miniprogramPlugins,x=e.lastDependencies,w=e.externalResources,C=e.schemaVersion,k=r(e,["version","author","name","label","description","selectedPageId","pageInstanceList","lowCodes","datasources","vars","dataset","extra","dependencies","miniprogramPlugins","lastDependencies","externalResources","schemaVersion"]),S=(t||{}).dependencies,_=void 0===S?[]:S,T=y||{},P=T.name,E=T.label,I=T.author,D=T.description,A=r(T,["name","label","author","description"]),N={app:e,dependencies:_,dependenciesMap:Vo(_)},O=null==u?void 0:u.find((function(e){return e.isHome}));return{label:c||E,name:o||P,author:s||I,version:a,schemaVersion:C,description:p||D,externalResources:w,main:O?O.id:(null===(i=null==u?void 0:u[0])||void 0===i?void 0:i.id)||l,items:null==u?void 0:u.map((function(e){return Oo(N,e)})),resources:null==h?void 0:h.map((function(e){return Eo(0,e)})),dataSources:f,dataset:bo(N,v),dataVariables:ss(null==m?void 0:m.data.map((function(e){return To(0,e)}))),dependencies:g,extra:n(n(n({},A),k),{miniprogramPlugins:b,historyType:e.historyType,npmDependencies:e.npmDependencies||{},plugins:e.plugins,maxID:e.maxID,rootPath:e.rootPath,themeVars:e.themeVars,presetColors:e.presetColors,appConfig:e.appConfig,lastDependencies:x})}}function Mo(e,t){var i,a,s=e.main||(null===(i=e.items[0])||void 0===i?void 0:i.id)||"",o=e.extra||{},c=o.historyType,p=o.npmDependencies,l=o.plugins,u=o.maxID,d=o.rootPath,h=o.themeVars,f=o.presetColors,m=o.appConfig,v=o.miniprogramPlugins,y=o.compHiddenConfig,g=o.lastDependencies,b=r(o,["historyType","npmDependencies","plugins","maxID","rootPath","themeVars","presetColors","appConfig","miniprogramPlugins","compHiddenConfig","lastDependencies"]),x={app:e,dependencies:(null==t?void 0:t.dependencies)||[],homePageId:s,dependenciesMap:Vo((null==t?void 0:t.dependencies)||[])};return{id:e.id,version:e.version,author:e.author,name:e.name,label:e.label,description:e.description,selectedPageId:s,historyType:c,pageInstanceList:(e.items||[]).map((function(e){return Lo(x,e)})),lowCodes:(e.resources||[]).filter((function(e){return e.type===zn.CODE})).map((function(e){return Io(0,e)})),datasources:e.dataSources,dataset:xo(x,e.dataset),vars:{data:(null===(a=e.dataVariables)||void 0===a?void 0:a.map((function(e){return Po(0,e)})))||[]},compHiddenConfig:y||{},npmDependencies:p||{},plugins:l||[],maxID:u,rootPath:d,themeVars:h,presetColors:f||[],appConfig:m,miniprogramPlugins:v,externalResources:e.externalResources,extra:n(n({},b),{name:e.name,author:e.author,description:e.description,lastDependencies:g}),dependencies:e.dependencies,schemaVersion:e.schemaVersion}}function Fo(e,t){var r,i,a;t.id||(t.id=t.key);var s={id:t.id,type:void 0,component:"",label:ss(t.label)},o=t["x-props"];if(e.dependencies,o){var c=o.sourceKey.split(":"),p=c[0],l=c[1],u=void 0===l?"":l,d=n(n({},e),{component:{id:t.id,module:p,component:u}});d.dependencies&&!d.dependenciesMap&&(d.dependenciesMap=Vo(d.dependencies||[]));var h=(o.dataTypes||[]).filter((function(e){return"slot"!==e.type})).map((function(e){return e.propertyPath})),f=t.properties||{},m=yo(d,"page",ss(rs(o))||{})||{},v=m.data,y=void 0===v?{}:v,g=m.extra,b=void 0===g?{}:g,x=null,w=null;(null===(r=null==o?void 0:o.styleBind)||void 0===r?void 0:r.bindDataPath)&&(null==(x=lo({ctx:d,key:"styleBind",dynamicValue:{type:o.styleBind.type,value:o.styleBind.bindDataPath,extra:o.styleBind.extra}}))?void 0:x.extra)&&(b.style=null==x?void 0:x.extra),qi(o.classNameListBind)&&(null==(w=lo({ctx:d,key:"classListBind",dynamicValue:ss({type:o.classNameListBind.type,value:o.classNameListBind.bindDataPath})}))?void 0:w.extra)&&(b.class=null==w?void 0:w.extra),s=n(n({},s),{module:Do(d,p,u),component:u,attributes:n(n({},y),{style:ss(o.style),class:null===(i=ss(o.classNameList))||void 0===i?void 0:i.join(" ")}),items:ss(Object.keys(f).filter((function(e){return!h.includes(e)})).sort((function(e,t){return f[e]["x-index"]-f[t]["x-index"]})).map((function(t){return Fo(e,n({id:t},f[t]))}))),listeners:null===(a=ss(is(o.listenerInstances)))||void 0===a?void 0:a.map((function(e){return So(d,e)})),directives:Co(d,ss(ns(o))||{})||void 0,":class":(null==w?void 0:w.value)||void 0,":style":(null==x?void 0:x.value)||void 0,extra:{commonStyle:ss(za(o.commonStyle)),xIndex:ss(t["x-index"]),styleBindPath:ss(o.styleBindPath),staticResourceAttribute:ss(o.staticResourceAttribute),attributeExtraData:Xi(b)?void 0:b}})}else{var C=Object.keys(t.properties||{}).sort((function(e,n){return t.properties[e]["x-index"]-t.properties[n]["x-index"]})).map((function(r){return Fo(e,n({id:r},t.properties[r]))}));s=n(n({},s),{items:ss(C)})}return s}function jo(e,t){var r=t.id,i=t.module,a=t.component,s=t.listeners,o=void 0===s?[]:s,c=ss(as((null==o?void 0:o.map((function(t){return n({sourceKey:"".concat(i,":").concat(a)},_o(e,t))})))||[]));return{key:r,type:"object",properties:{},"x-component":"".concat(i,":").concat(a),"x-props":{sourceKey:"".concat(i,":").concat(a),listenerInstances:c||[]}}}function Vo(e){void 0===e&&(e=[]);var t=e.reduce((function(e,t){for(var n=t.components,r=0,i=void 0===n?[]:n;r<i.length;r++){var a=i[r];e[a.sourceKey]=a}return e}),{});return t}var Bo=function(e,t,n){(void 0!==n&&!ne(e[t],n)||void 0===n&&!(t in e))&&ze(e,t,n)};var Wo=function(e){return k(e)&&Ct(e)};var Uo=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var Go=function(e){return Ye(e,Et(e))};var Ho=function(e,t,n,r,i,a,s){var c=Uo(e,n),p=Uo(t,n),l=s.get(p);if(l)Bo(e,n,l);else{var u=a?a(c,p,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=o(p),f=!h&&it(p),m=!h&&!f&&ht(p);u=p,h||f||m?o(c)?u=c:Wo(c)?u=At(c):f?(d=!1,u=Dt(p,!0)):m?(d=!1,u=bn(p,!0)):u=[]:Is(p)||nt(p)?(u=c,nt(c)?u=Go(c):E(c)&&!D(c)||(u=Sn(p))):d=!1}d&&(s.set(p,u),i(u,p,r,a,s),s.delete(p)),Bo(e,n,u)}};var $o=function e(t,n,r,i,a){t!==n&&Aa(n,(function(s,o){if(a||(a=new Ge),E(s))Ho(t,n,o,r,e,i,a);else{var c=i?i(Uo(t,o),s,o+"",t,n,a):void 0;void 0===c&&(c=s),Bo(t,o,c)}}),Et)},zo=Cs((function(e,t,n){$o(e,t,n)})),Xo=[],qo=1e4;function Yo(){return"id".concat(++qo)}function Ko(e,t){void 0===e&&(e=[]),t.properties=t.properties||{},e.map((function(e){t.properties[e]=t.properties[e]||{properties:{}}}))}function Jo(e,t){t.xProps=t.xProps||{},t.xProps.data=t.xProps.data||{},t.xProps.data=zo(e,t.xProps.data)}function Qo(e){if(!e)return[];var t=e.properties;return t?Object.entries(t).sort((function(e,t){return(e["x-index"]||0)-(t["x-index"]||0)})):[]}function Zo(e,t,n){if(void 0===n&&(n=""),t(e,n))return e;var r=e.properties;if(r)for(var i in r){var a=Zo(r[i],t,n?"".concat(n,".").concat(i):i);if(a)return a}}function ec(e){!function(e){var t=e.properties;if(!t)return;var n=1;Object.values(t).map((function(e){var t=e;void 0===t.xIndex?t.xIndex=n:n=t.xIndex+1}))}(e)}function tc(e){!function(e){var t=e.xProps;if(!t)return;t.classNameList&&(t.classList=t.classList||t.classNameList,delete t.classNameList);t.classNameListBind&&(t.classListBind=t.classListBind||t.classNameListBind,t.classListBind.value=t.classListBind.bindDataPath,delete t.classListBind.propertyPath,delete t.classListBind.bindDataPath,delete t.classNameListBind)}(e),function(e){var t=e.xProps;if(!t)return;t.styleBind&&t.styleBind.bindDataPath&&(t.styleBind={type:t.styleBind.type,value:t.styleBind.bindDataPath})}(e),function(e){var t=e.xComponent;if(t){var r=t.name,i=function(e){void 0===e&&(e="");var t=os.map((function(e){return{key:e.toLocaleLowerCase(),compName:e}})).find((function(t){return t.key===e.toLocaleLowerCase()}));return null==t?void 0:t.compName}(r),a=function(e){void 0===e&&(e="");var t=ps.map((function(e){return{key:e.toLocaleLowerCase(),compName:e}})).find((function(t){return t.key===e.toLocaleLowerCase()}));return null==t?void 0:t.compName}(r);switch(i?(t.moduleName=so,t.name=i):a?(t.moduleName=ao,t.name=a):t.moduleName=so,r){case"Wx-map":t.name="Map";break;case"Telephone":t.name="telephone"}if(t.moduleName===so)switch(t.name){case"Cell":t.name="Item",(null==(s=e.xProps)?void 0:s.data)&&(s.data.value={value:""},s.data.detail={value:!1},s.data.description={value:""},s.data.label&&(s.data.title=s.data.label,delete s.data.label));break;case"NavBar":(null==(s=e.xProps)?void 0:s.data)&&s.data.text&&(s.data.title=s.data.text,delete s.data.text);break;case"TabBar":case"Tabbar":var s;if(t.name="TabBar",(null==(s=e.xProps)?void 0:s.data)&&s.data.itemList){var o=s.data.itemList;"static"!==o.type&&o.type?s.data.tabs=s.data.itemList:s.data.tabs={value:(o.value||[]).map((function(e){return n({name:e.value},e)}))},delete s.data.itemList}}}}(e),function(e){var t=e.xProps;if(null==t?void 0:t.listeners){var n=t.listeners;(void 0===n?[]:n).forEach((function(e){var t=e.handler;"click"!==e.trigger&&"__weapps_action_trigger_click"!==e.trigger||(e.trigger="tap"),"gsd-kbone"===t.moduleName&&(t.moduleName=ao)}))}}(e),function(e){var t=e.xProps;(null==t?void 0:t.style)&&(t.commonStyle=t.commonStyle||{},t.commonStyle.self=t.commonStyle.self||{},t.commonStyle.self=zo(t.style,t.commonStyle.self),delete t.style)}(e),function(e){"Slot"===e.xComponent.name&&e.xProps.data.content&&(e.xProps.data.name={value:e.xProps.data.content.value},delete e.xProps.data.content)}(e)}function nc(e,t,r,i){var a,s,o=e.properties,c=e.xIndex,p=e.xProps,l=Me(p,"data.defaultValue");l&&($n(p,"data.value",l),delete p.data.defaultValue);var u,d,h=Me(p,"data.rules")||{value:[]};h.type&&"static"!==h.type||(h.value=(h.value||[]).filter((function(e){return e&&!Xi(e)}))),d=h.value,"[object Object]"===Object.prototype.toString.call(d)&&(void 0===(u=h.value)&&(u={}),0===Object.keys(u).length?h.value=[]:h.value=[h.value]);var f=Me(p,"data.layout")||{value:"vertical"},m=Me(p,"data.required")||{value:!1},v={value:!!(null==m?void 0:m.value)&&"该项为必填项"},y=Me(p,"data.name")||{value:"uniqueFormKey"},g=Me(p,"data.label.value")||"";o&&Object.keys(o).map((function(t){(function(e){return void 0===e&&(e=""),e.match(/^id\d+$/)}(t)&&delete o[t],"label"===t)&&(Qo(o[t]).map((function(t){var n=t[0],r=t[1];g=Me(r,"xProps.data.text.value"),sc(Mn(r),n,e)})),delete e.properties.label)}));var b=((a={})[Yo()]={xComponent:{moduleName:ao,name:"Text"},xProps:{data:{text:{value:g},decode:{value:!1},selectable:{value:!1}},listeners:[]},xIndex:0},a);try{delete p.data.layout,delete p.data.required,delete p.data.rules,delete p.data.requiredText,delete p.data.label,delete p.data.name}catch(e){}if(r&&(!r.xComponent||r.xComponent&&"FormItem"!==r.xComponent.name)){var x=Yo();r.properties[x]={xComponent:{moduleName:so,name:"FormItem"},xProps:{data:{name:y,rules:h,layout:f,required:m,requiredMsg:v,requiredFlag:!0,labelVisible:{value:!0},validateStatus:{value:"success"},validateTrigger:{value:"onChange"}}},xIndex:c,properties:{labelSlot:{properties:n({},b)},contentSlot:{properties:(s={},s[t]=e,s)}}};try{delete r.properties[t]}catch(t){console.error("删除组件多余属性失败 parseGsdKboneInput",t,e)}}else delete p.data.rules,delete p.data.defaultValue,delete p.data.layout,delete p.data.require}function rc(e){var t,n,r=e.componentInstances,i={properties:r};if(n=!1,Zo(i,(function(e){var t=e.xComponent;if(t&&t.name){var r=t.name.toLocaleLowerCase();return"form"===r?(n=!1,!0):n=cs.some((function(e){return e.toLocaleLowerCase()===r}))}})),n){var a=[];Zo(i,(function(e){var t=e,n=t.xComponent,r=t.xProps;if(n&&"Button"===n.name){var i=Me(r,"listeners[0]");if(i&&i.trigger&&"click"===i.trigger)return a=r.listeners,$n(r,"data.formType",{value:"submit"}),i.trigger="submit",delete r.listeners,!0}})),e.componentInstances=((t={})[Yo()]={xComponent:{moduleName:"gsd-h5-react",name:"Form"},xProps:{data:{layout:{value:"horizontal"}},listeners:a},xIndex:1,properties:{contentSlot:{properties:r}}},t)}}function ic(e){var t;e.data;var n=e.lowCodes,r=void 0===n?[]:n,i=e.componentInstances,a=void 0===i?{}:i,s=r.find((function(e){return"style"==e.name}));(null==s?void 0:s.code)&&null===(null==s?void 0:s.code.match(/^&/m))&&(s.code="&{\n ".concat(s.code,"\n }")),Object.keys(a).length>1&&(e.componentInstances=((t={})[Yo()]={xComponent:{moduleName:"gsd-h5-react",name:"Container"},xIndex:0,properties:a},t))}var ac=Object.freeze({__proto__:null,addFormWrapperComp:rc,parseComplexComponentInstance:ic,parseGsdKboneAgree:function(e,t,n){nc(e,t,n),Ko(["content"],e),Jo({name:{value:"thisIsAgreeKey"},value:{value:!1},checkedIcon:{value:"https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/2/square.svg"},uncheckedIcon:{value:"https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/2/square_un.svg"}},e),e.properties&&e.properties.custom&&(e.properties.content=e.properties.custom,delete e.properties.custom)},parseGsdKboneButton:function(e){var t,n=e.xComponent,r=e.xProps;if("gsd-kbone"===n.moduleName){n.moduleName=so,n.name="Button";var i={size:{type:"static",value:"default"},type:{type:"static",value:"primary"},plain:{type:"static",value:!1},loading:{type:"static",value:!1},disabled:{type:"static",value:!1},formType:{type:"static",value:""},openType:{type:"static",value:""},categoryId:{type:"static",value:[]},sessionFrom:{type:"static",value:""},appParameter:{type:"static",value:""},sendMessageImg:{type:"static",value:""},sendMessagePath:{type:"static",value:""},showMessageCard:{type:"static",value:!1},sendMessageTitle:{type:"static",value:""}},a=r.data,s=a.text,o=void 0===s?{}:s;for(var c in i)for(var p in i[c])a[c]&&a[c][p]&&(i[c][p]=a[c][p]);r.data=i,"slot"===o.type?e.properties={contentSlot:{properties:e.properties.text.properties}}:e.properties={contentSlot:{properties:(t={},t[Yo()]={xComponent:{moduleName:"gsd-h5-react",name:"Text"},xProps:{data:{decode:{value:!1},selectable:{value:!1},text:o}},xIndex:0},t)}}}},parseGsdKboneDateTimePicker:function(e,t,n){nc(e,t,n);var r=Me(e,"xProps.data.mode.value");e.xComponent.name="date"===r?"Date":"Time"},parseGsdKboneFooter:function(e){var t,n=e.xComponent,r=e.xProps;if("gsd-kbone"===n.moduleName){n.moduleName=so,n.name="Footer";var i=r.data,a=i.text.value;e.properties={text:{properties:(t={},t[Yo()]={xComponent:{moduleName:"gsd-h5-react",name:"Text"},xProps:{data:{text:{value:a},decode:{value:!1},selectable:{value:!1}}},xIndex:0},t)}},delete i.text}},parseGsdKboneInput:function(e,t,n){nc(e,t,n),Ko(["prefix","suffix"],e),Jo({name:{value:"uniqueFormKey"},placeholder:{value:"请输入"},disabled:{value:!1},focus:{value:!1},password:{value:!1},type:{value:"text"},maxLength:{value:140},clearable:{value:!0},value:{value:""},confirmType:{value:"done"},prefix:{value:"",type:"slot"},suffix:{value:"",type:"slot"}},e);var r=Me(e,"properties.append");r&&($n(e,"properties.suffix",r),$n(e,"xProps.data.isSuffix.value",!0),delete e.properties.append)},parseGsdKbonePicker:function(e,t,n){nc(e,t,n),e.xComponent.name="Selector"},parseGsdKbonePopLayer:function(e){e.xComponent.name="Poplayer",Ko(["content","footer"],e),Jo({visible:{value:!0},content:{value:"内容",type:"slot"},footer:{value:"",type:"slot"},direction:{value:"bottom"},popWidth:{value:"100%"},popHeight:{value:"120"}},e)},parseGsdKboneRichText:function(e){var t=e.xProps;t.data&&(t.data.nodes=t.data.nodes||t.data.content,delete t.data.content)},parseGsdKboneSwiper:function(e){Jo({indicatorDots:{value:!1},autoplay:{value:!0},current:{value:0},interval:{value:2e3},duration:{value:500},circular:{value:!1},vertical:{value:!1},previousMargin:{value:0},nextMargin:{value:0},displayMultipleItems:{value:1},updated:{value:0},indicatorColor:{value:""},indicatorActiveColor:{value:""}},e),Qo(e).map((function(t){var n,r=t[0],i=t[1],a=i.xComponent;if("Container"===a.name)a.moduleName="gsd-h5-react",a.name="SwiperItem";else{var s=Yo(),o=JSON.parse(JSON.stringify(i).replace(new RegExp("forItems\\.".concat(r),"g"),"forItems.".concat(s))),c=Me(o,"xProps.directives.waFor");try{delete o.xProps.directives.waFor,delete e.properties[r]}catch(e){console.error("parseGsdKboneSwiper 删除 waFor 出错",e)}e.properties[s]={xComponent:{moduleName:"gsd-h5-react",name:"SwiperItem"},xProps:{commonStyle:{self:{width:"100%",height:"100%",position:"absolute"}},directives:{waFor:c}},properties:(n={},n[r]=o,n)}}}))},parseGsdKboneSwitch:function(e,t,r){nc(e,t,r);var i=Me(e,"xProps.data.defaultValue");i&&$n(e,"xProps.data.value",i);var a=Me(e,"xProps.commonStyle.margin");$n(e,"xProps.commonStyle.margin",n(n({},a),{top:"30",right:"40",bottom:"30",left:"40"}))},parseGsdKboneTabs:function(e){var t,n=e.xProps,r=e.properties;if(!(null==r?void 0:r.content)&&(n.listeners&&(n.listeners=n.listeners.map((function(e){return"handleTabChange"===e.trigger&&(e.trigger="change"),e}))),n.data&&(t=Me(n.data,"TabItems.value",[]),Object.keys(n.data).forEach((function(e){"activeKey"!==e&&delete n.data[e]}))),r)){var i={};Object.values(r).forEach((function(e,n){var r=t[n];r&&(i[Yo()]={xComponent:{moduleName:so,name:"TabPane"},xProps:{data:{key:{value:r.key},tab:{value:r.title}}},xIndex:n,properties:{content:e}})})),e.properties={content:{properties:i}}}},parseGsdKboneText:function(e){e.xProps=e.xProps||{},e.xProps.commonStyle=e.xProps.commonStyle||{},e.xProps.commonStyle=zo({display:"block",self:{display:"block"}},e.xProps.commonStyle)},parseGsdKboneUpload:function(e,t,n){nc(e,t,n),e.xComponent.name="Uploader",Jo({name:{value:"thisIsUploadKey"},value:{value:[]},maxNumber:{value:9},type:{value:"media"},mediaType:{value:["image"]},sourceType:{value:["album","camera"]},maxSize:{value:500},filename:{value:"file"},header:{value:{}},formData:{value:{}},disabled:{value:!1},action:{value:""},extension:{value:""}},e)}});function sc(e,t,n){var r=e.xComponent;if(r){var i=r.name;ec(e);var a=ac["parseGsdKbone".concat(i)];null==a||a(e,t,n),tc(e)}var s=Object.keys(e.properties||{});s.length>0&&s.forEach((function(t){var n=e.properties[t];n&&sc(n,t,e)}))}function oc(e,t,r){var i,a,s=(null===(i=t.xComponent)||void 0===i?void 0:i.name)||"",o=function(e,t,n){var r,i,a=e.dependencies,s=void 0===a?[]:a,o=e.dependenciesMap,c=void 0===o?{}:o;if(e.streamlineModuleName){t===(null===(r=s[0])||void 0===r?void 0:r.name)&&(t=void 0);for(var p=void 0,l=s.length-1;l>0;l--){var u=s[l],d=u.name;if(c["".concat(d,":").concat(n)]){p=u;break}}if(p){if((null==p?void 0:p.name)===t)return}else if((null===(i=s[0])||void 0===i?void 0:i.name)===t)return}else if(t&&!/-lcap-spinoff$/.test(t)&&!c["".concat(t,":").concat(n)]&&c["".concat(t,"-lcap-spinoff:").concat(n)])return"".concat(t,"-lcap-spinoff");return t}(e,null===(a=t.xComponent)||void 0===a?void 0:a.moduleName,s),c=n({},e);c.dependencies&&!c.dependenciesMap&&(c.dependenciesMap=cc(c.dependencies||[]));var p=t.properties?Object.keys(t.properties).reduce((function(e,r){return e[r]=oc(c,n({},t.properties[r])),e}),{}):void 0;return n(n({},t),{xComponent:t.xComponent?n(n({},t.xComponent),{moduleName:o}):void 0,properties:p})}function cc(e){void 0===e&&(e=[]);var t=e.reduce((function(e,t){for(var n=t.components,r=0,i=void 0===n?[]:n;r<i.length;r++){var a=i[r];e[a.sourceKey]=a}return e}),{});return t}var pc=function(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var s=t[r],o=Re(e,s);n(o,s)&&Un(a,Oe(s,e),o)}return a};var lc=function(e,t){return pc(e,t,(function(t,n){return Sa(e,n)}))},uc=h?h.isConcatSpreadable:void 0;var dc=function(e){return o(e)||nt(e)||!!(uc&&e&&e[uc])};var hc=function e(t,n,r,i,a){var s=-1,o=t.length;for(r||(r=dc),a||(a=[]);++s<o;){var c=t[s];n>0&&r(c)?n>1?e(c,n-1,r,i,a):jt(a,c):i||(a[a.length]=c)}return a};var fc=function(e){return(null==e?0:e.length)?hc(e,1):[]};var mc=function(e){return bs(fs(e,void 0,fc),e+"")},vc=mc((function(e,t){return null==e?{}:lc(e,t)}));var yc=function(e){return Is(e)?void 0:e},gc=mc((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ee(t,(function(t){return t=Oe(t,e),r||(r=t.length>1),t})),Ye(e,$t(e),n),r&&(n=Rn(n,7,yc));for(var i=t.length;i--;)Bn(n,t[i]);return n})),bc=gc;var xc=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return jt(o(n)?At(n):[n],hc(t,1))};function wc(e,t){void 0===t&&(t=!1);for(var n=[],r=e.split("\n"),i={start:-1,middle:-1,end:-1},a=0,s=r.length;a<s;a++){var o=r[a];if(/^<<<<<<<$/.test(o)){if(-1!==i.start)break;i.start=a}else if(/^=======$/.test(o))-1!==i.start&&-1===i.middle&&(i.middle=a);else if(/^>>>>>>>$/.test(o)&&-1!==i.start&&-1!==i.middle&&(i.end=a,n.push(i),i={start:-1,middle:-1,end:-1},t))break}return n}function Cc(t,n){var r=n.type,i=n.handler;switch(r){case e.ActionType.Rematch:(null==i?void 0:i.name)&&(t.lowcodeMap[null==i?void 0:i.name]=!0),kc(t,null==i?void 0:i.params);break;case e.ActionType.DataSource:var a=null==i?void 0:i.params;kc(a),(null==a?void 0:a.dataSourceName)&&(t.dataSourceMap[null==a?void 0:a.dataSourceName]=!0);break;case e.ActionType.Material:(null==i?void 0:i.module)&&(t.componentLibMap[null==i?void 0:i.module]=!0),kc(t,null==i?void 0:i.params);break;case e.ActionType.Platform:kc(t,null==i?void 0:i.params)}}function kc(e,t){for(var n in void 0===t&&(t={}),t)/^:/.test(n)&&"string"==typeof t[n]&&Sc(e,t[n])}function Sc(t,n){var r,i,a;try{var s=new Hi(n,{pageId:"$page"}).parse();switch(s.type){case e.PropBindType.params:case e.PropBindType.stateData:var o=((r={})[e.PropBindType.params]="params",r[e.PropBindType.stateData]="state",r)[s.type],c=(null===(i=s.value)||void 0===i?void 0:i.split("."))||[],p=c[0];t.datasetMap[p]||(t.datasetMap[p]={}),1===c.length?t.datasetMap[p][o]=!0:t.datasetMap[p]["".concat(o,".").concat(c[1].replace(/\[.*/,""))]=!0;break;case e.PropBindType.forItem:var l=((null===(a=s.value)||void 0===a?void 0:a.split("."))||[])[0];if(!t.forContext[l])throw{code:"INVALID_FOR_CONTEXT",message:"缺少循环上下文,无法保存为区块"}}}catch(e){if("INVALID_FOR_CONTEXT"===(null==e?void 0:e.code))throw e}}var _c={root:"2",zoom:1,precision:5,outUnit:"px",exclude:""};function Tc(e){var t=(e=n(n({},_c),e||{})).root,r=e.zoom,i=e.precision,a=e.outUnit,s=e.exclude;return{postcssPlugin:"postcss-rpx2calc",Once:function(e,n){var o=n.result;s&&null!==e.source.input.file.match(s)?o.root=e:e.walkRules((function(e){e.walkDecls((function(e){if(e.value.includes("rpx")){e.value=e.value.replace(/"[^"]+"|'[^']+'|url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)rpx/g,(function(e,n){if(null==n)return e;if("0"==n)return"0";var s=+n/(r||1);if(isNaN(s))return e;var o=Number.isInteger(s)?s.toString():function(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return 10*Math.round(r/10)/n}(s,i||0);return"calc(".concat(o).concat(a,"/").concat(t,")")}))}}))}))}}}Tc.postcss=!0,Tc.CALC_RPX_ROOT_VAL_NAME="--wd-rpx-radio";var Pc,Ec,Ic,Dc,Ac,Nc,Oc,Lc,Rc,Mc=(Pc=function(e,t){t||(t=".");for(var n="",r=0;r<e.length;r++)0!==r&&(n+=t),n+=e[r];return n},Ec=function(e,t){this.isRoot=!1,this.root=t,t.path===e.path&&(this.isRoot=!0),this.level=e.pathArray.length-t.pathArray.length,this.pathArray=e.pathArray.slice(t.pathArray.length,e.pathArray.length),this.path=Pc(this.pathArray)},Ic=function(e){this.isEmpty=function(){return 0===this.count},this.get=function(e){return e?(t=this.isRoot?e:this.path+"."+e,this._nodeHash[Nc+"."+t]):this;var t},this._iterate=function(e){var t=this;Ac(this.value,(function(n,r,i,a,s,o,c){var p=t._internalPath+(c?"":"."+Pc(i)),l=t._nodeHash[p];if(void 0===l)throw"Json object has changed and is no longer synchronized to JefNode internal representation around '"+Pc(i)+"' . Avoid changing json object structure during filter(), delete() or validate(). Use refresh() to synchronize JafNode.";e(l)}))},this._filter=function(e,t){var n=[],r=this;return this._iterate((function(i){var a=new Ec(i,r);if(!t||t&&a.level===t){var s=e(i,a);void 0!==s&&n.push(s)}})),n},this.filter=function(e){return this._filter(e)},this.filterFirst=function(e){return this._filter(e,1)},this.filterLevel=function(e,t){return this._filter(t,e)},this.validate=function(e){var t=!0;return this.filter((function(n,r){!1===e(n,r)&&(t=!1)})),t},this.remove=function(e){var t=this.filter((function(t,n){return e(t,n)})),n=!0,r=function(e){if(e instanceof Array)e.forEach((function(e){r(e)}));else if(e instanceof Ic)if(e.isRoot)console.log("Root node cannot be deleted."),n=!1;else if("array"===e.parent.type()){var t=e.parent.value,i=t.indexOf(e.value);t.splice(i,1)}else delete e.parent.value[e.key];else console.log("Only JefNode objects must be returned from delete callback."),n=!1};return r(t),n},this.has=function(e){if(!this.value)return!1;if(e instanceof RegExp){if("object"===this.type()){for(var t in this.value)if(e.test(t))return!0;return!1}return!1}return void 0!==this.value[e]},this.getType=function(){return this.type()},this.type=function(){return{}.toString.call(this.value).match(/\s([a-zA-Z]+)/)[1].toLowerCase()},this.hasType=function(){if(1===arguments.length)return this.type()===arguments[0];for(var e=0;e<arguments.length;e++)if(this.type()===arguments[e])return!0;return!1},this.refresh=function(){var e={},t=this._internalPath+".";for(var n in this._nodeHash)0===n.indexOf(t)&&(e[n]=!0);var r=this;for(var t in Ac(this.value,(function(t,n,i,a,s,o,c,p,l){if(!c){var u,d=r._internalPath+"."+Pc(i);if(e[d]=!1,r._nodeHash[d])u=r._nodeHash[d];else{(u=new Ic)._nodeHash=r._nodeHash,u.root=r._nodeHash[Nc],u._internalPath=d,u.pathArray=r.pathArray.concat(i),u.path=r.isRoot?Pc(u.pathArray):r.path+"."+Pc(u.pathArray),u.key=t,r._nodeHash[d]=u;var h=u.pathArray.slice(0,u.pathArray.length-1);0===h.length?u.parent=r._nodeHash[Nc]:u.parent=r._nodeHash[Nc+"."+Pc(h)],u.parent.count++}u.value=n,u.level=r.level+o,u.isRoot=!1,u.isLeaf=p,u.isCircular=l}})),e)!0===e[t]&&delete this._nodeHash[t]},this._nodeHash=null,this._internalPath=null,this.print=function(e){var t=[],n=this;return this._iterate((function(r){e?t.push(r._internalPath.replace(Nc,"root")+" - "+JSON.stringify(n._nodeHash[r._internalPath].value)):t.push(r._internalPath.replace(Nc,"root"))})),t},this.count=0,e&&(this.root=this,this._nodeHash={},this.pathArray=[],this.path="",this.value=e,this.level=0,this.isRoot=!0,this.isLeaf=Dc(e),this.isCircular=!1,this._internalPath=Nc,this._nodeHash[Nc]=this,this.parent=this,this.refresh())},Dc=function(e){var t=e instanceof Array;return!("object"==typeof e&&!t&&null!==e||t)},Ac=function(e,t){var n=[],r=function(e,i,a,s,o,c,p){var l=i instanceof Array,u="object"==typeof i&&!l,d=Dc(i),h=!1;if(-1!==n.indexOf(i)?h=!0:n.push(i),t(e,i,c,a,s,p,o,d,h),!h){var f,m;if(u)for(f in i)m=c.concat([f]),r(f,i[f],e,i,!1,m,p+1);if(l)for(var v=0;v<i.length;v++)f=""+v,m=c.concat([f]),r(f,i[v],e,i,!1,m,p+1)}};r(void 0,e,void 0,void 0,!0,[],0)},Nc="$root_4285190851",{JefNode:Ic,traverse:Ac});e.IInputDataType=void 0,(Rc=e.IInputDataType||(e.IInputDataType={})).globalState="globalState",Rc.pageState="pageState",Rc.compState="compState",Rc.pageParams="pageParams",Rc.forState="forState",Rc.globalCommonCodes="globalCommonCodes",Rc.pageHandlerCodes="pageHandlerCodes",Rc.compHandlerCodes="compHandlerCodes",Rc.compPropData="compPropData",Rc.compPropEvents="compPropEvents",Rc.usedComponents="usedComponents",Rc.usedWidgets="usedWidgets",Rc.repeaterScope="repeaterScope",Rc.redefineAnyType="redefineAnyType";var Fc,jc=((Oc={})[e.IInputDataType.globalState]="// Global State 全局变量 - Don't touch me",Oc[e.IInputDataType.pageState]="// Page State 页面变量 - Don't touch me",Oc[e.IInputDataType.compState]="// Comp State 组件变量 - Don't touch me",Oc[e.IInputDataType.pageParams]="// Page Param 页面参数 - Don't touch me",Oc[e.IInputDataType.forState]="// For 循环变量 - Don't touch me",Oc[e.IInputDataType.globalCommonCodes]="// Global Common 全局方法 - Don't touch me",Oc[e.IInputDataType.pageHandlerCodes]="// Page Handler 页面方法 - Don't touch me",Oc[e.IInputDataType.compHandlerCodes]="// Comp Handler 组件方法 - Don't touch me",Oc[e.IInputDataType.compPropData]="// Comp Prop Data 组件属性 - Don't touch me",Oc[e.IInputDataType.compPropEvents]="// Comp Prop Events 组件事件 - Don't touch me",Oc[e.IInputDataType.usedComponents]="// Used Components - Don't touch me",Oc[e.IInputDataType.usedWidgets]="// used widgets - Don't touch me",Oc[e.IInputDataType.repeaterScope]="// repeater scope - Don't touch me",Oc[e.IInputDataType.redefineAnyType]="// Redefine Any Type - Don't touch me",Oc),Vc=((Lc={})[e.IInputDataType.globalState]="Global State Inner",Lc[e.IInputDataType.pageState]="Page State Inner",Lc[e.IInputDataType.compState]="Comp State Inner",Lc[e.IInputDataType.pageParams]="Page Param Inner",Lc[e.IInputDataType.forState]="Global For Inner",Lc[e.IInputDataType.globalCommonCodes]="Global Common Inner",Lc[e.IInputDataType.pageHandlerCodes]="Page Handler Inner",Lc[e.IInputDataType.compHandlerCodes]="Comp Handler Inner",Lc[e.IInputDataType.compPropData]="Comp Prop Data Inner",Lc[e.IInputDataType.compPropEvents]="Comp Prop Events Inner",Lc[e.IInputDataType.usedComponents]="Used Components Inner",Lc[e.IInputDataType.usedWidgets]="used widgets Inner",Lc[e.IInputDataType.repeaterScope]="repeater scope Inner",Lc[e.IInputDataType.redefineAnyType]="Redefine Any Type Inner",Lc);!function(e){e.GLOBAL_VAR="globalVar",e.PAGE_VAR="pageVar",e.PAGE_PARAM="pageParam",e.COMPONENT="component",e.REPEATER="repeater",e.DATA_FIELD="dataField"}(Fc||(Fc={}));var Bc=function(){function e(){}return e.updateDTS=function(t,r){return void 0===t&&(t={}),void 0===r&&(r={isCompMode:!1}),i(this,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return i=e,[4,Wc(t,n(n({},r),{needGlobalFormula:!0,needGlobalFor:!0,needRepeaterScope:!0}))];case 1:return i._dts=a.sent(),[2]}}))}))},e.updateDTSPartial=function(t,n,r){return void 0===r&&(r={setEmptyIfError:!1}),i(this,void 0,void 0,(function(){var i,s;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,Gc(t,n)];case 1:return i=a.sent(),s=i[0],i[1].forEach((function(t){e._dts=e._dts.replace(t.from,t.to)})),e._dts=e._dts.replace(new RegExp("^(\\s*\\/\\/ ".concat(Vc[n]," Begin)[\\s\\S]*(^\\s*\\/\\/ ").concat(Vc[n]," End)"),"m"),"$1\n".concat(s,"\n$2")),[3,3];case 2:return a.sent(),r.setEmptyIfError&&(e._dts=e._dts.replace(new RegExp("^(\\s*\\/\\/ ".concat(Vc[n]," Begin)[\\s\\S]*(^\\s*\\/\\/ ").concat(Vc[n]," End)"),"m"),"$1\n".concat("","\n$2"))),[3,3];case 3:return[2]}}))}))},e.getDTS=function(t){void 0===t&&(t={needGlobalFormula:!1,needGlobalFor:!1,needRepeaterScope:!1});var n=e._dts;return t.needGlobalFormula||(n=n.replace(/^\/\/ Global Formula Begin[\s\S]*^\/\/ Global Formula End$/m,"")),t.needGlobalFor||(n=n.replace(/^\/\/ Global For Begin[\s\S]*^\/\/ Global For End$/m,"")),t.needRepeaterScope||(n=n.replace(/\/\/ repeater scope Inner Begin[\s\S]*\/\/ repeater scope Inner End$/m,"")),n},e._dts="",e}();function Wc(e,t){return void 0===e&&(e={}),void 0===t&&(t={isCompMode:!1,needGlobalFormula:!1,needGlobalFor:!1,needRepeaterScope:!1}),i(this,void 0,void 0,(function(){var n,r=this;return a(this,(function(s){switch(s.label){case 0:return n='declare class UserWidget {\n // FIXME: 暂时不对外暴露\n // 内置命名空间\n // get sys(): {\n // readonly id: string;\n // readonly module: string;\n // readonly component: string;\n // readonly parent: UserWidget;\n // readonly children: UserWidget[];\n\n // closest(filter?: (parentWidget: UserWidget) => boolean): UserWidget | null;\n // };\n\n // FIXME: 暂时不对外暴露\n // 自定义命名空间\n // get custom(): { [key: string]: any };\n\n // ========== 快捷访问方式 ========== //\n\n /**\n * 组件 ID,微搭中一般由编辑器生成\n */\n readonly id: string;\n /**\n * 组件库名\n */\n readonly module: string;\n /**\n * 组件名\n */\n readonly component: string;\n\n /**\n * 父组件引用\n */\n readonly parent: UserWidget;\n /**\n * 子组件集合\n */\n readonly children: UserWidget[];\n\n // FIXME: 暂时不对外暴露\n // closest(filter?: (parentWidget: UserWidget) => boolean): UserWidget | null;\n}\n\n// Used Components Inner Begin\n// Used Components - Don\'t touch me\n// Used Components Inner End\n\n// Redefine Any Type Inner Begin\n// Redefine Any Type - Don\'t touch me\n// Redefine Any Type Inner End\n\ndeclare namespace $app {\n /**\n * 应用 ID\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "应用 ID"}\n */\nconst id: string;\n/**\n * 应用名称\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "应用名称"}\n */\nconst label: string;\n/**\n * 应用版本\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "应用版本"}\n */\nconst version: string;\n/**\n * 小程序APPID\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "小程序APPID"}\n */\nconst mpAppId: string;\n/**\n * 小程序名称\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "小程序名称"}\n */\nconst mpAppName: string;\n\nnamespace dataset {\n\n /**\n * 全局变量对象\n */\n const state: {\n // Global State Inner Begin\n // Global State 全局变量 - Don\'t touch me\n // Global State Inner End\n };\n}\n\n/**\n * 全局 common 方法\n */\nnamespace common {\n // Global Common Inner Begin\n // Global Common 全局方法 - Don\'t touch me\n // Global Common Inner End\n}\n\n/**\n * 已废弃,请改用 $w.utils\n */\nconst utils: any\n\n/**\n * 设置页面变量\n */\nfunction setState(data: Object): void;\n\n}\n\ndeclare const app = $app;\n\ndeclare namespace $w {\n\n /**\n * 当前应用实例\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "object", "displayName": "应用信息", "schema": {"type":"object","properties":{"id":{"type":"string","title":"应用 ID"},"label":{"type":"string","title":"应用名称"},"version":{"type":"string","title":"应用版本"},"mpAppName":{"type":"string","title":"小程序名称"},"mpAppId":{"type":"string","title":"小程序APPID"}}}}\n */\n const app = $app;\n\n /**\n * 当前页面信息\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "object", "displayName": "当前页面信息", "schema": {"type":"object","properties":{"id":{"type":"string","title":"页面 ID"},"label":{"type":"string","title":"页面名称"},"path":{"type":"string","title":"页面路径"}}}}\n */\n const page = $page;\n\n /**\n * 用户权限相关方法和属性\n */\n namespace auth {\n \ninterface CurrentUserInfo {\n /**\n * 用户 ID\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "用户 ID"}\n */\n userId?: string;\n /**\n * 手机\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "手机"}\n */\n phone?: string;\n /**\n * 用户类型\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "number", "displayName": "用户类型"}\n */\n type?: number;\n /**\n * 用户关联角色\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "array", "displayName": "用户关联角色"}\n */\n relatedRoles?: {\n /**\n * 角色 ID\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "角色 ID"}\n */\n id?: string;\n /**\n * 环境 ID\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "环境 ID"}\n */\n envId?: string;\n /**\n * 角色名称\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "角色名称"}\n */\n name?: string;\n /**\n * 角色标识\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "角色标识"}\n */\n roleIdentity?: string;\n }[];\n /**\n * 微信/企微 openId\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "微信/企微 openId"}\n */\n openId?: string;\n /**\n * 用户名称\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "用户名称"}\n */\n name?: string;\n /**\n * 用户昵称\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "用户昵称"}\n */\n nickName?: string;\n /**\n * 邮箱\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "邮箱"}\n */\n email?: string;\n /**\n * 主岗部门\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "object", "displayName": "主岗部门"}\n */\n mainOrg?: {\n /**\n * 主岗部门 ID\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "主岗部门 ID"}\n */\n id?: string;\n /**\n * 主岗部门名称\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "主岗部门名称"}\n */\n name?: string;\n };\n /**\n * 兼岗部门\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "object", "displayName": "兼岗部门"}\n */\n orgs?: {\n /**\n * 兼岗部门 ID\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "兼岗部门 ID"}\n */\n id?: string;\n /**\n * 兼岗部门名称\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "兼岗部门名称"}\n */\n name?: string;\n }[];\n}\n\n/**\n * 获取用户信息\n */\nfunction getUserInfo(): CurrentUserInfo;\n\n/**\n *\n * 登录用户信息\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "object", "displayName": "登录用户信息", "schema": {"type":"object","properties":{"userId":{"type":"string","title":"用户 ID"},"phone":{"type":"string","title":"手机"},"type":{"type":"number","title":"用户类型"},"relatedRoles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","title":"角色 ID"},"envId":{"type":"string","title":"环境 ID"},"name":{"type":"string","title":"角色名称"},"roleIdentity":{"type":"string","title":"角色标识"}}},"title":"用户关联角色"},"openId":{"type":"string","title":"微信/企微 openId"},"name":{"type":"string","title":"用户名称"},"nickName":{"type":"string","title":"用户昵称"},"email":{"type":"string","title":"邮箱"},"mainOrg":{"type":"object","properties":{"id":{"type":"string","title":"主岗部门 ID"},"name":{"type":"string","title":"主岗部门名称"}},"title":"主岗部门"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","title":"兼岗部门 ID"},"name":{"type":"string","title":"兼岗部门名称"}}},"title":"兼岗部门"}}}, "doc": "https://docs.cloudbase.net/lowcode/framework/app/app#authgetuserinfoauthcurrentuser"}\n */\nconst currentUser: CurrentUserInfo;\n\n }\n\n /**\n * 数据源等云端能力集合\n */\n namespace cloud {\n interface ICallDataSourceParams {\n /**\n * 数据源标志\n */\n dataSourceName: string;\n /**\n * 数据源方法名\n */\n methodName: string;\n /**\n * 方法参数,根据方法实际入参填写\n */\n params: Object;\n}\ninterface ICallFunctionParams {\n /**\n * TCB云函数名称\n */\n name: string;\n /**\n * 云函数接收的参数,根据自己创建的云函数入参而定\n */\n data?: any;\n}\ninterface IParseOptions {\n /**\n * 解析 云开发云函数的通用response 包装。为true, 则返回 res.result, 此时会丢失 res.requestId 信息\n */\n unwrapResult?: boolean;\n /**\n * 解析业务信息,需配合 unwrapResult 使用。为 true 时, res.result.code 非 0 抛出错误, 为 0 则返回 res.result.data\n */\n parseBusinessInfo?: boolean;\n}\ninterface ICallWorkflowParams {\n /**\n * 方法名称\n */\n action: string;\n /**\n * 方法的自定义参数,其中 envType, envId, uid, source 均无需填写\n */\n data?: Record<string, any>;\n /**\n * 是否自动将 data 的key 改为大写驼峰。默认为 true, 即使用时 data 可以采用小驼峰的 key\n */\n capitalizeDataKey?: boolean;\n}\n\n/**\n * 调用数据源\n */\nfunction callDataSource(params: ICallDataSourceParams): any;\n\n/**\n * 通过 cloudid 获取静态文件的 http 访问地址\n */\nfunction getTempFileURL(params: string | string[]): Promise<string | string[]>;\n\n/**\n * 调用流程\n */\nfunction callWorkflow(action: ICallWorkflowParams): Promise<any>;\n\n/**\n * 调用云开发的云函数, 与 $w.cloud.getCloudInstance 示例中的效果大体一致\n */\nfunction callFunction(params: ICallFunctionParams, parseOptions?: IParseOptions): Promise<any>;\n\n/**\n * 返回云开发web-sdk初始化后的实例(无需关心tcb环境信息及认证登录的处理), 即 tcb.init 后返回的对象, 可用该对象直接调用tcb的各种能力\n */\nfunction getCloudInstance(): Promise<CloudInstance>;\n\n }\n\n /**\n * 平台工具方法集合\n */\n namespace utils {\n interface navigatorOptions {\n /**\n * 子应用包地址,例如 packages/subapp\n */\n packageName: string;\n /**\n * 页面 ID\n */\n pageId: string;\n data?: Record<string, any>;\n /**\n * query object 对象\n */\n params?: Record<string, any>;\n events?: Record<string, (data: any) => void>;\n success(res: any);\n fail(res: any);\n complete(res: any);\n}\n\ninterface navigateBackOptions {\n /**\n * 返回的页面数,如果 delta 大于现有页面数,则返回到首页。\n */\n delta: number;\n}\n\n/**\n * 显示提示框\n */\nfunction showToast(options);\n\n/**\n * 显示全局加载中提示\n */\nfunction showLoading(options);\n\n/**\n * 隐藏全局加载中提示\n */\nfunction hideLoading(options);\n\n/**\n * 显示模态弹框\n */\nfunction showModal(options);\n\n/**\n * 拨打电话\n */\nfunction callPhone(options);\n\n/**\n * 扫描二维码\n */\nfunction scanCode(options: {\n /**\n * 是否只能从相机扫码,不允许从相册选择图片\n */\n onlyFromCamera?: boolean;\n enableDefaultBehavior?: boolean;\n /**\n * 扫码类型\n */\n scanType?: (\'barCode\' | \'qrCode\')[];\n /**\n * 接口调用成功的回调函数\n */\n success?: (res: { result: string; scanType: string }) => void;\n /**\n * 接口调用失败的回调函数\n */\n fail?: (err: Error) => void;\n /**\n * 接口调用结束的回调函数(调用成功、失败都会执行)\n */\n complete?: () => void;\n}): Promise<ScanCodeResult> | ScanCodeResult;\n\n/** 微信能力 */\n/**\n * 消息订阅\n * @param options\n */\nfunction requestSubscribeMessage(options);\n/**\n * 地图导航\n * @param options\n */\nfunction openLocation(options);\n/**\n * 预约视频号直播\n * @param options\n */\nfunction reserveChannelsLive(options);\n/**\n * 打开视频号主页\n * @param options\n */\nfunction openChannelsUserProfile(options);\n/**\n * 打开视频号直播\n * @param options\n */\nfunction openChannelsLive(options);\n/**\n * 打开视频号活动页\n * @param options\n */\nfunction openChannelsEvent(options);\n/**\n * 打开视频号视频\n * @param options\n */\nfunction openChannelsActivity(options);\n/**\n * 获取视频号直播预告信息\n * @param options\n */\nfunction getChannelsLiveNoticeInfo(options);\n/**\n * 获取视频号直播信息\n * @param options\n */\nfunction getChannelsLiveInfo(options);\n/**\n * 创建激励视频广告\n * @param options\n */\nfunction createRewardedVideoAd(options);\n/**\n * 创建插屏广告\n * @param options\n */\nfunction createInterstitialAd(options);\n\n// 特制路由\nfunction navigateTo(options: navigatorOptions);\n\n/**\n * 关闭当前页面,跳转到应用内的某个页面\n */\nfunction redirectTo(options: navigatorOptions);\n\n/**\n * 关闭所有页面,打开到应用内的某个页面\n */\nfunction reLaunch(options: navigatorOptions);\n\n/**\n * 返回首页\n */\nfunction relaunchHome();\n\n/**\n * 关闭当前页面,返回上一页面或多级页面\n */\nfunction navigateBack(options: navigateBackOptions);\n\n/**\n * 格式化枚举\n */\nfunction formatEnum(path, optionname, app);\n\n }\n\n /**\n * 设备信息\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "object", "displayName": "设备信息", "schema": {"type":"object","properties":{"viewport":{"type":"object","title":"窗口","properties":{"width":{"type":"number","title":"窗口宽度"},"height":{"type":"number","title":"窗口高度"}}},"networkType":{"type":"string","title":"网络类型"}}}}\n */\n namespace device {\n /**\n * 网络类型\n * pc端为空字符串\n */\nenum NETWORK_TYPE {\n \'wifi\' = \'wifi\',\n \'2g\' = \'2g\',\n \'3g\' = \'3g\',\n \'4g\' = \'4g\',\n \'5g\' = \'5g\',\n \'other\' = \'other\',\n \'unknown\' = \'\',\n}\n\n/**\n * 窗口信息\n */\ninterface IViewport {\n /**\n * 窗口宽度\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "number", "displayName": "窗口宽度"}\n */\n width: number;\n /**\n * 窗口高度\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "number", "displayName": "窗口高度"}\n */\n height: number;\n}\n\n/**\n * 窗口\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "object", "displayName": "窗口"}\n */\nconst viewport: IViewport;\n/**\n * 网络类型\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "网络类型"}\n */\nconst networkType: NETWORK_TYPE;\n\n }\n\n /**\n * 环境信息\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "object", "displayName": "环境信息", "schema": {"type":"object","properties":{"envId":{"type":"string","title":"环境 ID"},"type":{"type":"string","title":"环境类型"}}}}\n */\n namespace env {\n enum ENV_TYPE {\n /**\n * 生产\n */\n \'production\' = \'production\',\n /**\n * 预览\n */\n \'preview\' = \'preview\',\n}\n\n/**\n * 环境类型\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "环境类型"}\n */\nconst type: ENV_TYPE;\n/**\n * 环境 ID\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "环境 ID"}\n */\nconst envId: string;\n\n }\n\n /**\n * 上下文信息\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "object", "displayName": "上下文信息", "schema": {"type":"object","properties":{"platforms":{"type":"array","title":"应用运行终端","items":{"type":"stirng"}},"isEditorMode":{"type":"boolean","title":"是否在编辑区"}}}}\n */\n namespace wedaContext {\n /**\n * 是否在编辑区\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "boolean", "displayName": "是否在编辑区"}\n */\nconst isEditorMode: boolean;\n\n/**\n * 应用运行终端\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "应用运行终端"}\n */\nconst platforms: (\'WEB\' | \'MOBILEWEB\' | \'PCWEB\' | \'MP\')[];\n\n }\n\n /**\n* 绝对值\n*\n* @remarks\n* 计算传入数字的绝对值\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算传入数字的绝对值" , "definition": "ABS(数字):数字"}\n*/\n function ABS(num: number): number;\n/**\n* 最小值\n*\n* @remarks\n* 返回一组数字中的最小值\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最小值" , "definition": "Min(数字1, [数字2, ...]):数字"}\n*/\n function Min(...args: number[]): number;\n/**\n* 最大值\n*\n* @remarks\n* 返回一组数字中的最大值\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最大值" , "definition": "Max(数字1, [数字2, ...]):数字"}\n*/\n function Max(...args: number[]): number;\n/**\n* 平均值\n*\n* @remarks\n* 返回一组数字中的平均值\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的平均值" , "definition": "Average(数字1, [数字2, ...]):数字"}\n*/\n function Average(...args: number[]): number;\n/**\n* 向下取整\n*\n* @remarks\n* 返回传入数字向下取整的结果\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向下取整的结果" , "definition": "Floor(数字):数字"}\n*/\n function Floor(num: number): number;\n/**\n* 向上取整\n*\n* @remarks\n* 返回传入数字向上取整的结果\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向上取整的结果" , "definition": "Ceiling(数字):数字"}\n*/\n function Ceiling(num: number): number;\n/**\n* 四舍五入\n*\n* @remarks\n* 返回传入数字四舍五入后的结果\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字四舍五入后的结果" , "definition": "Round(数字):数字"}\n*/\n function Round(num: number): number;\n/**\n* 求和\n*\n* @remarks\n* 返回一组数字中的和\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的和" , "definition": "Sum(数字1, [数字2, ...]):数字"}\n*/\n function Sum(...args: number[]): number;\n/**\n* 随机数\n*\n* @remarks\n* 返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数" , "definition": "Rand(数字):数字"}\n*/\n function Rand(num: number): number;\n\n interface IIfObjectParam {\ncondition: boolean;\nconsequent?: any;\nalternate?: any;\n}\n/**\n* 条件分支\n*\n* @remarks\n* 按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, \'您好\', \'hello\')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。" , "definition": "If(判断条件, 满足时返回的值, 不满足时返回的值):任何类型"}\n*/\n function If(params: IIfObjectParam): any;\n function If(condition: boolean, consequent?: any, alternate?: any): any;\n/**\n* 是否为空\n*\n* @remarks\n* 判断传入的文本是否为空\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty(\'hello\')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的文本是否为空" , "definition": "IsEmpty(值):布尔值"}\n*/\n function IsEmpty(text: string | string[]): boolean;\n/**\n* 是否为null\n*\n* @remarks\n* 判断传入的字段值是否包含数据,即不为 NULL\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的字段值是否包含数据,即不为 NULL" , "definition": "NotNull(字段):布尔值"}\n*/\n function NotNull(val: any): boolean;\n/**\n* 与\n*\n* @remarks\n* 用于确定所有判断条件是否为真\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "用于确定所有判断条件是否为真" , "definition": "And(判断条件1, [判断条件2,...]):布尔值"}\n*/\n function And(...args: boolean[]): boolean;\n/**\n* 或\n*\n* @remarks\n* 任意一个判断条件为真,则结果为真;所有条件为否,结果才为否\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "任意一个判断条件为真,则结果为真;所有条件为否,结果才为否" , "definition": "Or(判断条件1, [判断条件2,...]):布尔值"}\n*/\n function Or(...args: boolean[]): boolean;\n\n/**\n* 获取文本长度\n*\n* @remarks\n* 获取传入文本的字符数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len(\'文本\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "获取传入文本的字符数" , "definition": "Len(文本):数字"}\n*/\n function Len(text: string): number;\n/**\n* 是否包含指定文本\n*\n* @remarks\n* 判断文本 1 是否包含文本 2\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains(\'文本1\', \'文本2\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断文本 1 是否包含文本 2" , "definition": "Contains(文本1, 文本2):布尔值"}\n*/\n function Contains(text1: string, text2: string): boolean;\n/**\n* 拆分文本\n*\n* @remarks\n* 根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split("张三,李四,王五", ",")\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split(\'文本1\', \'文本2\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split(\'张三,李四,王五\', \',\')" , "definition": "Split(文本1,文本2):文本数组"}\n*/\n function Split(text1: string, text2: string): string[];\n/**\n* 删除开头/结尾空格和制表符\n*\n* @remarks\n* 删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim(\'文本\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除" , "definition": "Trim(文本):文本"}\n*/\n function Trim(text: string): string;\n/**\n* 转换为大写\n*\n* @remarks\n* 将传入的文本转为全大写文本\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper(\'文本\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全大写文本" , "definition": "Upper(文本):文本"}\n*/\n function Upper(text: string): string;\n/**\n* 转换为小写\n*\n* @remarks\n* 将传入的文本转为全小写文本\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower(\'文本\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全小写文本" , "definition": "Lower(文本):文本"}\n*/\n function Lower(text: string): string;\n/**\n* 文本拼接\n*\n* @remarks\n* 返回多个文本拼接后的新文本\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat(\'文本1\', \'文本2\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回多个文本拼接后的新文本" , "definition": "Concat(文本1, [文本2,...]):文本"}\n*/\n function Concat(...text: string[]): string;\n\n/**\n* 获取现在时间\n*\n* @remarks\n* 返回当前系统时间,通常与其他日期时间函数搭配使用\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回当前系统时间,通常与其他日期时间函数搭配使用" , "definition": "Now():日期时间"}\n*/\n function Now(): number;\n/**\n* 获取时间戳\n*\n* @remarks\n* 根据输入的日期时间返回时间戳\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回时间戳" , "definition": "Timestamp(日期时间):日期时间"}\n*/\n function Timestamp(arg: number | string | Date): number;\n/**\n* 获取秒数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的秒数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的秒数" , "definition": "Second(日期时间):数字"}\n*/\n function Second(arg: number | string | Date): number;\n/**\n* 获取分钟数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的分钟部分\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的分钟部分" , "definition": "Minute(日期时间):数字"}\n*/\n function Minute(arg: number | string | Date): number;\n/**\n* 获取小时数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的小时部分,24小时制\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的小时部分,24小时制" , "definition": "Hour(日期时间):数字"}\n*/\n function Hour(arg: number | string | Date): number;\n/**\n* 获取天数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的日部分,范围为 1-31\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的日部分,范围为 1-31" , "definition": "Day(日期时间):数字"}\n*/\n function Day(arg: number | string | Date): number;\n/**\n* 获取星期数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的星期数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的星期数" , "definition": "DayOfWeek(日期时间):数字"}\n*/\n function DayOfWeek(arg: number | string | Date): number;\n/**\n* 获取月数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的月份\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的月份" , "definition": "Month(日期时间):数字"}\n*/\n function Month(arg: number | string | Date): number;\n/**\n* 获取年份\n*\n* @remarks\n* 根据输入的日期时间返回该时间的年份\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的年份" , "definition": "Year(日期时间):数字"}\n*/\n function Year(arg: number | string | Date): number;\n/**\n* 使用年月日创建日期时间\n*\n* @remarks\n* 根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)" , "definition": "GetDate(数字,数字,数字):日期时间"}\n*/\n function GetDate(year: number, month: number, day: number): number;\n/**\n* 使用时间日期文本创建日期时间\n*\n* @remarks\n* 将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue("2021-12-11 01:19:12", "yyyy-MM-dd HH:mm:ss")\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue(\'2011-07-02\', \'YYYY:MM:DD\')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue(\'2021-12-11 01:19:12\', \'yyyy-MM-dd HH:mm:ss\')" , "definition": "DateTimeValue(文本, 文本):日期时间"}\n*/\n function DateTimeValue(arg: string, val: string): number;\n/**\n* 计算年龄\n*\n* @remarks\n* 根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))" , "definition": "Age(日期时间,日期时间):数字"}\n*/\n function Age(arg: number | string | Date, val: number | string | Date): number;\n/**\n* 计算当前年龄\n*\n* @remarks\n* 计算当前年龄,例如 AgeOfNow(Date(2017,3,24))\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算当前年龄,例如 AgeOfNow(Date(2017,3,24))" , "definition": "AgeOfNow(日期时间):数字"}\n*/\n function AgeOfNow(arg: number | string | Date): number;\n/**\n* 增加 X 天\n*\n* @remarks\n* 在传入的日期时间上增加 X 天,支持负数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期时间上增加 X 天,支持负数" , "definition": "DateAdd(日期时间, 数字):日期时间"}\n*/\n function DateAdd(arg: number | string | Date, day: number): number;\n/**\n* 增加 X 月\n*\n* @remarks\n* 在传入的日期和时间上增加 X 月,支持负数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 月,支持负数" , "definition": "MonthAdd(日期时间, 数字):日期时间"}\n*/\n function MonthAdd(arg: number | string | Date, month: number): number;\n/**\n* 增加 X 年\n*\n* @remarks\n* 在传入的日期和时间上增加 X 年,支持负数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 年,支持负数" , "definition": "YearAdd(日期时间, 数字):日期时间"}\n*/\n function YearAdd(arg: number | string | Date, year: number): number;\n/**\n* 天数差\n*\n* @remarks\n* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "DateDiff(日期时间, 日期时间):数字"}\n*/\n function DateDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 小时差\n*\n* @remarks\n* 返回两个日期时间字段之间的小时差,如果为同一小时,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的小时差,如果为同一小时,差数为零" , "definition": "HourDiff(日期时间, 日期时间):数字"}\n*/\n function HourDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 分钟差\n*\n* @remarks\n* 返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零" , "definition": "MinuteDiff(日期时间, 日期时间):数字"}\n*/\n function MinuteDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 秒数差\n*\n* @remarks\n* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "SecondDiff(日期时间, 日期时间):数字"}\n*/\n function SecondDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 月数差\n*\n* @remarks\n* 返回两个日期时间字段之间的月数差,如果为同一月,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的月数差,如果为同一月,差数为零" , "definition": "MonthDiff(日期时间, 日期时间):数字"}\n*/\n function MonthDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 年数差\n*\n* @remarks\n* 返回两个日期时间字段之间的年数差,如果为同一年,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的年数差,如果为同一年,差数为零" , "definition": "YearDiff(日期时间, 日期时间):数字"}\n*/\n function YearDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 日期时间格式化\n*\n* @remarks\n* 格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), "yyyy-MM-dd HH:mm:ss")\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, \'YYYY-MM-DD HH:mm:ss\')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), \'yyyy-MM-dd HH:mm:ss\')" , "definition": "DateText(日期时间, 文本):文本"}\n*/\n function DateText(createdTime: number | string | Date, text: string): string;\n/**\n* 是否为今天\n*\n* @remarks\n* 判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))" , "definition": "IsToday(日期时间):布尔值"}\n*/\n function IsToday(date: number | string | Date): boolean;\n\n\n // used widgets Inner Begin\n // used widgets - Don\'t touch me\n // used widgets Inner End\n\n // repeater scope Inner Begin\n // repeater scope - Don\'t touch me\n // repeater scope Inner End\n}\n\n// Global For Begin\ndeclare const $for: {\n // Global For Inner Begin\n // For 循环变量 - Don\'t touch me\n // Global For Inner End\n};\ndeclare const forItems = $for;\n// Global For End\n\n// $page Begin\ndeclare namespace $page {\n /**\n * 页面 ID\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "页面 ID"}\n */\nconst id: string;\n/**\n * 页面名称\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "页面名称"}\n */\nconst label: string;\n/**\n * 页面路径\n *\n * @privateForWeDa\n * {"group": "sysVar", "displayType": "string", "displayName": "页面路径"}\n */\nconst path: string;\n\n/**\n * 页面数据对象\n */\nnamespace dataset {\n /**\n * 页面变量\n */\n const state: {\n // Page State Inner Begin\n // Page State 页面变量 - Don\'t touch me\n // Page State Inner End\n };\n /**\n * 页面参数\n */\n const params: {\n // Page Param Inner Begin\n // Page Param 页面参数 - Don\'t touch me\n // Page Param Inner End\n };\n}\n\n/**\n * 页面定义 handler 方法\n */\nnamespace handler {\n // Page Handler Inner Begin\n // Page Handler 页面方法 - Don\'t touch me\n // Page Handler Inner End\n}\n\n/**\n * 设置页面变量\n */\nfunction setState(userSetState: Record<string, any>): void;\n\n}\n// $page End\n\n// $comp Begin\ndeclare namespace $comp {\n namespace props {\n const data: {\n // Comp Prop Data Inner Begin\n // Comp Prop Data 组件属性 - Don\'t touch me\n // Comp Prop Data Inner End\n };\n\n namespace events {\n // Comp Prop Events Inner Begin\n // Comp Prop Events 组件事件 - Don\'t touch me\n // Comp Prop Events Inner End\n }\n }\n\n namespace dataset {\n const state: {\n // Comp State Inner Begin\n // Comp State 组件变量 - Don\'t touch me\n // Comp State Inner End\n };\n }\n\n namespace handler {\n // Comp Handler Inner Begin\n // Comp Handler 组件方法 - Don\'t touch me\n // Comp Handler Inner End\n }\n}\n// $comp End\n\n// Global Formula Begin\n\n/**\n* 绝对值\n*\n* @remarks\n* 计算传入数字的绝对值\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算传入数字的绝对值" , "definition": "ABS(数字):数字"}\n*/\ndeclare function ABS(num: number): number;\n/**\n* 最小值\n*\n* @remarks\n* 返回一组数字中的最小值\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最小值" , "definition": "Min(数字1, [数字2, ...]):数字"}\n*/\ndeclare function Min(...args: number[]): number;\n/**\n* 最大值\n*\n* @remarks\n* 返回一组数字中的最大值\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最大值" , "definition": "Max(数字1, [数字2, ...]):数字"}\n*/\ndeclare function Max(...args: number[]): number;\n/**\n* 平均值\n*\n* @remarks\n* 返回一组数字中的平均值\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的平均值" , "definition": "Average(数字1, [数字2, ...]):数字"}\n*/\ndeclare function Average(...args: number[]): number;\n/**\n* 向下取整\n*\n* @remarks\n* 返回传入数字向下取整的结果\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向下取整的结果" , "definition": "Floor(数字):数字"}\n*/\ndeclare function Floor(num: number): number;\n/**\n* 向上取整\n*\n* @remarks\n* 返回传入数字向上取整的结果\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向上取整的结果" , "definition": "Ceiling(数字):数字"}\n*/\ndeclare function Ceiling(num: number): number;\n/**\n* 四舍五入\n*\n* @remarks\n* 返回传入数字四舍五入后的结果\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字四舍五入后的结果" , "definition": "Round(数字):数字"}\n*/\ndeclare function Round(num: number): number;\n/**\n* 求和\n*\n* @remarks\n* 返回一组数字中的和\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的和" , "definition": "Sum(数字1, [数字2, ...]):数字"}\n*/\ndeclare function Sum(...args: number[]): number;\n/**\n* 随机数\n*\n* @remarks\n* 返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数" , "definition": "Rand(数字):数字"}\n*/\ndeclare function Rand(num: number): number;\n\ndeclare interface IIfObjectParam {\ncondition: boolean;\nconsequent?: any;\nalternate?: any;\n}\n/**\n* 条件分支\n*\n* @remarks\n* 按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, \'您好\', \'hello\')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。" , "definition": "If(判断条件, 满足时返回的值, 不满足时返回的值):任何类型"}\n*/\ndeclare function If(params: IIfObjectParam): any;\ndeclare function If(condition: boolean, consequent?: any, alternate?: any): any;\n/**\n* 是否为空\n*\n* @remarks\n* 判断传入的文本是否为空\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty(\'hello\')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的文本是否为空" , "definition": "IsEmpty(值):布尔值"}\n*/\ndeclare function IsEmpty(text: string | string[]): boolean;\n/**\n* 是否为null\n*\n* @remarks\n* 判断传入的字段值是否包含数据,即不为 NULL\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的字段值是否包含数据,即不为 NULL" , "definition": "NotNull(字段):布尔值"}\n*/\ndeclare function NotNull(val: any): boolean;\n/**\n* 与\n*\n* @remarks\n* 用于确定所有判断条件是否为真\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "用于确定所有判断条件是否为真" , "definition": "And(判断条件1, [判断条件2,...]):布尔值"}\n*/\ndeclare function And(...args: boolean[]): boolean;\n/**\n* 或\n*\n* @remarks\n* 任意一个判断条件为真,则结果为真;所有条件为否,结果才为否\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "任意一个判断条件为真,则结果为真;所有条件为否,结果才为否" , "definition": "Or(判断条件1, [判断条件2,...]):布尔值"}\n*/\ndeclare function Or(...args: boolean[]): boolean;\n\n/**\n* 获取文本长度\n*\n* @remarks\n* 获取传入文本的字符数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len(\'文本\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "获取传入文本的字符数" , "definition": "Len(文本):数字"}\n*/\ndeclare function Len(text: string): number;\n/**\n* 是否包含指定文本\n*\n* @remarks\n* 判断文本 1 是否包含文本 2\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains(\'文本1\', \'文本2\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断文本 1 是否包含文本 2" , "definition": "Contains(文本1, 文本2):布尔值"}\n*/\ndeclare function Contains(text1: string, text2: string): boolean;\n/**\n* 拆分文本\n*\n* @remarks\n* 根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split("张三,李四,王五", ",")\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split(\'文本1\', \'文本2\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split(\'张三,李四,王五\', \',\')" , "definition": "Split(文本1,文本2):文本数组"}\n*/\ndeclare function Split(text1: string, text2: string): string[];\n/**\n* 删除开头/结尾空格和制表符\n*\n* @remarks\n* 删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim(\'文本\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除" , "definition": "Trim(文本):文本"}\n*/\ndeclare function Trim(text: string): string;\n/**\n* 转换为大写\n*\n* @remarks\n* 将传入的文本转为全大写文本\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper(\'文本\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全大写文本" , "definition": "Upper(文本):文本"}\n*/\ndeclare function Upper(text: string): string;\n/**\n* 转换为小写\n*\n* @remarks\n* 将传入的文本转为全小写文本\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower(\'文本\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全小写文本" , "definition": "Lower(文本):文本"}\n*/\ndeclare function Lower(text: string): string;\n/**\n* 文本拼接\n*\n* @remarks\n* 返回多个文本拼接后的新文本\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat(\'文本1\', \'文本2\')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回多个文本拼接后的新文本" , "definition": "Concat(文本1, [文本2,...]):文本"}\n*/\ndeclare function Concat(...text: string[]): string;\n\n/**\n* 获取现在时间\n*\n* @remarks\n* 返回当前系统时间,通常与其他日期时间函数搭配使用\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回当前系统时间,通常与其他日期时间函数搭配使用" , "definition": "Now():日期时间"}\n*/\ndeclare function Now(): number;\n/**\n* 获取时间戳\n*\n* @remarks\n* 根据输入的日期时间返回时间戳\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回时间戳" , "definition": "Timestamp(日期时间):日期时间"}\n*/\ndeclare function Timestamp(arg: number | string | Date): number;\n/**\n* 获取秒数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的秒数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的秒数" , "definition": "Second(日期时间):数字"}\n*/\ndeclare function Second(arg: number | string | Date): number;\n/**\n* 获取分钟数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的分钟部分\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的分钟部分" , "definition": "Minute(日期时间):数字"}\n*/\ndeclare function Minute(arg: number | string | Date): number;\n/**\n* 获取小时数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的小时部分,24小时制\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的小时部分,24小时制" , "definition": "Hour(日期时间):数字"}\n*/\ndeclare function Hour(arg: number | string | Date): number;\n/**\n* 获取天数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的日部分,范围为 1-31\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的日部分,范围为 1-31" , "definition": "Day(日期时间):数字"}\n*/\ndeclare function Day(arg: number | string | Date): number;\n/**\n* 获取星期数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的星期数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的星期数" , "definition": "DayOfWeek(日期时间):数字"}\n*/\ndeclare function DayOfWeek(arg: number | string | Date): number;\n/**\n* 获取月数\n*\n* @remarks\n* 根据输入的日期时间返回该时间的月份\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的月份" , "definition": "Month(日期时间):数字"}\n*/\ndeclare function Month(arg: number | string | Date): number;\n/**\n* 获取年份\n*\n* @remarks\n* 根据输入的日期时间返回该时间的年份\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的年份" , "definition": "Year(日期时间):数字"}\n*/\ndeclare function Year(arg: number | string | Date): number;\n/**\n* 使用年月日创建日期时间\n*\n* @remarks\n* 根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)" , "definition": "GetDate(数字,数字,数字):日期时间"}\n*/\ndeclare function GetDate(year: number, month: number, day: number): number;\n/**\n* 使用时间日期文本创建日期时间\n*\n* @remarks\n* 将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue("2021-12-11 01:19:12", "yyyy-MM-dd HH:mm:ss")\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue(\'2011-07-02\', \'YYYY:MM:DD\')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue(\'2021-12-11 01:19:12\', \'yyyy-MM-dd HH:mm:ss\')" , "definition": "DateTimeValue(文本, 文本):日期时间"}\n*/\ndeclare function DateTimeValue(arg: string, val: string): number;\n/**\n* 计算年龄\n*\n* @remarks\n* 根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))" , "definition": "Age(日期时间,日期时间):数字"}\n*/\ndeclare function Age(arg: number | string | Date, val: number | string | Date): number;\n/**\n* 计算当前年龄\n*\n* @remarks\n* 计算当前年龄,例如 AgeOfNow(Date(2017,3,24))\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算当前年龄,例如 AgeOfNow(Date(2017,3,24))" , "definition": "AgeOfNow(日期时间):数字"}\n*/\ndeclare function AgeOfNow(arg: number | string | Date): number;\n/**\n* 增加 X 天\n*\n* @remarks\n* 在传入的日期时间上增加 X 天,支持负数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期时间上增加 X 天,支持负数" , "definition": "DateAdd(日期时间, 数字):日期时间"}\n*/\ndeclare function DateAdd(arg: number | string | Date, day: number): number;\n/**\n* 增加 X 月\n*\n* @remarks\n* 在传入的日期和时间上增加 X 月,支持负数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 月,支持负数" , "definition": "MonthAdd(日期时间, 数字):日期时间"}\n*/\ndeclare function MonthAdd(arg: number | string | Date, month: number): number;\n/**\n* 增加 X 年\n*\n* @remarks\n* 在传入的日期和时间上增加 X 年,支持负数\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 年,支持负数" , "definition": "YearAdd(日期时间, 数字):日期时间"}\n*/\ndeclare function YearAdd(arg: number | string | Date, year: number): number;\n/**\n* 天数差\n*\n* @remarks\n* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "DateDiff(日期时间, 日期时间):数字"}\n*/\ndeclare function DateDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 小时差\n*\n* @remarks\n* 返回两个日期时间字段之间的小时差,如果为同一小时,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的小时差,如果为同一小时,差数为零" , "definition": "HourDiff(日期时间, 日期时间):数字"}\n*/\ndeclare function HourDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 分钟差\n*\n* @remarks\n* 返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零" , "definition": "MinuteDiff(日期时间, 日期时间):数字"}\n*/\ndeclare function MinuteDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 秒数差\n*\n* @remarks\n* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "SecondDiff(日期时间, 日期时间):数字"}\n*/\ndeclare function SecondDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 月数差\n*\n* @remarks\n* 返回两个日期时间字段之间的月数差,如果为同一月,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的月数差,如果为同一月,差数为零" , "definition": "MonthDiff(日期时间, 日期时间):数字"}\n*/\ndeclare function MonthDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 年数差\n*\n* @remarks\n* 返回两个日期时间字段之间的年数差,如果为同一年,差数为零\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的年数差,如果为同一年,差数为零" , "definition": "YearDiff(日期时间, 日期时间):数字"}\n*/\ndeclare function YearDiff(startDay: number | string | Date, endDay: number | string | Date): number;\n/**\n* 日期时间格式化\n*\n* @remarks\n* 格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), "yyyy-MM-dd HH:mm:ss")\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, \'YYYY-MM-DD HH:mm:ss\')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), \'yyyy-MM-dd HH:mm:ss\')" , "definition": "DateText(日期时间, 文本):文本"}\n*/\ndeclare function DateText(createdTime: number | string | Date, text: string): string;\n/**\n* 是否为今天\n*\n* @remarks\n* 判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))\n*\n* @privateForWeDa\n* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))" , "definition": "IsToday(日期时间):布尔值"}\n*/\ndeclare function IsToday(date: number | string | Date): boolean;\n\n\n// Global Formula End\n',[4,Promise.all(Object.keys(e).map((function(t){return i(r,void 0,void 0,(function(){var r,i,s,o;return a(this,(function(a){switch(a.label){case 0:if(!(r=jc[t]))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Gc(e[t],t)];case 2:return i=a.sent(),s=i[0],i[1].forEach((function(e){n=n.replace(e.from,e.to)})),n=n.replace(r,s+"\n"+r),[3,4];case 3:return o=a.sent(),console.error(o),[3,4];case 4:return[2]}}))}))})))];case 1:return s.sent(),n=(null==t?void 0:t.isCompMode)?n.replace(/^\/\/ \$page Begin[\s\S]*^\/\/ \$page End$/m,""):n.replace(/^\/\/ \$comp Begin[\s\S]*^\/\/ \$comp End$/m,""),(null==t?void 0:t.needGlobalFormula)||(n=n.replace(/^\/\/ Global Formula Begin[\s\S]*^\/\/ Global Formula End$/m,"")),(null==t?void 0:t.needGlobalFor)||(n=n.replace(/^\/\/ Global For Begin[\s\S]*^\/\/ Global For End$/m,"")),(null==t?void 0:t.needRepeaterScope)||(n=n.replace(/\/\/ repeater scope Inner Begin[\s\S]*\/\/ repeater scope Inner End$/m,"")),[2,n]}}))}))}function Uc(e){var t=e.fieldName,n=e.title,r=e.description,i=e.type,a=e.dataFieldInfo,s=e.group,o=e.schema,c=e.subGroup,p=e.baseClass,l=e.datasource;return(n||t?"".concat(n||t,"\n").concat(r||""):"")+"\n@privateForWeDa\n".concat(JSON.stringify({group:s,displayType:i,displayName:n||"",schema:o,subGroup:c,baseClass:p,datasource:l,dataFieldInfo:a}))}function Gc(t,r){return i(this,void 0,void 0,(function(){function s(e,t,n){var r=Mn(e);return Mc.traverse(r,(function(e,r,i){var a;if((null==r?void 0:r.type)&&!(null===(a=null==r?void 0:r.type)||void 0===a?void 0:a.type)){var s=null;if(n)2===i.length&&"properties"===(null==i?void 0:i[0])&&(s=r.properties||r.items?r:null);var o=r.type;t===Fc.DATA_FIELD&&(o={email:"email",url:"url",tel:"tel",phone:"phone","x-image":"image","x-rtf":"rtf",datetime:"datetime",date:"date",time:"time","x-enum":"enum","x-location":"location","x-file":"file",related:"related","father-son":"father-son","x-autonumber":"autonumber","x-area-code":"area-code",function:"function"}[r.format]||o),r.description=Uc({fieldName:e,title:r.title,description:r.description,group:t,type:o,dataFieldInfo:vc(r,["type","format","x-system"]),schema:s})}})),r.description="",r}function o(e){var t=e.trim();return t.endsWith("[]")?t="array":t.endsWith("}")&&(t="object"),t}function c(e,t){return"".concat(e.replace(/-/g,"_"),"_").concat(t)}function p(e,t){return void 0===t&&(t=!1),i(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return[4,Kc(e)];case 1:return(n=r.sent()).search(/^export interface IWeDa/)>=0?(n=(n=n.replace(/^export interface.*$/m,"")).substring(0,n.length-2),t&&(n="{".concat(n,"}"))):n=n.replace(/^export type IWeDa =/m,""),[2,n]}}))}))}var l,u,d,h,f,m;return a(this,(function(v){switch(v.label){case 0:return l=[],(m={})[e.IInputDataType.globalState]=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,p(s(e,Fc.GLOBAL_VAR,!0))];case 1:return[2,t.sent()]}}))}))},m[e.IInputDataType.pageState]=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,p(s(e,Fc.PAGE_VAR,!0))];case 1:return[2,t.sent()]}}))}))},m[e.IInputDataType.pageParams]=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,p(s(e,Fc.PAGE_PARAM))];case 1:return[2,t.sent()]}}))}))},m[e.IInputDataType.globalCommonCodes]=function(e){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){return i(t,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return[4,Xc(e.code)];case 1:return t=n.sent(),[2,"namespace ".concat(e.name," { ").concat(t," }")]}}))}))})))];case 1:return[2,n.sent().join("\n")]}}))}))},m[e.IInputDataType.pageHandlerCodes]=function(e){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return"{\n data?: {\n target?: {\n [key: string]: any\n }\n },\n event?: {\n target?: EventTarget\n currentTarget?: EventTarget\n detail?: {\n detail?: {\n [key: string]: any\n }\n }\n }\n forItems?: {\n [key: string]: any\n }\n }",[4,Promise.all(e.map((function(e){return i(t,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,Xc(e.code)];case 1:return[2,t.sent().replace(/default function\s*\([\s\S]*?\)/,"function ".concat(e.name," (params: ").concat("{\n data?: {\n target?: {\n [key: string]: any\n }\n },\n event?: {\n target?: EventTarget\n currentTarget?: EventTarget\n detail?: {\n detail?: {\n [key: string]: any\n }\n }\n }\n forItems?: {\n [key: string]: any\n }\n }",")"))]}}))}))})))];case 1:return[2,n.sent().join("\n")]}}))}))},m[e.IInputDataType.compHandlerCodes]=function(e){return this.pageHandlerCodes(e)},m[e.IInputDataType.compPropEvents]=function(e){return e.map((function(e){return"function ".concat(e,"(data?: ").concat("any","): void")})).join("\n")},m[e.IInputDataType.usedComponents]=function(e){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){return i(t,void 0,void 0,(function(){var t,n,r,o,l=this;return a(this,(function(u){switch(u.label){case 0:return t="",e.exportProperties?[4,p(s(e.exportProperties))]:[3,2];case 1:t=u.sent(),u.label=2;case 2:return n="",e.exportMethods?[4,Promise.all(e.exportMethods.map((function(e){return i(l,void 0,void 0,(function(){var t,n;return a(this,(function(r){switch(r.label){case 0:return t="",e.input?[4,p(e.input)]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return n="void",e.output?[4,p(e.output,!0)]:[3,4];case 3:n=r.sent(),r.label=4;case 4:return[2,"\n /**\n *\n */\n ".concat(e.name," (").concat(t.trim().replace(/\n/g,","),"): ").concat(n)]}}))}))})))]:[3,4];case 3:r=u.sent(),n=r.join("\n"),u.label=4;case 4:return o=c(e.module,e.component),[2,"\n /**\n ".concat(Uc({fieldName:o,schema:e.exportProperties}).split("\n").map((function(e){return"* ".concat(e)})).join("\n"),"\n */\n declare class ").concat(o," extends UserWidget {\n\n ").concat(t,"\n\n ").concat(n,"\n }\n ")]}}))}))})))];case 1:return[2,n.sent().join("\n")]}}))}))},m[e.IInputDataType.usedWidgets]=function(e){return e.map((function(e){if(e.idList&&e.idList.length>0){var t=c(e.module,e.component);return e.idList.map((function(e){return"\n /**\n ".concat(Uc({fieldName:e,title:"",description:"",group:Fc.COMPONENT,type:"component",baseClass:t,datasource:"$".concat(e,"_start$ $").concat(e,"_end$")}).split("\n").map((function(e){return"* ".concat(e)})).join("\n"),"\n */\n const ").concat(e,": ").concat(t)})).join("\n")}return""})).join("\n")},m[e.IInputDataType.repeaterScope]=function(e){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){return i(t,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return t="",e.itemData.title?[4,p(s(e.itemData,Fc.DATA_FIELD),!0)]:[3,2];case 1:return t=n.sent(),[3,4];case 2:return[4,p(e.itemData,!0)];case 3:t=n.sent(),n.label=4;case 4:return[2,"\n /**\n ".concat(Uc({fieldName:e.currentItemAlias,title:"当前项值",description:"",group:Fc.REPEATER,type:o(t),schema:e.itemData,subGroup:e.widgetId}).split("\n").map((function(e){return"* ".concat(e)})).join("\n"),"\n */\n const ").concat(e.currentItemAlias,": ").concat(t,"\n /**\n ").concat(Uc({fieldName:e.currentIndexAlias,title:"当前下标",description:"",group:Fc.REPEATER,type:"number",subGroup:e.widgetId}).split("\n").map((function(e){return"* ".concat(e)})).join("\n"),"\n */\n const ").concat(e.currentIndexAlias,": number\n ")]}}))}))})))];case 1:return[2,n.sent().join("\n")]}}))}))},m[e.IInputDataType.redefineAnyType]=function(e){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(r){switch(r.label){case 0:return[4,Promise.all(e.map((function(e){return i(t,void 0,void 0,(function(){var t,r,u,d,h,f=this;return a(this,(function(m){switch(m.label){case 0:return t=c(e.module,e.component),r="".concat(e.widgetId,"_").concat(t),l.push({from:new RegExp("(const ".concat(e.widgetId,"): .*")),to:"$1: ".concat(r)}),u={},[4,Promise.all(e.updateProps.map((function(e){return i(f,void 0,void 0,(function(){var r,i,c,l,d,h,f,m,v,y;return a(this,(function(a){switch(a.label){case 0:return r=s(e.widgetPropTypeSchema,Fc.DATA_FIELD),[4,p(n(n({},e.widgetPropTypeSchema),r),!0)];case 1:return i=a.sent(),c="".concat(e.datasource.name,"_").concat(e.widgetPropTypeSchema.type),u[c]?u[c].fields.push({name:e.widgetPropName,title:e.widgetPropTitle}):u[c]={fields:[{name:e.widgetPropName,title:e.widgetPropTitle}],schema:e.widgetPropTypeSchema,name:e.datasource.name,title:e.datasource.title,id:e.datasource.id,type:e.datasource.type},l=e.widgetPropName.includes("."),d=[],h={},f="",m=[],l&&(d=e.widgetPropName.split("."),$n(h,e.widgetPropName,"$$schema$$"),v=d[0],y=d.slice(1),f=v,m=y),[2,"\n /**\n ".concat(Uc({fieldName:e.widgetPropName,title:e.widgetPropTypeSchema.title,description:e.widgetPropTypeSchema.description,group:void 0,type:o(i)}).split("\n").map((function(e){return"* ".concat(e)})).join("\n"),"\n */\n ").concat(l?"".concat(f,": Omit<").concat(t,"['").concat(f,"'], '").concat(m.join("."),"'> & ").concat(JSON.stringify(h[f]).replace('"$$schema$$"',i)):"".concat(e.widgetPropName,": ").concat(i),"\n ")]}}))}))})))];case 1:return d=m.sent(),(h=Object.values(u)).length>0&&l.push({from:new RegExp("(\\$".concat(e.widgetId,"_start\\$).*(\\$").concat(e.widgetId,"_end\\$)")),to:"$1".concat(encodeURIComponent(JSON.stringify(h)),"$2")}),[2,"\n declare class ".concat(r," extends ").concat(t," {\n ").concat(d.join("\n"),"\n }\n ")]}}))}))})))];case 1:return[2,r.sent().join("\n")]}}))}))},u=m,d="",t?(h=u[r])?[4,h.call(u,t)]:[3,2]:[2,[d,l]];case 1:d=v.sent(),v.label=2;case 2:return(f=d)?[3,4]:[4,p(t)];case 3:f=v.sent(),v.label=4;case 4:return[2,[d=f,l]]}}))}))}var Hc="\nimportScripts('https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/release/_url/devtools/typescriptServices.min.js');\nimportScripts('https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/release/_url/devtools/ts-lib.min.js');\n\nconst files = {\n \"foo.ts\": '',\n \"lib.d.ts\": libFileMap['lib.es5.d.ts']\n};\n\nfunction createLanguageService() {\n return ts.createLanguageService({\n getCompilationSettings() {\n return {};\n },\n getScriptFileNames() {\n return [\"foo.ts\", \"lib.d.ts\"];\n },\n getScriptVersion(_fileName) {\n // 这样可避免使用缓存\n if (_fileName === 'foo.ts')\n return 'v_' + Math.random();\n return ''\n },\n getScriptSnapshot(fileName) {\n if (fileName === \".ts\") {\n return ts.ScriptSnapshot.fromString(\"\");\n }\n return ts.ScriptSnapshot.fromString(files[fileName] || \"\");\n },\n getCurrentDirectory: () => \".\",\n getDefaultLibFileName(options) {\n return 'lib.d.ts'\n },\n fileExists: name => !!files[name],\n readFile: name => {\n return files[name]\n }\n });\n}\nconst languageService = createLanguageService();\n\nfunction transpile(code) {\n files[\"foo.ts\"] = code\n const result = languageService.getEmitOutput(\n \"foo.ts\",\n /*emitOnlyDtsFiles*/ true,\n /*forceDtsEmit*/ true\n )\n return result.outputFiles[0].text.trim()\n}\n\naddEventListener('message', (message) => {\n const {action, data: {id, code}} = message.data\n switch(action) {\n case 'dts':\n const dts = transpile(code)\n postMessage({action: 'dts_back', data: {id, dts}})\n break\n default:\n break\n }\n})\n";function $c(e,t){var n={};return function(){var r,i=null===(r=n[e])||void 0===r?void 0:r.typescriptWorker;if(!i){var a={},s=URL.createObjectURL(new Blob([t]));(i=new Worker(s+(0===s.search("blob:http://localhost")?"?name="+e:""))).onmessage=function(e){if("dts_back"===e.data.action){var t=e.data.data,n=t.id,r=t.dts;a[n]&&a[n](r)}},n[e]={typescriptWorker:i,sendMessageCallbackFn:a}}return{sendMessage:function(t,r){var i=n[e],a=i.typescriptWorker,s=i.sendMessageCallbackFn,o=Math.random().toString(36).substring(2,5);t.data.id=o,s[o]=r,a.postMessage(t)}}}}var zc=$c("transpileToDTS",Hc);function Xc(e){return new Promise((function(t){zc().sendMessage({action:"dts",data:{code:e}},(function(e){t(e)}))}))}var qc="\nimportScripts('https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/release/_url/devtools/json-schema-to-typescript-for-browser.min.js');\n\nfunction transpile(jsonschema) {\n return jstt.compile(jsonschema, 'IWeDa', { additionalProperties: false, bannerComment: '', format: false })\n}\n\naddEventListener('message', (message) => {\n const {action, data: {id, jsonschema}} = message.data\n switch(action) {\n case 'dts':\n transpile(jsonschema).then(dts => {\n postMessage({action: 'dts_back', data: {id, dts}})\n }).catch(err => postMessage({action: 'dts_back', data: {id, dts: 'Parse error:' + err.message}}))\n break\n default:\n break\n }\n})\n",Yc=$c("compileJSONToDTS",qc);function Kc(e){return new Promise((function(t,n){Yc().sendMessage({action:"dts",data:{jsonschema:e}},(function(e){0===e.search("Parse error:")?n(e):t(e)}))}))}var Jc=String,Qc=function(){return{isColorSupported:!1,reset:Jc,bold:Jc,dim:Jc,italic:Jc,underline:Jc,inverse:Jc,hidden:Jc,strikethrough:Jc,black:Jc,red:Jc,green:Jc,yellow:Jc,blue:Jc,magenta:Jc,cyan:Jc,white:Jc,gray:Jc,bgBlack:Jc,bgRed:Jc,bgGreen:Jc,bgYellow:Jc,bgBlue:Jc,bgMagenta:Jc,bgCyan:Jc,bgWhite:Jc}},Zc=Qc(),ep=Qc;Zc.createColors=ep;var tp,np=(tp=Object.freeze({__proto__:null,default:{}}))&&tp.default||tp;class rp extends Error{constructor(e,t,n,r,i,a){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),a&&(this.plugin=a),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,rp)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=Zc.isColorSupported),np&&e&&(t=np(t));let n,r,i=t.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),o=String(s).length;if(e){let{bold:e,red:t,gray:i}=Zc.createColors(!0);n=n=>e(t(n)),r=e=>i(e)}else n=r=e=>e;return i.slice(a,s).map(((e,t)=>{let i=a+1+t,s=" "+(" "+i).slice(-o)+" | ";if(i===this.line){let t=r(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(s)+e+"\n "+t+n("^")}return" "+r(s)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}var ip=rp;rp.default=rp;var ap={isClean:Symbol("isClean"),my:Symbol("my")};const sp={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class op{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,"before");a&&this.builder(a),this.stringify(i,t!==r||n)}}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],void 0!==r))return r;let i=e.parent;if("before"===n){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return sp[n];let a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[n])return a.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let i="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[i]?r=this[i](a,e):a.walk((e=>{if(r=e.raws[t],void 0!==r)return!1}))}var s;return void 0===r&&(r=sp[n]),a.rawCache[n]=r,r}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}}var cp=op;function pp(e,t){new cp(t).stringify(e)}op.default=op;var lp=pp;pp.default=pp;let{isClean:up,my:dp}=ap;function hp(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],a=typeof i;"parent"===r&&"object"===a?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>hp(e,n))):("object"===a&&null!==i&&(i=hp(i)),n[r]=i)}return n}class fp{constructor(e={}){this.raws={},this[up]=!1,this[dp]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:n,end:r}=this.rangeBy(t);return this.source.input.error(e,{line:n.line,column:n.column},{line:r.line,column:r.column},t)}return new ip(e)}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=lp){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=hp(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new cp).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let a=t.get(r.input);null==a&&(a=i,t.set(r.input,i),i++),n[e]={inputId:a,start:r.start,end:r.end}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}positionInside(e){let t=this.toString(),n=this.source.start.column,r=this.source.start.line;for(let i=0;i<e;i++)"\n"===t[i]?(n=1,r+=1):n+=1;return{line:r,column:n}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},n=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r),n=this.positionInside(r+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?n={line:e.end.line,column:e.end.column}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={line:t.line,column:t.column+1}),{start:t,end:n}}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[up]){this[up]=!1;let e=this;for(;e=e.parent;)e[up]=!1}}get proxyOf(){return this}}var mp=fp;fp.default=fp;class vp extends mp{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var yp=vp;vp.default=vp;var gp=Object.freeze({__proto__:null,customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r},nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}});let{SourceMapConsumer:bp,SourceMapGenerator:xp}=np,{existsSync:wp,readFileSync:Cp}=np,{dirname:kp,join:Sp}=np;class _p{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=kp(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new bp(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}loadFile(e){if(this.root=kp(e),wp(e))return this.mapFile=e,Cp(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof bp)return xp.fromSourceMap(t).toString();if(t instanceof xp)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=Sp(kp(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}var Tp=_p;_p.default=_p;let{SourceMapConsumer:Pp,SourceMapGenerator:Ep}=np,{fileURLToPath:Ip,pathToFileURL:Dp}=np,{resolve:Ap,isAbsolute:Np}=np,{nanoid:Op}=gp,Lp=Symbol("fromOffsetCache"),Rp=Boolean(Pp&&Ep),Mp=Boolean(Ap&&Np);class Fp{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Mp||/^\w+:\/\//.test(t.from)||Np(t.from)?this.file=t.from:this.file=Ap(t.from)),Mp&&Rp){let e=new Tp(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+Op(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[Lp])n=this[Lp];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[Lp]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{line:r+1,col:e-n[r]+1}}error(e,t,n,r={}){let i,a,s;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);a=e.line,s=e.col}else a=r.line,s=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let o=this.origin(t,n,a,s);return i=o?new ip(e,void 0===o.endLine?o.line:{line:o.line,column:o.column},void 0===o.endLine?o.column:{line:o.endLine,column:o.endColumn},o.source,o.file,r.plugin):new ip(e,void 0===a?t:{line:t,column:n},void 0===a?n:{line:a,column:s},this.css,this.file,r.plugin),i.input={line:t,column:n,endLine:a,endColumn:s,source:this.css},this.file&&(Dp&&(i.input.url=Dp(this.file).toString()),i.input.file=this.file),i}origin(e,t,n,r){if(!this.map)return!1;let i,a,s=this.map.consumer(),o=s.originalPositionFor({line:e,column:t});if(!o.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({line:n,column:r})),a=Np(o.source)?Dp(o.source):new URL(o.source,this.map.consumer().sourceRoot||Dp(this.map.mapFile));let c={url:a.toString(),line:o.line,column:o.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===a.protocol){if(!Ip)throw new Error("file: protocol is not available in this PostCSS build");c.file=Ip(a)}let p=s.sourceContentFor(o.source);return p&&(c.source=p),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ap(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}var jp=Fp;Fp.default=Fp,np&&np.registerInput&&np.registerInput(Fp);let{SourceMapConsumer:Vp,SourceMapGenerator:Bp}=np,{dirname:Wp,resolve:Up,relative:Gp,sep:Hp}=np,{pathToFileURL:$p}=np,zp=Boolean(Vp&&Bp),Xp=Boolean(Wp&&Up&&Gp&&Hp);var qp=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new jp(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||Wp(e.file);!1===this.mapOpts.sourcesContent?(t=new Vp(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Bp.fromSourceMap(e)}else this.map=new Bp({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?Wp(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=Wp(Up(t,this.mapOpts.annotation))),e=Gp(t,e)}toUrl(e){return"\\"===Hp&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}toFileUrl(e){if($p)return $p(e).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new Bp({file:this.outputFile()});let e,t,n=1,r=1,i="<no source>",a={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((s,o,c)=>{if(this.css+=s,o&&"end"!==c&&(a.generated.line=n,a.generated.column=r-1,o.source&&o.source.start?(a.source=this.sourcePath(o),a.original.line=o.source.start.line,a.original.column=o.source.start.column-1,this.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,this.map.addMapping(a))),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),r=s.length-t):r+=s.length,o&&"start"!==c){let e=o.parent||{raws:{}};("decl"===o.type||"atrule"===o.type&&!o.nodes)&&o===e.last&&!e.raws.semicolon||(o.source&&o.source.end?(a.source=this.sourcePath(o),a.original.line=o.source.end.line,a.original.column=o.source.end.column-1,a.generated.line=n,a.generated.column=r-2,this.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=r-1,this.map.addMapping(a)))}}))}generate(){if(this.clearAnnotation(),Xp&&zp&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}};class Yp extends mp{constructor(e){super(e),this.type="comment"}}var Kp=Yp;Yp.default=Yp;let Jp,Qp,Zp,el,{isClean:tl,my:nl}=ap;function rl(e){return e.map((e=>(e.nodes&&(e.nodes=rl(e.nodes)),delete e.source,e)))}function il(e){if(e[tl]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)il(t)}class al extends mp{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",a=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of a)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+a.length);return this.markDirty(),this}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=rl(Jp(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new yp(e)]}else if(e.selector)e=[new Qp(e)];else if(e.name)e=[new Zp(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Kp(e)]}let n=e.map((e=>(e[nl]||al.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[tl]&&il(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)));return n}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}al.registerParse=e=>{Jp=e},al.registerRule=e=>{Qp=e},al.registerAtRule=e=>{Zp=e},al.registerRoot=e=>{el=e};var sl=al;let ol,cl;al.default=al,al.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Zp.prototype):"rule"===e.type?Object.setPrototypeOf(e,Qp.prototype):"decl"===e.type?Object.setPrototypeOf(e,yp.prototype):"comment"===e.type?Object.setPrototypeOf(e,Kp.prototype):"root"===e.type&&Object.setPrototypeOf(e,el.prototype),e[nl]=!0,e.nodes&&e.nodes.forEach((e=>{al.rebuild(e)}))};class pl extends sl{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ol(new cl,this,e).stringify()}}pl.registerLazyResult=e=>{ol=e},pl.registerProcessor=e=>{cl=e};var ll=pl;pl.default=pl;let ul={};var dl=function(e){ul[e]||(ul[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};class hl{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var fl=hl;hl.default=hl;class ml{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new fl(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}var vl=ml;ml.default=ml;const yl="'".charCodeAt(0),gl='"'.charCodeAt(0),bl="\\".charCodeAt(0),xl="/".charCodeAt(0),wl="\n".charCodeAt(0),Cl=" ".charCodeAt(0),kl="\f".charCodeAt(0),Sl="\t".charCodeAt(0),_l="\r".charCodeAt(0),Tl="[".charCodeAt(0),Pl="]".charCodeAt(0),El="(".charCodeAt(0),Il=")".charCodeAt(0),Dl="{".charCodeAt(0),Al="}".charCodeAt(0),Nl=";".charCodeAt(0),Ol="*".charCodeAt(0),Ll=":".charCodeAt(0),Rl="@".charCodeAt(0),Ml=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fl=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,jl=/.[\n"'(/\\]/,Vl=/[\da-f]/i;var Bl=function(e,t={}){let n,r,i,a,s,o,c,p,l,u,d=e.css.valueOf(),h=t.ignoreErrors,f=d.length,m=0,v=[],y=[];function g(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},nextToken:function(e){if(y.length)return y.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(n=d.charCodeAt(m),n){case wl:case Cl:case Sl:case _l:case kl:r=m;do{r+=1,n=d.charCodeAt(r)}while(n===Cl||n===wl||n===Sl||n===_l||n===kl);u=["space",d.slice(m,r)],m=r-1;break;case Tl:case Pl:case Dl:case Al:case Ll:case Nl:case Il:{let e=String.fromCharCode(n);u=[e,e,m];break}case El:if(p=v.length?v.pop()[1]:"",l=d.charCodeAt(m+1),"url"===p&&l!==yl&&l!==gl&&l!==Cl&&l!==wl&&l!==Sl&&l!==kl&&l!==_l){r=m;do{if(o=!1,r=d.indexOf(")",r+1),-1===r){if(h||t){r=m;break}g("bracket")}for(c=r;d.charCodeAt(c-1)===bl;)c-=1,o=!o}while(o);u=["brackets",d.slice(m,r+1),m,r],m=r}else r=d.indexOf(")",m+1),a=d.slice(m,r+1),-1===r||jl.test(a)?u=["(","(",m]:(u=["brackets",a,m,r],m=r);break;case yl:case gl:i=n===yl?"'":'"',r=m;do{if(o=!1,r=d.indexOf(i,r+1),-1===r){if(h||t){r=m+1;break}g("string")}for(c=r;d.charCodeAt(c-1)===bl;)c-=1,o=!o}while(o);u=["string",d.slice(m,r+1),m,r],m=r;break;case Rl:Ml.lastIndex=m+1,Ml.test(d),r=0===Ml.lastIndex?d.length-1:Ml.lastIndex-2,u=["at-word",d.slice(m,r+1),m,r],m=r;break;case bl:for(r=m,s=!0;d.charCodeAt(r+1)===bl;)r+=1,s=!s;if(n=d.charCodeAt(r+1),s&&n!==xl&&n!==Cl&&n!==wl&&n!==Sl&&n!==_l&&n!==kl&&(r+=1,Vl.test(d.charAt(r)))){for(;Vl.test(d.charAt(r+1));)r+=1;d.charCodeAt(r+1)===Cl&&(r+=1)}u=["word",d.slice(m,r+1),m,r],m=r;break;default:n===xl&&d.charCodeAt(m+1)===Ol?(r=d.indexOf("*/",m+2)+1,0===r&&(h||t?r=d.length:g("comment")),u=["comment",d.slice(m,r+1),m,r],m=r):(Fl.lastIndex=m+1,Fl.test(d),r=0===Fl.lastIndex?d.length-1:Fl.lastIndex-2,u=["word",d.slice(m,r+1),m,r],v.push(u),m=r)}return m++,u},endOfFile:function(){return 0===y.length&&m>=f},position:function(){return m}}};class Wl extends sl{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}var Ul=Wl;let Gl,Hl;Wl.default=Wl,sl.registerAtRule(Wl);class $l extends sl{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}toResult(e={}){return new Gl(new Hl,this,e).stringify()}}$l.registerLazyResult=e=>{Gl=e},$l.registerProcessor=e=>{Hl=e};var zl=$l;$l.default=$l,sl.registerRoot($l);let Xl={split(e,t,n){let r=[],i="",a=!1,s=0,o=!1,c="",p=!1;for(let n of e)p?p=!1:"\\"===n?p=!0:o?n===c&&(o=!1):'"'===n||"'"===n?(o=!0,c=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(a=!0),a?(""!==i&&r.push(i.trim()),i="",a=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r},space:e=>Xl.split(e,[" ","\n","\t"]),comma:e=>Xl.split(e,[","],!0)};var ql=Xl;Xl.default=Xl;class Yl extends sl{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ql.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}var Kl=Yl;Yl.default=Yl,sl.registerRule(Yl);const Jl={empty:!0,space:!0};var Ql=class{constructor(e){this.input=e,this.root=new zl,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Bl(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new Kp;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new Kl;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,r=!1,i=null,a=[],s=e[1].startsWith("--"),o=[],c=e;for(;c;){if(n=c[0],o.push(c),"("===n||"["===n)i||(i=c),a.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=c),a.push("}");else if(0===a.length){if(";"===n){if(r)return void this.decl(o,s);break}if("{"===n)return void this.rule(o);if("}"===n){this.tokenizer.back(o.pop()),t=!0;break}":"===n&&(r=!0)}else n===a[a.length-1]&&(a.pop(),0===a.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;o.length&&(c=o[o.length-1][0],"space"===c||"comment"===c);)this.tokenizer.back(o.pop());this.decl(o,s)}else this.unknownWord(o)}rule(e){e.pop();let t=new Kl;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new yp;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e));"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a,s=[];for(;e.length&&(a=e[0][0],"space"===a||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}let o=e.some((e=>"space"!==e[0]&&"comment"!==e[0]));o&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,r,i=new Ul;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let a=!1,s=!1,o=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(o.length>0){for(r=o.length-1,n=o[r];n&&"space"===n[0];)n=o[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}o.push(e)}else o.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(i.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(i,"params",o),a&&(e=o[o.length-1],i.source.end=this.getPosition(e[3]||e[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n,r){let i,a,s,o,c=n.length,p="",l=!0;for(let e=0;e<c;e+=1)i=n[e],a=i[0],"space"!==a||e!==c-1||r?"comment"===a?(o=n[e-1]?n[e-1][0]:"empty",s=n[e+1]?n[e+1][0]:"empty",Jl[o]||Jl[s]||","===p.slice(-1)?l=!1:p+=i[1]):p+=i[1]:l=!1;if(!l){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:p,raw:r}}e[t]=p}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}colon(e){let t,n,r,i=0;for(let[a,s]of e.entries()){if(t=s,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return a}this.doubleColon(t)}r=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}};function Zl(e,t){let n=new jp(e,t),r=new Ql(n);try{r.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return r.root}var eu=Zl;Zl.default=Zl,sl.registerParse(Zl);let{isClean:tu,my:nu}=ap;const ru={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},iu={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},au={postcssPlugin:!0,prepare:!0,Once:!0};function su(e){return"object"==typeof e&&"function"==typeof e.then}function ou(e){let t=!1,n=ru[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function cu(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:ou(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function pu(e){return e[tu]=!1,e.nodes&&e.nodes.forEach((e=>pu(e))),e}let lu={};class uu{constructor(e,t,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof uu||t instanceof vl)r=pu(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=eu;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{r=e(t,n)}catch(e){this.processed=!0,this.error=e}r&&!r[nu]&&sl.rebuild(r)}else r=pu(t);this.result=new vl(e,r,n),this.helpers={...lu,result:this.result,postcss:lu},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||dl("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(su(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tu];)e[tu]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=lp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new qp(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[tu]=!0;let t=ou(e);for(let n of t)if(0===n)e.nodes&&e.each((e=>{e[tu]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(su(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return su(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(n.postcssVersion&&"production"!==process.env.NODE_ENV){let e=n.postcssPlugin,t=n.postcssVersion,r=this.result.processor.version,i=t.split("."),a=r.split(".");(i[0]!==a[0]||parseInt(i[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+r+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=n.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(su(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tu];){e[tu]=!0;let t=[cu(e)];for(;t.length>0;){let e=this.visitTick(t);if(su(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!iu[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!au[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,i=t.iterator;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[tu])return r[tu]=!0,void e.push(cu(r));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[tu]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}uu.registerPostcss=e=>{lu=e};var du=uu;uu.default=uu,zl.registerLazyResult(uu),ll.registerLazyResult(uu);class hu{constructor(e,t,n){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i=lp;this.result=new vl(this._processor,r,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let s=new qp(i,r,this._opts,t);if(s.isMap()){let[e,t]=s.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=eu;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||dl("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var fu=hu;hu.default=hu;class mu{constructor(e=[]){this.version="8.4.21",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new fu(this,e,t):new du(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}}var vu=mu;function yu(e,t){if(Array.isArray(e))return e.map((e=>yu(e)));let{inputs:n,...r}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:jp.prototype};n.map&&(n.map={...n.map,__proto__:Tp.prototype}),t.push(n)}}if(r.nodes&&(r.nodes=e.nodes.map((e=>yu(e,t)))),r.source){let{inputId:e,...n}=r.source;r.source=n,null!=e&&(r.source.input=t[e])}if("root"===r.type)return new zl(r);if("decl"===r.type)return new yp(r);if("rule"===r.type)return new Kl(r);if("comment"===r.type)return new Kp(r);if("atrule"===r.type)return new Ul(r);throw new Error("Unknown node type: "+e.type)}mu.default=mu,zl.registerProcessor(mu),ll.registerProcessor(mu);var gu=yu;function bu(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new vu(e)}yu.default=yu,bu.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new vu).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return bu([i(n)]).process(e,t)},i},bu.stringify=lp,bu.parse=eu,bu.fromJSON=gu,bu.list=ql,bu.comment=e=>new Kp(e),bu.atRule=e=>new Ul(e),bu.decl=e=>new yp(e),bu.rule=e=>new Kl(e),bu.root=e=>new zl(e),bu.document=e=>new ll(e),bu.CssSyntaxError=ip,bu.Declaration=yp,bu.Container=sl,bu.Processor=vu,bu.Document=ll,bu.Comment=Kp,bu.Warning=fl,bu.AtRule=Ul,bu.Result=vl,bu.Input=jp,bu.Rule=Kl,bu.Root=zl,bu.Node=mp,du.registerPostcss(bu);var xu=bu;bu.default=bu,xu.stringify,xu.fromJSON,xu.plugin,xu.parse,xu.list,xu.document,xu.comment,xu.atRule,xu.rule,xu.decl,xu.root,xu.CssSyntaxError,xu.Declaration,xu.Container,xu.Processor,xu.Document,xu.Comment,xu.Warning,xu.AtRule,xu.Result,xu.Input,xu.Rule,xu.Root,xu.Node;var wu=p((function(e){e.exports={isInlineComment(t){if("word"===t[0]&&"//"===t[1].slice(0,2)){const e=t,n=[];let r,i;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){n.push(t[1].substring(0,t[1].indexOf("\n"))),i=t[1].substring(t[1].indexOf("\n"));const e=this.input.css.valueOf().substring(this.tokenizer.position());i+=e,r=t[3]+e.length-i.length}else this.tokenizer.back(t);break}n.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}const a=["comment",n.join(""),e[2],r];return this.inlineComment(a),i&&(this.input=new jp(i),this.tokenizer=Bl(this.input)),!0}if("/"===t[1]){const n=this.tokenizer.nextToken({ignoreUnclosed:!0});if("comment"===n[0]&&/^\/\*/.test(n[1]))return n[0]="word",n[1]=n[1].slice(1),t[1]="//",this.tokenizer.back(n),e.exports.isInlineComment.bind(this)(t)}return!1}}}));wu.isInlineComment;var Cu={interpolation(e){const t=[e,this.tokenizer.nextToken()],n=["word","}"];if(t[0][1].length>1||"{"!==t[1][0])return this.tokenizer.back(t[1]),!1;for(e=this.tokenizer.nextToken();e&&n.includes(e[0]);)t.push(e),e=this.tokenizer.nextToken();const r=t.map((e=>e[1])),[i]=t,a=t.pop(),s=["word",r.join(""),i[2],a[2]];return this.tokenizer.back(e),this.tokenizer.back(s),!0}};const ku=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Su=/\.[0-9]/;var _u={isMixinToken:e=>{const[,t]=e,[n]=t;return("."===n||"#"===n)&&!1===ku.test(t)&&!1===Su.test(t)}};const Tu=/^url\((.+)\)/;const Pu=/:$/,Eu=/^:(\s+)?/;const{isInlineComment:Iu}=wu,{interpolation:Du}=Cu,{isMixinToken:Au}=_u,Nu=/(!\s*important)$/i;var Ou=class extends Ql{constructor(...e){super(...e),this.lastNode=null}atrule(e){Du.bind(this)(e)||(super.atrule(e),(e=>{const{name:t,params:n=""}=e;if("import"===t&&n.length){e.import=!0;const t=Bl({css:n});for(e.filename=n.replace(Tu,"$1");!t.endOfFile();){const[r,i]=t.nextToken();if("word"===r&&"url"===i)return;if("brackets"===r){e.options=i,e.filename=n.replace(i,"").trim();break}}}})(this.lastNode),(e=>{const{name:t,params:n=""}=e;if(":"===e.name.slice(-1)){if(Pu.test(t)){const[n]=t.match(Pu);e.name=t.replace(n,""),e.raws.afterName=n+(e.raws.afterName||""),e.variable=!0,e.value=e.params}if(Eu.test(n)){const[t]=n.match(Eu);e.value=n.replace(t,""),e.raws.afterName=(e.raws.afterName||"")+t,e.variable=!0}}})(this.lastNode))}decl(...e){super.decl(...e);/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;const t=e.findIndex((e=>"("===e[0])),n=e.reverse().find((e=>")"===e[0])),r=e.reverse().indexOf(n),i=e.splice(t,r).map((e=>e[1])).join("");for(const t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=i}init(e,t,n){super.init(e,t,n),this.lastNode=e}inlineComment(e){const t=new Kp,n=e[1].slice(2);if(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.inline=!0,t.raws.begin="//",/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{const e=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=e}}mixin(e){const[t]=e,n=t[1].slice(0,1),r=e.findIndex((e=>"brackets"===e[0])),i=e.findIndex((e=>"("===e[0]));let a="";if((r<0||r>3)&&i>0){const t=e.reduce(((e,t,n)=>")"===t[0]?n:e)),n=e.slice(i,t+i).map((e=>e[1])).join(""),[r]=e.slice(i),a=[r[2],r[3]],[s]=e.slice(t,t+1),o=[s[2],s[3]],c=["brackets",n].concat(a,o),p=e.slice(0,i),l=e.slice(t+1);(e=p).push(c),e=e.concat(l)}const s=[];for(const t of e)if(("!"===t[1]||s.length)&&s.push(t),"important"===t[1])break;if(s.length){const[t]=s,n=e.indexOf(t),r=s[s.length-1],i=[t[2],t[3]],a=[r[4],r[5]],o=["word",s.map((e=>e[1])).join("")].concat(i,a);e.splice(n,s.length,o)}const o=e.findIndex((e=>Nu.test(e[1])));o>0&&([,a]=e[o],e.splice(o,1));for(const t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,a&&(this.lastNode.important=!0,this.lastNode.raws.important=a)}other(e){Iu.bind(this)(e)||super.other(e)}rule(e){const t=e[e.length-1],n=e[e.length-2];if("at-word"===n[0]&&"{"===t[0]&&(this.tokenizer.back(t),Du.bind(this)(n))){const t=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([t]);for(const t of e.reverse())this.tokenizer.back(t);return}super.rule(e);/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){const[t]=e;"each"!==e[0][1]||"("!==e[1][0]?Au(t)?this.mixin(e):super.unknownWord(e):this.each(e)}},Lu=class extends cp{atrule(e,t){if(!e.mixin&&!e.variable&&!e.function)return void super.atrule(e,t);let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,r=e.params?this.rawValue(e,"params"):"";const i=e.raws.important||"";if(e.variable&&(r=e.value),void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r+i);else{const a=(e.raws.between||"")+i+(t?";":"");this.builder(n+r+a,e)}}comment(e){if(e.inline){const t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(`//${t}${e.text}${n}`,e)}else super.comment(e)}},Ru=p((function(e){e.exports={parse(e,t){const n=new jp(e,t),r=new Ou(n);return r.parse(),r.root.walk((e=>{const t=n.css.lastIndexOf(e.source.input.css);if(0===t)return;if(t+e.source.input.css.length!==n.css.length)throw new Error("Invalid state detected in postcss-less");const r=t+e.source.start.offset,i=n.fromOffset(t+e.source.start.offset);if(e.source.start={offset:r,line:i.line,column:i.col},e.source.end){const r=t+e.source.end.offset,i=n.fromOffset(t+e.source.end.offset);e.source.end={offset:r,line:i.line,column:i.col}}})),r.root},stringify(e,t){new Lu(t).stringify(e)},nodeToString(t){let n="";return e.exports.stringify(t,(e=>{n+=e})),n}}}));Ru.parse,Ru.stringify,Ru.nodeToString;var Mu=function(e,t,n){var r,i,a,s,o,c=function(e,t){return e.map((function(e){var n;if((null==e?void 0:e.module)===so&&"Form"===(null==e?void 0:e.component)&&(e=Fu(e)),(null===(n=null==e?void 0:e.extra)||void 0===n?void 0:n.commonStyle)&&(e.extra.commonStyle=function(e,t){return n=e,r=function(e,n){return Bu[e]||("number"==typeof n?t?n/=2:n*=2:/^((\d+\.)?\d+)(px)?$/.test(n)&&(n=n?null==n?void 0:n.replace("px",""):n,n=t?n?"".concat(co(Number(n)/2,3),"px"):n:n?"".concat(2*Number(n),"px"):n)),n},JSON.parse(JSON.stringify(n,r,2));var n,r}(e.extra.commonStyle,t),e.extra.commonStyle.self)){var r=es(e.extra.commonStyle,{toRem:!1,ignoreSelf:!0,addPXUnit:!0});["margin","padding","border"].forEach((function(t){e.extra.commonStyle.self[t]&&(e.extra.commonStyle.self[t]=r[t])}))}return(null==e?void 0:e.resources)&&(e.resources=e.resources.map((function(e){return"style"===e.codeType?e=Vu(e,t):e}))),e.items&&(e.items=c(e.items,t)),e}))},p=e.items;return t&&oo(null!==(r=e.schemaVersion)&&void 0!==r?r:"3.0.0","4.0.0")<0?(p=c(p,o=!0),e.resources=null===(i=e.resources)||void 0===i?void 0:i.map((function(e){return"style"===e.codeType?e=Vu(e,o):e})),e.schemaVersion="4.0.0",null==n||n("4.0.0")):!t&&oo(null!==(a=e.schemaVersion)&&void 0!==a?a:"3.0.0","4.0.0")>=0&&(p=c(p,o=!1),e.resources=null===(s=e.resources)||void 0===s?void 0:s.map((function(e){return"style"===e.codeType?e=Vu(e,o):e})),delete e.schemaVersion,null==n||n(void 0)),e.items=p,e};function Fu(e){var t,r,i,a,o,c,p,l,u,d;return(null==e?void 0:e.module)===ao&&"Container"===e.component&&function(e){var t;return!!(null===(t=null==e?void 0:e.items)||void 0===t?void 0:t.length)&&e.items.some((function(e){var t;return(null==e?void 0:e.module)===so&&"Button"===e.component&&"submit"===(null===(t=null==e?void 0:e.attributes)||void 0===t?void 0:t.formType)}))}(e)&&((null===(t=e.attributes)||void 0===t?void 0:t.class)&&!(null===(r=e.attributes)||void 0===r?void 0:r.class.includes("wd-form__action"))?"string"==typeof(null===(i=e.attributes)||void 0===i?void 0:i.class)?e.attributes=n(n({},e.attributes),{class:"".concat(null===(a=e.attributes)||void 0===a?void 0:a.class," wd-form__action")}):Array.isArray(null===(o=e.attributes)||void 0===o?void 0:o.class)&&(e.attributes=n(n({},e.attributes),{class:s(s([],null===(c=e.attributes)||void 0===c?void 0:c.class,!0),["wd-form__action"],!1)})):(null===(p=e.attributes)||void 0===p?void 0:p.class)||(e.attributes=n(n({},e.attributes),{class:"wd-form__action"})),(null===(u=null===(l=null==e?void 0:e.extra)||void 0===l?void 0:l.commonStyle)||void 0===u?void 0:u.padding)&&delete e.extra.commonStyle.padding),(null===(d=null==e?void 0:e.items)||void 0===d?void 0:d.length)&&(e.items=e.items.map((function(e){return Fu(e)}))),e}var ju=function(e){var t=Symbol("rem2pxSym"),n=e.isUpgrade;return{postcssPlugin:"postcss-rem2px",Declaration:function(e,r){var i=/"[^"]+"|'[^']+'|(\d*\.?\d+)px/gm;if(!(e.value.indexOf("px")<0||e[t])){if(n){var a=e.value.replace(i,(function(e,t){if(null!=t){var n=co(Number(t)/2,3).toString();return"".concat(n,"px")}return e}));e.value=a}else{a=e.value.replace(i,(function(e,t){return null!=t?"".concat(2*Number(t),"px"):e}));e.value=a}e[t]=!0}}}};function Vu(e,t){var n=xu([ju({isUpgrade:t})]).process(e.code,{syntax:Ru});return e.code=n.css,e}ju.postcss=!0;var Bu={animationIterationCount:!0,aspectRatio:!0,borderImage:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,weight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};var Wu=["Webkit","ms","Moz","O"];Object.keys(Bu).forEach((function(e){Wu.forEach((function(t){Bu[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=Bu[e]}))})),e.EComponentType={BASIC:"BASIC",COMPLEX:"COMPLEX",PAGE:"PAGE"},e.EResourceType=zn,e.LCDS=eo,e.OFFICIAL_COMPONENT_LIB_NAME=so,e.OFFICIAL_LIB_KEY=ao,e.PostcssRpx2Calc=Tc,e.WEDA_COMP_DEPENDENCIES_PREFIX=io,e.WEDA_OFFICIAL_NAMESPACE="@tcwd/",e.WEDA_PROTOCOL=ro,e.WeDaDTS=Bc,e.autoResolveConflicts=function(e,t){var n=wc(e),r=e.split("\n"),i=[],a=[];return n.forEach((function(e){"theirs"===t?a.push([e.start,e.middle],e.end):a.push(e.start,[e.middle,e.end])})),r.forEach((function(e,t){a.some((function(e){return Array.isArray(e)?t>=e[0]&&t<=e[1]:t===e}))||i.push(e)})),i.join("\n")},e.calsToCode=function(t,n){if(void 0===n&&(n="v1"),!t)return[];var r={v0:{pageDir:""},v1:{pageDir:"pages"}}[n];if(!r)throw"version' value must be v0 or v1";var i=[],a=[];return t.items.forEach((function(e){var t=r.pageDir?"".concat(r.pageDir,"/").concat(e.id):e.id;o(e,["attributes","dataset","extra","label","name","listeners"],"".concat(t,"/page-config.json")),s("".concat(t,"/page.json"),JSON.stringify(e.items,null,2)),c(e.resources,t),a.push(t)})),t.extra.pages=a,o(t,["author","dataset","dependencies","description","envId","extra","id","label","main","name","version","schemaVersion","externalResources"],"app-config.json",{extra:["appConfig","compHiddenConfig","domain","historyType","maxID","miniprogramPlugins","npmDependencies","plugins","presetColors","rootPath","themeVars","originHistoryId","pages"]}),c(t.resources),s("package.json",JSON.stringify({name:t.name,description:t.description,version:t.version},null,2),""),i;function s(e,t,n){void 0===n&&(n="src"),i.push({path:n?"".concat(n,"/").concat(e):e,code:t})}function o(t,n,r,i){var a,o=vc(t,n);i&&Object.keys(i).forEach((function(e){o[e]=vc(o[e],i[e])})),o._ignoreResources=(null===(a=t.resources)||void 0===a?void 0:a.filter((function(t){return[e.ECodeType.STATE,e.ECodeType.COMPUTEDN].includes(t.codeType)||t.name===e.ECodeName.PLACEHOLDER})))||[],Object.keys(o).sort().forEach((function(e){return o[e]})),s(r,JSON.stringify(o,null,2))}function c(t,n){void 0===n&&(n=""),(t||[]).filter((function(t){return t.type===zn.CODE&&t.name!==e.ECodeName.PLACEHOLDER})).forEach((function(t){var r="",i=n?"".concat(n,"/"):n;switch(t.codeType){case e.ECodeType.THEME:r="".concat(i).concat(e.ECodeName.THEME,".less");break;case e.ECodeType.STYLE:r="".concat(i).concat(e.ECodeName.STYLE,".less");break;case e.ECodeType.LIFECYCLE:r="".concat(i).concat(e.ECodeName.LIFECYCLE,".js");break;case e.ECodeType.STATE:case e.ECodeType.COMPUTEDN:break;case e.ECodeType.NORMAL_MODULE:r="".concat(e.ECodeName.NORMAL_MODULE,"/").concat(t.name,".js");break;case e.ECodeType.HANDLER_FN:r="".concat(i).concat(e.ECodeName.HANDLER_FN,"/").concat(t.name,".js")}r&&s(r,t.code)}))}},e.checkForConflicts=function(e){return wc(e,!0).length>0},e.codeToCals=function(t,r){if(void 0===r&&(r="v1"),!t||0===t.length)return{};var i={v0:{pageDir:"src",pageIdRegExp:/src\/(.*?)\/.*/,pageConfigRegExp:/src\/.*?\/page-config.json$/,pageJSONRegExp:/src\/.*?\/page.json/},v1:{pageDir:"src/pages",pageIdRegExp:/src\/pages\/(.*?)\/.*/,pageConfigRegExp:/src\/pages\/.*?\/page-config.json$/,pageJSONRegExp:/src\/pages\/.*?\/page.json/}}[r];if(!i)throw"version' value must be v0 or v1";var a={items:[],resources:[]},s=t.find((function(e){return"src/app-config.json"===e.path})),o=JSON.parse((null==s?void 0:s.code)||"{}"),c=o.extra.pages;return t.forEach((function(e){if("src/app-config.json"===e.path){var t=o;Object.assign(a,bc(t,["_ignoreResources","extra.pages"])),a.resources=xc(a.resources,t._ignoreResources)}else if(l=e.path,c.map((function(e){return"src/".concat(e)})).some((function(e){return 0===l.indexOf(e)}))){var n=(e.path.match(i.pageIdRegExp)||[])[1],r=a.items.find((function(e){return e.id===n}));if(r||(r={id:n,type:"PAGE",resources:[]},a.items.push(r)),r.resources||(r.resources=[]),i.pageConfigRegExp.test(e.path)){t=JSON.parse(e.code);var s=bc(t,["_ignoreResources"]);Object.assign(r,s),r.resources=xc(r.resources,t._ignoreResources)}else i.pageJSONRegExp.test(e.path)?r.items=JSON.parse(e.code):p(e,n,r.resources)}else 0===e.path.indexOf("src/")&&p(e,"",a.resources||[]);var l})),a;function p(t,r,s){var o,c,p=r?t.path.replace("".concat(i.pageDir,"/").concat(r,"/"),""):t.path.replace("src/",""),l=r||"global",u={code:t.code,type:zn.CODE,system:!0};switch(p){case"theme.less":null===(o=a.resources)||void 0===o||o.push(n({name:e.ECodeType.THEME,path:"".concat(l,"/").concat(e.ECodeType.THEME),codeType:e.ECodeType.THEME},u));break;case"style.less":s.push(n({name:e.ECodeType.STYLE,path:"".concat(l,"/").concat(e.ECodeType.STYLE),codeType:e.ECodeType.STYLE},u));break;case"lifecycle.js":s.push(n({name:e.ECodeType.LIFECYCLE,path:"".concat(l,"/").concat(e.ECodeType.LIFECYCLE),codeType:e.ECodeType.LIFECYCLE},u));break;default:var d=p.match(/^handler\/([^/]*?).js$/);if(d){var h=d[1];s.push(n(n({name:h,path:"".concat(l,"/handler/").concat(h),codeType:e.ECodeType.HANDLER_FN},u),{system:!1}))}var f=p.match(/^common\/([^/]*?).js$/);if(f){var m=f[1];null===(c=a.resources)||void 0===c||c.push(n({name:m,path:"".concat(l,"/common/").concat(m),codeType:e.ECodeType.NORMAL_MODULE},u))}}}},e.compileJSONToDTS=Kc,e.deserializeAttributes=go,e.deserializeComponent=No,e.deserializeComponentLibraryMeta=function(e){var t=e.components,i=void 0===t?{}:t,a=e.actions,s=void 0===a?{}:a,o=e.styles,c=void 0===o?[]:o,p=e.dependencies,l=void 0===p?{}:p,u=r(e,["components","actions","styles","dependencies"]),d={};for(var h in i){var f=i[h],m=f.meta||{},v=m.title,y=m.description,g=m.category,b=m.icon,x=m.extra,w=void 0===x?{}:x,C=r(m,["title","description","category","icon","extra"]);d[h]=n(n({title:v||f.name||h,desc:y||"",category:g||"",thumbnail:b},w),C)}return n(n({},u),{styles:c,dependencies:l,components:d,actions:s})},e.deserializeDataVariables=Po,e.deserializeDynamicMap=vo,e.deserializePage=Lo,e.deserializePlatformApp=Mo,e.deserializeRuntimeComponent=jo,e.deserializeValue=ho,e.generateDefaultCode=no,e.generateWeDaAppDTS=Wc,e.getUsedComps=function(e,t){var n=e.map((function(e){return Mo(e,{dependencies:t})})).map((function(e){var t,n={};return null===(t=e.pageInstanceList)||void 0===t||t.forEach((function(e){Yi(e.componentInstances,n)})),n})),r=n.reduce((function(e,t){for(var n in t)e[n]=new Set(s(s([],Array.from(t[n]),!0),Array.from(e[n]||[]),!0));return e}),{}),i=new Map;t.forEach((function(e){e.isComposite&&i.set(e.name,e)}));var a={};Ki(r,[],i,a);var o=[r,a].reduce((function(e,t){for(var n in t)e[n]=new Set(s(s([],Array.from(t[n]),!0),Array.from(e[n]||[]),!0));return e}),{});return o},e.isUnitlessNumber=Bu,e.jsonToDTSWorkerCode=qc,e.parseComponentCals=function e(t,n){t.datasetMap||(t.datasetMap={}),t.dataSourceMap||(t.dataSourceMap={}),t.componentMap||(t.componentMap={}),t.lowcodeMap||(t.lowcodeMap={}),t.componentLibMap||(t.componentLibMap={}),t.component={id:n.id||""};var r=n.component,i=n.module,a=n.attributes,s=void 0===a?{}:a,o=n.items,c=void 0===o?[]:o,p=n.listeners,l=void 0===p?[]:p,u=n.directives,d=void 0===u?{}:u,h=n[":class"],f=n[":style"];i&&r&&!Me(t.componentMap,"".concat(i,".").concat(r))&&($n(t.componentMap,"".concat(i,".").concat(r),!0),t.componentLibMap[i]=!0),function(e,t){var n,r=t[":for"];"string"==typeof r&&(Sc(e,r),e.forContext||(e.forContext={}),(null===(n=e.component)||void 0===n?void 0:n.id)&&(e.forContext[e.component.id]=!0));var i=t[":if"];"string"==typeof i&&Sc(e,i)}(t,d),kc(t,s);for(var m=0,v=l;m<v.length;m++){Cc(t,v[m])}h&&Sc(t,h),f&&Sc(t,f);for(var y=0,g=c;y<g.length;y++){e(t,g[y])}return t},e.parseVersion=function(e,t){void 0===e&&(e=""),void 0===t&&(t=[]);var n={defaultDynamicCssUnit:!0,enableObserverRef:!1,enablePageRoot:!1};return"4"!==e.split(".")[0]&&"latest"!==e||(n.defaultDynamicCssUnit=!1),n.enableObserverRef=function(e){return void 0===e&&(e=[]),po(e,"2.21.3",1678760239346)}(t),n.enablePageRoot=function(e){return po(e,"2.26.2",1682499675611)}(t),n},e.processCSSProperties2Rem=function(e,t){return void 0===e&&(e={}),Ka(e,Ja,t)},e.processCSSPropertiesUnit=ts,e.processCommonStyle2CSSProperties=es,e.processComponentModule=function(e,t){e.version,e.selectedPageId;var i=e.pageInstanceList;e.lowCodes,e.datasources,e.vars,e.dataset,r(e,["version","selectedPageId","pageInstanceList","lowCodes","datasources","vars","dataset"]);var a=(t||{}).dependencies,s=void 0===a?[]:a,o={app:e,dependencies:s,dependenciesMap:cc(s)};null==i||i.find((function(e){return e.isHome}));var c=n(n({},e),{componentInstances:Object.keys(e.componentInstances||{}).reduce((function(t,r){return t[r]=oc(o,n({},e.componentInstances[r])),t}),{})});return c},e.processRuntimeCodeResources=function(t,n,r){var i;void 0===n&&(n=[]);var a=t.id,s=[e.ECodeType.STYLE,e.ECodeType.STATE,e.ECodeType.LIFECYCLE,e.ECodeType.COMPUTEDN],o=((i={})[e.ECodeType.STATE]=e.ECodeName.STATE,i[e.ECodeType.COMPUTEDN]=e.ECodeName.COMPUTEDN,i[e.ECodeType.STYLE]=e.ECodeName.STYLE,i[e.ECodeType.LIFECYCLE]=e.ECodeName.LIFECYCLE,i),c="$comp"===a||"component"===r;"global"!==a&&"app"!==r||s.push(e.ECodeType.THEME);var p={};return n.forEach((function(e){p[e.type]=!0})),s.forEach((function(e){if(!p[e]){var r=o[e]||e;n.unshift({name:r,type:e,code:no(t,e,c?"component":"global"===a?"app":"page"),path:"".concat(a,"/").concat(r),system:!0})}})),n.filter((function(t){return t.name!==e.ECodeName.PLACEHOLDER}))},e.semverComp=oo,e.serializeAttributes=function(e,t,n){var r;return void 0===n&&(n={}),null===(r=yo(e,t,n))||void 0===r?void 0:r.data},e.serializeComponent=Ao,e.serializeDynamicMap=function(e){return fo(e).data},e.serializePage=Oo,e.serializePlatformApp=Ro,e.serializeRuntimeComponent=Fo,e.serializeRuntimePage=function e(t,r){var i,a,s,o,c,p,l,u=n(n({},t),{dependenciesMap:Vo(t.dependencies||[]),page:{id:r.id}}),d={id:r.id,type:"PAGE",component:"Page",attributes:null===(i=yo(u,"page",rs(r)))||void 0===i?void 0:i.data,items:ss(Object.keys((null===(a=r.componentSchemaJson)||void 0===a?void 0:a.properties)||{}).map((function(e){var t;return Fo(u,n({id:e},null===(t=r.componentSchemaJson)||void 0===t?void 0:t.properties[e]))}))),resources:null===(s=null==r?void 0:r.codeModules)||void 0===s?void 0:s.map((function(e){return Eo(0,e)})),dataset:null==r?void 0:r.dataset,dataVariables:ss(null===(c=null===(o=null==r?void 0:r.vars)||void 0===o?void 0:o.data)||void 0===c?void 0:c.map((function(e){return To(0,e)}))),listeners:ss(is(r.listenerInstances||[]).map((function(e){return So(u,e)}))),extra:{commonStyle:ss(za(r.style)),styleBindPath:ss(r.styleBindPath),xIndex:r.xIndex,children:ss(null===(p=r.children)||void 0===p?void 0:p.map((function(n){return e(t,n)})))}};return(l=r.styleBind)&&"style"===l.propertyPath&&l.bindDataPath&&ss(r.styleBind)&&(r[":style"]=lo({ctx:u,key:"styleBind",dynamicValue:r.styleBind}).value),qi(r.classListBind)&&ss(r.classListBind)&&(r[":class"]=lo({ctx:u,key:"classListBind",dynamicValue:r.classListBind})),d},e.serializeValue=lo,e.transpileToDTS=Xc,e.upgrageToVersion2=function(e){if(e.selectedPageId){!function(e){var t=e.pageInstanceList,n=[];(void 0===t?[]:t).forEach((function(e,t){var r=e.componentInstances;for(var i in r){Xo.push(i);var a=r[i];n.push(a)}}));for(var r=function(){var e=n.pop();if(!e)return"break";var t=Object.keys(e.properties||{});t.length>0&&t.forEach((function(t){Xo.push(t);var r=e.properties[t];n.push(r)}))};"break"!==r(););var i=Xo.map((function(e){return parseInt(e.replace("id",""))})).filter((function(e){return!isNaN(e)}));qo=Math.max.apply(Math,i)}(e),function(e){var t=e.pageInstanceList;(void 0===t?[]:t).forEach((function(e,t){var n=e.componentInstances,r={},i=[];for(var a in n){var s=n[a];r[a]&&a.startsWith("id")?(n[Yo()]=s,delete n[a]):r[a]=a,i.push(s)}for(var o=function(){var e=i.pop();if(!e)return"break";var t=Object.keys(e.properties||{});t.length>0&&t.forEach((function(t){var n=e.properties[t];if(r[t]&&t.startsWith("id")){var a=Yo();e.properties[a]=n,delete e.properties[t]}else r[t]=t;i.push(n)}))};"break"!==o(););}))}(e),function(e){var t=e.pageInstanceList,n=void 0===t?[]:t,r=e.selectedPageId,i=!1;n.forEach((function(t,n){t.id===r&&(i=!0),rc(t),function(e){return e.isComposite||Object.keys((null==e?void 0:e.dataForm)||{}).length>0}(e)&&ic(t);var a=t.componentInstances;for(var s in a){sc(a[s],s,null)}var o=t.lowCodes,c=(void 0===o?[]:o).find((function(e){return"registerUser/handler/onFormSubmit"==e.path}));c&&(c.code="/*\n* 可通过 $page.handler.xxx 访问这里定义的方法\n* 注意:该方法仅在所属的页面有效\n* 如果需要 async-await,请修改成 export default async function() {}\n*/\n\nexport default async function({event}) {\n let result = event.detail\n try {\n app.showLoading('创建中...')\n const createResp = await app.dataSources.user.create(result)\n app.hideLoading()\n if (!createResp.code) {\n app.dataVar.$status.users = {status: 'loading'}\n const listResp = await app.dataSources.user.getList()\n app.hideLoading()\n if (!listResp.code) {\n app.dataVar.users = listResp.data\n app.dataVar.$status.users = {status: 'success', message: 'test-success'}\n } else {\n app.dataVar.$status.users = {status: 'failed', code: listResp.code, message: listResp.message}\n app.showToast({title: '重新获取列表失败: ' + listResp.message, duration: 2000})\n }\n } else {\n app.hideLoading()\n app.showToast({title: '创建失败: ' + createResp.message, duration: 2000})\n return\n }\n } catch (e) {\n app.hideLoading()\n console.warn(e)\n app.showToast({title: '错误:' + e.message, duration: 2000})\n }\n app.navigateBack()\n}")})),!i&&n.length&&(e.selectedPageId=n[0].id||"")}(e);var t=JSON.stringify(e);return Ro(JSON.parse(t.replace(/app\.getPageOptions/g,"(()=>{})").replace(/\\\\n/g,"\\n")),{dependencies:[]})}return e},e.version4=function(e,t,n){return Mu(e,t,n)},e.workerCode=Hc}));