@cloudbase/cals 1.0.3-alpha.8 → 1.0.3-alpha.9

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.
Files changed (125) hide show
  1. package/lib/parser/cals/index.d.ts +379 -366
  2. package/lib/parser/cals/index.d.ts.map +1 -1
  3. package/lib/parser/cals/index.js +75 -13
  4. package/lib/parser/cals/utils/block/index.d.ts +14 -14
  5. package/lib/parser/cals/utils/block/index.d.ts.map +0 -0
  6. package/lib/parser/cals/utils/block/index.js +3 -3
  7. package/lib/parser/cals/utils/code/index.d.ts +30 -30
  8. package/lib/parser/cals/utils/code/index.d.ts.map +0 -0
  9. package/lib/parser/cals/utils/code/index.js +12 -13
  10. package/lib/parser/cals/utils/common.d.ts +11 -11
  11. package/lib/parser/cals/utils/common.d.ts.map +0 -0
  12. package/lib/parser/cals/utils/common.js +0 -0
  13. package/lib/parser/cals/utils/runtime.d.ts +13 -13
  14. package/lib/parser/cals/utils/runtime.d.ts.map +1 -1
  15. package/lib/parser/cals/utils/runtime.js +2 -2
  16. package/lib/parser/cals/utils/spinoff/index.d.ts +9 -9
  17. package/lib/parser/cals/utils/spinoff/index.d.ts.map +0 -0
  18. package/lib/parser/cals/utils/spinoff/index.js +0 -0
  19. package/lib/parser/cals/utils/style.d.ts +42 -42
  20. package/lib/parser/cals/utils/style.d.ts.map +1 -1
  21. package/lib/parser/cals/utils/style.js +3 -3
  22. package/lib/parser/cals/utils/template.d.ts +5 -5
  23. package/lib/parser/cals/utils/template.d.ts.map +0 -0
  24. package/lib/parser/cals/utils/template.js +6 -3
  25. package/lib/parser/cals/utils/version/common.d.ts +4 -4
  26. package/lib/parser/cals/utils/version/common.d.ts.map +0 -0
  27. package/lib/parser/cals/utils/version/common.js +34 -11
  28. package/lib/parser/cals/utils/version/config.d.ts +13 -13
  29. package/lib/parser/cals/utils/version/config.d.ts.map +0 -0
  30. package/lib/parser/cals/utils/version/config.js +0 -0
  31. package/lib/parser/cals/utils/version/index.d.ts +2 -2
  32. package/lib/parser/cals/utils/version/index.d.ts.map +0 -0
  33. package/lib/parser/cals/utils/version/index.js +0 -0
  34. package/lib/parser/cals/utils/version/parses.d.ts +15 -15
  35. package/lib/parser/cals/utils/version/parses.d.ts.map +0 -0
  36. package/lib/parser/cals/utils/version/parses.js +37 -14
  37. package/lib/parser/cals/utils/version/utils.d.ts +13 -13
  38. package/lib/parser/cals/utils/version/utils.d.ts.map +1 -1
  39. package/lib/parser/cals/utils/version/utils.js +2 -2
  40. package/lib/parser/constants.d.ts +2 -0
  41. package/lib/parser/constants.d.ts.map +1 -0
  42. package/lib/parser/constants.js +4 -0
  43. package/lib/parser/expression/index.d.ts +122 -122
  44. package/lib/parser/expression/index.d.ts.map +0 -0
  45. package/lib/parser/expression/index.js +0 -0
  46. package/lib/parser/index.d.ts +8 -8
  47. package/lib/parser/index.d.ts.map +0 -0
  48. package/lib/parser/index.js +0 -0
  49. package/lib/parser/plugins/postcss-rpx2clac.d.ts +17 -17
  50. package/lib/parser/plugins/postcss-rpx2clac.js +2 -2
  51. package/lib/types/basic/app.d.ts +72 -72
  52. package/lib/types/basic/app.d.ts.map +0 -0
  53. package/lib/types/basic/app.js +0 -0
  54. package/lib/types/basic/common.d.ts +88 -88
  55. package/lib/types/basic/common.d.ts.map +1 -1
  56. package/lib/types/basic/common.js +0 -0
  57. package/lib/types/basic/component.d.ts +213 -208
  58. package/lib/types/basic/component.d.ts.map +1 -1
  59. package/lib/types/basic/component.js +0 -0
  60. package/lib/types/basic/datasource.d.ts +49 -49
  61. package/lib/types/basic/datasource.d.ts.map +0 -0
  62. package/lib/types/basic/datasource.js +0 -0
  63. package/lib/types/index.d.ts +10 -9
  64. package/lib/types/index.d.ts.map +1 -1
  65. package/lib/types/index.js +1 -14
  66. package/lib/types/lcds.d.ts +334 -447
  67. package/lib/types/lcds.d.ts.map +1 -1
  68. package/lib/types/lcds.js +0 -0
  69. package/lib/types/platform/app.d.ts +176 -176
  70. package/lib/types/platform/app.d.ts.map +0 -0
  71. package/lib/types/platform/app.js +0 -0
  72. package/lib/types/platform/common.d.ts +147 -137
  73. package/lib/types/platform/common.d.ts.map +1 -1
  74. package/lib/types/platform/common.js +0 -0
  75. package/lib/types/platform/component.d.ts +145 -140
  76. package/lib/types/platform/component.d.ts.map +1 -1
  77. package/lib/types/platform/component.js +0 -0
  78. package/lib/types/platform/datasource.d.ts +466 -466
  79. package/lib/types/platform/datasource.d.ts.map +0 -0
  80. package/lib/types/platform/datasource.js +0 -0
  81. package/lib/types/platform/eventFlow.d.ts +20 -0
  82. package/lib/types/platform/eventFlow.d.ts.map +1 -0
  83. package/lib/types/platform/eventFlow.js +2 -0
  84. package/lib/types/platform/query.d.ts +58 -0
  85. package/lib/types/platform/query.d.ts.map +1 -0
  86. package/lib/types/platform/query.js +2 -0
  87. package/lib/types/platform/widget/form.d.ts +89 -89
  88. package/lib/types/platform/widget/form.d.ts.map +0 -0
  89. package/lib/types/platform/widget/form.js +0 -0
  90. package/lib/types/platform/widget/meta.d.ts +59 -59
  91. package/lib/types/platform/widget/meta.d.ts.map +0 -0
  92. package/lib/types/platform/widget/meta.js +0 -0
  93. package/lib/utils/CSSProperty.d.ts +63 -63
  94. package/lib/utils/CSSProperty.d.ts.map +0 -0
  95. package/lib/utils/CSSProperty.js +0 -0
  96. package/lib/utils/build.d.ts +1 -1
  97. package/lib/utils/build.d.ts.map +0 -0
  98. package/lib/utils/build.js +6 -3
  99. package/lib/utils/constant.d.ts +40 -40
  100. package/lib/utils/constant.d.ts.map +0 -0
  101. package/lib/utils/constant.js +0 -0
  102. package/lib/utils/dts/auto-generated.d.ts +1 -1
  103. package/lib/utils/dts/auto-generated.d.ts.map +1 -1
  104. package/lib/utils/dts/auto-generated.js +35 -1227
  105. package/lib/utils/dts/build.d.ts +1 -1
  106. package/lib/utils/dts/build.js +4 -1
  107. package/lib/utils/dts/index.d.ts +93 -130
  108. package/lib/utils/dts/index.d.ts.map +1 -1
  109. package/lib/utils/dts/index.js +66 -359
  110. package/lib/utils/index.d.ts +7 -7
  111. package/lib/utils/index.d.ts.map +0 -0
  112. package/lib/utils/index.js +0 -0
  113. package/lib/utils/version/common.d.ts +2 -2
  114. package/lib/utils/version/featureChecker.d.ts +2 -2
  115. package/lib/utils/version/featureChecker.d.ts.map +1 -1
  116. package/lib/utils/version/migrations/version4.d.ts +2 -2
  117. package/lib/utils/version/migrations/version4.js +2 -2
  118. package/lib/utils/version-migrations/common.d.ts +5 -0
  119. package/lib/utils/version-migrations/common.d.ts.map +1 -0
  120. package/lib/utils/version-migrations/common.js +29 -0
  121. package/lib/utils/version-migrations/version4.d.ts +3 -0
  122. package/lib/utils/version-migrations/version4.d.ts.map +1 -0
  123. package/lib/utils/version-migrations/version4.js +199 -0
  124. package/package.json +3 -13
  125. package/lib/cloudbase.cals.umd.min.js +0 -5
@@ -1,5 +0,0 @@
1
- /*!
2
- * @cloudbase/cals
3
- * Copyright© 2023 Tencent
4
- */
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("json-easy-filter")):"function"==typeof define&&define.amd?define(["exports","json-easy-filter"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).CloudBaseCals={},e.JSONEasyFilter)}(this,(function(e,t){"use strict";var n=function(e,t){return n=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])},n(e,t)};var r=function(){return r=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},r.apply(this,arguments)};function i(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 s(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(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(a,o)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}}function o(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;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 c="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,l=c||p||Function("return this")(),u=l.Symbol,d=Object.prototype,h=d.hasOwnProperty,f=d.toString,m=u?u.toStringTag:void 0;var y=Object.prototype.toString;var v=u?u.toStringTag:void 0;function g(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?function(e){var t=h.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(e){}var i=f.call(e);return r&&(t?e[m]=n:delete e[m]),i}(e):function(e){return y.call(e)}(e)}function b(e){return null!=e&&"object"==typeof e}function x(e){return"symbol"==typeof e||b(e)&&"[object Symbol]"==g(e)}function w(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}var C=Array.isArray,k=u?u.prototype:void 0,S=k?k.toString:void 0;function T(e){if("string"==typeof e)return e;if(C(e))return w(e,T)+"";if(x(e))return S?S.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function _(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function E(e){return e}function P(e){if(!_(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var I,D=l["__core-js_shared__"],A=(I=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var N=Function.prototype.toString;function O(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var L=/^\[object .+?Constructor\]$/,R=Function.prototype,M=Object.prototype,F=R.toString,j=M.hasOwnProperty,V=RegExp("^"+F.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function B(e){return!(!_(e)||(t=e,A&&A in t))&&(P(e)?V:L).test(O(e));var t}function W(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return B(n)?n:void 0}var U=W(l,"WeakMap"),G=Object.create,$=function(){function e(){}return function(t){if(!_(t))return{};if(G)return G(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),H=$;function z(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)}function X(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var q=Date.now;var Y,K,J,Q=function(){try{var e=W(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Z=Q,ee=Z?function(e,t){return Z(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:E,te=(Y=ee,K=0,J=0,function(){var e=q(),t=16-(e-J);if(J=e,t>0){if(++K>=800)return arguments[0]}else K=0;return Y.apply(void 0,arguments)}),ne=te;function re(e){return e!=e}function ie(e,t){return!!(null==e?0:e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):function(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}(e,re,n)}(e,t,0)>-1}var se=/^(?:0|[1-9]\d*)$/;function ae(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&se.test(e))&&e>-1&&e%1==0&&e<t}function oe(e,t,n){"__proto__"==t&&Z?Z(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ce(e,t){return e===t||e!=e&&t!=t}var pe=Object.prototype.hasOwnProperty;function le(e,t,n){var r=e[t];pe.call(e,t)&&ce(r,n)&&(void 0!==n||t in e)||oe(e,t,n)}function ue(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var o=t[s],c=r?r(n[o],e[o],o,n,e):void 0;void 0===c&&(c=e[o]),i?oe(n,o,c):le(n,o,c)}return n}var de=Math.max;function he(e,t,n){return t=de(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=de(r.length-t,0),a=Array(s);++i<s;)a[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(a),z(e,this,o)}}function fe(e,t){return ne(he(e,t,E),e+"")}function me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ye(e){return null!=e&&me(e.length)&&!P(e)}function ve(e,t,n){if(!_(n))return!1;var r=typeof t;return!!("number"==r?ye(n)&&ae(t,n.length):"string"==r&&t in n)&&ce(n[t],e)}function ge(e){return fe((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(i--,s):void 0,a&&ve(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,s)}return t}))}var be=Object.prototype;function xe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||be)}function we(e){return b(e)&&"[object Arguments]"==g(e)}var Ce=Object.prototype,ke=Ce.hasOwnProperty,Se=Ce.propertyIsEnumerable,Te=we(function(){return arguments}())?we:function(e){return b(e)&&ke.call(e,"callee")&&!Se.call(e,"callee")},_e=Te;var Ee="object"==typeof e&&e&&!e.nodeType&&e,Pe=Ee&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Pe&&Pe.exports===Ee?l.Buffer:void 0,De=(Ie?Ie.isBuffer:void 0)||function(){return!1},Ae={};function Ne(e){return function(t){return e(t)}}Ae["[object Float32Array]"]=Ae["[object Float64Array]"]=Ae["[object Int8Array]"]=Ae["[object Int16Array]"]=Ae["[object Int32Array]"]=Ae["[object Uint8Array]"]=Ae["[object Uint8ClampedArray]"]=Ae["[object Uint16Array]"]=Ae["[object Uint32Array]"]=!0,Ae["[object Arguments]"]=Ae["[object Array]"]=Ae["[object ArrayBuffer]"]=Ae["[object Boolean]"]=Ae["[object DataView]"]=Ae["[object Date]"]=Ae["[object Error]"]=Ae["[object Function]"]=Ae["[object Map]"]=Ae["[object Number]"]=Ae["[object Object]"]=Ae["[object RegExp]"]=Ae["[object Set]"]=Ae["[object String]"]=Ae["[object WeakMap]"]=!1;var Oe="object"==typeof e&&e&&!e.nodeType&&e,Le=Oe&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Le&&Le.exports===Oe&&c.process,Me=function(){try{var e=Le&&Le.require&&Le.require("util").types;return e||Re&&Re.binding&&Re.binding("util")}catch(e){}}(),Fe=Me,je=Fe&&Fe.isTypedArray,Ve=je?Ne(je):function(e){return b(e)&&me(e.length)&&!!Ae[g(e)]},Be=Object.prototype.hasOwnProperty;function We(e,t){var n=C(e),r=!n&&_e(e),i=!n&&!r&&De(e),s=!n&&!r&&!i&&Ve(e),a=n||r||i||s,o=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=o.length;for(var p in e)!t&&!Be.call(e,p)||a&&("length"==p||i&&("offset"==p||"parent"==p)||s&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||ae(p,c))||o.push(p);return o}function Ue(e,t){return function(n){return e(t(n))}}var Ge=Ue(Object.keys,Object),$e=Object.prototype.hasOwnProperty;function He(e){return ye(e)?We(e):function(e){if(!xe(e))return Ge(e);var t=[];for(var n in Object(e))$e.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var ze=Object.prototype.hasOwnProperty;function Xe(e){if(!_(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=xe(e),n=[];for(var r in e)("constructor"!=r||!t&&ze.call(e,r))&&n.push(r);return n}function qe(e){return ye(e)?We(e,!0):Xe(e)}var Ye=ge((function(e,t,n,r){ue(t,qe(t),e,r)})),Ke=Ye,Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qe=/^\w*$/;function Ze(e,t){if(C(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!x(e))||(Qe.test(e)||!Je.test(e)||null!=t&&e in Object(t))}var et=W(Object,"create");var tt=Object.prototype.hasOwnProperty;var nt=Object.prototype.hasOwnProperty;function rt(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])}}function it(e,t){for(var n=e.length;n--;)if(ce(e[n][0],t))return n;return-1}rt.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},rt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rt.prototype.get=function(e){var t=this.__data__;if(et){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return tt.call(t,e)?t[e]:void 0},rt.prototype.has=function(e){var t=this.__data__;return et?void 0!==t[e]:nt.call(t,e)},rt.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=et&&void 0===t?"__lodash_hash_undefined__":t,this};var st=Array.prototype.splice;function at(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])}}at.prototype.clear=function(){this.__data__=[],this.size=0},at.prototype.delete=function(e){var t=this.__data__,n=it(t,e);return!(n<0)&&(n==t.length-1?t.pop():st.call(t,n,1),--this.size,!0)},at.prototype.get=function(e){var t=this.__data__,n=it(t,e);return n<0?void 0:t[n][1]},at.prototype.has=function(e){return it(this.__data__,e)>-1},at.prototype.set=function(e,t){var n=this.__data__,r=it(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ot=W(l,"Map");function ct(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function pt(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])}}pt.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(ot||at),string:new rt}},pt.prototype.delete=function(e){var t=ct(this,e).delete(e);return this.size-=t?1:0,t},pt.prototype.get=function(e){return ct(this,e).get(e)},pt.prototype.has=function(e){return ct(this,e).has(e)},pt.prototype.set=function(e,t){var n=ct(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function lt(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],s=n.cache;if(s.has(i))return s.get(i);var a=e.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(lt.Cache||pt),n}lt.Cache=pt;var ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dt=/\\(\\)?/g,ht=function(e){var t=lt(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ut,(function(e,n,r,i){t.push(r?i.replace(dt,"$1"):n||e)})),t})),ft=ht;function mt(e){return null==e?"":T(e)}function yt(e,t){return C(e)?e:Ze(e,t)?[e]:ft(mt(e))}function vt(e){if("string"==typeof e||x(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function gt(e,t){for(var n=0,r=(t=yt(t,e)).length;null!=e&&n<r;)e=e[vt(t[n++])];return n&&n==r?e:void 0}function bt(e,t,n){var r=null==e?void 0:gt(e,t);return void 0===r?n:r}function xt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var wt=u?u.isConcatSpreadable:void 0;function Ct(e){return C(e)||_e(e)||!!(wt&&e&&e[wt])}function kt(e,t,n,r,i){var s=-1,a=e.length;for(n||(n=Ct),i||(i=[]);++s<a;){var o=e[s];t>0&&n(o)?t>1?kt(o,t-1,n,r,i):xt(i,o):r||(i[i.length]=o)}return i}function St(e){return(null==e?0:e.length)?kt(e,1):[]}function Tt(e){return ne(he(e,void 0,St),e+"")}var _t=Ue(Object.getPrototypeOf,Object),Et=Function.prototype,Pt=Object.prototype,It=Et.toString,Dt=Pt.hasOwnProperty,At=It.call(Object);function Nt(e){if(!b(e)||"[object Object]"!=g(e))return!1;var t=_t(e);if(null===t)return!0;var n=Dt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==At}function Ot(e){if(!b(e))return!1;var t=g(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Nt(e)}var Lt=fe((function(e,t){try{return z(e,void 0,t)}catch(e){return Ot(e)?e:new Error(e)}})),Rt=Lt;function Mt(e){var t=this.__data__=new at(e);this.size=t.size}Mt.prototype.clear=function(){this.__data__=new at,this.size=0},Mt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Mt.prototype.get=function(e){return this.__data__.get(e)},Mt.prototype.has=function(e){return this.__data__.has(e)},Mt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof at){var r=n.__data__;if(!ot||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pt(r)}return n.set(e,t),this.size=n.size,this};var Ft="object"==typeof e&&e&&!e.nodeType&&e,jt=Ft&&"object"==typeof module&&module&&!module.nodeType&&module,Vt=jt&&jt.exports===Ft?l.Buffer:void 0,Bt=Vt?Vt.allocUnsafe:void 0;function Wt(e,t){if(t)return e.slice();var n=e.length,r=Bt?Bt(n):new e.constructor(n);return e.copy(r),r}function Ut(){return[]}var Gt=Object.prototype.propertyIsEnumerable,$t=Object.getOwnPropertySymbols,Ht=$t?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var a=e[n];t(a,n,e)&&(s[i++]=a)}return s}($t(e),(function(t){return Gt.call(e,t)})))}:Ut,zt=Ht;var Xt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)xt(t,zt(e)),e=_t(e);return t}:Ut,qt=Xt;function Yt(e,t,n){var r=t(e);return C(e)?r:xt(r,n(e))}function Kt(e){return Yt(e,He,zt)}function Jt(e){return Yt(e,qe,qt)}var Qt=W(l,"DataView"),Zt=W(l,"Promise"),en=W(l,"Set"),tn="[object Map]",nn="[object Promise]",rn="[object Set]",sn="[object WeakMap]",an="[object DataView]",on=O(Qt),cn=O(ot),pn=O(Zt),ln=O(en),un=O(U),dn=g;(Qt&&dn(new Qt(new ArrayBuffer(1)))!=an||ot&&dn(new ot)!=tn||Zt&&dn(Zt.resolve())!=nn||en&&dn(new en)!=rn||U&&dn(new U)!=sn)&&(dn=function(e){var t=g(e),n="[object Object]"==t?e.constructor:void 0,r=n?O(n):"";if(r)switch(r){case on:return an;case cn:return tn;case pn:return nn;case ln:return rn;case un:return sn}return t});var hn=dn,fn=Object.prototype.hasOwnProperty;var mn=l.Uint8Array;function yn(e){var t=new e.constructor(e.byteLength);return new mn(t).set(new mn(e)),t}var vn=/\w*$/;var gn=u?u.prototype:void 0,bn=gn?gn.valueOf:void 0;function xn(e,t){var n=t?yn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function wn(e,t,n){var r,i=e.constructor;switch(t){case"[object ArrayBuffer]":return yn(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?yn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(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 xn(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,vn.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,bn?Object(bn.call(r)):{}}}function Cn(e){return"function"!=typeof e.constructor||xe(e)?{}:H(_t(e))}var kn=Fe&&Fe.isMap,Sn=kn?Ne(kn):function(e){return b(e)&&"[object Map]"==hn(e)};var Tn=Fe&&Fe.isSet,_n=Tn?Ne(Tn):function(e){return b(e)&&"[object Set]"==hn(e)},En="[object Arguments]",Pn="[object Function]",In="[object Object]",Dn={};function An(e,t,n,r,i,s){var a,o=1&t,c=2&t,p=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),void 0!==a)return a;if(!_(e))return e;var l=C(e);if(l){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&fn.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!o)return X(e,a)}else{var u=hn(e),d=u==Pn||"[object GeneratorFunction]"==u;if(De(e))return Wt(e,o);if(u==In||u==En||d&&!i){if(a=c||d?{}:Cn(e),!o)return c?function(e,t){return ue(e,qt(e),t)}(e,function(e,t){return e&&ue(t,qe(t),e)}(a,e)):function(e,t){return ue(e,zt(e),t)}(e,function(e,t){return e&&ue(t,He(t),e)}(a,e))}else{if(!Dn[u])return i?e:{};a=wn(e,u,o)}}s||(s=new Mt);var h=s.get(e);if(h)return h;s.set(e,a),_n(e)?e.forEach((function(r){a.add(An(r,t,n,r,e,s))})):Sn(e)&&e.forEach((function(r,i){a.set(i,An(r,t,n,i,e,s))}));var f=l?void 0:(p?c?Jt:Kt:c?qe:He)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(f||e,(function(r,i){f&&(r=e[i=r]),le(a,i,An(r,t,n,i,e,s))})),a}Dn[En]=Dn["[object Array]"]=Dn["[object ArrayBuffer]"]=Dn["[object DataView]"]=Dn["[object Boolean]"]=Dn["[object Date]"]=Dn["[object Float32Array]"]=Dn["[object Float64Array]"]=Dn["[object Int8Array]"]=Dn["[object Int16Array]"]=Dn["[object Int32Array]"]=Dn["[object Map]"]=Dn["[object Number]"]=Dn[In]=Dn["[object RegExp]"]=Dn["[object Set]"]=Dn["[object String]"]=Dn["[object Symbol]"]=Dn["[object Uint8Array]"]=Dn["[object Uint8ClampedArray]"]=Dn["[object Uint16Array]"]=Dn["[object Uint32Array]"]=!0,Dn["[object Error]"]=Dn[Pn]=Dn["[object WeakMap]"]=!1;function Nn(e){return An(e,5)}function On(){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 xt(C(n)?X(n):[n],kt(t,1))}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}function Rn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Mn(e,t){return e.has(t)}Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)};function Fn(e,t,n,r,i,s){var a=1&n,o=e.length,c=t.length;if(o!=c&&!(a&&c>o))return!1;var p=s.get(e),l=s.get(t);if(p&&l)return p==t&&l==e;var u=-1,d=!0,h=2&n?new Ln:void 0;for(s.set(e,t),s.set(t,e);++u<o;){var f=e[u],m=t[u];if(r)var y=a?r(m,f,u,t,e,s):r(f,m,u,e,t,s);if(void 0!==y){if(y)continue;d=!1;break}if(h){if(!Rn(t,(function(e,t){if(!Mn(h,t)&&(f===e||i(f,e,n,r,s)))return h.push(t)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function jn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Vn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Bn=u?u.prototype:void 0,Wn=Bn?Bn.valueOf:void 0;var Un=Object.prototype.hasOwnProperty;var Gn="[object Arguments]",$n="[object Array]",Hn="[object Object]",zn=Object.prototype.hasOwnProperty;function Xn(e,t,n,r,i,s){var a=C(e),o=C(t),c=a?$n:hn(e),p=o?$n:hn(t),l=(c=c==Gn?Hn:c)==Hn,u=(p=p==Gn?Hn:p)==Hn,d=c==p;if(d&&De(e)){if(!De(t))return!1;a=!0,l=!1}if(d&&!l)return s||(s=new Mt),a||Ve(e)?Fn(e,t,n,r,i,s):function(e,t,n,r,i,s,a){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||!s(new mn(e),new mn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ce(+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=jn;case"[object Set]":var c=1&r;if(o||(o=Vn),e.size!=t.size&&!c)return!1;var p=a.get(e);if(p)return p==t;r|=2,a.set(e,t);var l=Fn(o(e),o(t),r,i,s,a);return a.delete(e),l;case"[object Symbol]":if(Wn)return Wn.call(e)==Wn.call(t)}return!1}(e,t,c,n,r,i,s);if(!(1&n)){var h=l&&zn.call(e,"__wrapped__"),f=u&&zn.call(t,"__wrapped__");if(h||f){var m=h?e.value():e,y=f?t.value():t;return s||(s=new Mt),i(m,y,n,r,s)}}return!!d&&(s||(s=new Mt),function(e,t,n,r,i,s){var a=1&n,o=Kt(e),c=o.length;if(c!=Kt(t).length&&!a)return!1;for(var p=c;p--;){var l=o[p];if(!(a?l in t:Un.call(t,l)))return!1}var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=!0;s.set(e,t),s.set(t,e);for(var f=a;++p<c;){var m=e[l=o[p]],y=t[l];if(r)var v=a?r(y,m,l,t,e,s):r(m,y,l,e,t,s);if(!(void 0===v?m===y||i(m,y,n,r,s):v)){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 s.delete(e),s.delete(t),h}(e,t,n,r,i,s))}function qn(e,t,n,r,i){return e===t||(null==e||null==t||!b(e)&&!b(t)?e!=e&&t!=t:Xn(e,t,n,r,qn,i))}function Yn(e){return e==e&&!_(e)}function Kn(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Jn(e){var t=function(e){for(var t=He(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Yn(i)]}return t}(e);return 1==t.length&&t[0][2]?Kn(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;for(e=Object(e);i--;){var o=n[i];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){var c=(o=n[i])[0],p=e[c],l=o[1];if(a&&o[2]){if(void 0===p&&!(c in e))return!1}else{var u=new Mt;if(r)var d=r(p,l,c,e,t,u);if(!(void 0===d?qn(l,p,3,r,u):d))return!1}}return!0}(n,e,t)}}function Qn(e,t){return null!=e&&t in Object(e)}function Zn(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=yt(t,e)).length,s=!1;++r<i;){var a=vt(t[r]);if(!(s=null!=e&&n(e,a)))break;e=e[a]}return s||++r!=i?s:!!(i=null==e?0:e.length)&&me(i)&&ae(a,i)&&(C(e)||_e(e))}(e,t,Qn)}function er(e){return Ze(e)?(t=vt(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return gt(t,e)}}(e);var t}function tr(e){return"function"==typeof e?e:null==e?E:"object"==typeof e?C(e)?(t=e[0],n=e[1],Ze(t)&&Yn(n)?Kn(vt(t),n):function(e){var r=bt(e,t);return void 0===r&&r===n?Zn(e,t):qn(n,r,3)}):Jn(e):er(e);var t,n}var nr,rr=function(e,t,n){for(var r=-1,i=Object(e),s=n(e),a=s.length;a--;){var o=s[nr?a:++r];if(!1===t(i[o],o,i))break}return e},ir=rr;var sr=function(e,t){return function(n,r){if(null==n)return n;if(!ye(n))return e(n,r);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++s<i)&&!1!==r(a[s],s,a););return n}}((function(e,t){return e&&ir(e,t,He)})),ar=sr;function or(e,t,n){(void 0!==n&&!ce(e[t],n)||void 0===n&&!(t in e))&&oe(e,t,n)}function cr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function pr(e,t,n,r,i,s,a){var o=cr(e,n),c=cr(t,n),p=a.get(c);if(p)or(e,n,p);else{var l,u=s?s(o,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=C(c),f=!h&&De(c),m=!h&&!f&&Ve(c);u=c,h||f||m?C(o)?u=o:b(l=o)&&ye(l)?u=X(o):f?(d=!1,u=Wt(c,!0)):m?(d=!1,u=xn(c,!0)):u=[]:Nt(c)||_e(c)?(u=o,_e(o)?u=function(e){return ue(e,qe(e))}(o):_(o)&&!P(o)||(u=Cn(c))):d=!1}d&&(a.set(c,u),i(u,c,r,s,a),a.delete(c)),or(e,n,u)}}function lr(e,t,n,r,i){e!==t&&ir(t,(function(s,a){if(i||(i=new Mt),_(s))pr(e,t,a,n,lr,r,i);else{var o=r?r(cr(e,a),s,a+"",e,t,i):void 0;void 0===o&&(o=s),or(e,a,o)}}),qe)}function ur(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 dr,hr=(dr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},function(e){return null==dr?void 0:dr[e]}),fr=/[&<>"']/g,mr=RegExp(fr.source);function yr(e,t){var n=-1,r=ye(e)?Array(e.length):[];return ar(e,(function(e,i,s){r[++n]=t(e,i,s)})),r}function vr(e,t){return(C(e)?w:yr)(e,tr(t))}function gr(e,t){return t.length<2?e:gt(e,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 s=Array(i);++r<i;)s[r]=e[r+t];return s}(t,0,-1))}var br=ge((function(e,t,n){lr(e,t,n)})),xr=br;function wr(e,t){return null==(e=gr(e,t=yt(t,e)))||delete e[vt((n=t,r=null==n?0:n.length,r?n[r-1]:void 0))];var n,r}function Cr(e){return Nt(e)?void 0:e}var kr=Tt((function(e,t){var n={};if(null==e)return n;var r=!1;t=w(t,(function(t){return t=yt(t,e),r||(r=t.length>1),t})),ue(e,Jt(e),n),r&&(n=An(n,7,Cr));for(var i=t.length;i--;)wr(n,t[i]);return n})),Sr=kr;function Tr(e,t,n,r){if(!_(e))return e;for(var i=-1,s=(t=yt(t,e)).length,a=s-1,o=e;null!=o&&++i<s;){var c=vt(t[i]),p=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var l=o[c];void 0===(p=r?r(l,c,o):void 0)&&(p=_(l)?l:ae(t[i+1])?[]:{})}le(o,c,p),o=o[c]}return e}function _r(e,t){return function(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var a=t[r],o=gt(e,a);n(o,a)&&Tr(s,yt(a,e),o)}return s}(e,t,(function(t,n){return Zn(e,n)}))}var Er=Tt((function(e,t){return null==e?{}:_r(e,t)})),Pr=Er;function Ir(e,t,n){return null==e?e:Tr(e,t,n)}var Dr=Object.prototype,Ar=Dr.hasOwnProperty;function Nr(e,t,n,r){return void 0===e||ce(e,Dr[n])&&!Ar.call(r,n)?t:e}var Or={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Lr(e){return"\\"+Or[e]}var Rr=/<%=([\s\S]+?)%>/g,Mr={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Rr,variable:"",imports:{_:{escape:function(e){return(e=mt(e))&&mr.test(e)?e.replace(fr,hr):e}}}},Fr=/\b__p \+= '';/g,jr=/\b(__p \+=) '' \+/g,Vr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Br=/[()=,{}\[\]\/\s]/,Wr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ur=/($^)/,Gr=/['\n\r\u2028\u2029\\]/g,$r=Object.prototype.hasOwnProperty;function Hr(e,t,n){var r=Mr.imports._.templateSettings||Mr;n&&ve(e,t,n)&&(t=void 0),e=mt(e),t=Ke({},t,r,Nr);var i,s,a=Ke({},t.imports,r.imports,Nr),o=He(a),c=function(e,t){return w(t,(function(t){return e[t]}))}(a,o),p=0,l=t.interpolate||Ur,u="__p += '",d=RegExp((t.escape||Ur).source+"|"+l.source+"|"+(l===Rr?Wr:Ur).source+"|"+(t.evaluate||Ur).source+"|$","g"),h=$r.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(d,(function(t,n,r,a,o,c){return r||(r=a),u+=e.slice(p,c).replace(Gr,Lr),n&&(i=!0,u+="' +\n__e("+n+") +\n'"),o&&(s=!0,u+="';\n"+o+";\n__p += '"),r&&(u+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),p=c+t.length,t})),u+="';\n";var f=$r.call(t,"variable")&&t.variable;if(f){if(Br.test(f))throw new Error("Invalid `variable` option passed into `_.template`")}else u="with (obj) {\n"+u+"\n}\n";u=(s?u.replace(Fr,""):u).replace(jr,"$1").replace(Vr,"$1;"),u="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var m=Rt((function(){return Function(o,h+"return "+u).apply(void 0,c)}));if(m.source=u,Ot(m))throw m;return m}var zr=en&&1/Vn(new en([,-0]))[1]==1/0?function(e){return new en(e)}:function(){};function Xr(e){return e&&e.length?function(e,t,n){var r=-1,i=ie,s=e.length,a=!0,o=[],c=o;if(n)a=!1,i=ur;else if(s>=200){var p=t?null:zr(e);if(p)return Vn(p);a=!1,i=Mn,c=new Ln}else c=t?[]:o;e:for(;++r<s;){var l=e[r],u=t?t(l):l;if(l=n||0!==l?l:0,a&&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}(e):[]}function qr(e,t){return null==e||wr(e,t)}var Yr,Kr,Jr={CODE:"CODE",LIBRARY:"LIBRARY"};e.ECodeType=void 0,(Yr=e.ECodeType||(e.ECodeType={})).LIFECYCLE="lifecycle",Yr.CONFIG="config",Yr.STATE="state",Yr.COMPUTEDN="computed",Yr.HANDLER_FN="handler-fn",Yr.NORMAL_MODULE="normal-module",Yr.STYLE="style",Yr.THEME="theme",Yr.MPCONFIG="mp_config",Yr.RENDERER="renderer",e.ECodeName=void 0,(Kr=e.ECodeName||(e.ECodeName={})).LIFECYCLE="lifecycle",Kr.CONFIG="config",Kr.STATE="state",Kr.COMPUTEDN="computed",Kr.STYLE="style",Kr.THEME="theme",Kr.MPCONFIG="mp_config",Kr.RENDERER="renderer",Kr.HANDLER_FN="handler",Kr.NORMAL_MODULE="common",Kr.PLACEHOLDER="____index____";var Qr=[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],Zr=[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],ei="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ti={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"},ni="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",ri={5:ni,"5module":ni+" export import",6:ni+" const class extends export import super"},ii=/^in(stanceof)?$/,si=new RegExp("["+ei+"]"),ai=new RegExp("["+ei+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function oi(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 ci(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&si.test(String.fromCharCode(e)):!1!==t&&oi(e,Zr)))}function pi(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ai.test(String.fromCharCode(e)):!1!==t&&(oi(e,Zr)||oi(e,Qr)))))}var li=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 ui(e,t){return new li(e,{beforeExpr:!0,binop:t})}var di={beforeExpr:!0},hi={startsExpr:!0},fi={};function mi(e,t){return void 0===t&&(t={}),t.keyword=e,fi[e]=new li(e,t)}var yi={num:new li("num",hi),regexp:new li("regexp",hi),string:new li("string",hi),name:new li("name",hi),privateId:new li("privateId",hi),eof:new li("eof"),bracketL:new li("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new li("]"),braceL:new li("{",{beforeExpr:!0,startsExpr:!0}),braceR:new li("}"),parenL:new li("(",{beforeExpr:!0,startsExpr:!0}),parenR:new li(")"),comma:new li(",",di),semi:new li(";",di),colon:new li(":",di),dot:new li("."),question:new li("?",di),questionDot:new li("?."),arrow:new li("=>",di),template:new li("template"),invalidTemplate:new li("invalidTemplate"),ellipsis:new li("...",di),backQuote:new li("`",hi),dollarBraceL:new li("${",{beforeExpr:!0,startsExpr:!0}),eq:new li("=",{beforeExpr:!0,isAssign:!0}),assign:new li("_=",{beforeExpr:!0,isAssign:!0}),incDec:new li("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new li("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ui("||",1),logicalAND:ui("&&",2),bitwiseOR:ui("|",3),bitwiseXOR:ui("^",4),bitwiseAND:ui("&",5),equality:ui("==/!=/===/!==",6),relational:ui("</>/<=/>=",7),bitShift:ui("<</>>/>>>",8),plusMin:new li("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ui("%",10),star:ui("*",10),slash:ui("/",10),starstar:new li("**",{beforeExpr:!0}),coalesce:ui("??",1),_break:mi("break"),_case:mi("case",di),_catch:mi("catch"),_continue:mi("continue"),_debugger:mi("debugger"),_default:mi("default",di),_do:mi("do",{isLoop:!0,beforeExpr:!0}),_else:mi("else",di),_finally:mi("finally"),_for:mi("for",{isLoop:!0}),_function:mi("function",hi),_if:mi("if"),_return:mi("return",di),_switch:mi("switch"),_throw:mi("throw",di),_try:mi("try"),_var:mi("var"),_const:mi("const"),_while:mi("while",{isLoop:!0}),_with:mi("with"),_new:mi("new",{beforeExpr:!0,startsExpr:!0}),_this:mi("this",hi),_super:mi("super",hi),_class:mi("class",hi),_extends:mi("extends",di),_export:mi("export"),_import:mi("import",hi),_null:mi("null",hi),_true:mi("true",hi),_false:mi("false",hi),_in:mi("in",{beforeExpr:!0,binop:7}),_instanceof:mi("instanceof",{beforeExpr:!0,binop:7}),_typeof:mi("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:mi("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:mi("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},vi=/\r\n?|\n|\u2028|\u2029/,gi=new RegExp(vi.source,"g");function bi(e){return 10===e||13===e||8232===e||8233===e}function xi(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(bi(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var wi=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ci=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ki=Object.prototype,Si=ki.hasOwnProperty,Ti=ki.toString,_i=Object.hasOwn||function(e,t){return Si.call(e,t)},Ei=Array.isArray||function(e){return"[object Array]"===Ti.call(e)};function Pi(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function Ii(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var Di=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ai=function(e,t){this.line=e,this.column=t};Ai.prototype.offset=function(e){return new Ai(this.line,this.column+e)};var Ni=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function Oi(e,t){for(var n=1,r=0;;){var i=xi(e,r,t);if(i<0)return new Ai(n,t-r);++n,r=i}}var Li={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},Ri=!1;function Mi(e){var t={};for(var n in Li)t[n]=e&&_i(e,n)?e[n]:Li[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Ri&&"object"==typeof console&&console.warn&&(Ri=!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),Ei(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return Ei(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,s,a,o){var c={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(c.loc=new Ni(this,a,o)),e.ranges&&(c.range=[i,s]),t.push(c)}}(t,t.onComment)),t}var Fi=256;function ji(e,t){return 2|(e?4:0)|(t?8:0)}var Vi=function(e,t,n){this.options=e=Mi(e),this.sourceFile=e.sourceFile,this.keywords=Pi(ri[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=ti[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=Pi(r);var i=(r?r+" ":"")+ti.strict;this.reservedWordsStrict=Pi(i),this.reservedWordsStrictBind=Pi(i+" "+ti.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(vi).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=yi.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=[]},Bi={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}};Vi.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Bi.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Bi.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Bi.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Bi.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Fi)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Bi.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},Bi.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Bi.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Bi.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},Bi.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Fi)>0},Vi.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},Vi.parse=function(e,t){return new this(t,e).parse()},Vi.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Vi.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Vi.prototype,Bi);var Wi=Vi.prototype,Ui=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Wi.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Ci.lastIndex=e,e+=Ci.exec(this.input)[0].length;var t=Ui.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){Ci.lastIndex=e+t[0].length;var n=Ci.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||vi.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,Ci.lastIndex=e,e+=Ci.exec(this.input)[0].length,";"===this.input[e]&&e++}},Wi.eat=function(e){return this.type===e&&(this.next(),!0)},Wi.isContextual=function(e){return this.type===yi.name&&this.value===e&&!this.containsEsc},Wi.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},Wi.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Wi.canInsertSemicolon=function(){return this.type===yi.eof||this.type===yi.braceR||vi.test(this.input.slice(this.lastTokEnd,this.start))},Wi.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Wi.semicolon=function(){this.eat(yi.semi)||this.insertSemicolon()||this.unexpected()},Wi.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Wi.expect=function(e){this.eat(e)||this.unexpected()},Wi.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var Gi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Wi.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")}},Wi.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")},Wi.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")},Wi.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var $i=Vi.prototype;$i.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==yi.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 s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Hi={kind:"loop"},zi={kind:"switch"};$i.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ci.lastIndex=this.pos;var t=Ci.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(ci(r,!0)){for(var i=n+1;pi(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(n,i);if(!ii.test(s))return!0}return!1},$i.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ci.lastIndex=this.pos;var e,t=Ci.exec(this.input),n=this.pos+t[0].length;return!(vi.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(pi(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},$i.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=yi._var,r="let"),i){case yi._break:case yi._continue:return this.parseBreakContinueStatement(s,i.keyword);case yi._debugger:return this.parseDebuggerStatement(s);case yi._do:return this.parseDoStatement(s);case yi._for:return this.parseForStatement(s);case yi._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case yi._class:return e&&this.unexpected(),this.parseClass(s,!0);case yi._if:return this.parseIfStatement(s);case yi._return:return this.parseReturnStatement(s);case yi._switch:return this.parseSwitchStatement(s);case yi._throw:return this.parseThrowStatement(s);case yi._try:return this.parseTryStatement(s);case yi._const:case yi._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case yi._while:return this.parseWhileStatement(s);case yi._with:return this.parseWithStatement(s);case yi.braceL:return this.parseBlock(!0,s);case yi.semi:return this.parseEmptyStatement(s);case yi._export:case yi._import:if(this.options.ecmaVersion>10&&i===yi._import){Ci.lastIndex=this.pos;var a=Ci.exec(this.input),o=this.pos+a[0].length,c=this.input.charCodeAt(o);if(40===c||46===c)return this.parseExpressionStatement(s,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===yi._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var p=this.value,l=this.parseExpression();return i===yi.name&&"Identifier"===l.type&&this.eat(yi.colon)?this.parseLabeledStatement(s,p,l,e):this.parseExpressionStatement(s,l)}},$i.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(yi.semi)||this.insertSemicolon()?e.label=null:this.type!==yi.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")},$i.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},$i.parseDoStatement=function(e){return this.next(),this.labels.push(Hi),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(yi._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(yi.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},$i.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Hi),this.enterScope(0),this.expect(yi.parenL),this.type===yi.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===yi._var||this.type===yi._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===yi._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===yi._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=this.isContextual("let"),a=!1,o=new Gi,c=this.parseExpression(!(t>-1)||"await",o);return this.type===yi._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===yi._in?t>-1&&this.unexpected(t):e.await=t>-1),s&&a&&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))},$i.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,qi|(n?0:Yi),!1,t)},$i.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(yi._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},$i.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(yi.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},$i.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(yi.braceL),this.labels.push(zi),this.enterScope(0);for(var n=!1;this.type!==yi.braceR;)if(this.type===yi._case||this.type===yi._default){var r=this.type===yi._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(yi.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")},$i.parseThrowStatement=function(e){return this.next(),vi.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 Xi=[];$i.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===yi._catch){var t=this.startNode();if(this.next(),this.eat(yi.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(yi.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(yi._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},$i.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},$i.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Hi),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},$i.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")},$i.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},$i.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===yi._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=a}return this.labels.push({name:t,kind:a,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")},$i.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},$i.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(yi.braceL),e&&this.enterScope(0);this.type!==yi.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},$i.parseFor=function(e,t){return e.init=t,this.expect(yi.semi),e.test=this.type===yi.semi?null:this.parseExpression(),this.expect(yi.semi),e.update=this.type===yi.parenR?null:this.parseExpression(),this.expect(yi.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},$i.parseForIn=function(e,t){var n=this.type===yi._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(yi.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},$i.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(yi.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===yi._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===yi._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(yi.comma))break}return e},$i.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var qi=1,Yi=2;function Ki(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 Ji(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}$i.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===yi.star&&t&Yi&&this.unexpected(),e.generator=this.eat(yi.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&qi&&(e.id=4&t&&this.type!==yi.name?null:this.parseIdent(),!e.id||t&Yi||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ji(e.async,e.generator)),t&qi||(e.id=this.type===yi.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&qi?"FunctionDeclaration":"FunctionExpression")},$i.parseFunctionParams=function(e){this.expect(yi.parenL),e.params=this.parseBindingList(yi.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},$i.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(),s=!1;for(i.body=[],this.expect(yi.braceL);this.type!==yi.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raise(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&Ki(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.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")},$i.parseClassElement=function(e){if(this.eat(yi.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(yi.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===yi.star?o=!0:r="static"}if(n.static=o,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==yi.star||this.canInsertSemicolon()?r="async":s=!0),!r&&(t>=9||!s)&&this.eat(yi.star)&&(i=!0),!r&&!s&&!i){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=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===yi.parenL||"method"!==a||i||s){var p=!n.static&&Ji(n,"constructor"),l=p&&e;p&&"method"!==a&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=p?"constructor":a,this.parseClassMethod(n,i,s,l)}else this.parseClassField(n);return n},$i.isClassElementNameStart=function(){return this.type===yi.name||this.type===yi.privateId||this.type===yi.num||this.type===yi.string||this.type===yi.bracketL||this.type.keyword},$i.parseClassElementName=function(e){this.type===yi.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)},$i.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&&Ji(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},$i.parseClassField=function(e){if(Ji(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Ji(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(yi.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")},$i.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==yi.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},$i.parseClassId=function(e,t){this.type===yi.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},$i.parseClassSuper=function(e){e.superClass=this.eat(yi._extends)?this.parseExprSubscripts(!1):null},$i.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},$i.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],s=0;s<n.length;++s){var a=n[s];_i(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},$i.parseExport=function(e,t){if(this.next(),this.eat(yi.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!==yi.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(yi._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===yi._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|qi,!1,n)}else if(this.type===yi._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!==yi.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,a=e.specifiers;s<a.length;s+=1){var o=a[s];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")},$i.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),_i(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},$i.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 s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var a=0,o=t.elements;a<o.length;a+=1){var c=o[a];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)},$i.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)}},$i.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},$i.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(yi.braceL);!this.eat(yi.braceR);){if(n)n=!1;else if(this.expect(yi.comma),this.afterTrailingComma(yi.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},$i.parseImport=function(e){return this.next(),this.type===yi.string?(e.specifiers=Xi,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===yi.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},$i.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===yi.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(yi.comma))return e}if(this.type===yi.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(yi.braceL);!this.eat(yi.braceR);){if(t)t=!1;else if(this.expect(yi.comma),this.afterTrailingComma(yi.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},$i.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===yi.string){var e=this.parseLiteral(this.value);return Di.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},$i.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)},$i.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 Qi=Vi.prototype;Qi.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 s=i[r];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.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},Qi.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 s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},Qi.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Qi.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==yi.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Qi.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case yi.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(yi.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case yi.braceL:return this.parseObj(!0)}return this.parseIdent()},Qi.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(yi.comma),t&&this.type===yi.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===yi.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===yi.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),r.push(a)}return r},Qi.parseBindingListItem=function(e){return e},Qi.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(yi.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Qi.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&&(_i(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")}},Qi.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 s=i[r];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var c=o[a];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Qi.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 Zi=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},es={b_stat:new Zi("{",!1),b_expr:new Zi("{",!0),b_tmpl:new Zi("${",!1),p_stat:new Zi("(",!1),p_expr:new Zi("(",!0),q_tmpl:new Zi("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new Zi("function",!1),f_expr:new Zi("function",!0),f_expr_gen:new Zi("function",!0,!1,null,!0),f_gen:new Zi("function",!1,!1,null,!0)},ts=Vi.prototype;ts.initialContext=function(){return[es.b_stat]},ts.curContext=function(){return this.context[this.context.length-1]},ts.braceIsBlock=function(e){var t=this.curContext();return t===es.f_expr||t===es.f_stat||(e!==yi.colon||t!==es.b_stat&&t!==es.b_expr?e===yi._return||e===yi.name&&this.exprAllowed?vi.test(this.input.slice(this.lastTokEnd,this.start)):e===yi._else||e===yi.semi||e===yi.eof||e===yi.parenR||e===yi.arrow||(e===yi.braceL?t===es.b_stat:e!==yi._var&&e!==yi._const&&e!==yi.name&&!this.exprAllowed):!t.isExpr)},ts.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},ts.updateContext=function(e){var t,n=this.type;n.keyword&&e===yi.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},ts.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},yi.parenR.updateContext=yi.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===es.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},yi.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?es.b_stat:es.b_expr),this.exprAllowed=!0},yi.dollarBraceL.updateContext=function(){this.context.push(es.b_tmpl),this.exprAllowed=!0},yi.parenL.updateContext=function(e){var t=e===yi._if||e===yi._for||e===yi._with||e===yi._while;this.context.push(t?es.p_stat:es.p_expr),this.exprAllowed=!0},yi.incDec.updateContext=function(){},yi._function.updateContext=yi._class.updateContext=function(e){!e.beforeExpr||e===yi._else||e===yi.semi&&this.curContext()!==es.p_stat||e===yi._return&&vi.test(this.input.slice(this.lastTokEnd,this.start))||(e===yi.colon||e===yi.braceL)&&this.curContext()===es.b_stat?this.context.push(es.f_stat):this.context.push(es.f_expr),this.exprAllowed=!1},yi.backQuote.updateContext=function(){this.curContext()===es.q_tmpl?this.context.pop():this.context.push(es.q_tmpl),this.exprAllowed=!1},yi.star.updateContext=function(e){if(e===yi._function){var t=this.context.length-1;this.context[t]===es.f_expr?this.context[t]=es.f_expr_gen:this.context[t]=es.f_gen}this.exprAllowed=!0},yi.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==yi.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ns=Vi.prototype;function rs(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&rs(e.expression)}ns.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 s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[r="$"+r];if(a)("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(i.start,"Redefinition of property");else a=t[r]={init:!1,get:!1,set:!1};a[s]=!0}}},ns.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===yi.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(yi.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},ns.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1,a=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Gi,r=!0);var o=this.start,c=this.startLoc;this.type!==yi.parenL&&this.type!==yi.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===yi.eq&&(p=this.toAssignable(p,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===yi.eq?this.checkLValPattern(p):this.checkLValSimple(p),l.left=p,this.next(),l.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(l,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),p},ns.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(yi.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(yi.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},ns.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)},ns.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==yi._in)&&s>r){var a=this.type===yi.logicalOR||this.type===yi.logicalAND,o=this.type===yi.coalesce;o&&(s=yi.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,s,i),d=this.buildBinary(t,n,e,u,c,a||o);return(a&&this.type===yi.coalesce||o&&(this.type===yi.logicalOR||this.type===yi.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},ns.buildBinary=function(e,t,n,r,i,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=n,a.operator=i,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},ns.parseMaybeUnary=function(e,t,n,r){var i,s=this.start,a=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===yi.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&&rs(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!==yi.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(s,a);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!==yi._in&&this.unexpected();return n||!this.eat(yi.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},ns.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 s=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},ns.parseSubscripts=function(e,t,n,r,i){for(var s=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,a=!1;;){var o=this.parseSubscript(e,t,n,r,s,a,i);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var c=this.startNodeAt(t,n);c.expression=o,o=this.finishNode(c,"ChainExpression")}return o}e=o}},ns.parseSubscript=function(e,t,n,r,i,s,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(yi.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(yi.bracketL);if(p||c&&this.type!==yi.parenL&&this.type!==yi.backQuote||this.eat(yi.dot)){var l=this.startNodeAt(t,n);l.object=e,p?(l.property=this.parseExpression(),this.expect(yi.bracketR)):this.type===yi.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(yi.parenL)){var u=new Gi,d=this.yieldPos,h=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(yi.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(yi.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,a);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var y=this.startNodeAt(t,n);y.callee=e,y.arguments=m,o&&(y.optional=c),e=this.finishNode(y,"CallExpression")}else if(this.type===yi.backQuote){(c||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,n);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e},ns.parseExprAtom=function(e,t){this.type===yi.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case yi._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==yi.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==yi.dot&&this.type!==yi.bracketL&&this.type!==yi.parenL&&this.unexpected(),this.finishNode(n,"Super");case yi._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case yi.name:var i=this.start,s=this.startLoc,a=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(yi._function))return this.overrideContext(es.f_expr),this.parseFunction(this.startNodeAt(i,s),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(yi.arrow))return this.parseArrowExpression(this.startNodeAt(i,s),[o],!1,t);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===yi.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(yi.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,s),[o],!0,t)}return o;case yi.regexp:var c=this.value;return(n=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},n;case yi.num:case yi.string:return this.parseLiteral(this.value);case yi._null:case yi._true:case yi._false:return(n=this.startNode()).value=this.type===yi._null?null:this.type===yi._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case yi.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 yi.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(yi.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case yi.braceL:return this.overrideContext(es.b_expr),this.parseObj(!1,e);case yi._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case yi._class:return this.parseClass(this.startNode(),!1);case yi._new:return this.parseNew();case yi.backQuote:return this.parseTemplate();case yi._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ns.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 yi.parenL:return this.parseDynamicImport(e);case yi.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},ns.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(yi.parenR)){var t=this.start;this.eat(yi.comma)&&this.eat(yi.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ns.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")},ns.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")},ns.parseParenExpression=function(){this.expect(yi.parenL);var e=this.parseExpression();return this.expect(yi.parenR),e},ns.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,c=this.startLoc,p=[],l=!0,u=!1,d=new Gi,h=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==yi.parenR;){if(l?l=!1:this.expect(yi.comma),s&&this.afterTrailingComma(yi.parenR,!0)){u=!0;break}if(this.type===yi.ellipsis){a=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===yi.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,y=this.lastTokEndLoc;if(this.expect(yi.parenR),e&&!this.canInsertSemicolon()&&this.eat(yi.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),a&&this.unexpected(a),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,y)):n=p[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(r,i);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},ns.parseParenItem=function(e){return e},ns.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var is=[];ns.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(yi.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,s=this.type===yi._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),s&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(yi.parenL)?e.arguments=this.parseExprList(yi.parenR,this.options.ecmaVersion>=8,!1):e.arguments=is,this.finishNode(e,"NewExpression")},ns.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===yi.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===yi.backQuote,this.finishNode(n,"TemplateElement")},ns.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===yi.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(yi.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(yi.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},ns.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===yi.name||this.type===yi.num||this.type===yi.string||this.type===yi.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===yi.star)&&!vi.test(this.input.slice(this.lastTokEnd,this.start))},ns.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(yi.braceR);){if(r)r=!1;else if(this.expect(yi.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(yi.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},ns.parseProperty=function(e,t){var n,r,i,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(yi.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===yi.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===yi.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,t),this.type===yi.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(yi.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(yi.star),this.parsePropertyName(a,t)):r=!1,this.parsePropertyValue(a,e,n,r,i,s,t,o),this.finishNode(a,"Property")},ns.parsePropertyValue=function(e,t,n,r,i,s,a,o){if((n||r)&&this.type===yi.colon&&this.unexpected(),this.eat(yi.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===yi.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===yi.comma||this.type===yi.braceR||this.type===yi.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,s,this.copyNode(e.key)):this.type===yi.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,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")}},ns.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(yi.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(yi.bracketR),e.key;e.computed=!1}return e.key=this.type===yi.num||this.type===yi.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ns.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ns.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=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|ji(t,r.generator)|(n?128:0)),this.expect(yi.parenL),r.params=this.parseBindingList(yi.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},ns.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|ji(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=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},ns.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==yi.braceL,s=this.strict,a=!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);s&&!o||(a=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=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},ns.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},ns.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,1,t?null:n)}},ns.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(yi.comma),t&&this.afterTrailingComma(e))break;var a=void 0;n&&this.type===yi.comma?a=null:this.type===yi.ellipsis?(a=this.parseSpread(r),r&&this.type===yi.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),i.push(a)}return i},ns.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"))},ns.parseIdent=function(e,t){var n=this.startNode();return this.type===yi.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},ns.parsePrivateIdent=function(){var e=this.startNode();return this.type===yi.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},ns.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===yi.semi||this.canInsertSemicolon()||this.type!==yi.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(yi.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ns.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 ss=Vi.prototype;ss.raise=function(e,t){var n=Oi(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},ss.raiseRecoverable=ss.raise,ss.curPosition=function(){if(this.options.locations)return new Ai(this.curLine,this.pos-this.lineStart)};var as=Vi.prototype,os=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};as.enterScope=function(e){this.scopeStack.push(new os(e))},as.exitScope=function(){this.scopeStack.pop()},as.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},as.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 s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];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")},as.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},as.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},as.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},as.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 cs=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new Ni(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ps=Vi.prototype;function ls(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}ps.startNode=function(){return new cs(this,this.start,this.startLoc)},ps.startNodeAt=function(e,t){return new cs(this,e,t)},ps.finishNode=function(e,t){return ls.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ps.finishNodeAt=function(e,t,n,r){return ls.call(this,e,t,n,r)},ps.copyNode=function(e){var t=new cs(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var us="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",ds=us+" Extended_Pictographic",hs=ds+" EBase EComp EMod EPres ExtPict",fs={9:us,10:ds,11:ds,12:hs,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"},ms="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",ys="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",vs=ys+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",gs=vs+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",bs=gs+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",xs={9:ys,10:vs,11:gs,12:bs,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"},ws={};function Cs(e){var t=ws[e]={binary:Pi(fs[e]+" "+ms),nonBinary:{General_Category:Pi(ms),Script:Pi(xs[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 ks=0,Ss=[9,10,11,12,13];ks<Ss.length;ks+=1){Cs(Ss[ks])}var Ts=Vi.prototype,_s=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=ws[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 Es(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Ps(e){return e>=65&&e<=90||e>=97&&e<=122}function Is(e){return Ps(e)||95===e}function Ds(e){return Is(e)||As(e)}function As(e){return e>=48&&e<=57}function Ns(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Os(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ls(e){return e>=48&&e<=55}_s.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},_s.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},_s.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 s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i},_s.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,s=n.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},_s.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},_s.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},_s.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},_s.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ts.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")}},Ts.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Ts.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")}},Ts.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")},Ts.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Ts.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)},Ts.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},Ts.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Ts.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Ts.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},Ts.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)},Ts.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Ts.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},Ts.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},Ts.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)},Ts.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Ts.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Es(t)&&(e.lastIntValue=t,e.advance(),!0)},Ts.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Es(n);)e.advance();return e.pos!==t},Ts.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)},Ts.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")}},Ts.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},Ts.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ii(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ii(e.lastIntValue);return!0}return!1},Ts.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 ci(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ts.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 pi(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ts.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)},Ts.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},Ts.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},Ts.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)},Ts.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Ts.regexp_eatZero=function(e){return 48===e.current()&&!As(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Ts.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)},Ts.regexp_eatControlLetter=function(e){var t=e.current();return!!Ps(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ts.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 s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var a=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*(s-55296)+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=s}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},Ts.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)},Ts.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},Ts.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},Ts.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},Ts.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){_i(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Ts.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Ts.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Is(t=e.current());)e.lastStringValue+=Ii(t),e.advance();return""!==e.lastStringValue},Ts.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ds(t=e.current());)e.lastStringValue+=Ii(t),e.advance();return""!==e.lastStringValue},Ts.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Ts.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},Ts.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")}}},Ts.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||Ls(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)},Ts.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)},Ts.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!As(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ts.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},Ts.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;As(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Ts.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ns(n=e.current());)e.lastIntValue=16*e.lastIntValue+Os(n),e.advance();return e.pos!==t},Ts.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},Ts.regexp_eatOctalDigit=function(e){var t=e.current();return Ls(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Ts.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Ns(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Os(i),e.advance()}return!0};var Rs=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Ni(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Ms=Vi.prototype;function Fs(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}Ms.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 Rs(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ms.getToken=function(){return this.next(),new Rs(this)},"undefined"!=typeof Symbol&&(Ms[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===yi.eof,value:t}}}}),Ms.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(yi.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Ms.readToken=function(e){return ci(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Ms.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},Ms.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=xi(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())},Ms.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&&!bi(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())},Ms.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&&wi.test(String.fromCharCode(e))))break e;++this.pos}}},Ms.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)},Ms.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(yi.ellipsis)):(++this.pos,this.finishToken(yi.dot))},Ms.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(yi.assign,2):this.finishOp(yi.slash,1)},Ms.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?yi.star:yi.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=yi.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(yi.assign,n+1):this.finishOp(r,n)},Ms.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(yi.assign,3);return this.finishOp(124===e?yi.logicalOR:yi.logicalAND,2)}return 61===t?this.finishOp(yi.assign,2):this.finishOp(124===e?yi.bitwiseOR:yi.bitwiseAND,1)},Ms.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(yi.assign,2):this.finishOp(yi.bitwiseXOR,1)},Ms.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&&!vi.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(yi.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(yi.assign,2):this.finishOp(yi.plusMin,1)},Ms.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(yi.assign,n+1):this.finishOp(yi.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(yi.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ms.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(yi.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(yi.arrow)):this.finishOp(61===e?yi.eq:yi.prefix,1)},Ms.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(yi.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(yi.assign,3);return this.finishOp(yi.coalesce,2)}}return this.finishOp(yi.question,1)},Ms.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,ci(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(yi.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ii(e)+"'")},Ms.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(yi.parenL);case 41:return++this.pos,this.finishToken(yi.parenR);case 59:return++this.pos,this.finishToken(yi.semi);case 44:return++this.pos,this.finishToken(yi.comma);case 91:return++this.pos,this.finishToken(yi.bracketL);case 93:return++this.pos,this.finishToken(yi.bracketR);case 123:return++this.pos,this.finishToken(yi.braceL);case 125:return++this.pos,this.finishToken(yi.braceR);case 58:return++this.pos,this.finishToken(yi.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(yi.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(yi.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ii(e)+"'")},Ms.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Ms.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(vi.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 s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new _s(this));o.reset(n,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=new RegExp(i,a)}catch(e){}return this.finishToken(yi.regexp,{pattern:i,flags:a,value:c})},Ms.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),s=this.pos,a=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,a=a*e+u}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},Ms.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=Fs(this.input.slice(t,this.pos)),++this.pos):ci(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(yi.num,n)},Ms.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=Fs(this.input.slice(t,this.pos));return++this.pos,ci(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(yi.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")),ci(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,a=(s=this.input.slice(t,this.pos),n?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(yi.num,a)},Ms.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},Ms.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)):(bi(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(yi.string,t)};var js={};Ms.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==js)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ms.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw js;this.raise(e,t)},Ms.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!==yi.template&&this.type!==yi.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(yi.template,e)):36===n?(this.pos+=2,this.finishToken(yi.dollarBraceL)):(++this.pos,this.finishToken(yi.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(bi(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}},Ms.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(yi.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Ms.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 Ii(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 bi(t)?"":String.fromCharCode(t)}},Ms.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Ms.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(pi(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?ci:pi)(a,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=Ii(a),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Ms.readWord=function(){var e=this.readWord1(),t=yi.name;return this.keywords.test(e)&&(t=fi[e]),this.finishToken(t,e)};Vi.acorn={Parser:Vi,version:"8.7.1",defaultOptions:Li,Position:Ai,SourceLocation:Ni,getLineInfo:Oi,Node:cs,TokenType:li,tokTypes:yi,keywordTypes:fi,TokContext:Zi,tokContexts:es,isIdentifierChar:pi,isIdentifierStart:ci,Token:Rs,isNewLine:bi,lineBreak:vi,lineBreakG:gi,nonASCIIwhitespace:wi};var Vs,Bs,Ws={ecmaVersion:6,sourceType:"script",allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1},Us="Literal",Gs="BinaryExpression",$s="MemberExpression",Hs="Identifier",zs="SequenceExpression";e.PropBindType=void 0,(Vs=e.PropBindType||(e.PropBindType={})).static="static",Vs.state="rematch",Vs.computed="computed",Vs.forItem="for-item",Vs.expression="expression",Vs.prop="prop",Vs.slot="slot",Vs.dataVar="dataVar",Vs.stateData="state",Vs.paramData="params",Vs.params="params",Vs.scope="scope",e.ActionType=void 0,(Bs=e.ActionType||(e.ActionType={})).Rematch="rematch",Bs.Material="material",Bs.GeneralFunc="general-func",Bs.LifeCycle="lifecycle",Bs.PropEvent="prop-event",Bs.HandlerFn="handler-fn",Bs.Inline="inline",Bs.Platform="platform",Bs.DataSource="dataSource";var Xs=function(e){function t(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,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function qs(e,t){var n=e,r=[];if(n.type==$s){if(e.$path)return o([],e.$path,!0);var i=n.object;switch(i.type){case $s:r=qs(i,t);break;case Hs:r=[i.name];break;default:throw new Xs({expression:e})}var s=n.property;if(n.computed){if(s.type!==Us||s.regex)throw new Xs({expression:e});r.push(s.value)}else r.push(s.name);t&&t(r),e.$path=r}return o([],r,!0)}var Ys=function(){function t(t,n){this.expressionString=t,this.options=r(r({},n),{type:e.PropBindType.expression,value:this.expressionString});var i=function(e,t){return Vi.parse(e,t)}(this.expressionString,Ws),s=i.body[0].expression;this.expression=s}return t.prototype.parse=function(){switch(this.expression.type){case Gs:return this.parseBinaryExpression(this.expression,this.options);case $s:return this.parseSimpleExpression(this.expression,this.options);case Hs:if("$slot"==this.expression.name)return this.options.type=e.PropBindType.slot,this.options.value="",this.options;throw new Xs({expression:this.expression});default:throw new Xs({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 Xs({expression:e});return this.parseItemAliseExpression(r,t),this.parseSimpleExpression(i,t)},t.prototype.parseSimpleExpression=function(t,n){if(t.type!==$s)throw new Xs({expression:t});var r=qs(t),i=r.find((function(e){return"object"==typeof e})),s={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 Xs({expression:t});if(s.index=1,s.replacer=this.options.pageId,"dataset"===r[1])return this.parseDataset(t,s,n);throw new Xs({expression:t});case"$app":if(s.index=1,s.replacer="global","dataset"===r[1])return this.parseDataset(t,s,n);throw new Xs({expression:t});case"$for":n.type=e.PropBindType.forItem,n.value=this.expressionString.slice(t.start,t.end).replace(/^\$for\./,"");break;default:throw new Xs({expression:t})}return n.expression=t,n},t.prototype.parseItemAliseExpression=function(e,t){switch(e.type){case Hs:return t;case zs:var n=e.expressions;if(n.length>2||n.length<1)throw new Xs({expression:e});for(var r=0,i=n;r<i.length;r++){if(i[r].type!==Hs)throw new Xs({expression:e})}return t;default:throw new Xs({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,s=void 0===i?this.expressionString:i,a=this._generatePrefix(t,n);return s.replace(new RegExp(a.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")),r)},t.prototype.parseDataset=function(t,n,i){switch(n.memberProperty[n.index+1]){case"state":i.type=e.PropBindType.stateData,i.value=this._replaceExpression(r(r({},n),{index:n.index+1}));break;case"params":i.type=e.PropBindType.params,i.value=this._replaceExpression(r(r({},n),{index:n.index+1}));break;default:throw new Xs({expression:t})}return this.options},t}();function Ks(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 Js(e){return"[object Object]"===Object.prototype.toString.call(e)}var Qs=function(e){if(!Js(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0};function Zs(e){return!!e&&"classNameList"===e.propertyPath}function ea(e,t){for(var n in e){var r=e[n],i=r.xComponent,s=r.properties;if(i){var a=i.moduleName,o=i.name;t[a]||(t[a]=new Set),t[a].add(o)}s&&ea(s,t)}}function ta(e,t,n,r){Object.keys(e).forEach((function(i){if(n.has(i)){var s=n.get(i);e[i].forEach((function(e){var a=s.components.find((function(t){return t.name===e}));if(a){if(!(t.indexOf(a)>-1)){t.push(a);var o={};ea(a.componentInstances,o),Object.keys(o).forEach((function(e){r[e]?o[e].forEach((function(t){return r[e].add(t)})):r[e]=o[e]})),ta(o,t,n,r)}}else console.warn("Component not found","".concat(i,":").concat(e))}))}}))}var na=["top","right","bottom","left"];function ra(e){return void 0===e&&(e={}),Object.keys(e).reduce((function(t,n){var r=e[n];return Js(r)?ia(t,n,ra(r)):ia(t,n,e[n]),t}),{})}function ia(e,t,n){null!=n&&""!==n&&"open"!==t&&(Qs(n)||(t.startsWith("--")?e[t]=n:e[Ks(t)]=n))}function sa(e,t){if(t){var n="".concat(e);if(/^\d*.?\d+$/.test(n))return"".concat(n,"px")}return e}function aa(e,t,n,r){var i=Ks("".concat(n));4===Object.keys(t).length?1===Xr(vr(t,(function(e){return e}))).length?ia(e,i,sa(t.top,r)):t.top===t.bottom&&t.left===t.right?ia(e,i,"".concat(sa(t.top,r)," ").concat(sa(t.right,r))):t.left===t.right?ia(e,i,"".concat(sa(t.top,r)," ").concat(sa(t.right,r)," ").concat(sa(t.bottom,r))):ia(e,i,"".concat(sa(t.top,r)," ").concat(sa(t.right,r)," ").concat(sa(t.bottom,r)," ").concat(sa(t.left,r))):na.forEach((function(i){void 0!==t[i]&&ia(e,Ks("".concat(n,"_").concat(i)),sa(t[i],r))}))}function oa(e,t,n){void 0===e&&(e={});var r=n||{},i=r.looseError,s=void 0!==i&&i,a=r.rpxCalcRoot;return Object.keys(e).reduce((function(n,r){var i=e[r];if(Bl[r])ia(n,r,i);else if(null!=i)try{ia(n,r,t(i,a))}catch(e){if(!s)throw e;console.warn("translate style error, key:value",r,i)}return n}),{})}function ca(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 pa(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 la(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 ua(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,r=e.text,s=e.border,a=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,y={};if(n&&(ia(y,"width",sa(n.width,!!t.addPXUnit)),ia(y,"height",sa(n.height,!!t.addPXUnit))),o&&aa(y,o,"margin",!!t.addPXUnit),c&&aa(y,c,"padding",!!t.addPXUnit),u&&ia(y,"display",u),"flex"===u&&d&&(d.justifyContent&&ia(y,"justifyContent",d.justifyContent),d.alignItems&&ia(y,"alignItems",d.alignItems),d.flexWrap&&d.flexDirection?ia(y,"flexFlow","".concat(d.flexDirection," ").concat(d.flexWrap)):(d.flexWrap&&ia(y,"flexWrap",d.flexWrap),d.flexDirection&&ia(y,"flexDirection",d.flexDirection))),"number"!=typeof p&&0!=="".concat(p).search(/^\d+$/)||(y.zIndex=p),r&&(ia(y,"color",r.color),ia(y,"fontSize",sa(r.fontSize,!!t.addPXUnit)),ia(y,"lineHeight",r.lineHeight),ia(y,"textAlign",r.textAlign),ia(y,"fontWeight",r.weight),void 0!==r.opacity&&ia(y,"opacity",r.opacity/100)),s){var v=s.type,g=s.color,b=s.width,x=s.radius,w=s.radiusInfo;if("string"==typeof b)v&&"none"!==v?ia(y,"border","".concat(sa(b,!!t.addPXUnit)," ").concat(v," ").concat(g||"")):(ia(y,"borderWidth",sa(b,!!t.addPXUnit)),g&&ia(y,"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,T=void 0===S?"0":S,_=b.bottom,E=void 0===_?"0":_,P=b.left,I=void 0===P?"0":P;ia(y,"borderWidth","".concat(sa(k,!!t.addPXUnit)||"0"," ").concat(sa(T,!!t.addPXUnit)||"0"," ").concat(sa(E,!!t.addPXUnit)||"0"," ").concat(sa(I,!!t.addPXUnit)||"0")),v&&ia(y,"borderStyle",v),g&&ia(y,"borderColor",g)}if(void 0!==x&&ia(y,"borderRadius",sa(x,!!t.addPXUnit)),w&&!Qs(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===Xr(vr(w,(function(e){return e}))).length?ia(y,"borderRadius",sa(D,!!t.addPXUnit)):ia(y,"borderRadius",D===N&&A===O?"".concat(sa(D,!!t.addPXUnit)," ").concat(sa(A,!!t.addPXUnit)):A===O?"".concat(sa(D,!!t.addPXUnit)," ").concat(sa(A,!!t.addPXUnit)," ").concat(sa(N,!!t.addPXUnit)):"".concat(sa(D,!!t.addPXUnit)," ").concat(sa(A,!!t.addPXUnit)," ").concat(sa(N,!!t.addPXUnit)," ").concat(sa(O,!!t.addPXUnit)))):(ia(y,"borderTopLeftRadius",sa(D,!!t.addPXUnit)),ia(y,"borderTopRightRadius",sa(A,!!t.addPXUnit)),ia(y,"borderBottomRightRadius",sa(N,!!t.addPXUnit)),ia(y,"borderBottomLeftRadius",sa(O,!!t.addPXUnit)))}"none"===v&&ia(y,"border","none")}if(a){var L=a.bgType,R=(g=a.color,a.image),M=a.size,F=a.repeat,j=a.position,V=a.positionObj;"color"===L?ia(y,"background",g):"image"===L&&(null!=R&&(R.search(/[()]/)>=0?y.background=R:y.background="url(".concat(R,")")),F&&(y.background+=" ".concat(F)),M&&ia(y,"backgroundSize",sa(M,!!t.addPXUnit)),ia(y,"backgroundPosition",j),V&&!Qs(V)&&(y.background+=" ".concat(sa(V.left,!!t.addPXUnit)," ").concat(sa(V.top,!!t.addPXUnit)))),void 0===L&&(ia(y,"backgroundColor",g),null!=R&&(y.backgroundImage="url(".concat(R,")"),ia(y,"backgroundRepeat",F),ia(y,"backgroundSize",sa(M,!!t.addPXUnit)),ia(y,"backgroundPosition",j)))}if(l&&(ia(y,"position",l.position),void 0!==l.left&&ia(y,"left",sa(l.left,!!t.addPXUnit)),void 0!==l.right&&ia(y,"right",sa(l.right,!!t.addPXUnit)),void 0!==l.top&&ia(y,"top",sa(l.top,!!t.addPXUnit)),void 0!==l.bottom&&ia(y,"bottom",sa(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,s=e.offsetX,a=e.offsetY,o=e.blurRadius,c=e.spreadRadius,p=e.color,l=e.global,u=e.inset;("none"===i?r="none":l?r=l:(s||a)&&(u&&(r="inset "),r+=sa(s||0,!!t.addPXUnit),r+=" ".concat(sa(a||0,!!t.addPXUnit)),(o||c)&&(r+=" ".concat(sa(o||0,!!t.addPXUnit))),c&&(r+=" ".concat(sa(c,!!t.addPXUnit))),p&&(r+=" ".concat(p))),r)&&(W+=(W?" , ":"")+r)})),W&&ia(y,"boxShadow",W)}if(h&&h.length>0&&h.map((function(e){ia(y,e.key,e.value)})),f&&!t.ignoreSelf){var U=f,G=U.cssFloat,$=i(U,["cssFloat"]);Object.assign(y,$,{float:G})}for(var H in y){var z=y[H];Array.isArray(z)&&(y[H]=z[z.length-1])}var X=t.defaultUnit,q={rpxCalcRoot:t.rpxCalcRoot};return X||(t.toRpx&&(X="rpx"),t.toRem&&(X="rem")),X?da(y,X,q):y}function da(e,t,n){return void 0===e&&(e={}),oa(e,{px:la,rem:ca,rpx:pa}[t]||function(e,t){return e},n)}function ha(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 s=t.dataBinds.find((function(e){return"_visible"===e.propertyPath}));if(s){var a=(t.dataTypes||[]).find((function(e){return e.propertyPath===s.propertyPath}));a&&"bind"===a.type&&(i.waIf={type:s.type||e.PropBindType.state,value:s.bindDataPath,extra:s.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 fa(t){var n,r,i={},s=["_visible","_waFor","_waForKey","_display"];for(var a in t.data)s.indexOf(a)>-1||(i[a]={value:t.data[a]});return null===(r=null===(n=t.dataBinds)||void 0===n?void 0:n.forEach)||void 0===r||r.call(n,(function(n){if(!(s.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 ma(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:fa(e),isCapturePhase:e.isCapturePhase,noPropagation:e.noPropagation}}))}function ya(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=Nn(n);for(var s in i.dataTypes=n.dataTypes||[],t){var a=t[s];if("static"===a.type||void 0===a.type)i.data=n.data||{},i.data[s]=a.value,i.dataTypes.push({propertyPath:s,type:"static"});else if("slot"===a.type)i.dataTypes.push({propertyPath:s,type:"slot"});else{if(i.dataBinds=n.dataBinds||[],a.value.startsWith("!")&&a.value!==e.PropBindType.expression){var o=/^!global./,c="";c=o.test(a.value)?a.value.replace(o,"!app.state."):a.value.replace(/^!\w+./,"!$page."),i.dataBinds.push({propertyPath:s,bindDataPath:c,type:e.PropBindType.expression,extra:a.extra})}else i.dataBinds.push({propertyPath:s,bindDataPath:a.value,type:a.type,extra:a.extra});i.dataTypes.push({propertyPath:s,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 va(e){if(null!=e&&!(Array.isArray(e)&&0===e.length||Js(e)&&Qs(e)))return e}var ga,ba=["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"]),xa=["Input","Textarea","Number","Selector","MultiSelector","Time","Date","Region","CheckboxGroup","Checkbox","RadioGroup","Radio","Switch","Slider","Uploader"],wa=["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"],Ca=["modeltable","modelcreate","modelupdate","modeldetail"],ka=/^cloudbase_bussiness.*$/i;e.EExternalResourceType=void 0,(ga=e.EExternalResourceType||(e.EExternalResourceType={})).JSUrl="jsUrl",ga.CSSUrl="cssUrl",ga.CSSText="cssText",ga.JSText="jsText",ga.Bundle="bundle";var Sa,Ta=Object.freeze({__proto__:null}),_a=((Sa={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",Sa[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}",Sa[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}",Sa[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",Sa[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",Sa[e.ECodeType.THEME]="@example-primary-color: blue;",Sa[e.ECodeType.MPCONFIG]="export default {\n appJson: {\n // 小程序接口权限相关设置,可选\n /* permission: {\n 'scope.userLocation': {\n desc: '你的位置信息将用于小程序位置接口的效果展示',\n },\n }, */\n },\n}\n ",Sa[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}",Sa);function Ea(t,n,r){var i=t.id,s=t.version,a={type:r,id:i,version:void 0===s?"":s};if(n===e.ECodeType.LIFECYCLE){var o="";switch(r){case"component":o=_a.compLifeCycle;break;case"page":o=_a.pageLifeCycle;break;case"app":o=_a.appLifeCycle}return Hr(o)(a)}return Hr(o=_a[n]||"epxort default {}")(a)}e.DEPENDENCIES_TYPE=void 0,(e.DEPENDENCIES_TYPE||(e.DEPENDENCIES_TYPE={})).COMPONENTS="components";var Pa="weda",Ia="".concat(Pa,":").concat(e.DEPENDENCIES_TYPE.COMPONENTS),Da="gsd-h5-react",Aa="CLOUDBASE_STANDARD";function Na(e,t){for(var n=e.split("."),r=t.split("."),i=0;i<3;i++){var s=Number(n[i]),a=Number(r[i]);if(s>a)return 1;if(a>s)return-1;if(!isNaN(s)&&isNaN(a))return 1;if(isNaN(s)&&!isNaN(a))return-1}return 0}function Oa(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return 10*Math.round(r/10)/n}function La(e,t,n){var r=e.find((function(e){return e.name===Da}));if(r){var i=r.version;return i.includes(".")?Na(t,i)<=0:Number(i)>=n}return!0}function Ra(t){var n,r,i,s=t.ctx,a=t.key,o=t.dynamicValue,c=t.scope,p=void 0===c?"page":c,l=t.streamlineDefaultValue,u=o.value,d=s.dependenciesMap,h=void 0===d?{}:d;if(o.type&&"static"!==o.type)switch(a=":".concat(a),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,y=/^(.*?)\./,v=m,g=m.match(y);g&&(v=g[1]);var b="component"===p?"$comp":"$page";"global"===v?b="$app":(/^comp-\w+/.test(v)||/^\$comp_\w+/.test(v))&&(b="$comp"),b+=".".concat(f[o.type],"."),u=m.replace(y,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=s.component||{},w=x.module,C=void 0===w?"":w,k=x.component,S=void 0===k?"":k,T="".concat(C,":").concat(S),_=null===(i=null===(r=null==h?void 0:h[T])||void 0===r?void 0:r.dataForm)||void 0===i?void 0:i[a];((null==_?void 0:_.default)===u||_&&void 0===_.default&&""===u)&&(u=void 0)}return{key:a,value:u,extra:o.extra}}var Ma=/^:(.*)$/;function Fa(t,n,r,i){var s,a=n.match(Ma);if(a){var o=a[1],c=e.PropBindType.expression;try{var p=new Ys(r,{pageId:null===(s=t.page)||void 0===s?void 0:s.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 ja(e){var t=e.ctx,n=e.map,r=void 0===n?{}:n,i=e.scope,s=void 0===i?"page":i,a=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=Ra({ctx:t,key:e,dynamicValue:r[e],scope:s,streamlineDefaultValue:a}),i=n.key,p=n.value,l=n.extra,u=i.match(/^:(.*)$/),d=i;u&&(d=u[1],qr(o,d));var h=d.split(".");if(null==bt(o,i)){if(Array.isArray(p)&&(null==p?void 0:p.some((function(e){return!!(null==e?void 0:e.selectableBlock)})))){var f=Nn(p);p=null==f?void 0:f.map((function(e){var n,r,i,s=null===(n=null==e?void 0:e.selectableBlock)||void 0===n?void 0:n["x-props"],a=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==a?void 0:a.split(":")[0],c=null==a?void 0:a.split(":")[1];return s&&ka.test(o)&&Ca.includes(c)&&(e.selectableBlock=oo(t,e.selectableBlock)),e}))}u&&h.length>=2?Ir(o,function(e){var t=e.split(".");return t[t.length-1]=":".concat(t[t.length-1]),t.join(".")}(d),Nn(p)):o[i]=Nn(p)}c[d]=l})),{data:o,extra:c}}function Va(e,t,n){return void 0===n&&(n=""),Object.keys(t).forEach((function(r){var i=t[r];if(C(i)){if(null==i?void 0:i.some((function(e){return!!(null==e?void 0:e.selectableBlock)})))return;i.forEach((function(t,i){_(t)&&(t=Va(e,t,"".concat(""===n?"":"".concat(n,".")).concat(r,".").concat(i)))}))}else if(_(i))i=Va(e,i,"".concat(""===n?"":"".concat(n,".")).concat(r));else{var s=r.match(Ma);s&&(e[":".concat(""===n?"":"".concat(n,".")).concat(s[1])]=t[r],t!==e&&qr(t,r))}})),t}function Ba(e,t,n){var r,i,s={},a=Nn(t);for(var o in(t=Va(a,a,""))||{}){var c=null==t?void 0:t[o],p=o.match(Ma),l=Fa(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,s,a=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===(s=null===(i=null==t?void 0:t.selectableBlock)||void 0===i?void 0:i.component)||void 0===s?void 0:s.toLowerCase();return t.selectableBlock&&ka.test(a)&&Ca.includes(o)&&(t.selectableBlock=co(e,t.selectableBlock)),t}))),void 0!==d&&(s[u]=d)}return s}function Wa(e,t,n){return void 0===n&&(n={}),ja({ctx:e,scope:t,map:n,streamlineDefaultValue:e.streamlineDefaultValue})}function Ua(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 s in t)r[s]||(i[s]=t[s]);return Ba(e,i,n)}function Ga(e,t){if(!Ha(t))return t;var n=JSON.parse(JSON.stringify(t));return Object.values(n.state).forEach((function(t){var n,r,i,s;"datasource"===t.varType&&((null===(n=t.initMethod)||void 0===n?void 0:n.params)&&(t.initMethod.params=null===(r=ja({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===(s=ja({ctx:e,map:t.updateMethod.params}))||void 0===s?void 0:s.data))})),n}function $a(e,t){if(!Ha(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=Ba(e,t.initMethod.params)),(null===(r=t.updateMethod)||void 0===r?void 0:r.params)&&(t.updateMethod.params=Ba(e,t.updateMethod.params)))})),n}function Ha(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 za(e,t,n){var r;void 0===n&&(n="page");var i={":if":t.waIf?Ra({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(Ra({ctx:e,key:"waFor",dynamicValue:t.waFor,scope:n}).value):void 0,key:t.waForKey?Ra({ctx:e,key:"waForKey",dynamicValue:t.waForKey,scope:n}).value:void 0,":display":t.waDisplay?Ra({ctx:e,key:"waDisplay",dynamicValue:t.waDisplay,scope:n}).value:void 0};for(var s in i){if(void 0!==i[s])return i}}function Xa(t,n){var r=void 0!==(null==n?void 0:n[":if"])?Fa(t,":if",n[":if"]).value:{value:!0},i=void 0!==(null==n?void 0:n[":display"])?Fa(t,":display",n[":display"]).value:{value:!0},s=(null==n?void 0:n[":for"])?Fa(t,":for",n[":for"]).value:void 0,a=(null==n?void 0:n.key)?Fa(t,"key",n.key).value:void 0;if(s){var o=s.type,c=s.value;o===e.PropBindType.expression&&(s.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:s,waForKey:a};for(var l in p){if(void 0!==p[l])return p}}function qa(e,t){var n=ja({ctx:e,map:t.data})||{},r=n.data,i=n.extra,s=void 0===i?{}:i,a={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(s).some((function(e){return void 0!==s[e]}))&&(a.extra||(a.extra={}),a.extra.handlerParamExtraData=s),a}function Ya(e,t){var n,r,i,s;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:Ba(e,(null===(i=t.handler)||void 0===i?void 0:i.params)||{},(null===(s=null==t?void 0:t.extra)||void 0===s?void 0:s.handlerParamExtraData)||{}),isCapturePhase:!!t.isCapturePhase,noPropagation:!!t.noPropagation}}function Ka(e,t){var n=t.title,s=i(t,["title"]);return r(r({varType:"datasource"},s),{label:n})}function Ja(e,t){var n=t.label,s=i(t,["label"]);return r(r({},s),{title:n})}function Qa(e,t){var n=t.type;return r(r({},t),{type:Jr.CODE,codeType:n})}function Za(e,t){t.type;var n=t.codeType,s=i(t,["type","codeType"]);return r(r({},s),{type:n})}function eo(e,t,n){var r,i,s=e.dependencies,a=void 0===s?[]:s,o=e.dependenciesMap,c=void 0===o?{}:o;if(e.streamlineModuleName){t===(null===(r=a[0])||void 0===r?void 0:r.name)&&(t=void 0);for(var p=void 0,l=a.length-1;l>0;l--){var u=a[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=a[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 to(e,t,n){var i,s,a,o,c,p,l,u,d,h,f,m,y,v,g,b,x;void 0===n&&(n="page");var w=null===(i=t.xComponent)||void 0===i?void 0:i.moduleName,C=(null===(s=t.xComponent)||void 0===s?void 0:s.name)||"",k=r(r({},e),{component:{id:t.id,module:w,component:null===(a=t.xComponent)||void 0===a?void 0:a.name}});k.dependencies&&!k.dependenciesMap&&(k.dependenciesMap=po(k.dependencies||[]));var S=Wa(k,n,(null===(o=null==t?void 0:t.xProps)||void 0===o?void 0:o.data)||{})||{},T=S.data,_=void 0===T?{}:T,E=S.extra,P=void 0===E?{}:E,I=null,D=null;return(null===(c=null==t?void 0:t.xProps)||void 0===c?void 0:c.classListBind)&&(I=Ra({ctx:k,key:"classListBind",dynamicValue:null===(p=null==t?void 0:t.xProps)||void 0===p?void 0:p.classListBind,scope:n})).extra&&(P.class=I.extra),(null===(l=null==t?void 0:t.xProps)||void 0===l?void 0:l.styleBind)&&(D=Ra({ctx:k,key:"styleBind",dynamicValue:null===(u=null==t?void 0:t.xProps)||void 0===u?void 0:u.styleBind})).extra&&(P.style=D.extra),{id:t.id,label:va(t.label),type:void 0,module:eo(k,w,C),component:C,attributes:va(t.xProps?r(r({},_),{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 to(k,r({id:e},null===(i=t.properties)||void 0===i?void 0:i[e]),n)})):void 0,listeners:va(null===(y=null===(m=t.xProps)||void 0===m?void 0:m.listeners)||void 0===y?void 0:y.map((function(e){return qa(k,e)}))),directives:za(k,(null===(v=t.xProps)||void 0===v?void 0:v.directives)||{},n)||{":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:Qs(P)?void 0:P}}}function no(e,t){var n=t.reduce((function(t,n){var r,i,s,a,o,c,p,l,u,d=(n.extra||{}).attributeExtraData,h=void 0===d?{}:d,f=n[":style"]?Fa(e,":style",n[":style"],h.style).value:void 0,m=n[":class"]?Fa(e,":class",n[":class"],h.class).value:void 0,y={moduleName:n.module,name:n.component||void 0};y.name&&(y.moduleName=function(e,t,n){var r,i=e.dependencies,s=void 0===i?[]:i,a=e.dependenciesMap,o=void 0===a?{}:a,c=null===(r=s[0])||void 0===r?void 0:r.name;if(!n){for(var p=void 0,l=s.length-1;l>0;l--){var u=s[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,y.name,y.moduleName)||y.moduleName);var v={data:Ua(e,n.attributes,h),directives:Xa(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===(s=null==n?void 0:n.extra)||void 0===s?void 0:s.staticResourceAttribute,classList:null===(c=null===(o=null===(a=n.attributes)||void 0===a?void 0:a.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 Ya(e,t)})))||[]},g={xComponent:Object.values(y).find((function(e){return null!=e}))?y:void 0,xProps:Object.values(v).find((function(e){return Array.isArray(e)?!!e.length:null!=e&&!Qs(e)}))?v: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 ro(e,t){var n,i,s,a,o,c=r(r({},e),{page:t});c.dependencies&&!c.dependenciesMap&&(c.dependenciesMap=po(c.dependencies||[]));var p={id:t.id,type:"PAGE",component:"Page",attributes:va(null===(n=Wa(c,"page",t.data))||void 0===n?void 0:n.data),items:Object.keys(t.componentInstances||{}).map((function(e){return to(c,r({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 Qa(0,e)})),dataset:Ga(e,null==t?void 0:t.dataset),dataVariables:va(null===(a=null===(s=null==t?void 0:t.vars)||void 0===s?void 0:s.data)||void 0===a?void 0:a.map((function(e){return Ka(0,e)}))),listeners:va(null===(o=null==t?void 0:t.listeners)||void 0===o?void 0:o.map((function(e){return qa(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"]=Ra({ctx:c,key:"styleBind",dynamicValue:t.styleBind}).value),t.classListBind&&(t[":class"]=Ra({ctx:c,key:"classListBind",dynamicValue:t.classListBind})),p}function io(e,t){var n,i,s,a,o,c,p,l=r(r({},e),{page:t});return{id:t.id,isHome:t.id===e.homePageId,dataset:$a(e,t.dataset),vars:{data:(null===(n=t.dataVariables)||void 0===n?void 0:n.map((function(e){return Ja(0,e)})))||[]},data:Ua(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===(s=null==t?void 0:t.extra)||void 0===s?void 0:s.commonStyle,staticResourceAttribute:null===(a=null==t?void 0:t.extra)||void 0===a?void 0:a.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===Jr.CODE})).map((function(e){return Za(0,e)})),listeners:(null===(p=null==t?void 0:t.listeners)||void 0===p?void 0:p.map((function(e){return Ya(l,e)})))||[]}}function so(e,t){var n,s=e.version,a=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,y=e.dataset,v=e.extra,g=e.dependencies,b=e.miniprogramPlugins,x=e.lastDependencies,w=e.externalResources,C=e.schemaVersion,k=i(e,["version","author","name","label","description","selectedPageId","pageInstanceList","lowCodes","datasources","vars","dataset","extra","dependencies","miniprogramPlugins","lastDependencies","externalResources","schemaVersion"]),S=(t||{}).dependencies,T=void 0===S?[]:S,_=v||{},E=_.name,P=_.label,I=_.author,D=_.description,A=i(_,["name","label","author","description"]),N={app:e,dependencies:T,dependenciesMap:po(T)},O=null==u?void 0:u.find((function(e){return e.isHome}));return{label:c||P,name:o||E,author:a||I,version:s,schemaVersion:C,description:p||D,externalResources:w,main:O?O.id:(null===(n=null==u?void 0:u[0])||void 0===n?void 0:n.id)||l,items:null==u?void 0:u.map((function(e){return ro(N,e)})),resources:null==h?void 0:h.map((function(e){return Qa(0,e)})),dataSources:f,dataset:Ga(N,y),dataVariables:va(null==m?void 0:m.data.map((function(e){return Ka(0,e)}))),dependencies:g,extra:r(r(r({},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 ao(e,t){var n,s,a=e.main||(null===(n=e.items[0])||void 0===n?void 0:n.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,y=o.miniprogramPlugins,v=o.compHiddenConfig,g=o.lastDependencies,b=i(o,["historyType","npmDependencies","plugins","maxID","rootPath","themeVars","presetColors","appConfig","miniprogramPlugins","compHiddenConfig","lastDependencies"]),x={app:e,dependencies:(null==t?void 0:t.dependencies)||[],homePageId:a,dependenciesMap:po((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:a,historyType:c,pageInstanceList:(e.items||[]).map((function(e){return io(x,e)})),lowCodes:(e.resources||[]).filter((function(e){return e.type===Jr.CODE})).map((function(e){return Za(0,e)})),datasources:e.dataSources,dataset:$a(x,e.dataset),vars:{data:(null===(s=e.dataVariables)||void 0===s?void 0:s.map((function(e){return Ja(0,e)})))||[]},compHiddenConfig:v||{},npmDependencies:p||{},plugins:l||[],maxID:u,rootPath:d,themeVars:h,presetColors:f||[],appConfig:m,miniprogramPlugins:y,externalResources:e.externalResources,extra:r(r({},b),{name:e.name,author:e.author,description:e.description,lastDependencies:g}),dependencies:e.dependencies,schemaVersion:e.schemaVersion}}function oo(e,t){var n,i,s;t.id||(t.id=t.key);var a={id:t.id,type:void 0,component:"",label:va(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=r(r({},e),{component:{id:t.id,module:p,component:u}});d.dependencies&&!d.dependenciesMap&&(d.dependenciesMap=po(d.dependencies||[]));var h=(o.dataTypes||[]).filter((function(e){return"slot"!==e.type})).map((function(e){return e.propertyPath})),f=t.properties||{},m=Wa(d,"page",va(fa(o))||{})||{},y=m.data,v=void 0===y?{}:y,g=m.extra,b=void 0===g?{}:g,x=null,w=null;(null===(n=null==o?void 0:o.styleBind)||void 0===n?void 0:n.bindDataPath)&&(null==(x=Ra({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),Zs(o.classNameListBind)&&(null==(w=Ra({ctx:d,key:"classListBind",dynamicValue:va({type:o.classNameListBind.type,value:o.classNameListBind.bindDataPath})}))?void 0:w.extra)&&(b.class=null==w?void 0:w.extra),a=r(r({},a),{module:eo(d,p,u),component:u,attributes:r(r({},v),{style:va(o.style),class:null===(i=va(o.classNameList))||void 0===i?void 0:i.join(" ")}),items:va(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 oo(e,r({id:t},f[t]))}))),listeners:null===(s=va(ma(o.listenerInstances)))||void 0===s?void 0:s.map((function(e){return qa(d,e)})),directives:za(d,va(ha(o))||{})||void 0,":class":(null==w?void 0:w.value)||void 0,":style":(null==x?void 0:x.value)||void 0,extra:{commonStyle:va(ra(o.commonStyle)),xIndex:va(t["x-index"]),styleBindPath:va(o.styleBindPath),staticResourceAttribute:va(o.staticResourceAttribute),attributeExtraData:Qs(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(n){return oo(e,r({id:n},t.properties[n]))}));a=r(r({},a),{items:va(C)})}return a}function co(e,t){var n=t.id,i=t.module,s=t.component,a=t.listeners,o=void 0===a?[]:a,c=va(ya((null==o?void 0:o.map((function(t){return r({sourceKey:"".concat(i,":").concat(s)},Ya(e,t))})))||[]));return{key:n,type:"object",properties:{},"x-component":"".concat(i,":").concat(s),"x-props":{sourceKey:"".concat(i,":").concat(s),listenerInstances:c||[]}}}function po(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 s=i[r];e[s.sourceKey]=s}return e}),{});return t}var lo=[],uo=1e4;function ho(){return"id".concat(++uo)}function fo(e,t){void 0===e&&(e=[]),t.properties=t.properties||{},e.map((function(e){t.properties[e]=t.properties[e]||{properties:{}}}))}function mo(e,t){t.xProps=t.xProps||{},t.xProps.data=t.xProps.data||{},t.xProps.data=xr(e,t.xProps.data)}function yo(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 vo(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 s=vo(r[i],t,n?"".concat(n,".").concat(i):i);if(s)return s}}function go(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 bo(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 n=t.name,i=function(e){void 0===e&&(e="");var t=ba.map((function(e){return{key:e.toLocaleLowerCase(),compName:e}})).find((function(t){return t.key===e.toLocaleLowerCase()}));return null==t?void 0:t.compName}(n),s=function(e){void 0===e&&(e="");var t=wa.map((function(e){return{key:e.toLocaleLowerCase(),compName:e}})).find((function(t){return t.key===e.toLocaleLowerCase()}));return null==t?void 0:t.compName}(n);switch(i?(t.moduleName=Aa,t.name=i):s?(t.moduleName=Da,t.name=s):t.moduleName=Aa,n){case"Wx-map":t.name="Map";break;case"Telephone":t.name="telephone"}if(t.moduleName===Aa)switch(t.name){case"Cell":t.name="Item",(null==(a=e.xProps)?void 0:a.data)&&(a.data.value={value:""},a.data.detail={value:!1},a.data.description={value:""},a.data.label&&(a.data.title=a.data.label,delete a.data.label));break;case"NavBar":(null==(a=e.xProps)?void 0:a.data)&&a.data.text&&(a.data.title=a.data.text,delete a.data.text);break;case"TabBar":case"Tabbar":var a;if(t.name="TabBar",(null==(a=e.xProps)?void 0:a.data)&&a.data.itemList){var o=a.data.itemList;"static"!==o.type&&o.type?a.data.tabs=a.data.itemList:a.data.tabs={value:(o.value||[]).map((function(e){return r({name:e.value},e)}))},delete a.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=Da)}))}}(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=xr(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 xo(e,t,n,i){var s,a,o=e.properties,c=e.xIndex,p=e.xProps,l=bt(p,"data.defaultValue");l&&(Ir(p,"data.value",l),delete p.data.defaultValue);var u,d,h=bt(p,"data.rules")||{value:[]};h.type&&"static"!==h.type||(h.value=(h.value||[]).filter((function(e){return e&&!Qs(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=bt(p,"data.layout")||{value:"vertical"},m=bt(p,"data.required")||{value:!1},y={value:!!(null==m?void 0:m.value)&&"该项为必填项"},v=bt(p,"data.name")||{value:"uniqueFormKey"},g=bt(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)&&(yo(o[t]).map((function(t){var n=t[0],r=t[1];g=bt(r,"xProps.data.text.value"),So(Nn(r),n,e)})),delete e.properties.label)}));var b=((s={})[ho()]={xComponent:{moduleName:Da,name:"Text"},xProps:{data:{text:{value:g},decode:{value:!1},selectable:{value:!1}},listeners:[]},xIndex:0},s);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(n&&(!n.xComponent||n.xComponent&&"FormItem"!==n.xComponent.name)){var x=ho();n.properties[x]={xComponent:{moduleName:Aa,name:"FormItem"},xProps:{data:{name:v,rules:h,layout:f,required:m,requiredMsg:y,requiredFlag:!0,labelVisible:{value:!0},validateStatus:{value:"success"},validateTrigger:{value:"onChange"}}},xIndex:c,properties:{labelSlot:{properties:r({},b)},contentSlot:{properties:(a={},a[t]=e,a)}}};try{delete n.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 wo(e){var t,n,r=e.componentInstances,i={properties:r};if(n=!1,vo(i,(function(e){var t=e.xComponent;if(t&&t.name){var r=t.name.toLocaleLowerCase();return"form"===r?(n=!1,!0):n=xa.some((function(e){return e.toLocaleLowerCase()===r}))}})),n){var s=[];vo(i,(function(e){var t=e,n=t.xComponent,r=t.xProps;if(n&&"Button"===n.name){var i=bt(r,"listeners[0]");if(i&&i.trigger&&"click"===i.trigger)return s=r.listeners,Ir(r,"data.formType",{value:"submit"}),i.trigger="submit",delete r.listeners,!0}})),e.componentInstances=((t={})[ho()]={xComponent:{moduleName:"gsd-h5-react",name:"Form"},xProps:{data:{layout:{value:"horizontal"}},listeners:s},xIndex:1,properties:{contentSlot:{properties:r}}},t)}}function Co(e){var t;e.data;var n=e.lowCodes,r=void 0===n?[]:n,i=e.componentInstances,s=void 0===i?{}:i,a=r.find((function(e){return"style"==e.name}));(null==a?void 0:a.code)&&null===(null==a?void 0:a.code.match(/^&/m))&&(a.code="&{\n ".concat(a.code,"\n }")),Object.keys(s).length>1&&(e.componentInstances=((t={})[ho()]={xComponent:{moduleName:"gsd-h5-react",name:"Container"},xIndex:0,properties:s},t))}var ko=Object.freeze({__proto__:null,addFormWrapperComp:wo,parseComplexComponentInstance:Co,parseGsdKboneAgree:function(e,t,n){xo(e,t,n),fo(["content"],e),mo({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=Aa,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:""}},s=r.data,a=s.text,o=void 0===a?{}:a;for(var c in i)for(var p in i[c])s[c]&&s[c][p]&&(i[c][p]=s[c][p]);r.data=i,"slot"===o.type?e.properties={contentSlot:{properties:e.properties.text.properties}}:e.properties={contentSlot:{properties:(t={},t[ho()]={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){xo(e,t,n);var r=bt(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=Aa,n.name="Footer";var i=r.data,s=i.text.value;e.properties={text:{properties:(t={},t[ho()]={xComponent:{moduleName:"gsd-h5-react",name:"Text"},xProps:{data:{text:{value:s},decode:{value:!1},selectable:{value:!1}}},xIndex:0},t)}},delete i.text}},parseGsdKboneInput:function(e,t,n){xo(e,t,n),fo(["prefix","suffix"],e),mo({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=bt(e,"properties.append");r&&(Ir(e,"properties.suffix",r),Ir(e,"xProps.data.isSuffix.value",!0),delete e.properties.append)},parseGsdKbonePicker:function(e,t,n){xo(e,t,n),e.xComponent.name="Selector"},parseGsdKbonePopLayer:function(e){e.xComponent.name="Poplayer",fo(["content","footer"],e),mo({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){mo({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),yo(e).map((function(t){var n,r=t[0],i=t[1],s=i.xComponent;if("Container"===s.name)s.moduleName="gsd-h5-react",s.name="SwiperItem";else{var a=ho(),o=JSON.parse(JSON.stringify(i).replace(new RegExp("forItems\\.".concat(r),"g"),"forItems.".concat(a))),c=bt(o,"xProps.directives.waFor");try{delete o.xProps.directives.waFor,delete e.properties[r]}catch(e){console.error("parseGsdKboneSwiper 删除 waFor 出错",e)}e.properties[a]={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,n){xo(e,t,n);var i=bt(e,"xProps.data.defaultValue");i&&Ir(e,"xProps.data.value",i);var s=bt(e,"xProps.commonStyle.margin");Ir(e,"xProps.commonStyle.margin",r(r({},s),{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=bt(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[ho()]={xComponent:{moduleName:Aa,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=xr({display:"block",self:{display:"block"}},e.xProps.commonStyle)},parseGsdKboneUpload:function(e,t,n){xo(e,t,n),e.xComponent.name="Uploader",mo({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 So(e,t,n){var r=e.xComponent;if(r){var i=r.name;go(e);var s=ko["parseGsdKbone".concat(i)];null==s||s(e,t,n),bo(e)}var a=Object.keys(e.properties||{});a.length>0&&a.forEach((function(t){var n=e.properties[t];n&&So(n,t,e)}))}function To(e,t,n){var i,s,a=(null===(i=t.xComponent)||void 0===i?void 0:i.name)||"",o=function(e,t,n){var r,i,s=e.dependencies,a=void 0===s?[]:s,o=e.dependenciesMap,c=void 0===o?{}:o;if(e.streamlineModuleName){t===(null===(r=a[0])||void 0===r?void 0:r.name)&&(t=void 0);for(var p=void 0,l=a.length-1;l>0;l--){var u=a[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=a[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===(s=t.xComponent)||void 0===s?void 0:s.moduleName,a),c=r({},e);c.dependencies&&!c.dependenciesMap&&(c.dependenciesMap=_o(c.dependencies||[]));var p=t.properties?Object.keys(t.properties).reduce((function(e,n){return e[n]=To(c,r({},t.properties[n])),e}),{}):void 0;return r(r({},t),{xComponent:t.xComponent?r(r({},t.xComponent),{moduleName:o}):void 0,properties:p})}function _o(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 s=i[r];e[s.sourceKey]=s}return e}),{});return t}function Eo(e,t){void 0===t&&(t=!1);for(var n=[],r=e.split("\n"),i={start:-1,middle:-1,end:-1},s=0,a=r.length;s<a;s++){var o=r[s];if(/^<<<<<<<$/.test(o)){if(-1!==i.start)break;i.start=s}else if(/^=======$/.test(o))-1!==i.start&&-1===i.middle&&(i.middle=s);else if(/^>>>>>>>$/.test(o)&&-1!==i.start&&-1!==i.middle&&(i.end=s,n.push(i),i={start:-1,middle:-1,end:-1},t))break}return n}function Po(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),Io(t,null==i?void 0:i.params);break;case e.ActionType.DataSource:var s=null==i?void 0:i.params;Io(s),(null==s?void 0:s.dataSourceName)&&(t.dataSourceMap[null==s?void 0:s.dataSourceName]=!0);break;case e.ActionType.Material:(null==i?void 0:i.module)&&(t.componentLibMap[null==i?void 0:i.module]=!0),Io(t,null==i?void 0:i.params);break;case e.ActionType.Platform:Io(t,null==i?void 0:i.params)}}function Io(e,t){for(var n in void 0===t&&(t={}),t)/^:/.test(n)&&"string"==typeof t[n]&&Do(e,t[n])}function Do(t,n){var r,i,s;try{var a=new Ys(n,{pageId:"$page"}).parse();switch(a.type){case e.PropBindType.params:case e.PropBindType.stateData:var o=((r={})[e.PropBindType.params]="params",r[e.PropBindType.stateData]="state",r)[a.type],c=(null===(i=a.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===(s=a.value)||void 0===s?void 0:s.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 Ao={root:"2",zoom:1,precision:5,outUnit:"px",exclude:""};function No(e){var t=(e=r(r({},Ao),e||{})).root,n=e.zoom,i=e.precision,s=e.outUnit,a=e.exclude;return{postcssPlugin:"postcss-rpx2calc",Once:function(e,r){var o=r.result;a&&null!==e.source.input.file.match(a)?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,r){if(null==r)return e;if("0"==r)return"0";var a=+r/(n||1);if(isNaN(a))return e;var o=Number.isInteger(a)?a.toString():function(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return 10*Math.round(r/10)/n}(a,i||0);return"calc(".concat(o).concat(s,"/").concat(t,")")}))}}))}))}}}No.postcss=!0,No.CALC_RPX_ROOT_VAL_NAME="--wd-rpx-radio";var Oo,Lo,Ro;e.IInputDataType=void 0,(Ro=e.IInputDataType||(e.IInputDataType={})).globalState="globalState",Ro.pageState="pageState",Ro.compState="compState",Ro.pageParams="pageParams",Ro.forState="forState",Ro.globalCommonCodes="globalCommonCodes",Ro.pageHandlerCodes="pageHandlerCodes",Ro.compHandlerCodes="compHandlerCodes",Ro.compPropData="compPropData",Ro.compPropEvents="compPropEvents",Ro.usedComponents="usedComponents",Ro.usedWidgets="usedWidgets",Ro.repeaterScope="repeaterScope",Ro.redefineAnyType="redefineAnyType";var Mo,Fo=((Oo={})[e.IInputDataType.globalState]="// Global State 全局变量 - Don't touch me",Oo[e.IInputDataType.pageState]="// Page State 页面变量 - Don't touch me",Oo[e.IInputDataType.compState]="// Comp State 组件变量 - Don't touch me",Oo[e.IInputDataType.pageParams]="// Page Param 页面参数 - Don't touch me",Oo[e.IInputDataType.forState]="// For 循环变量 - Don't touch me",Oo[e.IInputDataType.globalCommonCodes]="// Global Common 全局方法 - Don't touch me",Oo[e.IInputDataType.pageHandlerCodes]="// Page Handler 页面方法 - Don't touch me",Oo[e.IInputDataType.compHandlerCodes]="// Comp Handler 组件方法 - Don't touch me",Oo[e.IInputDataType.compPropData]="// Comp Prop Data 组件属性 - Don't touch me",Oo[e.IInputDataType.compPropEvents]="// Comp Prop Events 组件事件 - Don't touch me",Oo[e.IInputDataType.usedComponents]="// Used Components - Don't touch me",Oo[e.IInputDataType.usedWidgets]="// used widgets - Don't touch me",Oo[e.IInputDataType.repeaterScope]="// repeater scope - Don't touch me",Oo[e.IInputDataType.redefineAnyType]="// Redefine Any Type - Don't touch me",Oo),jo=((Lo={})[e.IInputDataType.globalState]="Global State Inner",Lo[e.IInputDataType.pageState]="Page State Inner",Lo[e.IInputDataType.compState]="Comp State Inner",Lo[e.IInputDataType.pageParams]="Page Param Inner",Lo[e.IInputDataType.forState]="Global For Inner",Lo[e.IInputDataType.globalCommonCodes]="Global Common Inner",Lo[e.IInputDataType.pageHandlerCodes]="Page Handler Inner",Lo[e.IInputDataType.compHandlerCodes]="Comp Handler Inner",Lo[e.IInputDataType.compPropData]="Comp Prop Data Inner",Lo[e.IInputDataType.compPropEvents]="Comp Prop Events Inner",Lo[e.IInputDataType.usedComponents]="Used Components Inner",Lo[e.IInputDataType.usedWidgets]="used widgets Inner",Lo[e.IInputDataType.repeaterScope]="repeater scope Inner",Lo[e.IInputDataType.redefineAnyType]="Redefine Any Type Inner",Lo);!function(e){e.GLOBAL_VAR="globalVar",e.PAGE_VAR="pageVar",e.PAGE_PARAM="pageParam",e.COMPONENT="component",e.REPEATER="repeater",e.DATA_FIELD="dataField"}(Mo||(Mo={}));var Vo=function(){function e(){}return e.updateDTS=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={isCompMode:!1}),s(this,void 0,void 0,(function(){var i;return a(this,(function(s){switch(s.label){case 0:return i=e,[4,Bo(t,r(r({},n),{needGlobalFormula:!0,needGlobalFor:!0,needRepeaterScope:!0}))];case 1:return i._dts=s.sent(),[2]}}))}))},e.updateDTSPartial=function(t,n,r){return void 0===r&&(r={setEmptyIfError:!1}),s(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,Uo(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(jo[n]," Begin)[\\s\\S]*(^\\s*\\/\\/ ").concat(jo[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(jo[n]," Begin)[\\s\\S]*(^\\s*\\/\\/ ").concat(jo[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 Bo(e,t){return void 0===e&&(e={}),void 0===t&&(t={isCompMode:!1,needGlobalFormula:!1,needGlobalFor:!1,needRepeaterScope:!1}),s(this,void 0,void 0,(function(){var n,r=this;return a(this,(function(i){switch(i.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 s(r,void 0,void 0,(function(){var r,i,s,o;return a(this,(function(a){switch(a.label){case 0:if(!(r=Fo[t]))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Uo(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 i.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 Wo(e){var t=e.fieldName,n=e.title,r=e.description,i=e.type,s=e.dataFieldInfo,a=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:a,displayType:i,displayName:n||"",schema:o,subGroup:c,baseClass:p,datasource:l,dataFieldInfo:s}))}function Uo(n,i){return s(this,void 0,void 0,(function(){function o(e,n,r){var i=Nn(e);return t.traverse(i,(function(e,t,i){var s;if((null==t?void 0:t.type)&&!(null===(s=null==t?void 0:t.type)||void 0===s?void 0:s.type)){var a=null;if(r)2===i.length&&"properties"===(null==i?void 0:i[0])&&(a=t.properties||t.items?t:null);var o=t.type;n===Mo.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"}[t.format]||o),t.description=Wo({fieldName:e,title:t.title,description:t.description,group:n,type:o,dataFieldInfo:Pr(t,["type","format","x-system"]),schema:a})}})),i.description="",i}function c(e){var t=e.trim();return t.endsWith("[]")?t="array":t.endsWith("}")&&(t="object"),t}function p(e,t){return"".concat(e.replace(/-/g,"_"),"_").concat(t)}function l(e,t){return void 0===t&&(t=!1),s(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return[4,Yo(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 u,d,h,f,m,y;return a(this,(function(t){switch(t.label){case 0:return u=[],(y={})[e.IInputDataType.globalState]=function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,l(o(e,Mo.GLOBAL_VAR,!0))];case 1:return[2,t.sent()]}}))}))},y[e.IInputDataType.pageState]=function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,l(o(e,Mo.PAGE_VAR,!0))];case 1:return[2,t.sent()]}}))}))},y[e.IInputDataType.pageParams]=function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,l(o(e,Mo.PAGE_PARAM))];case 1:return[2,t.sent()]}}))}))},y[e.IInputDataType.globalCommonCodes]=function(e){return s(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 s(t,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return[4,zo(e.code)];case 1:return t=n.sent(),[2,"namespace ".concat(e.name," { ").concat(t," }")]}}))}))})))];case 1:return[2,n.sent().join("\n")]}}))}))},y[e.IInputDataType.pageHandlerCodes]=function(e){return s(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 s(t,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,zo(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")]}}))}))},y[e.IInputDataType.compHandlerCodes]=function(e){return this.pageHandlerCodes(e)},y[e.IInputDataType.compPropEvents]=function(e){return e.map((function(e){return"function ".concat(e,"(data?: ").concat("any","): void")})).join("\n")},y[e.IInputDataType.usedComponents]=function(e){return s(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 s(t,void 0,void 0,(function(){var t,n,r,i,c=this;return a(this,(function(u){switch(u.label){case 0:return t="",e.exportProperties?[4,l(o(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 s(c,void 0,void 0,(function(){var t,n;return a(this,(function(r){switch(r.label){case 0:return t="",e.input?[4,l(e.input)]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return n="void",e.output?[4,l(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 i=p(e.module,e.component),[2,"\n /**\n ".concat(Wo({fieldName:i,schema:e.exportProperties}).split("\n").map((function(e){return"* ".concat(e)})).join("\n"),"\n */\n declare class ").concat(i," extends UserWidget {\n\n ").concat(t,"\n\n ").concat(n,"\n }\n ")]}}))}))})))];case 1:return[2,n.sent().join("\n")]}}))}))},y[e.IInputDataType.usedWidgets]=function(e){return e.map((function(e){if(e.idList&&e.idList.length>0){var t=p(e.module,e.component);return e.idList.map((function(e){return"\n /**\n ".concat(Wo({fieldName:e,title:"",description:"",group:Mo.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")},y[e.IInputDataType.repeaterScope]=function(e){return s(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 s(t,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return t="",e.itemData.title?[4,l(o(e.itemData,Mo.DATA_FIELD),!0)]:[3,2];case 1:return t=n.sent(),[3,4];case 2:return[4,l(e.itemData,!0)];case 3:t=n.sent(),n.label=4;case 4:return[2,"\n /**\n ".concat(Wo({fieldName:e.currentItemAlias,title:"当前项值",description:"",group:Mo.REPEATER,type:c(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(Wo({fieldName:e.currentIndexAlias,title:"当前下标",description:"",group:Mo.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")]}}))}))},y[e.IInputDataType.redefineAnyType]=function(e){return s(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 s(t,void 0,void 0,(function(){var t,n,i,d,h,f=this;return a(this,(function(m){switch(m.label){case 0:return t=p(e.module,e.component),n="".concat(e.widgetId,"_").concat(t),u.push({from:new RegExp("(const ".concat(e.widgetId,"): .*")),to:"$1: ".concat(n)}),i={},[4,Promise.all(e.updateProps.map((function(e){return s(f,void 0,void 0,(function(){var n,s,p,u,d,h,f,m,y,v;return a(this,(function(a){switch(a.label){case 0:return n=o(e.widgetPropTypeSchema,Mo.DATA_FIELD),[4,l(r(r({},e.widgetPropTypeSchema),n),!0)];case 1:return s=a.sent(),p="".concat(e.datasource.name,"_").concat(e.widgetPropTypeSchema.type),i[p]?i[p].fields.push({name:e.widgetPropName,title:e.widgetPropTitle}):i[p]={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},u=e.widgetPropName.includes("."),d=[],h={},f="",m=[],u&&(d=e.widgetPropName.split("."),Ir(h,e.widgetPropName,"$$schema$$"),y=d[0],v=d.slice(1),f=y,m=v),[2,"\n /**\n ".concat(Wo({fieldName:e.widgetPropName,title:e.widgetPropTypeSchema.title,description:e.widgetPropTypeSchema.description,group:void 0,type:c(s)}).split("\n").map((function(e){return"* ".concat(e)})).join("\n"),"\n */\n ").concat(u?"".concat(f,": Omit<").concat(t,"['").concat(f,"'], '").concat(m.join("."),"'> & ").concat(JSON.stringify(h[f]).replace('"$$schema$$"',s)):"".concat(e.widgetPropName,": ").concat(s),"\n ")]}}))}))})))];case 1:return d=m.sent(),(h=Object.values(i)).length>0&&u.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(n," extends ").concat(t," {\n ").concat(d.join("\n"),"\n }\n ")]}}))}))})))];case 1:return[2,n.sent().join("\n")]}}))}))},d=y,h="",n?(f=d[i])?[4,f.call(d,n)]:[3,2]:[2,[h,u]];case 1:h=t.sent(),t.label=2;case 2:return(m=h)?[3,4]:[4,l(n)];case 3:m=t.sent(),t.label=4;case 4:return[2,[h=m,u]]}}))}))}var Go="\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 $o(e,t){var n={};return function(){var r,i=null===(r=n[e])||void 0===r?void 0:r.typescriptWorker;if(!i){var s={},a=URL.createObjectURL(new Blob([t]));(i=new Worker(a+(0===a.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;s[n]&&s[n](r)}},n[e]={typescriptWorker:i,sendMessageCallbackFn:s}}return{sendMessage:function(t,r){var i=n[e],s=i.typescriptWorker,a=i.sendMessageCallbackFn,o=Math.random().toString(36).substring(2,5);t.data.id=o,a[o]=r,s.postMessage(t)}}}}var Ho=$o("transpileToDTS",Go);function zo(e){return new Promise((function(t){Ho().sendMessage({action:"dts",data:{code:e}},(function(e){t(e)}))}))}var Xo="\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",qo=$o("compileJSONToDTS",Xo);function Yo(e){return new Promise((function(t,n){qo().sendMessage({action:"dts",data:{jsonschema:e}},(function(e){0===e.search("Parse error:")?n(e):t(e)}))}))}var Ko=String,Jo=function(){return{isColorSupported:!1,reset:Ko,bold:Ko,dim:Ko,italic:Ko,underline:Ko,inverse:Ko,hidden:Ko,strikethrough:Ko,black:Ko,red:Ko,green:Ko,yellow:Ko,blue:Ko,magenta:Ko,cyan:Ko,white:Ko,gray:Ko,bgBlack:Ko,bgRed:Ko,bgGreen:Ko,bgYellow:Ko,bgBlue:Ko,bgMagenta:Ko,bgCyan:Ko,bgWhite:Ko}},Qo=Jo(),Zo=Jo;Qo.createColors=Zo;function ec(e,t){return e(t={exports:{}},t.exports),t.exports}var tc,nc=(tc=Object.freeze({__proto__:null,default:{}}))&&tc.default||tc;class rc extends Error{constructor(e,t,n,r,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),s&&(this.plugin=s),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,rc)}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=Qo.isColorSupported),nc&&e&&(t=nc(t));let n,r,i=t.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),o=String(a).length;if(e){let{bold:e,red:t,gray:i}=Qo.createColors(!0);n=n=>e(t(n)),r=e=>i(e)}else n=r=e=>e;return i.slice(s,a).map(((e,t)=>{let i=s+1+t,a=" "+(" "+i).slice(-o)+" | ";if(i===this.line){let t=r(a.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(a)+e+"\n "+t+n("^")}return" "+r(a)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}var ic=rc;rc.default=rc;var sc={isClean:Symbol("isClean"),my:Symbol("my")};const ac={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class oc{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],s=this.raw(i,"before");s&&this.builder(s),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 ac[n];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[n])return s.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let i="raw"+((a=n)[0].toUpperCase()+a.slice(1));this[i]?r=this[i](s,e):s.walk((e=>{if(r=e.raws[t],void 0!==r)return!1}))}var a;return void 0===r&&(r=ac[n]),s.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 cc=oc;function pc(e,t){new cc(t).stringify(e)}oc.default=oc;var lc=pc;pc.default=pc;let{isClean:uc,my:dc}=sc;function hc(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],s=typeof i;"parent"===r&&"object"===s?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>hc(e,n))):("object"===s&&null!==i&&(i=hc(i)),n[r]=i)}return n}class fc{constructor(e={}){this.raws={},this[uc]=!1,this[dc]=!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 ic(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=lc){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=hc(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 cc).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 s=t.get(r.input);null==s&&(s=i,t.set(r.input,i),i++),n[e]={inputId:s,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[uc]){this[uc]=!1;let e=this;for(;e=e.parent;)e[uc]=!1}}get proxyOf(){return this}}var mc=fc;fc.default=fc;class yc extends mc{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 vc=yc;yc.default=yc;var gc=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:bc,SourceMapGenerator:xc}=nc,{existsSync:wc,readFileSync:Cc}=nc,{dirname:kc,join:Sc}=nc;class Tc{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=kc(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new bc(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=kc(e),wc(e))return this.mapFile=e,Cc(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 bc)return xc.fromSourceMap(t).toString();if(t instanceof xc)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=Sc(kc(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}var _c=Tc;Tc.default=Tc;let{SourceMapConsumer:Ec,SourceMapGenerator:Pc}=nc,{fileURLToPath:Ic,pathToFileURL:Dc}=nc,{resolve:Ac,isAbsolute:Nc}=nc,{nanoid:Oc}=gc,Lc=Symbol("fromOffsetCache"),Rc=Boolean(Ec&&Pc),Mc=Boolean(Ac&&Nc);class Fc{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&&(!Mc||/^\w+:\/\//.test(t.from)||Nc(t.from)?this.file=t.from:this.file=Ac(t.from)),Mc&&Rc){let e=new _c(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 "+Oc(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[Lc])n=this[Lc];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[Lc]=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,s,a;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);s=e.line,a=e.col}else s=r.line,a=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let o=this.origin(t,n,s,a);return i=o?new ic(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 ic(e,void 0===s?t:{line:t,column:n},void 0===s?n:{line:s,column:a},this.css,this.file,r.plugin),i.input={line:t,column:n,endLine:s,endColumn:a,source:this.css},this.file&&(Dc&&(i.input.url=Dc(this.file).toString()),i.input.file=this.file),i}origin(e,t,n,r){if(!this.map)return!1;let i,s,a=this.map.consumer(),o=a.originalPositionFor({line:e,column:t});if(!o.source)return!1;"number"==typeof n&&(i=a.originalPositionFor({line:n,column:r})),s=Nc(o.source)?Dc(o.source):new URL(o.source,this.map.consumer().sourceRoot||Dc(this.map.mapFile));let c={url:s.toString(),line:o.line,column:o.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===s.protocol){if(!Ic)throw new Error("file: protocol is not available in this PostCSS build");c.file=Ic(s)}let p=a.sourceContentFor(o.source);return p&&(c.source=p),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ac(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 jc=Fc;Fc.default=Fc,nc&&nc.registerInput&&nc.registerInput(Fc);let{SourceMapConsumer:Vc,SourceMapGenerator:Bc}=nc,{dirname:Wc,resolve:Uc,relative:Gc,sep:$c}=nc,{pathToFileURL:Hc}=nc,zc=Boolean(Vc&&Bc),Xc=Boolean(Wc&&Uc&&Gc&&$c);var qc=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 jc(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||Wc(e.file);!1===this.mapOpts.sourcesContent?(t=new Vc(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=Bc.fromSourceMap(e)}else this.map=new Bc({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?Wc(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=Wc(Uc(t,this.mapOpts.annotation))),e=Gc(t,e)}toUrl(e){return"\\"===$c&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}toFileUrl(e){if(Hc)return Hc(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 Bc({file:this.outputFile()});let e,t,n=1,r=1,i="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((a,o,c)=>{if(this.css+=a,o&&"end"!==c&&(s.generated.line=n,s.generated.column=r-1,o.source&&o.source.start?(s.source=this.sourcePath(o),s.original.line=o.source.start.line,s.original.column=o.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=a.match(/\n/g),e?(n+=e.length,t=a.lastIndexOf("\n"),r=a.length-t):r+=a.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?(s.source=this.sourcePath(o),s.original.line=o.source.end.line,s.original.column=o.source.end.column-1,s.generated.line=n,s.generated.column=r-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=r-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),Xc&&zc&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}};class Yc extends mc{constructor(e){super(e),this.type="comment"}}var Kc=Yc;Yc.default=Yc;let Jc,Qc,Zc,ep,{isClean:tp,my:np}=sc;function rp(e){return e.map((e=>(e.nodes&&(e.nodes=rp(e.nodes)),delete e.source,e)))}function ip(e){if(e[tp]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)ip(t)}class sp extends mc{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",s=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of s)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+s.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=rp(Jc(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 vc(e)]}else if(e.selector)e=[new Qc(e)];else if(e.name)e=[new Zc(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Kc(e)]}let n=e.map((e=>(e[np]||sp.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[tp]&&ip(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}}sp.registerParse=e=>{Jc=e},sp.registerRule=e=>{Qc=e},sp.registerAtRule=e=>{Zc=e},sp.registerRoot=e=>{ep=e};var ap=sp;let op,cp;sp.default=sp,sp.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Zc.prototype):"rule"===e.type?Object.setPrototypeOf(e,Qc.prototype):"decl"===e.type?Object.setPrototypeOf(e,vc.prototype):"comment"===e.type?Object.setPrototypeOf(e,Kc.prototype):"root"===e.type&&Object.setPrototypeOf(e,ep.prototype),e[np]=!0,e.nodes&&e.nodes.forEach((e=>{sp.rebuild(e)}))};class pp extends ap{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new op(new cp,this,e).stringify()}}pp.registerLazyResult=e=>{op=e},pp.registerProcessor=e=>{cp=e};var lp=pp;pp.default=pp;let up={};var dp=function(e){up[e]||(up[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};class hp{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 fp=hp;hp.default=hp;class mp{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 fp(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}var yp=mp;mp.default=mp;const vp="'".charCodeAt(0),gp='"'.charCodeAt(0),bp="\\".charCodeAt(0),xp="/".charCodeAt(0),wp="\n".charCodeAt(0),Cp=" ".charCodeAt(0),kp="\f".charCodeAt(0),Sp="\t".charCodeAt(0),Tp="\r".charCodeAt(0),_p="[".charCodeAt(0),Ep="]".charCodeAt(0),Pp="(".charCodeAt(0),Ip=")".charCodeAt(0),Dp="{".charCodeAt(0),Ap="}".charCodeAt(0),Np=";".charCodeAt(0),Op="*".charCodeAt(0),Lp=":".charCodeAt(0),Rp="@".charCodeAt(0),Mp=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,jp=/.[\n"'(/\\]/,Vp=/[\da-f]/i;var Bp=function(e,t={}){let n,r,i,s,a,o,c,p,l,u,d=e.css.valueOf(),h=t.ignoreErrors,f=d.length,m=0,y=[],v=[];function g(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},nextToken:function(e){if(v.length)return v.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(n=d.charCodeAt(m),n){case wp:case Cp:case Sp:case Tp:case kp:r=m;do{r+=1,n=d.charCodeAt(r)}while(n===Cp||n===wp||n===Sp||n===Tp||n===kp);u=["space",d.slice(m,r)],m=r-1;break;case _p:case Ep:case Dp:case Ap:case Lp:case Np:case Ip:{let e=String.fromCharCode(n);u=[e,e,m];break}case Pp:if(p=y.length?y.pop()[1]:"",l=d.charCodeAt(m+1),"url"===p&&l!==vp&&l!==gp&&l!==Cp&&l!==wp&&l!==Sp&&l!==kp&&l!==Tp){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)===bp;)c-=1,o=!o}while(o);u=["brackets",d.slice(m,r+1),m,r],m=r}else r=d.indexOf(")",m+1),s=d.slice(m,r+1),-1===r||jp.test(s)?u=["(","(",m]:(u=["brackets",s,m,r],m=r);break;case vp:case gp:i=n===vp?"'":'"',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)===bp;)c-=1,o=!o}while(o);u=["string",d.slice(m,r+1),m,r],m=r;break;case Rp:Mp.lastIndex=m+1,Mp.test(d),r=0===Mp.lastIndex?d.length-1:Mp.lastIndex-2,u=["at-word",d.slice(m,r+1),m,r],m=r;break;case bp:for(r=m,a=!0;d.charCodeAt(r+1)===bp;)r+=1,a=!a;if(n=d.charCodeAt(r+1),a&&n!==xp&&n!==Cp&&n!==wp&&n!==Sp&&n!==Tp&&n!==kp&&(r+=1,Vp.test(d.charAt(r)))){for(;Vp.test(d.charAt(r+1));)r+=1;d.charCodeAt(r+1)===Cp&&(r+=1)}u=["word",d.slice(m,r+1),m,r],m=r;break;default:n===xp&&d.charCodeAt(m+1)===Op?(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):(Fp.lastIndex=m+1,Fp.test(d),r=0===Fp.lastIndex?d.length-1:Fp.lastIndex-2,u=["word",d.slice(m,r+1),m,r],y.push(u),m=r)}return m++,u},endOfFile:function(){return 0===v.length&&m>=f},position:function(){return m}}};class Wp extends ap{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 Up=Wp;let Gp,$p;Wp.default=Wp,ap.registerAtRule(Wp);class Hp extends ap{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 Gp(new $p,this,e).stringify()}}Hp.registerLazyResult=e=>{Gp=e},Hp.registerProcessor=e=>{$p=e};var zp=Hp;Hp.default=Hp,ap.registerRoot(Hp);let Xp={split(e,t,n){let r=[],i="",s=!1,a=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?a+=1:")"===n?a>0&&(a-=1):0===a&&t.includes(n)&&(s=!0),s?(""!==i&&r.push(i.trim()),i="",s=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r},space:e=>Xp.split(e,[" ","\n","\t"]),comma:e=>Xp.split(e,[","],!0)};var qp=Xp;Xp.default=Xp;class Yp extends ap{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return qp.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 Kp=Yp;Yp.default=Yp,ap.registerRule(Yp);const Jp={empty:!0,space:!0};var Qp=class{constructor(e){this.input=e,this.root=new zp,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=Bp(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 Kc;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 Kp;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,r=!1,i=null,s=[],a=e[1].startsWith("--"),o=[],c=e;for(;c;){if(n=c[0],o.push(c),"("===n||"["===n)i||(i=c),s.push("("===n?")":"]");else if(a&&r&&"{"===n)i||(i=c),s.push("}");else if(0===s.length){if(";"===n){if(r)return void this.decl(o,a);break}if("{"===n)return void this.rule(o);if("}"===n){this.tokenizer.back(o.pop()),t=!0;break}":"===n&&(r=!0)}else n===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&r){if(!a)for(;o.length&&(c=o[o.length-1][0],"space"===c||"comment"===c);)this.tokenizer.back(o.pop());this.decl(o,a)}else this.unknownWord(o)}rule(e){e.pop();let t=new Kp;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 vc;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 s,a=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)a.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+=a.map((e=>e[1])).join(""),a=[]),this.raw(n,"value",a.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,r,i=new Up;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let s=!1,a=!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){a=!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()){s=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(i.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(i,"params",o),s&&(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=""),a&&(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,s,a,o,c=n.length,p="",l=!0;for(let e=0;e<c;e+=1)i=n[e],s=i[0],"space"!==s||e!==c-1||r?"comment"===s?(o=n[e-1]?n[e-1][0]:"empty",a=n[e+1]?n[e+1][0]:"empty",Jp[o]||Jp[a]||","===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[s,a]of e.entries()){if(t=a,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return s}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 Zp(e,t){let n=new jc(e,t),r=new Qp(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 el=Zp;Zp.default=Zp,ap.registerParse(Zp);let{isClean:tl,my:nl}=sc;const rl={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},il={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},sl={postcssPlugin:!0,prepare:!0,Once:!0};function al(e){return"object"==typeof e&&"function"==typeof e.then}function ol(e){let t=!1,n=rl[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 cl(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:ol(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function pl(e){return e[tl]=!1,e.nodes&&e.nodes.forEach((e=>pl(e))),e}let ll={};class ul{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 ul||t instanceof yp)r=pl(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=el;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[nl]&&ap.rebuild(r)}else r=pl(t);this.result=new yp(e,r,n),this.helpers={...ll,result:this.result,postcss:ll},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||dp("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(al(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tl];)e[tl]=!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=lc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new qc(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[tl]=!0;let t=ol(e);for(let n of t)if(0===n)e.nodes&&e.each((e=>{e[tl]||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(al(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 al(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("."),s=r.split(".");(i[0]!==s[0]||parseInt(i[1])>parseInt(s[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(al(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tl];){e[tl]=!0;let t=[cl(e)];for(;t.length>0;){let e=this.visitTick(t);if(al(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(!il[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!sl[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[tl])return r[tl]=!0,void e.push(cl(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[tl]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}ul.registerPostcss=e=>{ll=e};var dl=ul;ul.default=ul,zp.registerLazyResult(ul),lp.registerLazyResult(ul);class hl{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=lc;this.result=new yp(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get:()=>s.root});let a=new qc(i,r,this._opts,t);if(a.isMap()){let[e,t]=a.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=el;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||dp("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 fl=hl;hl.default=hl;class ml{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 fl(this,e,t):new dl(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 yl=ml;function vl(e,t){if(Array.isArray(e))return e.map((e=>vl(e)));let{inputs:n,...r}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:jc.prototype};n.map&&(n.map={...n.map,__proto__:_c.prototype}),t.push(n)}}if(r.nodes&&(r.nodes=e.nodes.map((e=>vl(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 zp(r);if("decl"===r.type)return new vc(r);if("rule"===r.type)return new Kp(r);if("comment"===r.type)return new Kc(r);if("atrule"===r.type)return new Up(r);throw new Error("Unknown node type: "+e.type)}ml.default=ml,zp.registerProcessor(ml),lp.registerProcessor(ml);var gl=vl;function bl(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new yl(e)}vl.default=vl,bl.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 yl).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return bl([i(n)]).process(e,t)},i},bl.stringify=lc,bl.parse=el,bl.fromJSON=gl,bl.list=qp,bl.comment=e=>new Kc(e),bl.atRule=e=>new Up(e),bl.decl=e=>new vc(e),bl.rule=e=>new Kp(e),bl.root=e=>new zp(e),bl.document=e=>new lp(e),bl.CssSyntaxError=ic,bl.Declaration=vc,bl.Container=ap,bl.Processor=yl,bl.Document=lp,bl.Comment=Kc,bl.Warning=fp,bl.AtRule=Up,bl.Result=yp,bl.Input=jc,bl.Rule=Kp,bl.Root=zp,bl.Node=mc,dl.registerPostcss(bl);var xl=bl;bl.default=bl,xl.stringify,xl.fromJSON,xl.plugin,xl.parse,xl.list,xl.document,xl.comment,xl.atRule,xl.rule,xl.decl,xl.root,xl.CssSyntaxError,xl.Declaration,xl.Container,xl.Processor,xl.Document,xl.Comment,xl.Warning,xl.AtRule,xl.Result,xl.Input,xl.Rule,xl.Root,xl.Node;var wl=ec((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 s=["comment",n.join(""),e[2],r];return this.inlineComment(s),i&&(this.input=new jc(i),this.tokenizer=Bp(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}}}));wl.isInlineComment;var Cl={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,s=t.pop(),a=["word",r.join(""),i[2],s[2]];return this.tokenizer.back(e),this.tokenizer.back(a),!0}};const kl=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Sl=/\.[0-9]/;var Tl={isMixinToken:e=>{const[,t]=e,[n]=t;return("."===n||"#"===n)&&!1===kl.test(t)&&!1===Sl.test(t)}};const _l=/^url\((.+)\)/;const El=/:$/,Pl=/^:(\s+)?/;const{isInlineComment:Il}=wl,{interpolation:Dl}=Cl,{isMixinToken:Al}=Tl,Nl=/(!\s*important)$/i;var Ol=class extends Qp{constructor(...e){super(...e),this.lastNode=null}atrule(e){Dl.bind(this)(e)||(super.atrule(e),(e=>{const{name:t,params:n=""}=e;if("import"===t&&n.length){e.import=!0;const t=Bp({css:n});for(e.filename=n.replace(_l,"$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(El.test(t)){const[n]=t.match(El);e.name=t.replace(n,""),e.raws.afterName=n+(e.raws.afterName||""),e.variable=!0,e.value=e.params}if(Pl.test(n)){const[t]=n.match(Pl);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 Kc,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 s="";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),s=[r[2],r[3]],[a]=e.slice(t,t+1),o=[a[2],a[3]],c=["brackets",n].concat(s,o),p=e.slice(0,i),l=e.slice(t+1);(e=p).push(c),e=e.concat(l)}const a=[];for(const t of e)if(("!"===t[1]||a.length)&&a.push(t),"important"===t[1])break;if(a.length){const[t]=a,n=e.indexOf(t),r=a[a.length-1],i=[t[2],t[3]],s=[r[4],r[5]],o=["word",a.map((e=>e[1])).join("")].concat(i,s);e.splice(n,a.length,o)}const o=e.findIndex((e=>Nl.test(e[1])));o>0&&([,s]=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,s&&(this.lastNode.important=!0,this.lastNode.raws.important=s)}other(e){Il.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),Dl.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]?Al(t)?this.mixin(e):super.unknownWord(e):this.each(e)}},Ll=class extends cc{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 s=(e.raws.between||"")+i+(t?";":"");this.builder(n+r+s,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)}},Rl=ec((function(e){e.exports={parse(e,t){const n=new jc(e,t),r=new Ol(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 Ll(t).stringify(e)},nodeToString(t){let n="";return e.exports.stringify(t,(e=>{n+=e})),n}}}));Rl.parse,Rl.stringify,Rl.nodeToString;var Ml=function(e,t,n){var r,i,s,a,o,c=function(e,t){return e.map((function(e){var n;if((null==e?void 0:e.module)===Aa&&"Form"===(null==e?void 0:e.component)&&(e=Fl(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 Bl[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(Oa(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=ua(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=Vl(e,t):e}))),e.items&&(e.items=c(e.items,t)),e}))},p=e.items;return t&&Na(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=Vl(e,o):e})),e.schemaVersion="4.0.0",null==n||n("4.0.0")):!t&&Na(null!==(s=e.schemaVersion)&&void 0!==s?s:"3.0.0","4.0.0")>=0&&(p=c(p,o=!1),e.resources=null===(a=e.resources)||void 0===a?void 0:a.map((function(e){return"style"===e.codeType?e=Vl(e,o):e})),delete e.schemaVersion,null==n||n(void 0)),e.items=p,e};function Fl(e){var t,n,i,s,a,c,p,l,u,d;return(null==e?void 0:e.module)===Da&&"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)===Aa&&"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===(n=e.attributes)||void 0===n?void 0:n.class.includes("wd-form__action"))?"string"==typeof(null===(i=e.attributes)||void 0===i?void 0:i.class)?e.attributes=r(r({},e.attributes),{class:"".concat(null===(s=e.attributes)||void 0===s?void 0:s.class," wd-form__action")}):Array.isArray(null===(a=e.attributes)||void 0===a?void 0:a.class)&&(e.attributes=r(r({},e.attributes),{class:o(o([],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=r(r({},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 Fl(e)}))),e}var jl=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 s=e.value.replace(i,(function(e,t){if(null!=t){var n=Oa(Number(t)/2,3).toString();return"".concat(n,"px")}return e}));e.value=s}else{s=e.value.replace(i,(function(e,t){return null!=t?"".concat(2*Number(t),"px"):e}));e.value=s}e[t]=!0}}}};function Vl(e,t){var n=xl([jl({isUpgrade:t})]).process(e.code,{syntax:Rl});return e.code=n.css,e}jl.postcss=!0;var Bl={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 Wl=["Webkit","ms","Moz","O"];Object.keys(Bl).forEach((function(e){Wl.forEach((function(t){Bl[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=Bl[e]}))})),e.EComponentType={BASIC:"BASIC",COMPLEX:"COMPLEX",PAGE:"PAGE"},e.EResourceType=Jr,e.LCDS=Ta,e.OFFICIAL_COMPONENT_LIB_NAME=Aa,e.OFFICIAL_LIB_KEY=Da,e.PostcssRpx2Calc=No,e.WEDA_COMP_DEPENDENCIES_PREFIX=Ia,e.WEDA_OFFICIAL_NAMESPACE="@tcwd/",e.WEDA_PROTOCOL=Pa,e.WeDaDTS=Vo,e.autoResolveConflicts=function(e,t){var n=Eo(e),r=e.split("\n"),i=[],s=[];return n.forEach((function(e){"theirs"===t?s.push([e.start,e.middle],e.end):s.push(e.start,[e.middle,e.end])})),r.forEach((function(e,t){s.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=[],s=[];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")),a("".concat(t,"/page.json"),JSON.stringify(e.items,null,2)),c(e.resources,t),s.push(t)})),t.extra.pages=s,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),a("package.json",JSON.stringify({name:t.name,description:t.description,version:t.version},null,2),""),i;function a(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 s,o=Pr(t,n);i&&Object.keys(i).forEach((function(e){o[e]=Pr(o[e],i[e])})),o._ignoreResources=(null===(s=t.resources)||void 0===s?void 0:s.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]})),a(r,JSON.stringify(o,null,2))}function c(t,n){void 0===n&&(n=""),(t||[]).filter((function(t){return t.type===Jr.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&&a(r,t.code)}))}},e.checkForConflicts=function(e){return Eo(e,!0).length>0},e.codeToCals=function(t,n){if(void 0===n&&(n="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/}}[n];if(!i)throw"version' value must be v0 or v1";var s={items:[],resources:[]},a=t.find((function(e){return"src/app-config.json"===e.path})),o=JSON.parse((null==a?void 0:a.code)||"{}"),c=o.extra.pages;return t.forEach((function(e){if("src/app-config.json"===e.path){var t=o;Object.assign(s,Sr(t,["_ignoreResources","extra.pages"])),s.resources=On(s.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=s.items.find((function(e){return e.id===n}));if(r||(r={id:n,type:"PAGE",resources:[]},s.items.push(r)),r.resources||(r.resources=[]),i.pageConfigRegExp.test(e.path)){t=JSON.parse(e.code);var a=Sr(t,["_ignoreResources"]);Object.assign(r,a),r.resources=On(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,"",s.resources||[]);var l})),s;function p(t,n,a){var o,c,p=n?t.path.replace("".concat(i.pageDir,"/").concat(n,"/"),""):t.path.replace("src/",""),l=n||"global",u={code:t.code,type:Jr.CODE,system:!0};switch(p){case"theme.less":null===(o=s.resources)||void 0===o||o.push(r({name:e.ECodeType.THEME,path:"".concat(l,"/").concat(e.ECodeType.THEME),codeType:e.ECodeType.THEME},u));break;case"style.less":a.push(r({name:e.ECodeType.STYLE,path:"".concat(l,"/").concat(e.ECodeType.STYLE),codeType:e.ECodeType.STYLE},u));break;case"lifecycle.js":a.push(r({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];a.push(r(r({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=s.resources)||void 0===c||c.push(r({name:m,path:"".concat(l,"/common/").concat(m),codeType:e.ECodeType.NORMAL_MODULE},u))}}}},e.compileJSONToDTS=Yo,e.deserializeAttributes=Ua,e.deserializeComponent=no,e.deserializeComponentLibraryMeta=function(e){var t=e.components,n=void 0===t?{}:t,s=e.actions,a=void 0===s?{}:s,o=e.styles,c=void 0===o?[]:o,p=e.dependencies,l=void 0===p?{}:p,u=i(e,["components","actions","styles","dependencies"]),d={};for(var h in n){var f=n[h],m=f.meta||{},y=m.title,v=m.description,g=m.category,b=m.icon,x=m.extra,w=void 0===x?{}:x,C=i(m,["title","description","category","icon","extra"]);d[h]=r(r({title:y||f.name||h,desc:v||"",category:g||"",thumbnail:b},w),C)}return r(r({},u),{styles:c,dependencies:l,components:d,actions:a})},e.deserializeDataVariables=Ja,e.deserializeDynamicMap=Ba,e.deserializePage=io,e.deserializePlatformApp=ao,e.deserializeRuntimeComponent=co,e.deserializeValue=Fa,e.generateDefaultCode=Ea,e.generateWeDaAppDTS=Bo,e.getUsedComps=function(e,t){var n=e.map((function(e){return ao(e,{dependencies:t})})).map((function(e){var t,n={};return null===(t=e.pageInstanceList)||void 0===t||t.forEach((function(e){ea(e.componentInstances,n)})),n})),r=n.reduce((function(e,t){for(var n in t)e[n]=new Set(o(o([],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 s={};ta(r,[],i,s);var a=[r,s].reduce((function(e,t){for(var n in t)e[n]=new Set(o(o([],Array.from(t[n]),!0),Array.from(e[n]||[]),!0));return e}),{});return a},e.isUnitlessNumber=Bl,e.jsonToDTSWorkerCode=Xo,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,s=n.attributes,a=void 0===s?{}:s,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&&!bt(t.componentMap,"".concat(i,".").concat(r))&&(Ir(t.componentMap,"".concat(i,".").concat(r),!0),t.componentLibMap[i]=!0),function(e,t){var n,r=t[":for"];"string"==typeof r&&(Do(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&&Do(e,i)}(t,d),Io(t,a);for(var m=0,y=l;m<y.length;m++){Po(t,y[m])}h&&Do(t,h),f&&Do(t,f);for(var v=0,g=c;v<g.length;v++){e(t,g[v])}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=[]),La(e,"2.21.3",1678760239346)}(t),n.enablePageRoot=function(e){return La(e,"2.26.2",1682499675611)}(t),n},e.processCSSProperties2Rem=function(e,t){return void 0===e&&(e={}),oa(e,ca,t)},e.processCSSPropertiesUnit=da,e.processCommonStyle2CSSProperties=ua,e.processComponentModule=function(e,t){e.version,e.selectedPageId;var n=e.pageInstanceList;e.lowCodes,e.datasources,e.vars,e.dataset,i(e,["version","selectedPageId","pageInstanceList","lowCodes","datasources","vars","dataset"]);var s=(t||{}).dependencies,a=void 0===s?[]:s,o={app:e,dependencies:a,dependenciesMap:_o(a)};null==n||n.find((function(e){return e.isHome}));var c=r(r({},e),{componentInstances:Object.keys(e.componentInstances||{}).reduce((function(t,n){return t[n]=To(o,r({},e.componentInstances[n])),t}),{})});return c},e.processRuntimeCodeResources=function(t,n,r){var i;void 0===n&&(n=[]);var s=t.id,a=[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"===s||"component"===r;"global"!==s&&"app"!==r||a.push(e.ECodeType.THEME);var p={};return n.forEach((function(e){p[e.type]=!0})),a.forEach((function(e){if(!p[e]){var r=o[e]||e;n.unshift({name:r,type:e,code:Ea(t,e,c?"component":"global"===s?"app":"page"),path:"".concat(s,"/").concat(r),system:!0})}})),n.filter((function(t){return t.name!==e.ECodeName.PLACEHOLDER}))},e.semverComp=Na,e.serializeAttributes=function(e,t,n){var r;return void 0===n&&(n={}),null===(r=Wa(e,t,n))||void 0===r?void 0:r.data},e.serializeComponent=to,e.serializeDynamicMap=function(e){return ja(e).data},e.serializePage=ro,e.serializePlatformApp=so,e.serializeRuntimeComponent=oo,e.serializeRuntimePage=function e(t,n){var i,s,a,o,c,p,l,u=r(r({},t),{dependenciesMap:po(t.dependencies||[]),page:{id:n.id}}),d={id:n.id,type:"PAGE",component:"Page",attributes:null===(i=Wa(u,"page",fa(n)))||void 0===i?void 0:i.data,items:va(Object.keys((null===(s=n.componentSchemaJson)||void 0===s?void 0:s.properties)||{}).map((function(e){var t;return oo(u,r({id:e},null===(t=n.componentSchemaJson)||void 0===t?void 0:t.properties[e]))}))),resources:null===(a=null==n?void 0:n.codeModules)||void 0===a?void 0:a.map((function(e){return Qa(0,e)})),dataset:null==n?void 0:n.dataset,dataVariables:va(null===(c=null===(o=null==n?void 0:n.vars)||void 0===o?void 0:o.data)||void 0===c?void 0:c.map((function(e){return Ka(0,e)}))),listeners:va(ma(n.listenerInstances||[]).map((function(e){return qa(u,e)}))),extra:{commonStyle:va(ra(n.style)),styleBindPath:va(n.styleBindPath),xIndex:n.xIndex,children:va(null===(p=n.children)||void 0===p?void 0:p.map((function(n){return e(t,n)})))}};return(l=n.styleBind)&&"style"===l.propertyPath&&l.bindDataPath&&va(n.styleBind)&&(n[":style"]=Ra({ctx:u,key:"styleBind",dynamicValue:n.styleBind}).value),Zs(n.classListBind)&&va(n.classListBind)&&(n[":class"]=Ra({ctx:u,key:"classListBind",dynamicValue:n.classListBind})),d},e.serializeValue=Ra,e.transpileToDTS=zo,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){lo.push(i);var s=r[i];n.push(s)}}));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){lo.push(t);var r=e.properties[t];n.push(r)}))};"break"!==r(););var i=lo.map((function(e){return parseInt(e.replace("id",""))})).filter((function(e){return!isNaN(e)}));uo=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 s in n){var a=n[s];r[s]&&s.startsWith("id")?(n[ho()]=a,delete n[s]):r[s]=s,i.push(a)}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 s=ho();e.properties[s]=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),wo(t),function(e){return e.isComposite||Object.keys((null==e?void 0:e.dataForm)||{}).length>0}(e)&&Co(t);var s=t.componentInstances;for(var a in s){So(s[a],a,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 so(JSON.parse(t.replace(/app\.getPageOptions/g,"(()=>{})").replace(/\\\\n/g,"\\n")),{dependencies:[]})}return e},e.version4=function(e,t,n){return Ml(e,t,n)},e.workerCode=Go}));