@gkits/collect 0.0.33 → 0.0.34

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 (109) hide show
  1. package/dist/index.js +378 -3
  2. package/package.json +1 -1
  3. package/dist/dts/res/_utils/animate/animate.d.ts +0 -13
  4. package/dist/dts/res/_utils/animate/index.d.ts +0 -15
  5. package/dist/dts/res/_utils/attribute.d.ts +0 -4
  6. package/dist/dts/res/_utils/browser/UrlHandler.d.ts +0 -13
  7. package/dist/dts/res/_utils/browser/body.scroll.d.ts +0 -19
  8. package/dist/dts/res/_utils/browser/copy.d.ts +0 -1
  9. package/dist/dts/res/_utils/browser/device.d.ts +0 -4
  10. package/dist/dts/res/_utils/browser/fetcher.d.ts +0 -58
  11. package/dist/dts/res/_utils/browser/findDom.d.ts +0 -1
  12. package/dist/dts/res/_utils/browser/getBase64.d.ts +0 -1
  13. package/dist/dts/res/_utils/browser/getMousePoint.d.ts +0 -4
  14. package/dist/dts/res/_utils/browser/getPageScroll.d.ts +0 -4
  15. package/dist/dts/res/_utils/browser/getPageSize.d.ts +0 -6
  16. package/dist/dts/res/_utils/browser/guide.d.ts +0 -7
  17. package/dist/dts/res/_utils/browser/hiddenProperty.d.ts +0 -1
  18. package/dist/dts/res/_utils/browser/httpAjax.d.ts +0 -12
  19. package/dist/dts/res/_utils/browser/lazyLoad.d.ts +0 -27
  20. package/dist/dts/res/_utils/browser/loadJC.d.ts +0 -2
  21. package/dist/dts/res/_utils/browser/networkState.d.ts +0 -6
  22. package/dist/dts/res/_utils/browser/pinyin.d.ts +0 -1
  23. package/dist/dts/res/_utils/browser/ratioZoom.d.ts +0 -3
  24. package/dist/dts/res/_utils/browser/requestAnimationFrame.d.ts +0 -2
  25. package/dist/dts/res/_utils/browser/resize.d.ts +0 -1
  26. package/dist/dts/res/_utils/browser/scroll.d.ts +0 -5
  27. package/dist/dts/res/_utils/browser/touch.d.ts +0 -44
  28. package/dist/dts/res/_utils/browser/touchEvents.d.ts +0 -5
  29. package/dist/dts/res/_utils/color/getOpacityColor.d.ts +0 -1
  30. package/dist/dts/res/_utils/decorator/around.d.ts +0 -2
  31. package/dist/dts/res/_utils/decorator/debounce.d.ts +0 -1
  32. package/dist/dts/res/_utils/decorator/scrollLocks.d.ts +0 -1
  33. package/dist/dts/res/_utils/decorator/throttle.d.ts +0 -1
  34. package/dist/dts/res/_utils/decorator/timeout.d.ts +0 -1
  35. package/dist/dts/res/_utils/decorator/wait.d.ts +0 -1
  36. package/dist/dts/res/_utils/evalEventHandle.d.ts +0 -9
  37. package/dist/dts/res/_utils/event.d.ts +0 -15
  38. package/dist/dts/res/_utils/extend/arrayIndex.d.ts +0 -17
  39. package/dist/dts/res/_utils/extend/proxy.d.ts +0 -4
  40. package/dist/dts/res/_utils/function.d.ts +0 -4
  41. package/dist/dts/res/_utils/getcolor.d.ts +0 -129
  42. package/dist/dts/res/_utils/hsvacolor.d.ts +0 -12
  43. package/dist/dts/res/_utils/intersections.d.ts +0 -31
  44. package/dist/dts/res/_utils/key-codes.d.ts +0 -162
  45. package/dist/dts/res/_utils/number/calc.d.ts +0 -11
  46. package/dist/dts/res/_utils/object/assign.d.ts +0 -7
  47. package/dist/dts/res/_utils/object/exist.d.ts +0 -2
  48. package/dist/dts/res/_utils/object/freeze.d.ts +0 -1
  49. package/dist/dts/res/_utils/object/linkedList.d.ts +0 -14
  50. package/dist/dts/res/_utils/place.d.ts +0 -15
  51. package/dist/dts/res/_utils/string/getFileType.d.ts +0 -1
  52. package/dist/dts/res/_utils/string/marker.d.ts +0 -1
  53. package/dist/dts/res/_utils/string/trim.d.ts +0 -1
  54. package/dist/dts/res/_utils/string/utilTools.d.ts +0 -2
  55. package/dist/dts/res/_utils/style/background.d.ts +0 -7
  56. package/dist/dts/res/_utils/style/basics.d.ts +0 -3
  57. package/dist/dts/res/_utils/style/classic.d.ts +0 -10
  58. package/dist/dts/res/_utils/style/disabled.d.ts +0 -1
  59. package/dist/dts/res/_utils/style/display.d.ts +0 -3
  60. package/dist/dts/res/_utils/style/index.d.ts +0 -6
  61. package/dist/dts/res/_utils/style/resize.d.ts +0 -1
  62. package/dist/dts/res/_utils/style/screen.d.ts +0 -12
  63. package/dist/dts/res/_utils/style/style.d.ts +0 -14
  64. package/dist/dts/res/_utils/style/styleCalc.d.ts +0 -19
  65. package/dist/dts/res/_utils/style/styleDeclare.d.ts +0 -6
  66. package/dist/dts/res/_utils/style/units.d.ts +0 -1
  67. package/dist/dts/res/_utils/style/visibility.d.ts +0 -1
  68. package/dist/dts/res/_utils/style/wrap.d.ts +0 -1
  69. package/dist/dts/res/_utils/throttle.d.ts +0 -12
  70. package/dist/dts/res/_utils/types.d.ts +0 -17
  71. package/dist/dts/res/conflate/conflate.d.ts +0 -29
  72. package/dist/dts/res/conflate/conflate.style.d.ts +0 -1
  73. package/dist/dts/res/conflate/index.d.ts +0 -1
  74. package/dist/dts/res/index.d.ts +0 -4
  75. package/dist/dts/res/list/index.d.ts +0 -1
  76. package/dist/dts/res/list/list.d.ts +0 -10
  77. package/dist/dts/res/list/list.style.d.ts +0 -1
  78. package/dist/dts/res/param.d.ts +0 -11
  79. package/dist/dts/res/prize/index.d.ts +0 -1
  80. package/dist/dts/res/prize/prize.d.ts +0 -22
  81. package/dist/dts/res/prize/prize.style.d.ts +0 -1
  82. package/dist/dts/res/shared/con.d.ts +0 -1
  83. package/dist/dts/res/shared/config/config.d.ts +0 -10
  84. package/dist/dts/res/shared/config/hello.d.ts +0 -1
  85. package/dist/dts/res/shared/environments/environment.d.ts +0 -9
  86. package/dist/dts/res/shared/index.d.ts +0 -1
  87. package/dist/dts/res/shared/interface/type.d.ts +0 -50
  88. package/dist/dts/res/shared/mixins/applyMixins.d.ts +0 -1
  89. package/dist/dts/res/shared/mixins/hiElementBase.d.ts +0 -15
  90. package/dist/dts/res/shared/mixins/hiElementForm.d.ts +0 -17
  91. package/dist/dts/res/shared/mixins/hiElementStyle.d.ts +0 -26
  92. package/dist/dts/res/shared/mixins/hiElementTouch.d.ts +0 -28
  93. package/dist/dts/res/shared/services/date.services.d.ts +0 -1
  94. package/dist/dts/res/shared/services/md5.d.ts +0 -29
  95. package/dist/dts/res/shared/theme/default.d.ts +0 -29
  96. package/dist/dts/res/swipe/index.d.ts +0 -1
  97. package/dist/dts/res/swipe/swipe.d.ts +0 -16
  98. package/dist/dts/res/swipe/swipe.style.d.ts +0 -1
  99. package/dist/dts/res/vessel/src/_lib/getUrlParams.d.ts +0 -14
  100. package/dist/dts/res/vessel/src/_lib/httpProxy.d.ts +0 -74
  101. package/dist/dts/res/vessel/src/_lib/loadJC.d.ts +0 -1
  102. package/dist/dts/res/vessel/src/_lib/networkState.d.ts +0 -6
  103. package/dist/dts/res/vessel/src/_lib/pathHandle.d.ts +0 -12
  104. package/dist/dts/res/vessel/src/_lib/throttle.d.ts +0 -12
  105. package/dist/dts/res/vessel/src/index.d.ts +0 -3
  106. package/dist/dts/res/vessel/src/indexdb.d.ts +0 -14
  107. package/dist/dts/res/vessel/src/upapi.d.ts +0 -146
  108. package/dist/dts/res/vessel/src/user.model.d.ts +0 -12
  109. package/dist/dts/res/vessel/src/vessel.d.ts +0 -52
package/dist/index.js CHANGED
@@ -1,3 +1,378 @@
1
- import{css as t,attr as e,customElement as n,HIElement as o,html as r,ref as i,observable as a,nullableNumberConverter as s,repeat as c,when as l}from"hi-element";function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d,p={exports:{}};(d=p).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},d.exports.__esModule=!0,d.exports.default=d.exports;var h=u(p.exports),f={exports:{}},v={exports:{}},g={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(g);var m=u(g.exports),y={exports:{}};!function(t){var e=g.exports.default;t.exports=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(y),function(t){var e=g.exports.default,n=y.exports;t.exports=function(t){var o=n(t,"string");return"symbol"==e(o)?o:o+""},t.exports.__esModule=!0,t.exports.default=t.exports}(v),function(t){var e=v.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(f);var x=u(f.exports),b={exports:{}},w={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(w),function(t){var e=g.exports.default,n=w.exports;t.exports=function(t,o){if(o&&("object"==e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(b);var k=u(b.exports),S={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(S);var C=u(S.exports),_={exports:{}},M={exports:{}};!function(t){var e=S.exports;t.exports=function(t,n){for(;!{}.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(M),function(t){var e=M.exports;function n(){return t.exports=n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,o){var r=e(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(null,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(_);var O=u(_.exports),L={exports:{}},I={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(I),function(t){var e=I.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(L);var E=u(L.exports),B={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(B);var z=u(B.exports);function A(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":m(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}"function"==typeof SuppressedError&&SuppressedError;var P={exports:{}};!function(t){var e=v.exports;t.exports=function(t,n,o){return(n=e(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t},t.exports.__esModule=!0,t.exports.default=t.exports}(P);var j=u(P.exports),T={exports:{}},R={exports:{}},F={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o},t.exports.__esModule=!0,t.exports.default=t.exports}(F),function(t){var e=F.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(R);var N={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(N);var D={exports:{}};!function(t){var e=F.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(D);var W={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(W),function(t){var e=R.exports,n=N.exports,o=D.exports,r=W.exports;t.exports=function(t){return e(t)||n(t)||o(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(T);var H=u(T.exports),V={exports:{}},G={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(G);var Y={exports:{}};!function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports}(Y);var $={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}($),function(t){var e=G.exports,n=Y.exports,o=D.exports,r=$.exports;t.exports=function(t,i){return e(t)||n(t,i)||o(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(V);var U=u(V.exports),X=Math.min,Z=Math.max,J=Math.floor,Q=Math.round;function q(t,e,n){e/=100,n/=100;var o=J(t=t/360*6),r=t-o,i=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),c=o%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function K(t,e,n){var o,r,i=X(t/=255,e/=255,n/=255),a=Z(t,e,n),s=a-i;if(0===s)o=r=0;else{r=s/a;var c=((a-t)/6+s/2)/s,l=((a-e)/6+s/2)/s,u=((a-n)/6+s/2)/s;t===a?o=u-l:e===a?o=1/3+c-u:n===a&&(o=2/3+l-c),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*r,100*a]}function tt(t,e,n,o){e/=100,n/=100;var r=255*(1-X(1,(t/=100)*(1-(o/=100))+o)),i=255*(1-X(1,e*(1-o)+o)),a=255*(1-X(1,n*(1-o)+o));return H(K(r,i,a))}function et(t,e,n){return e/=100,[t,(n/=100)+(e*=n<.5?n:1-n)?2*e/(n+e)*100:0,100*(n+e)]}function nt(t){return K.apply(void 0,H(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function ot(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in n)if(e=n[r].exec(t))switch(r){case"cmyk":var i=o(e),a=U(i,5),s=a[1],c=a[2],l=a[3],u=a[4];if(s>100||c>100||l>100||u>100)break t;return{values:tt(s,c,l,u),type:r};case"rgba":var d=o(e),p=U(d,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(H(K(h,f,v)),[g]),a:g,type:r};case"hexa":var m=U(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(H(nt(y)),[x]),a:x,type:r};case"hsla":var b=o(e),w=U(b,7),k=w[3],S=w[4],C=w[5],_=w[6];if(k>360||S>100||C>100||_<0||_>1)break t;return{values:[].concat(H(et(k,S,C)),[_]),a:_,type:r};case"hsva":var M=o(e),O=U(M,7),L=O[3],I=O[4],E=O[5],B=O[6];if(L>360||I>100||E>100||B<0||B>1)break t;return{values:[L,I,E,B],a:B,type:r}}return{values:null,type:null}}function rt(){var t=function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~n?t.map((function(t){return Number(t.toFixed(n))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[e.h,e.s,e.v,e.a];return n.toString=t(n,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toHSLA:function(){var n=[].concat(H(function(t,e,n){var o=(2-(e/=100))*(n/=100)/2;return 0!==o&&(e=1===o?0:o<.5?e*n/(2*o):e*n/(2-2*o)),[t,100*e,100*o]}(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toRGBA:function(){var n=[].concat(H(q(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),n},toCMYK:function(){var n=function(t,e,n){var o,r=q(t,e,n),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(o=X(1-i,1-a,1-s))?0:(1-i-o)/(1-o)),100*(1===o?0:(1-a-o)/(1-o)),100*(1===o?0:(1-s-o)/(1-o)),100*o]}(e.h,e.s,e.v);return n.toString=t(n,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),n},toHEXA:function(){var t=function(t,e,n){return q(t,e,n).map((function(t){return Q(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),n=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&t.push(n),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return rt(e.h,e.s,e.v,e.a)}};return e}function it(t,e){var n=ot(t),o=rt.apply(void 0,H(n.values)).toRGBA();return"rgba(".concat(o[0].toFixed(0),",").concat(o[1].toFixed(0),",").concat(o[2].toFixed(0),",").concat(Number(o[3].toFixed(2))*e,")")}var at={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},st=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},ct=function(t){return j(j(j(j({},"--".concat(t,"Color"),"var(--hi".concat(st(t),"Color,").concat(at[t],")")),"--".concat(t,"Color-hover"),"var(--hi".concat(st(t),"Color-hover,").concat(it(at[t],.6),")")),"--".concat(t,"Color-active"),"var(--hi".concat(st(t),"Color-active,").concat(it(at[t],.4),")")),"--".concat(t,"Color-outline"),"var(--hi".concat(st(t),"Color-outline,").concat(it(at[t],.15),")"))},lt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(at.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(it(at.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(at.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(at.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},ct("primary")),ct("success")),ct("error")),ct("warning")),ct("info")),ut=function(t){return Object.prototype.toString.call(t)},dt=function(t){return"[object Object]"==ut(t)},pt=function(t){return"[object Array]"==ut(t)};function ht(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},n="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-user-drag: none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{".concat("\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n ","}\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n "),o="";if(t&&pt(t))for(var r=0;r<t.length;r++){var i=t[r];o+="".concat(e[i],";")}else for(var a in o+=n,e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a];o+=".".concat(a,"{").concat(s,"}")}return o}var ft=function(){function t(){if(h(this,t),this.config={theme:lt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},!window.HiServe.IS_READY)if(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),n="padding:5px 0",o="background:#0CF;"+n,r="background:#111;font-size:14px;color:#FFF;"+n,i="background:#CFF;"+n;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var a=["%c %c "+t+" %c %c"+e+"%c %c",o,r,o,i,o,"color:#000"];window.console.log.apply(console,a)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS"))window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS"));else{var e="https:"+atob("Ly96anJzLmhhaWVyLm5ldA==");(window.location.href.indexOf(atob("aHcuaGFpZXIubmV0L3BvcnRhbA=="))>-1||window.location.href.indexOf(atob("aHdvcmstaW50ZXJuYWwuaGFpZXIubmV0L3BvcnRhbA=="))>-1||window.location.href.indexOf(atob("aHdvcmsuaGFpZXIubmV0L3BvcnRhbA=="))>-1)&&(e=window.location.href.startsWith("https://p")||window.location.href.startsWith("http://p")?atob("aHR0cHM6Ly9wLWFwaS1jbi1zcDAwMDY3NS1pLmh3b3JrLmhhaWVyLm5ldA=="):atob("aHR0cHM6Ly9hcGktY24tc3AwMDA2NzUtaS5od29yay5oYWllci5uZXQ=")),n=[e+"/download/hikits/icons.js"],o=function(){window.HiServe.icons=window.Hi_Icons,window.localStorage.setItem("HI_ICONS",JSON.stringify(window.Hi_Icons))},r=document.getElementsByTagName("head")[0],Promise.all(n.map((function(t){return new Promise((function(e){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=t,n.addEventListener("load",(function(t){return e()}),!1),r.appendChild(n)}))}))).then(o)}var n,o,r}return x(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var n in t){var o=t[n];dt(o)?this.config[n]&&this.init(o,e[n]):e[n]=o}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}();function vt(){var t="",e=ft.case.config.theme;for(var n in e)n&&(t+="".concat(n,":").concat(e[n],";"));return":host,:root{".concat(t,"} ").concat(".Visibility{visibility:hidden}"," ").concat(ht())}var gt,mt={path:atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA=="),pathys:atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),coupon:"/download/img/collect/certificate.png",card1:"/download/img/collect/card01.png",card2:"/download/img/collect/card02.png",card3:"/download/img/collect/card03.png",card4:"/download/img/collect/card04.png",card5:"/download/img/collect/card05.png",card6:"/download/img/collect/card06.png"},yt=t(gt||(gt=z(["\n","\n:host{\ntext-align:center;color:#fff;\nposition:fixed;left:-100%;top:0;width:100vw;height:100vh;\n}\n:host([show]){display:block;z-index:3000;top:0;left:0;}\n.VideoWrap{position:absolute;top:0;left:0; width:720px;height:1560px;display:inline-block;\ntransform-origin:0 0;transform: translate3d(0, 0, 0);\n}\n.VideoWrap img{width:100%;height:100%;position:absolute;top:0;left:0;}\n.VideoWrap .Svga {width:100vw;height:100vh;}\n.ConflateWrap {position:absolute;top:0;left:0;width:100vw;height:100vh;display:block;z-index:3200;background:rgba(0, 0, 0, 0.4);}\n.ConflateWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n\n\n.ConflateWrap .Bg{position:absolute;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.ConflateWrap .Title img{\n height:17.0666666666vw\n}\n.ConflateWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.ConflateWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 3.2vw;\ncolor: #FFF1D8;\nline-height: 1.5;\nfont-weight: 400;\n}\n.Icon{display:flex;justify-content:space-around;position:absolute;width:100%;bottom:58vw;}\n.Icon span{display:none}\n.Icon span.Coupon{display:block;position:relative;}\n.Icon div{width:33.333333vw;text-align:center}\n.Icon div p{font-size:12px;}\n.Icon img{width:19.2vw}\n.Icon span.Coupon img{width:auto;height:19.2vw}\n.Icon span.Coupon i{position:absolute;font-style:normal;color:#f83a0a;top:4vw;left:0;right:0; text-align:center;}\n.Icon.Two{padding:0 10vw}\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n@media screen and (max-height : 210vw) {\n .VideoWrap{margin-top:-5vw}\n .Icon{bottom:54vw;}\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 200vw) {\n .ConflateWrap .Title{margin-top:-5vw}\n .VideoWrap{margin-top:-10vw}\n .Icon{bottom:50vw;}\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 190vw) {\n .ConflateWrap .Title{margin-top:-10vw}\n .VideoWrap{margin-top:-15vw}\n .Icon{bottom:45vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap{margin-top:-18vw}\n .Button{bottom:18vw;}\n}\n@media screen and (max-height : 170vw) {\n .ConflateWrap .Title{margin-top:-16vw}\n .VideoWrap{margin-top:-20vw}\n .Icon{bottom:38vw;}\n .Button{bottom:15vw;}\n}\n"])),vt(),mt.path);function xt(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==("undefined"==typeof Reflect?"undefined":m(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var bt=function(t){return Object.prototype.toString.call(t)},wt=function(t){return"[object Object]"==bt(t)},kt=function(t){return"[object Array]"==bt(t)};function St(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((function(t){t=St(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(var e in t)t[e]=St(t[e]);return t}function Ct(t){return function(e,n){if(wt(e))for(var o in e)_t(t)(o,e[o]);"string"==typeof e&&(/:/g.test(e)?e.split(";").forEach((function(e){var n=(e=St(e)).split(":");_t(t)(n[0],n[1])})):_t(t)(e,n))}}function _t(t){return function(e,n){if(t){if(void 0===n)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n}}}var Mt,Ot=function(){function t(){var e=this;h(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.add(n[o])},this.remove=function(t,e){if(t)for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.remove(n[o])}):(this.has=function(t,n){return e.classReg(n).test(t.className)},this.add=function(t,n){e.has(t,n)||(t.className=t.className+" "+n)},this.remove=function(t,n){t.className=t.className.replace(e.classReg(n)," ")})}return x(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}])}(),Lt=function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},It=function(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null};function Et(t,e,n){return e=C(e),k(t,Bt()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function Bt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bt=function(){return!!t})()}var zt=t(Mt||(Mt=z(['\n:host{\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n visibility:hidden;\n background: rgba(0,0,0,0.4);\n transition-duration: 0.3s;\n opacity: 0;\n z-index: 10; \n}\n:host([show]){\n visibility: visible;\n opacity: 1;\n}\n:host([class="Leave"]) {\n opacity: 0;\n transition: all 0.35s ease-out;\n}\n']))),At=function(){function t(){var e;return h(this,t),(e=Et(this,t)).show=!1,e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Ot.instance.add(this,"Leave"):Ot.instance.remove(this,"Leave")}},{key:"connectedCallback",value:function(){var e=this;(function(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r})(t,"connectedCallback",this,3)([]),this.background&&Ct(this)("background",this.background),Lt(this,"transitionend",(function(){e.transitionendChange()}))}},{key:"transitionendChange",value:function(){this.show||this.$emit("change")}}])}();xt([e],At.prototype,"background",void 0),xt([e({mode:"boolean"})],At.prototype,"show",void 0),At=xt([n({name:"h-mask",styles:zt,shadowOptions:{mode:"closed"}})],At);var Pt=new(function(){return x((function t(){var e=this;if(h(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,n){var o=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(n&&0===n.scrollTop&&o>0||e.isTargetElementTotallyScrolled(n)&&o<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var n={get passive(){this.hasPassiveEvents=!0}};Lt(window,"testPassive",null,n),It(window,"testPassive",null,n)}}),[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!!this.allowTouchMove(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var n=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var o={targetElement:t,options:e||{}};this.locks=[].concat(H(this.locks),[o]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(n.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&n.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(It(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(It(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}])}());function jt(t,e,n){var o=n.value;return n.value=function(t,e){return null===e||!1===e?Pt.enable(document.body):Pt.disable(document.body),o.apply(this,arguments)},n}function Tt(t){return t?function(e,n){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,n);else for(var o in e)t[o]=e[o],t.setAttribute(o,e[o])}:function(){}}function Rt(t){return t?function(e){if("string"==typeof e)t.removeAttribute(e);else for(var n=0;n<e.length;n++){var o=e[n];t.removeAttribute(o)}}:function(){}}var Ft=Math.min,Nt=Math.max,Dt=Math.floor,Wt=Math.round;function Ht(t,e,n){e/=100,n/=100;var o=Dt(t=t/360*6),r=t-o,i=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),c=o%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function Vt(t,e,n){var o,r,i=Ft(t/=255,e/=255,n/=255),a=Nt(t,e,n),s=a-i;if(0===s)o=r=0;else{r=s/a;var c=((a-t)/6+s/2)/s,l=((a-e)/6+s/2)/s,u=((a-n)/6+s/2)/s;t===a?o=u-l:e===a?o=1/3+c-u:n===a&&(o=2/3+l-c),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*r,100*a]}function Gt(t,e,n,o){return e/=100,n/=100,H(Vt(255*(1-Ft(1,(t/=100)*(1-(o/=100))+o)),255*(1-Ft(1,e*(1-o)+o)),255*(1-Ft(1,n*(1-o)+o))))}function Yt(t,e,n){return e/=100,[t,(n/=100)+(e*=n<.5?n:1-n)?2*e/(n+e)*100:0,100*(n+e)]}function $t(t){return Vt.apply(void 0,H(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function Ut(){var t=function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~n?t.map((function(t){return Number(t.toFixed(n))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[e.h,e.s,e.v,e.a];return n.toString=t(n,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toHSLA:function(){var n=[].concat(H(function(t,e,n){var o=(2-(e/=100))*(n/=100)/2;return 0!==o&&(e=1===o?0:o<.5?e*n/(2*o):e*n/(2-2*o)),[t,100*e,100*o]}(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toRGBA:function(){var n=[].concat(H(Ht(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),n},toCMYK:function(){var n=function(t,e,n){var o,r=Ht(t,e,n),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(o=Ft(1-i,1-a,1-s))?0:(1-i-o)/(1-o)),100*(1===o?0:(1-a-o)/(1-o)),100*(1===o?0:(1-s-o)/(1-o)),100*o]}(e.h,e.s,e.v);return n.toString=t(n,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),n},toHEXA:function(){var t=function(t,e,n){return Ht(t,e,n).map((function(t){return Wt(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),n=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&t.push(n),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return Ut(e.h,e.s,e.v,e.a)}};return e}function Xt(t,e){var n=Ut.apply(void 0,H(function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in n)if(e=n[r].exec(t))switch(r){case"cmyk":var i=o(e),a=U(i,5),s=a[1],c=a[2],l=a[3],u=a[4];if(s>100||c>100||l>100||u>100)break t;return{values:Gt(s,c,l,u),type:r};case"rgba":var d=o(e),p=U(d,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(H(Vt(h,f,v)),[g]),a:g,type:r};case"hexa":var m=U(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(H($t(y)),[x]),a:x,type:r};case"hsla":var b=o(e),w=U(b,7),k=w[3],S=w[4],C=w[5],_=w[6];if(k>360||S>100||C>100||_<0||_>1)break t;return{values:[].concat(H(Yt(k,S,C)),[_]),a:_,type:r};case"hsva":var M=o(e),O=U(M,7),L=O[3],I=O[4],E=O[5],B=O[6];if(L>360||I>100||E>100||B<0||B>1)break t;return{values:[L,I,E,B],a:B,type:r}}return{values:null,type:null}}(t).values)).toRGBA();return"rgba(".concat(n[0].toFixed(0),",").concat(n[1].toFixed(0),",").concat(n[2].toFixed(0),",").concat(Number(n[3].toFixed(2))*e,")")}var Zt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},Jt=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},Qt=function(t){return j(j(j(j({},"--".concat(t,"Color"),"var(--hi".concat(Jt(t),"Color,").concat(Zt[t],")")),"--".concat(t,"Color-hover"),"var(--hi".concat(Jt(t),"Color-hover,").concat(Xt(Zt[t],.6),")")),"--".concat(t,"Color-active"),"var(--hi".concat(Jt(t),"Color-active,").concat(Xt(Zt[t],.4),")")),"--".concat(t,"Color-outline"),"var(--hi".concat(Jt(t),"Color-outline,").concat(Xt(Zt[t],.15),")"))},qt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(Zt.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(Xt(Zt.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(Zt.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(Zt.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},Qt("primary")),Qt("success")),Qt("error")),Qt("warning")),Qt("info"));var Kt,te,ee=function(){function t(){h(this,t),this.config={theme:qt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),n="padding:5px 0",o="background:#0CF;"+n,r="background:#111;font-size:14px;color:#FFF;"+n,i="background:#CFF;"+n;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var a=["%c %c "+t+" %c %c"+e+"%c %c",o,r,o,i,o,"color:#000"];window.console.log.apply(console,a)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){var r,i,a=e.async,s=void 0===a||a,c=e.beforeSend,l=void 0===c?function(){}:c,u=e.data,d=void 0===u?null:u,p=e.headers,h=void 0===p?{}:p,f=e.method,v=void 0===f?"get":f,g=e.responseType,m=void 0===g?"json":g,y=e.timeout,x=void 0===y?0:y,b=new XMLHttpRequest;if(b.open(v,t,s),x&&(r=window.setTimeout((function(){o(new Error("the xhr request timeout ".concat(x,"ms")))}),x)),b.onerror=function(){o(new Error("unknown error"))},b.onreadystatechange=function(){if(4===b.readyState)if(x&&void 0!==r&&clearTimeout(r),b.status>=200&&b.status<300)n(b);else{var t=new Error("the request is error");o(t)}},wt(d))try{i=JSON.stringify(d),h["content-type"]="application/json"}catch(t){o(t)}else(function(t){return"string"==typeof t})(d)&&(h["content-type"]="application/x-www-form-urlencoded");for(var w in h)b.setRequestHeader(w,h[w]);x&&(b.timeout=x),b.responseType=m,!1!==l(b)&&b.send(i)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((function(t){window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}return x(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var n in t){var o=t[n];wt(o)?this.config[n]&&this.init(o,e[n]):e[n]=o}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}();function ne(t,e,n){return e=C(e),k(t,oe()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function oe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oe=function(){return!!t})()}var re,ie,ae,se,ce,le,ue=t(Kt||(Kt=z(['\n:host .LoadBox{\n position: fixed;\n display: flex;\n justify-content: center;\n width: 100%;\n height: 100%;\n transform: translate3d(0,200vh,0);\n transition-property: transform;\n z-index: 2890;\n transition-duration: 0.35s;\n pointer-events:none;\n}\nslot {\n pointer-events:auto; \n}\n\n\n:host([show]) .LoadBox{\n transform: translate3d(0,0,0);\n}\n\n:host([dir="bottom"]) .LoadBox,\n:host([dir="top"]) .LoadBox {\n left: 0; height: auto;\n}\n:host([dir="bottom"]) .LoadBox {\n bottom: 0; transform: translate3d(0,150vh,0);\n}\n:host([show][dir="bottom"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="top"]) .LoadBox {\n top: 0; transform: translate3d(0,-150vh,0);\n}\n:host([show][dir="top"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="left"]) .LoadBox,\n:host([dir="right"]) .LoadBox {\n align-items: center; justify-content: normal; top:0; width: auto;\n}\n\n:host([dir="left"]) .LoadBox {\n left:0; transform: translate3d(-150vw,0,0);\n}\n:host([show][dir="left"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="right"]) .LoadBox {\n right: 0; transform: translate3d(150vw,0,0);\n}\n:host([show][dir="right"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="center"]) .LoadBox {\n left:0; \n right:0; \n top:0;\n bottom:0;\n align-items:center; \n opacity:0;\n transform: translate3d(0,0,0);\n}\n:host([show][dir="center"]) .LoadBox {\n opacity: 1;\n}\n\n']))),de=r(te||(te=z(["\n<h-mask \n ",' \n background="','" \n @click="','"\n @change="','"\n></h-mask>\n<div class="LoadBox" ',">\n <slot></slot>\n</div>\n"])),i("HIMask"),(function(t){return t.background}),(function(t){return t.close()}),(function(t){return t.closeChange()}),i("LoadBox")),pe=function(){function t(){var e;return h(this,t),(e=ne(this,t)).show=!1,ee.case.install([At]),e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Tt(this.HIMask)("show")}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"close",value:function(){Rt(this.HIMask)("show"),this.$emit("close")}},{key:"closeChange",value:function(){this.$emit("change")}}])}();function he(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",n=["%","em","rem","ex","ch","vh","vw","vmax","vmin","px","pt","pc","cm","mm","in","kHz","Hz","ms","s","dpi","dpcm","dppx","deg","grad","rad","turn"],o=!1,r=0;r<n.length;r++){var i=n[r];String(t).toLowerCase().indexOf(i)>-1&&(o=!0)}return o?t:t+e}function fe(t,e,n){return e=C(e),k(t,ve()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function ve(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ve=function(){return!!t})()}function ge(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}xt([a],pe.prototype,"HIMask",void 0),xt([a],pe.prototype,"LoadBox",void 0),xt([e({mode:"boolean"})],pe.prototype,"show",void 0),xt([jt],pe.prototype,"showChanged",null),xt([e],pe.prototype,"dir",void 0),xt([e],pe.prototype,"background",void 0),pe=xt([n({name:"h-load",styles:ue,template:de,shadowOptions:{mode:"closed"}})],pe);var me=t(re||(re=z(['\n:host .LoadBox{\n position: fixed;\n display: flex;\n justify-content: center;\n width: 100%;\n height: 100%;\n transform: translate3d(0,200vh,0);\n z-index: 2890;\n transition:all 0.35s;\n pointer-events:none;\n}\nslot {\n pointer-events:auto; \n}\n\n\n:host([show]) .LoadBox{\n transform: translate3d(0,0,0);\n}\n\n:host([dir="bottom"]) .LoadBox,\n:host([dir="top"]) .LoadBox {\n left: 0; height: auto;\n}\n:host([dir="bottom"]) .LoadBox {\n bottom: 0; transform: translate3d(0,150vh,0);\n}\n:host([show][dir="bottom"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="top"]) .LoadBox {\n top: 0; transform: translate3d(0,-150vh,0);\n}\n:host([show][dir="top"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n:host([dir="left"]) .LoadBox,\n:host([dir="right"]) .LoadBox {\n align-items: center; justify-content: normal; top:0; width: auto;\n}\n\n:host([dir="left"]) .LoadBox {\n left:0; transform: translate3d(-150vw,0,0);\n}\n:host([show][dir="left"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="right"]) .LoadBox {\n right: 0; transform: translate3d(150vw,0,0);\n}\n:host([show][dir="right"]) .LoadBox {\n transform: translate3d(0,0,0);\n}\n\n\n:host([dir="center"]) .LoadBox {\n left:0; \n right:0; \n top:0;\n bottom:0;\n align-items:center; \n opacity:0;\n transform: translate3d(0,0,0);\n}\n:host([show][dir="center"]) .LoadBox {\n opacity: 1;\n}\n\n']))),ye=r(ie||(ie=z(["\n<h-mask \n ",' \n background="','" \n @click="','"\n @change="','"\n></h-mask>\n<div class="LoadBox" ',">\n <slot></slot>\n</div>\n"])),i("HIMask"),(function(t){return t.background}),(function(t){return t.clickFn()}),(function(t){return t.changeFn()}),i("LoadBox")),xe=function(){function t(){var e;return h(this,t),(e=fe(this,t)).show=!1,ee.case.install([At]),e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Tt(this.HIMask)("show")}},{key:"connectedCallback",value:function(){ge(t,"connectedCallback",this,3)([])}},{key:"clickFn",value:function(){this.$emit("click")}},{key:"changeFn",value:function(){this.$emit("change")}}])}();xt([a],xe.prototype,"HIMask",void 0),xt([a],xe.prototype,"LoadBox",void 0),xt([e({mode:"boolean"})],xe.prototype,"show",void 0),xt([jt],xe.prototype,"showChanged",null),xt([e],xe.prototype,"dir",void 0),xt([e],xe.prototype,"background",void 0),xe=xt([n({name:"h-enter",styles:me,template:ye,shadowOptions:{mode:"closed"}})],xe);var be=t(ae||(ae=z(["\n.Border{\n -webkit-mask-size: 100%;\n -webkit-mask-position: 0;\n -webkit-mask-repeat: no-repeat;\n}\n"]))),we=r(se||(se=z(['\n<div class="Border" ',"></div>\n"])),i("Border")),ke=function(){function t(){var e;return h(this,t),(e=fe(this,t)).dasharray="10 10",e}return E(t,o),x(t,[{key:"connectedCallback",value:function(){ge(t,"connectedCallback",this,3)([]),this.setSvg()}},{key:"attributeChangedCallback",value:function(e,n,o){ge(t,"attributeChangedCallback",this,3)([e,n,o]),this.setSvg()}},{key:"setSvg",value:function(){var t=this.border/2,e=Math.min(this.width,this.height),n=2*this.radius>e?e/2:this.radius,o='<svg width="'.concat(he(this.width),'" height="').concat(he(this.height),'" viewBox="0 0 ').concat(this.width," ").concat(this.height,'" version="1.1" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="').concat(this.border,'" fill="none" fill-rule="evenodd"><rect x="').concat(t,'" y="').concat(t,'" width="').concat(this.width-this.border,'" height="').concat(this.height-this.border,'" rx="').concat(n,'" stroke="#000" ').concat(this.dashed?'stroke-dasharray="'.concat(this.dasharray,'"'):"","></rect></g></svg>");Ct(this.Border)({width:he(this.width),height:he(this.height),"border-radius":he(n),"background-image":this.color,"-webkit-mask-image":"url(data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(o),")")})}}])}();xt([a],ke.prototype,"Border",void 0),xt([e({converter:s})],ke.prototype,"width",void 0),xt([e({converter:s})],ke.prototype,"height",void 0),xt([e],ke.prototype,"color",void 0),xt([e({converter:s})],ke.prototype,"border",void 0),xt([e({mode:"boolean"})],ke.prototype,"dashed",void 0),xt([e],ke.prototype,"dasharray",void 0),xt([e({converter:s})],ke.prototype,"radius",void 0),ke=xt([n({name:"h-border",styles:be,template:we,shadowOptions:{mode:"closed"}})],ke);var Se,Ce,_e=t(ce||(ce=z(["\n","\n","\n:host{\n position:fixed;\n left:0;\n top:0;\n right:0;\n bottom:0;\n visibility:hidden;\n transition-duration:0.35s;\n opacity:0;\n z-index:3100; \n}\n:host([show]){\n visibility:visible;\n opacity:1;\n}\n:host([show]) .Overlay{\n opacity:1!important;\n}\n:host .Overlay {\n position:relative;\n margin:auto;\n display:flex;\n align-items:center;\n justify-content:center;\n z-index:10; \n}\n"])),function(){var t="",e=ee.case.config.theme;for(var n in e)n&&(t+="".concat(n,":").concat(e[n],";"));return":host,:root{".concat(t,"} .Visibility{visibility:hidden} ").concat(function(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},n="";if(t&&kt(t))for(var o=0;o<t.length;o++)n+="".concat(e[t[o]],";");else for(var r in n+="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n }\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n ",e)Object.prototype.hasOwnProperty.call(e,r)&&(n+=".".concat(r,"{").concat(e[r],"}"));return n}())}(),function(t){return":host([hidden]),:host([hide]){display:none}:host{display:".concat(t,"}")}("flex")),Me=r(le||(le=z(["\n<h-mask ",' \n @click="','"\n @change="','"\n></h-mask>\n\n<div class="Overlay PosF OH" style="opacity:0;">\n <slot></slot>\n</div>\n'])),i("Mask"),(function(t){return t.close()}),(function(t){return t.close()})),Oe=function(){function t(){var e;return h(this,t),(e=fe(this,t)).mode="auto",e.show=!1,ee.case.install([At]),e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Rt(this.Mask)("show"):Tt(this.Mask)("show")}},{key:"connectedCallback",value:function(){ge(t,"connectedCallback",this,3)([])}},{key:"close",value:function(){"auto"==this.mode&&(this.show=!1)}}])}();function Le(t,e,n){return e=C(e),k(t,Ie()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function Ie(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ie=function(){return!!t})()}xt([a],Oe.prototype,"Mask",void 0),xt([e],Oe.prototype,"mode",void 0),xt([e({mode:"boolean"})],Oe.prototype,"show",void 0),Oe=xt([n({name:"h-overlay",styles:_e,template:Me})],Oe);var Ee=t(Se||(Se=z(['\n:host{\n position: absolute;\n pointer-events: none;\n width: 22px;\n height: 22px;\n --arrow-background-color: currentColor;\n}\n.ArrowWrap {\n position: absolute;\n z-index: 2;\n display: block;\n width: 22px;\n height: 22px;\n overflow: hidden;\n background: transparent;\n pointer-events: none\n}\n.Arrow {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 11.3137085px;\n height: 11.3137085px;\n margin: auto;\n border-radius:0 0 2px;\n pointer-events: none;\n box-shadow: 3px 3px 7px rgb(0 0 0 / 7%);\n transform: translateY(-11px) rotate(45deg);\n}\n.Arrow:before {\n position: absolute;\n top: -11.313709px;\n left: -11.54px;\n width: 33.9411255px;\n height: 33.9411255px;\n background: var(--arrow-background-color);\n content: "";\n -webkit-clip-path: path("M 9.849242 24.091883092036785 A5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 24.091883 9.849242404917499 L 9.849242404917499 24.091883 Z");\n clip-path: path("M 9.849242 24.091883092036785 A5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 24.091883 9.849242404917499 L 9.849242404917499 24.091883 Z");\n}\n:host([dir="top"]){\n transform: rotate(360deg);\n left: 50%;\n margin-left: -11px;\n bottom: -22px;\n}\n:host([dir="right"]){\n transform: rotate(90deg);\n left: -22px;\n top: 50%;\n margin-top: -11px;\n}\n:host([dir="left"]){\n transform: rotate(270deg);\n right: -22px;\n top: 50%;\n margin-top: -11px;\n}\n:host([dir="bottom"]){\n top: -22px;\n left: 50%;\n transform: rotate(180deg);\n margin-left: -11px;\n}\n\n:host([dir="topleft"]){\n left:10px;\n bottom: -22px;\n}\n:host([dir="topright"]){\n right:10px;\n bottom: -22px;\n}\n\n:host([dir="righttop"]),\n:host([dir="rightbottom"]){\n transform: rotate(90deg);\n left: -22px;\n}\n:host([dir="righttop"]) {\n top: 10px;\n}\n:host([dir="rightbottom"]){\n bottom: 10px;\n}\n:host([dir="bottomleft"]),\n:host([dir="bottomright"]){\n top: -22px;\n transform: rotate(180deg);\n}\n:host([dir="bottomleft"]){\n left: 10px;\n}\n:host([dir="bottomright"]){\n right: 10px;\n}\n\n:host([dir="lefttop"]),\n:host([dir="leftbottom"]) {\n right: -22px;\n transform: rotate(270deg);\n}\n:host([dir="lefttop"]) {\n top: 10px;\n\n}\n:host([dir="leftbottom"]){\n bottom: 10px;\n}\n\n\n\n']))),Be=r(Ce||(Ce=z(['\n<div class="ArrowWrap">\n <span class="Arrow"></span>\n</div>\n']))),ze=function(){function t(){var e;return h(this,t),(e=Le(this,t)).dir="top",e}return E(t,o),x(t,[{key:"colorChanged",value:function(t,e){Ct(this)({color:e})}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}}])}();xt([e],ze.prototype,"dir",void 0),xt([e],ze.prototype,"color",void 0),ze=xt([n({name:"h-arrow",styles:Ee,template:Be,shadowOptions:{mode:"closed"}})],ze);var Ae=function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},Pe=function(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null},je=function(){return x((function t(){var e=this;if(h(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,n){var o=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(n&&0===n.scrollTop&&o>0||e.isTargetElementTotallyScrolled(n)&&o<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var n={get passive(){this.hasPassiveEvents=!0}};Ae(window,"testPassive",null,n),Pe(window,"testPassive",null,n)}}),[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!(!this.allowTouchMove||!this.allowTouchMove(e.target))||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var n=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var o={targetElement:t,options:e||{}};this.locks=[].concat(H(this.locks),[o]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(n.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&n.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Pe(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Pe(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}])}(),Te=new je;function Re(t,e,n){var o=n.value;return n.value=function(t,e){return null===e||!1===e?Te.enable(document.body):Te.disable(document.body),o.apply(this,arguments)},n}var Fe,Ne,De,We,He=function(){function t(){var e=this;h(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.add(n[o])},this.remove=function(t,e){if(t)for(var n=e.split(" "),o=0;o<n.length;o++)void 0!==t.classList&&t.classList.remove(n[o])}):(this.has=function(t,n){return e.classReg(n).test(t.className)},this.add=function(t,n){e.has(t,n)||(t.className=t.className+" "+n)},this.remove=function(t,n){t.className=t.className.replace(e.classReg(n)," ")})}return x(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}])}();function Ve(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((function(t){t=Ve(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(var e in t)t[e]=Ve(t[e]);return t}function Ge(t){return function(e,n){if(dt(e))for(var o in e)Ye(t)(o,e[o]);if("string"==typeof e){if(/:/g.test(e))e.split(";").forEach((function(e){var n=(e=Ve(e)).split(":");Ye(t)(n[0],n[1])}));else Ye(t)(e,n)}}}function Ye(t){return function(e,n){if(t){if(void 0===n)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n}}}function $e(t){var e=null;return function(n,o,r){var i=r.value;return r.value=function(){for(var n=this,o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];e&&clearTimeout(e),e=setTimeout((function(){i.apply(n,r)}),t)},r}}function Ue(t,e,n){return e=C(e),k(t,Xe()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function Xe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xe=function(){return!!t})()}var Ze=r(Fe||(Fe=z(['\n<div class="ConflateWrap">\n <div class="Bg"></div>\n <div class="VideoBox">\n <div class="VideoWrap" ',">\n ","\n </div>\n </div>\n <div ",' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/title03.png"/>\n </div>\n <div class="Icon ','">\n <div><img src="','/download/img/collect/icon03.png"/><p class="TEll">2.5抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/icon02.png"/><p class="TEll">iHaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n ',"\n <p>iHaier新年头像框将通过您的iHaier发放</p>\n </div>\n </div>\n </div>\n"])),i("aniImg"),c((function(t,e){return t.ImgList}),r(Ne||(Ne=z(['<img src="','" style="z-index:',";display:",'" />'])),(function(t){return t.img}),(function(t){return t.index}),(function(t){return t.display})),{positioning:!0}),i("contentWrap"),mt.path,(function(t){return t.isCoupon?"":"Two"}),mt.path,(function(t){return t.isCoupon?"Coupon":""}),l((function(t){return t.isCoupon}),r(De||(De=z(['<div><img src="','"/><p class="TEll">',"</p></div>\n "])),(function(t){return t.prizeImg}),(function(t){return t.prizeName}))),mt.path,(function(t){return t.accept()}),mt.path,l((function(t){return t.isCoupon}),r(We||(We=z(["<p>优惠券可在【我的奖品-商城卡券】中查看</p>"]))))),Je=function(){function t(){var e;return h(this,t),(e=Ue(this,t)).isLowend=!1,e.isCoupon=!1,e.prizeName="",e.prizeQuota="",e.prizeImg="https://zjrs.haier.net/download/img/collect/coupon.png",e.ImgList=Array.from({length:50},(function(t,e){return{index:80-e,img:mt.path+"/download/img/collect/conflate/000"+(e<10?"0":"")+e+".jpg"}})),e.isClick=!1,e.index=0,e.row=0,e.col=0,ft.case.install([Oe]),e}return E(t,o),x(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?He.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){var e=this;!function(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([]),Ge(this.aniImg)("transform","scale("+document.documentElement.clientWidth/720+")"),this.isLowend=736==screen.height&&414==screen.width&&this.isIphone()||667==screen.height&&375==screen.width&&this.isIphone(),setTimeout((function(){e.isLowend?e.ImgList=[{index:80,img:mt.path+"/download/img/collect/conflate/loop.webp"}]:e.ImgList.push({index:31,display:"none",img:mt.path+"/download/img/collect/conflate/loop.webp"})}),100)}},{key:"isIphone",value:function(){return/iPhone/.test(navigator.userAgent)&&/Mobile/.test(navigator.userAgent)}},{key:"init",value:function(){var t=this;this.isLowend?(He.instance.add(this.contentWrap,"show"),setTimeout((function(){t.isClick=!0}),10)):(setTimeout((function(){t.timer=setInterval((function(){t.play()}),40)}),80),setTimeout((function(){He.instance.add(t.contentWrap,"show")}),1500),setTimeout((function(){t.isClick=!0}),3500))}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"play",value:function(){this.aniImg.children[0]&&this.aniImg.children[0].remove(),this.index++,50===this.index&&(Ge(this.aniImg.children[0])("display","block"),clearInterval(this.timer),this.index=0)}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&t.prizeId&&(this.prizeName=t.prizeName,this.prizeImg=t.prizeImg,this.prizeQuota=t.prizeQuota,this.isCoupon=!0)}}])}();A([a],Je.prototype,"Overlay",void 0),A([a],Je.prototype,"isLowend",void 0),A([a],Je.prototype,"video",void 0),A([a],Je.prototype,"contentWrap",void 0),A([a],Je.prototype,"isCoupon",void 0),A([a],Je.prototype,"prizeName",void 0),A([a],Je.prototype,"prizeQuota",void 0),A([a],Je.prototype,"prizeImg",void 0),A([a],Je.prototype,"aniImg",void 0),A([a],Je.prototype,"ImgList",void 0),A([e({mode:"boolean"})],Je.prototype,"show",void 0),A([Re],Je.prototype,"showChanged",null),A([$e(300)],Je.prototype,"accept",null),Je=A([n({name:"g-collect-conflate",template:Ze,styles:yt})],Je);var Qe,qe=new(function(){function t(){h(this,t),this.isMobile=!1,this.size=375,this.pageSize=function(){var t=0,e=0;window.innerHeight&&window.scrollMaxY?(t=window.innerWidth+window.scrollMaxX,e=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(t=document.body.scrollWidth,e=document.body.scrollHeight):document.body&&(t=document.body.offsetWidth,e=document.body.offsetHeight);var n=0,o=0;return window.innerHeight?(n=window.innerWidth,o=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(n=document.documentElement.clientWidth,o=document.documentElement.clientHeight):document.body&&(n=document.body.clientWidth,o=document.body.clientHeight),{PageW:t<n?n:t,PageH:e<o?o:e,WinW:n,WinH:o}}(),this.isMobile=this.pageSize.PageW<768}return x(t,[{key:"toVw",value:function(t){return this.isMobile?"".concat(t/this.size*100,"vw"):"".concat(t,"px")}},{key:"toPerce",value:function(t){return"".concat(t/this.size*100,"%")}},{key:"toPx",value:function(t){return"".concat(this.pageSize.PageW/this.size*t,"px")}},{key:"toEm",value:function(t){return"".concat(t/10,"em")}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}()),Ke=t(Qe||(Qe=z(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardBox{width:",";overflow: hidden;\noverflow-x: auto;position:relative;}\n.CardBox::-webkit-scrollbar{display:none}\n.CardWrap{display:inline-flex}\n.CardWrap div.Card{\nwidth:",";\nheight:",";\nmargin: 0 0 0 ",";\n}\n.CardWrap div.Card:last-child{margin-right:","}\n.CardWrap div.Card img {height:100%;width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n.Synthesis::after{content:'';width:16px;position:absolute;height:100%;top:0;right:-16px; z-index:99; background-image: linear-gradient(269deg, rgba(239,67,69,0.00) 0%, #EF4345 67%);}\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:-2vw 0 0;\n}\n.Synthesis .Img {z-index:2; opacity: 0.8;}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),vt(),qe.toVw(279),qe.toVw(56),qe.toVw(76),qe.toVw(10),qe.toVw(5),ht(["PoiNo"]),ht(["PoiNo"])),tn={exports:{}};!function(t){var e=g.exports.default;function n(){
2
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3
- t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var o,r={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(o){p=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var r=e&&e.prototype instanceof b?e:b,i=Object.create(r.prototype),a=new A(o||[]);return s(i,"_invoke",{value:I(t,n,a)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var v="suspendedStart",g="suspendedYield",m="executing",y="completed",x={};function b(){}function w(){}function k(){}var S={};p(S,l,(function(){return this}));var C=Object.getPrototypeOf,_=C&&C(C(P([])));_&&_!==i&&a.call(_,l)&&(S=_);var M=k.prototype=b.prototype=Object.create(S);function O(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,n){function o(r,i,s,c){var l=f(t[r],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==e(d)&&a.call(d,"__await")?n.resolve(d.__await).then((function(t){o("next",t,s,c)}),(function(t){o("throw",t,s,c)})):n.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,c)}))}c(l.arg)}var r;s(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,r){o(t,e,n,r)}))}return r=r?r.then(i,i):i()}})}function I(t,e,n){var r=v;return function(i,a){if(r===m)throw Error("Generator is already running");if(r===y){if("throw"===i)throw a;return{value:o,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===x)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===v)throw r=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var l=f(t,e,n);if("normal"===l.type){if(r=n.done?y:g,l.arg===x)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=y,n.method="throw",n.arg=l.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(r===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=o,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),x;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,x;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=o),e.delegate=null,x):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,x)}function B(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(B,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(a.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=o,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=k,s(M,"constructor",{value:k,configurable:!0}),s(k,"constructor",{value:w,configurable:!0}),w.displayName=p(k,d,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,p(t,d,"GeneratorFunction")),t.prototype=Object.create(M),t},r.awrap=function(t){return{__await:t}},O(L.prototype),p(L.prototype,u,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(M),p(M,d,"Generator"),p(M,l,(function(){return this})),p(M,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var o in e)n.push(o);return n.reverse(),function t(){for(;n.length;){var o=n.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},r.values=P,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(z),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=o)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=o),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var i=r?r.completion:{};return i.type=t,i.arg=e,r?(this.method="next",this.next=r.finallyLoc,x):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),x},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),z(n),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;z(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=o),x}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(tn);var en=tn.exports(),nn=en;try{regeneratorRuntime=en}catch(t){"object"===("undefined"==typeof globalThis?"undefined":m(globalThis))?globalThis.regeneratorRuntime=en:Function("r","regeneratorRuntime = r")(en)}function on(t,e,n){return e=C(e),k(t,rn()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function rn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(rn=function(){return!!t})()}var an,sn,cn=function(){function t(){var e;return h(this,t),(e=on(this,t,arguments)).disabled=!1,e}return E(t,o),x(t,[{key:"colorChanged",value:function(t,e){Ct(this)({color:e})}},{key:"sizeChanged",value:function(t,e){for(var n=0;n<this.children.length;n++){Tt(this.children[n])("size",this.size)}}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"injection",value:function(t){t&&t(this)}},{key:"setValueFn",value:function(t,e){this[t+"Changed"]("",e)}},{key:"update",value:function(t,e){e&&e(t)}},{key:"childrenFn",value:function(t){var e=this.children.length;if(e>0){for(var n=0;n<e;n++){var o=this.children[n];0==n?Tt(o)("first"):n+1==e&&Tt(o)("last"),Tt(o)("index",String(n))}t&&t()}}}])}();function ln(t,e,n){return e=C(e),k(t,un()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function un(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(un=function(){return!!t})()}xt([e],cn.prototype,"color",void 0),xt([e],cn.prototype,"size",void 0),xt([e({mode:"boolean"})],cn.prototype,"disabled",void 0);var dn,pn,hn,fn=function(){return x((function t(){h(this,t),this.timeOut=0}),[{key:"init",value:function(t){var e,n,o=this;e=setInterval((function(){n="string"==typeof t.front?window[t.front]:t.front(),o.timeOut++,(o.timeOut>=60||n)&&(clearInterval(e),t.callback())}),50)}}])}(),vn=t(an||(an=z(["\n:host{\n overflow: hidden;\n display: inline-block;\n position: relative;\n}\n:host span{\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\ndiv{\n width: 100%;\n height: 100%;\n}\n"]))),gn=r(sn||(sn=z(["\n<template>\n<span>\n <div ","></div>\n</span>\n</template>\n"])),i("SVGAPlayer")),mn=function(){function t(){return h(this,t),ln(this,t,arguments)}return E(t,cn),x(t,[{key:"pathChanged",value:function(t,e){e&&this.loadSvga()}},{key:"connectedCallback",value:function(){(function(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r})(t,"connectedCallback",this,3)([]),this.loadSvga()}},{key:"loadSvga",value:function(){return function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}(this,void 0,void 0,nn.mark((function t(){var e,n,o=this;return nn.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e=atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")+"/download/cdn/svga.min.js",new Promise((function(t,n){if(void 0!==e){var o=new fn,r=e.substring(e.lastIndexOf(".")+1),i=document.getElementsByTagName("head")[0];if(document.querySelectorAll('script[src*="'+e+'"]').length<=0){if("js"===r){var a=document.createElement("script");a.src=e,a.type="text/javascript",i.appendChild(a),a.onload=a.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||t(!0)}}else if("css"===r){var s=document.createElement("link");s.href=e,s.rel="stylesheet",s.type="text/css",i.appendChild(s)}}else o.init({front:String("SVGA"),callback:function(){t(!0)}})}else n(!1)}));case 2:n=new SVGA.Player(this.SVGAPlayer),new SVGA.Parser(this.SVGAPlayer).load(this.path,(function(t){o.height=t.videoSize.height,o.width=t.videoSize.width,o.$emit("change",{height:t.videoSize.height,width:t.videoSize.width}),n.setVideoItem(t),n.startAnimation()}));case 4:case"end":return t.stop()}}),t,this)})))}}])}();function yn(t,e,n){return e=C(e),k(t,xn()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function xn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xn=function(){return!!t})()}xt([a],mn.prototype,"SVGAPlayer",void 0),xt([e],mn.prototype,"path",void 0),xt([e({converter:s})],mn.prototype,"width",void 0),xt([e({converter:s})],mn.prototype,"height",void 0),mn=xt([n({name:"h-svga",styles:vn,template:gn})],mn);var bn,wn=r(dn||(dn=z(['\n<section class="ListWrap">\n <div class="Synthesis">\n <span>\n ','\n </span>\n <img class="Img ','" src="','/download/img/collect/synthesis.png" />\n </div>\n <div class="CardBox">\n <span class="CardWrap">\n ',"\n </span>\n </div>\n</section>\n"])),l((function(t){return t.isVideo}),r(pn||(pn=z(['<div style="position:absolute; z-index:4; display: block;height: 100%;width: 100%;" @click="','"> <h-svga class="Svga" path="','/download/img/collect/hecheng.svga"></h-svga><img class="Tips" src="','/download/img/collect/tips.png" /></div>'])),(function(t){return t.SynthesisFn()}),location.href.indexOf(atob("eXMtempycw=="))>-1?mt.pathys:mt.path,mt.path)),(function(t){return t.isVideo?"hide":""}),mt.path,c((function(t){return t.cardItem}),r(hn||(hn=z(['<div class="Card">\n <img src="','"/></div>'])),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0})),kn=function(){function t(){var e;return h(this,t),(e=yn(this,t)).isVideo=!1,e.cardItem=Array.from({length:6},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,"-1.png")}})),ft.case.install([mn]),e}return E(t,o),x(t,[{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"revert",value:function(){this.isVideo=!1,this.cardItem=Array.from({length:6},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/small0").concat(e+1,"-1.png")}}))}},{key:"update",value:function(t){if(t&&t.isRevert)this.revert();else if(t&&t.cardList){for(var e=Array.from({length:6}),n=0;n<t.cardList.length;n++){var o=t.cardList[n];e[o.cardType-1]={total:o.cardNum,card:"".concat(mt.path,"/download/img/collect/small0").concat(o.cardType,".png"),grey:"".concat(mt.path,"/download/img/collect/small0").concat(o.cardType,"-1.png")}}this.cardItem=e,this.isVideo=t.isCanCompose}}}])}();A([a],kn.prototype,"isVideo",void 0),A([a],kn.prototype,"cardItem",void 0),A([$e(300)],kn.prototype,"SynthesisFn",null),kn=A([n({name:"g-collect-list",template:wn,styles:Ke,shadowOptions:{mode:"closed"}})],kn);var Sn=t(bn||(bn=z(["\n","\n:host{text-align:center;display:none}\n:host([show]){display:block}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;z-index:3100;background:rgba(0, 0, 0, 0.4);}\n.PrizeWrap .Content{position:relative; z-index:60;height:100%;\n padding-top: 20vw;text-align:center;","\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n\n\n.Conten{position:fixed;top:0;left:0;width:100vw;height:100vh; z-index:2;display:block;}\n.Conten .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Conten .Img{position: absolute; overflow:hidden;\nz-index:99;left:20vw;top:50vw; \nwidth:60vw;\nheight:70vw;}\n.Conten .Img span {display:block}\n.Conten .Light{position: absolute;top: 0;",'\n bottom: 0;width:100%; overflow:hidden;\n left: 0;z-index:30;\n border-radius:8vw;}\n.Conten .Light::after{\n content: "";\n background-color: #fff9;\n opacity: 0.6;\n top: -25%;\n bottom: 0;\n left: -100%;\n position: absolute;\n width: 13vw;\n height:150%;\n box-shadow: 0 0 10vmin 2.5vmin #fff;\n transform:rotateZ(145deg) translateZ(0);\n transition: all 05s ease;\n animation-duration: 0.5s;\n animation-delay: 1s;\n animation-name: Light\n}\n\n.Conten .Img .Card {width:100%;height:100%}\n@keyframes Light{\n to{\n left: 400px;\n transition: left 0.5s ease 0s;\n }\n}\n\n@keyframes zoomInUp {\n from {opacity: 0;transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.49)}\n 60% {opacity: 1;transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -20px, 0);animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.5)}\n}\n.zoomInUp {animation-duration: 1s;\n animation-fill-mode: both;animation-name: zoomInUp}\n\n.CouponWrap {position:relative;}\n.CouponWrap .Info{position:absolute;width:100%;top:14.4vw;left:0;z-index:20;text-align:center;}\n.VideoWrap .Bg,\n.CouponWrap .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(',"/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Coupon{width:100%;height:70vw;position:relative;z-index:9;}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center;","}\n.Button img{height:20.26666666vw}\n\n.transit{display:none; ","}\n.show.transit{display:block;","}\n\n.Cache{display:none;position:absolute;bottom:-10px;left:-10px;z-index:-10}\n.Cache img{width:1px;height:1px;}\n\n\n@media screen and (max-height : 210vw) {\n .Button{bottom:27vw;}\n}\n@media screen and (max-height : 200vw) {\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 190vw) {\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap video{margin-top:10vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 170vw) {\n .VideoWrap video{margin-top:15vw;}\n .Button{bottom:15vw;}\n}\n"])),vt(),ht(["PoiNo"]),mt.path,ht(["PoiNo"]),mt.path,ht(["PoiAll"]),ht(["PoiNo"]),ht(["PoiAll"]));function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _n,Mn={exports:{}};(_n=Mn).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_n.exports.__esModule=!0,_n.exports.default=_n.exports;var On=Cn(Mn.exports),Ln={exports:{}},In={exports:{}},En={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==m(Symbol.iterator)?function(t){return m(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":m(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(En);var Bn=Cn(En.exports),zn={exports:{}};!function(t){var e=En.exports.default;t.exports=function(t,n){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(zn),function(t){var e=En.exports.default,n=zn.exports;t.exports=function(t){var o=n(t,"string");return"symbol"===e(o)?o:String(o)},t.exports.__esModule=!0,t.exports.default=t.exports}(In),function(t){var e=In.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ln);var An=Cn(Ln.exports),Pn={exports:{}},jn={exports:{}},Tn={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Tn);var Rn=Cn(Tn.exports);!function(t){var e=Tn.exports;t.exports=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(jn),function(t){var e=jn.exports;function n(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=n=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=n=function(t,n,o){var r=e(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Pn);var Fn=Cn(Pn.exports),Nn={exports:{}},Dn={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Dn),function(t){var e=Dn.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(Nn);var Wn=Cn(Nn.exports),Hn={exports:{}},Vn={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(Vn),function(t){var e=En.exports.default,n=Vn.exports;t.exports=function(t,o){if(o&&("object"===e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Hn);var Gn,Yn,$n=Cn(Hn.exports);function Un(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":Bn(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}Gn=window,Yn={},function t(e,n,o,r){var i=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),a="function"==typeof Path2D&&"function"==typeof DOMMatrix,s=function(){if(!e.OffscreenCanvas)return!1;var t=new OffscreenCanvas(1,1),n=t.getContext("2d");n.fillRect(0,0,1,1);var o=t.transferToImageBitmap();try{n.createPattern(o,"no-repeat")}catch(t){return!1}return!0}();function c(){}function l(t){var o=n.exports.Promise,r=void 0!==o?o:e.Promise;return"function"==typeof r?new r(t):(t(c,c),null)}var u,d,p,h,f,v,g,m,y,x,b,w=(u=s,d=new Map,{transform:function(t){if(u)return t;if(d.has(t))return d.get(t);var e=new OffscreenCanvas(t.width,t.height);return e.getContext("2d").drawImage(t,0,0),d.set(t,e),e},clear:function(){d.clear()}}),k=(f=Math.floor(1e3/60),v={},g=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(t){var e=Math.random();return v[e]=requestAnimationFrame((function n(o){g===o||g+f-1<o?(g=o,delete v[e],t()):v[e]=requestAnimationFrame(n)})),e},h=function(t){v[t]&&cancelAnimationFrame(v[t])}):(p=function(t){return setTimeout(t,f)},h=function(t){return clearTimeout(t)}),{frame:p,cancel:h}),S=(x={},function(){if(m)return m;if(!o&&i){var e=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{m=new Worker(URL.createObjectURL(new Blob([e])))}catch(t){return void 0!==("undefined"==typeof console?"undefined":Bn(console))&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",t),null}!function(t){function e(e,n){t.postMessage({options:e||{},callback:n})}t.init=function(e){var n=e.transferControlToOffscreen();t.postMessage({canvas:n},[n])},t.fire=function(n,o,r){if(y)return e(n,null),y;var i=Math.random().toString(36).slice(2);return y=l((function(o){function a(e){e.data.callback===i&&(delete x[i],t.removeEventListener("message",a),y=null,w.clear(),r(),o())}t.addEventListener("message",a),e(n,i),x[i]=a.bind(null,{data:{callback:i}})}))},t.reset=function(){for(var e in t.postMessage({reset:!0}),x)x[e](),delete x[e]}}(m)}return m}),C={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function _(t,e,n){return function(t,e){return e?e(t):t}(t&&null!=t[e]?t[e]:C[e],n)}function M(t){return t<0?0:Math.floor(t)}function O(t){return parseInt(t,16)}function L(t){return t.map(I)}function I(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:O(e.substring(0,2)),g:O(e.substring(2,4)),b:O(e.substring(4,6))}}function E(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function B(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function z(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var n=e.tick++/e.totalTicks,o=e.x+e.random*e.tiltCos,r=e.y+e.random*e.tiltSin,i=e.wobbleX+e.random*e.tiltCos,s=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-n)+")",t.beginPath(),a&&"path"===e.shape.type&&"string"==typeof e.shape.path&&Array.isArray(e.shape.matrix))t.fill(function(t,e,n,o,r,i,a){var s=new Path2D(t),c=new Path2D;c.addPath(s,new DOMMatrix(e));var l=new Path2D;return l.addPath(c,new DOMMatrix([Math.cos(a)*r,Math.sin(a)*r,-Math.sin(a)*i,Math.cos(a)*i,n,o])),l}(e.shape.path,e.shape.matrix,e.x,e.y,.1*Math.abs(i-o),.1*Math.abs(s-r),Math.PI/10*e.wobble));else if("bitmap"===e.shape.type){var c=Math.PI/10*e.wobble,l=.1*Math.abs(i-o),u=.1*Math.abs(s-r),d=e.shape.bitmap.width*e.scalar,p=e.shape.bitmap.height*e.scalar,h=new DOMMatrix([Math.cos(c)*l,Math.sin(c)*l,-Math.sin(c)*u,Math.cos(c)*u,e.x,e.y]);h.multiplySelf(new DOMMatrix(e.shape.matrix));var f=t.createPattern(w.transform(e.shape.bitmap),"no-repeat");f.setTransform(h),t.globalAlpha=1-n,t.fillStyle=f,t.fillRect(e.x-d/2,e.y-p/2,d,p),t.globalAlpha=1}else if("circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(i-o)*e.ovalScalar,Math.abs(s-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,n,o,r,i,a,s){t.save(),t.translate(e,n),t.rotate(i),t.scale(o,r),t.arc(0,0,1,0,s,void 0),t.restore()}(t,e.x,e.y,Math.abs(i-o)*e.ovalScalar,Math.abs(s-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if("star"===e.shape)for(var v=Math.PI/2*3,g=4*e.scalar,m=8*e.scalar,y=e.x,x=e.y,b=5,k=Math.PI/b;b--;)y=e.x+Math.cos(v)*m,x=e.y+Math.sin(v)*m,t.lineTo(y,x),v+=k,y=e.x+Math.cos(v)*g,x=e.y+Math.sin(v)*g,t.lineTo(y,x),v+=k;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(r)),t.lineTo(Math.floor(i),Math.floor(s)),t.lineTo(Math.floor(o),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}function A(t,n){var a,s=!t,c=!!_(n||{},"resize"),u=!1,d=_(n,"disableForReducedMotion",Boolean),p=i&&_(n||{},"useWorker")?S():null,h=s?E:B,f=!(!t||!p||!t.__confetti_initialized),v="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function g(e,n,i){for(var s,c,u,d,p=_(e,"particleCount",M),f=_(e,"angle",Number),v=_(e,"spread",Number),g=_(e,"startVelocity",Number),m=_(e,"decay",Number),y=_(e,"gravity",Number),x=_(e,"drift",Number),b=_(e,"colors",L),S=_(e,"ticks",Number),C=_(e,"shapes"),O=_(e,"scalar"),I=!!_(e,"flat"),E=function(t){var e=_(t,"origin",Object);return e.x=_(e,"x",Number),e.y=_(e,"y",Number),e}(e),B=p,A=[],P=t.width*E.x,j=t.height*E.y;B--;)A.push((c=(s={x:P,y:j,angle:f,spread:v,startVelocity:g,color:b[B%b.length],shape:C[(d=C.length,Math.floor(Math.random()*(d-0))+0)],ticks:S,decay:m,gravity:y,drift:x,scalar:O,flat:I}).angle*(Math.PI/180),u=s.spread*(Math.PI/180),{x:s.x,y:s.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*s.startVelocity+Math.random()*s.startVelocity,angle2D:-c+(.5*u-Math.random()*u),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:s.color,shape:s.shape,tick:0,totalTicks:s.ticks,decay:s.decay,drift:s.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*s.gravity,ovalScalar:.6,scalar:s.scalar,flat:s.flat}));return a?a.addFettis(A):(a=function(t,e,n,i,a){var s,c,u=e.slice(),d=t.getContext("2d"),p=l((function(e){function l(){s=c=null,d.clearRect(0,0,i.width,i.height),w.clear(),a(),e()}s=k.frame((function e(){!o||i.width===r.width&&i.height===r.height||(i.width=t.width=r.width,i.height=t.height=r.height),i.width||i.height||(n(t),i.width=t.width,i.height=t.height),d.clearRect(0,0,i.width,i.height),(u=u.filter((function(t){return z(d,t)}))).length?s=k.frame(e):l()})),c=l}));return{addFettis:function(t){return u=u.concat(t),p},canvas:t,promise:p,reset:function(){s&&k.cancel(s),c&&c()}}}(t,A,h,n,i),a.promise)}function m(n){var o=d||_(n,"disableForReducedMotion",Boolean),r=_(n,"zIndex",Number);if(o&&v)return l((function(t){t()}));s&&a?t=a.canvas:s&&!t&&(t=function(t){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}(r),document.body.appendChild(t)),c&&!f&&h(t);var i={width:t.width,height:t.height};function m(){if(p){var e={getBoundingClientRect:function(){if(!s)return t.getBoundingClientRect()}};return h(e),void p.postMessage({resize:{width:e.width,height:e.height}})}i.width=i.height=null}function y(){a=null,c&&(u=!1,e.removeEventListener("resize",m)),s&&t&&(document.body.removeChild(t),t=null,f=!1)}return p&&!f&&p.init(t),f=!0,p&&(t.__confetti_initialized=!0),c&&!u&&(u=!0,e.addEventListener("resize",m,!1)),p?p.fire(n,i,y):g(n,i,y)}return m.reset=function(){p&&p.reset(),a&&a.reset()},m}function P(){return b||(b=A(null,{useWorker:!0,resize:!0})),b}n.exports=function(){return P().apply(this,arguments)},n.exports.reset=function(){P().reset()},n.exports.create=A,n.exports.shapeFromPath=function(t){if(!a)throw new Error("path confetti are not supported in this browser");var e,n;"string"==typeof t?e=t:(e=t.path,n=t.matrix);var o=new Path2D(e),r=document.createElement("canvas").getContext("2d");if(!n){for(var i,s,c=1e3,l=c,u=c,d=0,p=0,h=0;h<c;h+=2)for(var f=0;f<c;f+=2)r.isPointInPath(o,h,f,"nonzero")&&(l=Math.min(l,h),u=Math.min(u,f),d=Math.max(d,h),p=Math.max(p,f));i=d-l,s=p-u;var v=Math.min(10/i,10/s);n=[v,0,0,v,-Math.round(i/2+l)*v,-Math.round(s/2+u)*v]}return{type:"path",path:e,matrix:n}},n.exports.shapeFromText=function(t){var e,n=1,o="#000000",r='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof t?e=t:(e=t.text,n="scalar"in t?t.scalar:n,r="fontFamily"in t?t.fontFamily:r,o="color"in t?t.color:o);var i=10*n,a=i+"px "+r,s=new OffscreenCanvas(i,i),c=s.getContext("2d");c.font=a;var l=c.measureText(e),u=Math.ceil(l.actualBoundingBoxRight+l.actualBoundingBoxLeft),d=Math.ceil(l.actualBoundingBoxAscent+l.actualBoundingBoxDescent),p=l.actualBoundingBoxLeft+2,h=l.actualBoundingBoxAscent+2;u+=4,d+=4,(c=(s=new OffscreenCanvas(u,d)).getContext("2d")).font=a,c.fillStyle=o,c.fillText(e,p,h);var f=1/n;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[f,0,0,f,-u*f/2,-d*f/2]}}}(function(){return void 0!==Gn?Gn:"undefined"!=typeof self?self:this||{}}(),Yn,!1),Gn.confetti=Yn.exports;var Xn=function(){Wn(e,o);var t=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Rn(t);if(e){var r=Rn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $n(this,n)}}(e);function e(){var n;return On(this,e),(n=t.call(this)).defaults={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,origin:{x:.5,y:.5},shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],scalar:1},n.zindex=100,n}return An(e,[{key:"connectedCallback",value:function(){Fn(Rn(e.prototype),"connectedCallback",this).call(this),this.load()}},{key:"load",value:function(){confetti({particleCount:150,spread:90,ticks:130,scalar:1.3,zIndex:this.zindex,origin:{y:.35}})}}]),e}();Un([a],Xn.prototype,"game",void 0),Un([e({converter:s})],Xn.prototype,"zindex",void 0),Xn=Un([n({name:"g-confetti",shadowOptions:{mode:"closed"}})],Xn);var Zn={init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};confetti(Object.assign({particleCount:200,spread:70,zIndex:3e3,origin:{y:.4}},t))}};window.Effects=window.Effects||{},window.Effects.confetti=Zn;var Jn={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Jn);var Qn=u(Jn.exports);function qn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kn,to={exports:{}};(Kn=to).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Kn.exports.__esModule=!0,Kn.exports.default=Kn.exports;var eo=qn(to.exports),no={exports:{}},oo={exports:{}},ro={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==Qn(Symbol.iterator)?function(t){return Qn(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Qn(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(ro);var io=qn(ro.exports),ao={exports:{}};!function(t){var e=ro.exports.default;t.exports=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(ao),function(t){var e=ro.exports.default,n=ao.exports;t.exports=function(t){var o=n(t,"string");return"symbol"==e(o)?o:o+""},t.exports.__esModule=!0,t.exports.default=t.exports}(oo),function(t){var e=oo.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(no);var so=qn(no.exports),co={exports:{}},lo={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(lo),function(t){var e=ro.exports.default,n=lo.exports;t.exports=function(t,o){if(o&&("object"==e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(co);var uo=qn(co.exports),po={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(po);var ho=qn(po.exports),fo={exports:{}},vo={exports:{}};!function(t){var e=po.exports;t.exports=function(t,n){for(;!{}.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(vo),function(t){var e=vo.exports;function n(){return t.exports=n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,o){var r=e(t,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(null,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(fo);var go=qn(fo.exports),mo={exports:{}},yo={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(yo),function(t){var e=yo.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(mo);var xo=qn(mo.exports),bo={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(bo);var wo,ko=qn(bo.exports);function So(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":io(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}"function"==typeof SuppressedError&&SuppressedError;var Co=t(wo||(wo=ko(["\n.LightWrap {position:fixed;width:500vw;height:500vw;top:50%;left:50%;transform: translate(-50%, -50%);filter: blur(6px);}\n:host([dir='top']) .LightWrap{top:0;}\n:host([dir='topleft']) .LightWrap{top:0;left:0;}\n:host([dir='topright']) .LightWrap{top:0;left:100%;}\n:host([dir='bottom']) .LightWrap{top:100%;}\n:host([dir='bottomleft']) .LightWrap{top:100%;left:0;}\n:host([dir='bottomright']) .LightWrap{top:100%;left:100%;}\n:host([dir='left']) .LightWrap{left:0;}\n:host([dir='right']) .LightWrap{left:100%;}\n.LightWrap .Circle {position:absolute;inset:0;border-radius:50%;transform:translateZ(0);-webkit-transform:translateZ(0);}\n.LightWrap .Circle1 {\n background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0%,var(--color) 1%,transparent 6%);\n -webkit-animation: 13s linear rotate infinite reverse;\n animation: 13s linear rotate infinite reverse;\n}\n.LightWrap .Circle2 {\n background:repeating-conic-gradient(from 19deg at 50% 50%,transparent 0%, var(--color) 1.2%,var(--color),transparent 4.8%,transparent 7.6%);\n -webkit-animation: 9s linear -2s rotate infinite;\n animation: 9s linear -2s rotate infinite;\n}\n.LightWrap .Circle3 {\n background:repeating-conic-gradient(from 37deg at 50% 50%,transparent 0%,var(--color) 4%,transparent 7.9%,transparent 12%);\n -webkit-animation: 17s linear rotate infinite reverse;\n animation: 17s linear rotate infinite reverse;\n}\n.LightWrap .Circle4 {\n background:repeating-conic-gradient(from 103deg at 50% 50%,transparent 0%,var(--color)) 5%,var(--color) 7%,transparent 12%);\n -webkit-animation:7s linear rotate infinite;\n animation:7s linear rotate infinite;\n}\n@-webkit-keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n@keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n"]))),_o={exports:{}},Mo={exports:{}},Oo={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o},t.exports.__esModule=!0,t.exports.default=t.exports}(Oo),function(t){var e=Oo.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Mo);var Lo={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Lo);var Io={exports:{}};!function(t){var e=Oo.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(Io);var Eo={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Eo),function(t){var e=Mo.exports,n=Lo.exports,o=Io.exports,r=Eo.exports;t.exports=function(t){return e(t)||n(t)||o(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(_o);var Bo=qn(_o.exports),zo={exports:{}},Ao={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ao);var Po={exports:{}};!function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports}(Po);var jo={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(jo),function(t){var e=Ao.exports,n=Po.exports,o=Io.exports,r=jo.exports;t.exports=function(t,i){return e(t)||n(t,i)||o(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(zo);var To,Ro=qn(zo.exports),Fo=Math.min,No=Math.max,Do=Math.floor,Wo=Math.round;function Ho(t,e,n){e/=100,n/=100;var o=Do(t=t/360*6),r=t-o,i=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),c=o%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function Vo(t,e,n){var o,r,i=Fo(t/=255,e/=255,n/=255),a=No(t,e,n),s=a-i;if(0===s)o=r=0;else{r=s/a;var c=((a-t)/6+s/2)/s,l=((a-e)/6+s/2)/s,u=((a-n)/6+s/2)/s;t===a?o=u-l:e===a?o=1/3+c-u:n===a&&(o=2/3+l-c),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*r,100*a]}function Go(t,e,n,o){e/=100,n/=100;var r=255*(1-Fo(1,(t/=100)*(1-(o/=100))+o)),i=255*(1-Fo(1,e*(1-o)+o)),a=255*(1-Fo(1,n*(1-o)+o));return Bo(Vo(r,i,a))}function Yo(t,e,n){return e/=100,[t,(n/=100)+(e*=n<.5?n:1-n)?2*e/(n+e)*100:0,100*(n+e)]}function $o(t){return Vo.apply(void 0,Bo(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function Uo(){var t=function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~n?t.map((function(t){return Number(t.toFixed(n))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[e.h,e.s,e.v,e.a];return n.toString=t(n,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toHSLA:function(){var n=[].concat(Bo(function(t,e,n){var o=(2-(e/=100))*(n/=100)/2;return 0!==o&&(e=1===o?0:o<.5?e*n/(2*o):e*n/(2-2*o)),[t,100*e,100*o]}(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),n},toRGBA:function(){var n=[].concat(Bo(Ho(e.h,e.s,e.v)),[e.a]);return n.toString=t(n,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),n},toCMYK:function(){var n=function(t,e,n){var o,r=Ho(t,e,n),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(o=Fo(1-i,1-a,1-s))?0:(1-i-o)/(1-o)),100*(1===o?0:(1-a-o)/(1-o)),100*(1===o?0:(1-s-o)/(1-o)),100*o]}(e.h,e.s,e.v);return n.toString=t(n,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),n},toHEXA:function(){var t=function(t,e,n){return Ho(t,e,n).map((function(t){return Wo(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),n=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&t.push(n),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return Uo(e.h,e.s,e.v,e.a)}};return e}function Xo(t,e,n){return e=ho(e),uo(t,Zo()?Reflect.construct(e,n||[],ho(t).constructor):e.apply(t,n))}function Zo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Zo=function(){return!!t})()}var Jo,Qo,qo,Ko,tr,er,nr=r(To||(To=ko(['\n<section class="LightWrap">\n <div class="Circle Circle1"></div>\n <div class="Circle Circle2"></div>\n <div class="Circle Circle3"></div>\n <div class="Circle Circle4"></div>\n</section>\n']))),or=function(){function t(){var e;return eo(this,t),(e=Xo(this,t)).color="#faf014",e}return xo(t,o),so(t,[{key:"colorChanged",value:function(t,e){var n,o;e&&this.style.setProperty("--color",(n=function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in n)if(e=n[r].exec(t))switch(r){case"cmyk":var i=o(e),a=Ro(i,5),s=a[1],c=a[2],l=a[3],u=a[4];if(s>100||c>100||l>100||u>100)break t;return{values:Go(s,c,l,u),type:r};case"rgba":var d=o(e),p=Ro(d,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(Bo(Vo(h,f,v)),[g]),a:g,type:r};case"hexa":var m=Ro(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(Bo($o(y)),[x]),a:x,type:r};case"hsla":var b=o(e),w=Ro(b,7),k=w[3],S=w[4],C=w[5],_=w[6];if(k>360||S>100||C>100||_<0||_>1)break t;return{values:[].concat(Bo(Yo(k,S,C)),[_]),a:_,type:r};case"hsva":var M=o(e),O=Ro(M,7),L=O[3],I=O[4],E=O[5],B=O[6];if(L>360||I>100||E>100||B<0||B>1)break t;return{values:[L,I,E,B],a:B,type:r}}return{values:null,type:null}}(e),o=Uo.apply(void 0,Bo(n.values)).toRGBA(),"rgba(".concat(o[0].toFixed(0),",").concat(o[1].toFixed(0),",").concat(o[2].toFixed(0),",").concat(.2*Number(o[3].toFixed(2)),")")))}},{key:"connectedCallback",value:function(){var e,n,o;(e=t,n=this,o=go(ho(1&3?e.prototype:e),"connectedCallback",n),function(t){return o.apply(n,t)})([])}}])}();function rr(t,e,n){return e=C(e),k(t,ir()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function ir(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ir=function(){return!!t})()}So([e],or.prototype,"dir",void 0),So([e],or.prototype,"color",void 0),or=So([n({name:"h-spotlight",template:nr,styles:Co,shadowOptions:{mode:"closed"}})],or);var ar,sr=r(Jo||(Jo=z(['\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <div class="Conten">\n <div class="Bg"></div>\n <h-spotlight color="#000"></h-spotlight>\n <div class="Img zoomInUp">\n <span>\n ',"\n </span>\n \n <span>\n ",'\n </span>\n <div class="Light"></div>\n </div>\n </div>\n </div>\n\n <div ',' class="Content transit">\n <div class="Title">\n <span>\n ',"\n </span>\n <span>\n ",'\n </span> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n <div class="Cache">\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n </div>\n'])),l((function(t){return 1==t.type}),r(Qo||(Qo=z(['<img src="','" class="Card" draggable="false"/>'])),(function(t){return t.imgSrc}))),l((function(t){return 2==t.type}),r(qo||(qo=z(['<div class="CouponWrap">\n <img class="Coupon" src="','"/>\n <div class="Info">\n <p style="color:#FF3B0A;font-size:9.6vw;font-weight:600;line-height:9.6vw">','</p>\n <p style="color:#EB330E;font-size:3.733vw;font-weight:600;margin:2vw 0 7vw">',"</p>\n </div>\n </div>"])),mt.path+mt.coupon,(function(t){return t.prizeQuota}),(function(t){return t.prizeName}))),i("contentWrap"),l((function(t){return 1==t.type}),r(Ko||(Ko=z(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),mt.path,(function(t){return t.number>0?r(tr||(tr=z(["再集","张不同卡牌即可合成"])),(function(t){return t.number})):"已集齐6张,赶快去合成吧"}))),l((function(t){return 2==t.type}),r(er||(er=z(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">',"</p>"])),mt.path,(function(t){return t.prizeQuota+t.prizeName}))),(function(t){return t.accept()}),mt.path,mt.path+mt.coupon,mt.path+mt.card1,mt.path+mt.card2,mt.path+mt.card3,mt.path+mt.card4,mt.path+mt.card5,mt.path+mt.card6),cr=function(){function t(){var e;return h(this,t),(e=rr(this,t)).prizeName="",e.prizeQuota="",e.isClick=!1,e.imgSrc="",e.type=1,e.index=1,e.number=3,ft.case.install([Oe,Xn,or]),e}return E(t,o),x(t,[{key:"indexChanged",value:function(t,e){var n=this;setTimeout((function(){n.imgSrc=mt.path+mt["card"+e]}),10)}},{key:"showChanged",value:function(t,e){null===e||!1===e?He.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"init",value:function(){var t=this;setTimeout((function(){He.instance.add(t.contentWrap,"show")}),1e3),setTimeout((function(){t.isClick=!0}),2e3),window.confetti({particleCount:150,spread:90,ticks:130,scalar:1.3,zIndex:3200,origin:{y:.35}})}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&2==this.type&&(this.prizeName=t.prizeName,this.prizeQuota=t.prizeQuota)}}])}();A([a],cr.prototype,"Overlay",void 0),A([a],cr.prototype,"video",void 0),A([a],cr.prototype,"contentWrap",void 0),A([a],cr.prototype,"prizeName",void 0),A([a],cr.prototype,"prizeQuota",void 0),A([a],cr.prototype,"imgSrc",void 0),A([e({converter:s})],cr.prototype,"type",void 0),A([e({converter:s})],cr.prototype,"index",void 0),A([e({converter:s})],cr.prototype,"number",void 0),A([e({mode:"boolean"})],cr.prototype,"show",void 0),A([Re],cr.prototype,"showChanged",null),A([$e(300)],cr.prototype,"accept",null),cr=A([n({name:"g-collect-prize",template:sr,styles:Sn,shadowOptions:{mode:"closed"}})],cr);var lr,ur,dr,pr,hr=t(ar||(ar=z(["\n:host{\ndisplay:inline-block;\nwidth:51.73333333vw;\nheight:60vw;\n}\n.SwipeWrap {\nposition: relative;\nwidth:51.73333333vw;\nheight:60vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:51.73333333vw;\nheight:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;height:100%;\n}\nimg {\n -webkit-touch-callout :none;\n user-select:none;\n}\n.Nav {\n position: absolute;\n display: none;\n align-items: center;\n justify-content: center;\n top: 44%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:10.666666666vw;\n height:10.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: -4.266666666vw;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: -4.266666666vw;\n transform: translateX(100%) translatey(-50%);\n}\n:host(.isArrow) .Nav{display: flex;}\n"])));function fr(t,e,n){return e=C(e),k(t,vr()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function vr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vr=function(){return!!t})()}var gr=r(lr||(lr=z(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),l((function(t){return t.active>0}),r(ur||(ur=z(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(t){return t.setActive("l")}),mt.path)),c((function(t){return t.cardItem}),r(dr||(dr=z(['<div class="CardContainer ','" style="','">\n <img src="','" draggable="false"/>\n </div>'])),(function(t,e){return e.parent.classFn(e.index)}),(function(t,e){return e.parent.styleFn(e.index)}),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0}),l((function(t){return t.active<t.cardItem.length-1}),r(pr||(pr=z(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(t){return t.setActive("r")}),mt.path))),mr=function(){function t(){var e;return h(this,t),(e=fr(this,t)).cardItem=Array.from({length:7},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,"-1.png")}})),e.MAX_VISIBILITY=1,e.active=0,e.arrow=!0,e}return E(t,o),x(t,[{key:"arrowChanged",value:function(t,e){null===e||!1===e||this.isComposed?He.instance.remove(this,"isArrow"):He.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){!function(t,e,n,o){var r=O(C(1&o?t.prototype:t),e,n);return 2&o?function(t){return r.apply(n,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"setActive",value:function(t){"l"==t?--this.active:++this.active}},{key:"classFn",value:function(t){return t==this.active?"active":""}},{key:"styleFn",value:function(t){var e="--active:".concat(t===this.active?1:0,";");return e+="--offset:".concat((this.active-t)/3,";"),e+="--direction:".concat(Math.sign(this.active-t),";"),e+="--abs-offset:".concat(Math.abs(this.active-t)/3,";"),e+="pointer-events:".concat(this.active===t?"auto":"none",";"),e+="opacity:".concat(Math.abs(this.active-t)>=this.MAX_VISIBILITY?"0":"1",";"),e+="display:".concat(Math.abs(this.active-t)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"revert",value:function(){this.isComposed=!1,this.arrow=!0,this.active=0,this.cardItem=Array.from({length:7},(function(t,e){return{card:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(mt.path,"/download/img/collect/card0").concat(e+1,"-1.png")}}))}},{key:"update",value:function(t){if(t&&t.isRevert)this.revert();else if(t&&t.cardList){for(var e=Array.from({length:6}),n=0;n<t.cardList.length;n++){var o=t.cardList[n];e[o.cardType-1]={total:o.cardNum,card:"".concat(mt.path,"/download/img/collect/card0").concat(o.cardType,".png"),grey:"".concat(mt.path,"/download/img/collect/card0").concat(o.cardType,"-1.png")}}e.push({total:t.isComposed?1:0,card:"".concat(mt.path,"/download/img/collect/card07.png"),grey:"".concat(mt.path,"/download/img/collect/card07-1.png")}),this.cardItem=e,t.isComposed&&(this.active=6,this.arrow=!1,this.isComposed=t.isComposed)}}}])}();A([a],mr.prototype,"cardItem",void 0),A([a],mr.prototype,"isComposed",void 0),A([e({converter:s})],mr.prototype,"active",void 0),A([e({mode:"boolean"})],mr.prototype,"arrow",void 0),mr=A([n({name:"g-collect-swipe",template:gr,styles:hr,shadowOptions:{mode:"closed"}})],mr);export{Je as HiCollectConflate,kn as HiCollectList,cr as HiCollectPrize,mr as HiCollectSwipe};
1
+ import{css as t,attr as e,customElement as o,HIElement as n,html as r,ref as i,observable as a,nullableNumberConverter as s,repeat as l,when as c}from"hi-element";function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u,p={exports:{}};(u=p).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},u.exports.__esModule=!0,u.exports.default=u.exports;var h=d(p.exports),f={exports:{}},v={exports:{}},g={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(g);var m={exports:{}};!function(t){var e=g.exports.default;t.exports=function(t,o){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(m),function(t){var e=g.exports.default,o=m.exports;t.exports=function(t){var n=o(t,"string");return"symbol"==e(n)?n:n+""},t.exports.__esModule=!0,t.exports.default=t.exports}(v),function(t){var e=v.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(f);var y=d(f.exports),x={exports:{}},b={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(b),function(t){var e=g.exports.default,o=b.exports;t.exports=function(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(x);var w=d(x.exports),k={exports:{}};!function(t){function e(o){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(k);var S=d(k.exports),C={exports:{}},M={exports:{}};!function(t){var e=k.exports;t.exports=function(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(M),function(t){var e=M.exports;function o(){return t.exports=o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,o,n){var r=e(t,o);if(r){var i=Object.getOwnPropertyDescriptor(r,o);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(C);var _=d(C.exports),O={exports:{}},I={exports:{}};!function(t){function e(o,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(I),function(t){var e=I.exports;t.exports=function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&e(t,o)},t.exports.__esModule=!0,t.exports.default=t.exports}(O);var L=d(O.exports),E={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(E);var z=d(E.exports);function B(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a}"function"==typeof SuppressedError&&SuppressedError;var A={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(A);var P=d(A.exports),j={exports:{}},T={exports:{}},D={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(D);var R={exports:{}};!function(t){var e=D.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(R),function(t){var e=D.exports.default,o=R.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(T),function(t){var e=T.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(j);var F=d(j.exports);var N={exports:{}};!function(t){var e=T.exports;t.exports=function(t,o,n){return(o=e(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}(N);var W=d(N.exports),$={exports:{}},H={exports:{}},V={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n},t.exports.__esModule=!0,t.exports.default=t.exports}(V),function(t){var e=V.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(H);var Y={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Y);var G={exports:{}};!function(t){var e=V.exports;t.exports=function(t,o){if(t){if("string"==typeof t)return e(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,o):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(G);var U={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(U),function(t){var e=H.exports,o=Y.exports,n=G.exports,r=U.exports;t.exports=function(t){return e(t)||o(t)||n(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}($);var X=d($.exports),Z={exports:{}},J={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(J);var q={exports:{}};!function(t){t.exports=function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i,a,s=[],l=!0,c=!1;try{if(i=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports}(q);var Q={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Q),function(t){var e=J.exports,o=q.exports,n=G.exports,r=Q.exports;t.exports=function(t,i){return e(t)||o(t,i)||n(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(Z);var K=d(Z.exports),tt=Math.min,et=Math.max,ot=Math.floor,nt=Math.round;function rt(t,e,o){e/=100,o/=100;var n=ot(t=t/360*6),r=t-n,i=o*(1-e),a=o*(1-r*e),s=o*(1-(1-r)*e),l=n%6;return[255*[o,a,i,i,s,o][l],255*[s,o,o,a,i,i][l],255*[i,i,s,o,o,a][l]]}function it(t,e,o){var n,r,i=tt(t/=255,e/=255,o/=255),a=et(t,e,o),s=a-i;if(0===s)n=r=0;else{r=s/a;var l=((a-t)/6+s/2)/s,c=((a-e)/6+s/2)/s,d=((a-o)/6+s/2)/s;t===a?n=d-c:e===a?n=1/3+l-d:o===a&&(n=2/3+c-l),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*a]}function at(t,e,o,n){e/=100,o/=100;var r=255*(1-tt(1,(t/=100)*(1-(n/=100))+n)),i=255*(1-tt(1,e*(1-n)+n)),a=255*(1-tt(1,o*(1-n)+n));return X(it(r,i,a))}function st(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function lt(t){return it.apply(void 0,X(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function ct(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,o={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},n=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in o)if(e=o[r].exec(t))switch(r){case"cmyk":var i=n(e),a=K(i,5),s=a[1],l=a[2],c=a[3],d=a[4];if(s>100||l>100||c>100||d>100)break t;return{values:at(s,l,c,d),type:r};case"rgba":var u=n(e),p=K(u,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(X(it(h,f,v)),[g]),a:g,type:r};case"hexa":var m=K(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(X(lt(y)),[x]),a:x,type:r};case"hsla":var b=n(e),w=K(b,7),k=w[3],S=w[4],C=w[5],M=w[6];if(k>360||S>100||C>100||M<0||M>1)break t;return{values:[].concat(X(st(k,S,C)),[M]),a:M,type:r};case"hsva":var _=n(e),O=K(_,7),I=O[3],L=O[4],E=O[5],z=O[6];if(I>360||L>100||E>100||z<0||z>1)break t;return{values:[I,L,E,z],a:z,type:r}}return{values:null,type:null}}function dt(){var t=function(t,e){return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~o?t.map((function(t){return Number(t.toFixed(o))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var o=[e.h,e.s,e.v,e.a];return o.toString=t(o,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toHSLA:function(){var o=[].concat(X(function(t,e,o){var n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toRGBA:function(){var o=[].concat(X(rt(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),o},toCMYK:function(){var o=function(t,e,o){var n,r=rt(t,e,o),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(n=tt(1-i,1-a,1-s))?0:(1-i-n)/(1-n)),100*(1===n?0:(1-a-n)/(1-n)),100*(1===n?0:(1-s-n)/(1-n)),100*n]}(e.h,e.s,e.v);return o.toString=t(o,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),o},toHEXA:function(){var t=function(t,e,o){return rt(t,e,o).map((function(t){return nt(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),o=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return o&&t.push(o),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return dt(e.h,e.s,e.v,e.a)}};return e}function ut(t,e){var o=ct(t),n=dt.apply(void 0,X(o.values)).toRGBA();return"rgba(".concat(n[0].toFixed(0),",").concat(n[1].toFixed(0),",").concat(n[2].toFixed(0),",").concat(Number(n[3].toFixed(2))*e,")")}var pt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},ht=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},ft=function(t){return W(W(W(W({},"--".concat(t,"Color"),"var(--hi".concat(ht(t),"Color,").concat(pt[t],")")),"--".concat(t,"Color-hover"),"var(--hi".concat(ht(t),"Color-hover,").concat(ut(pt[t],.6),")")),"--".concat(t,"Color-active"),"var(--hi".concat(ht(t),"Color-active,").concat(ut(pt[t],.4),")")),"--".concat(t,"Color-outline"),"var(--hi".concat(ht(t),"Color-outline,").concat(ut(pt[t],.15),")"))},vt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(pt.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(ut(pt.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(pt.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(pt.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},ft("primary")),ft("success")),ft("error")),ft("warning")),ft("info")),gt=function(t){return Object.prototype.toString.call(t)},mt=function(t){return"[object Object]"==gt(t)};function yt(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},o="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-user-drag: none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{".concat("\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n ","}\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n "),n="";if(t&&"[object Array]"==gt(t))for(var r=0;r<t.length;r++){var i=t[r];n+="".concat(e[i],";")}else for(var a in n+=o,e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a];n+=".".concat(a,"{").concat(s,"}")}return n}var xt=function(){return F((function t(){P(this,t),this.timeOut=0}),[{key:"init",value:function(t){var e,o,n=this;e=setInterval((function(){o="string"==typeof t.front?window[t.front]:t.front(),n.timeOut++,(n.timeOut>=60||o)&&(clearInterval(e),t.callback())}),50)}}])}();var bt=function(){function t(){if(P(this,t),this.config={theme:vt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},!window.HiServe.IS_READY)if(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var a=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,a)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS"))window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS"));else{var e="https:"+atob("Ly96anJzLmhhaWVyLm5ldA==");(window.location.href.indexOf(atob("aHcuaGFpZXIubmV0L3BvcnRhbA=="))>-1||window.location.href.indexOf(atob("aHdvcmstaW50ZXJuYWwuaGFpZXIubmV0L3BvcnRhbA=="))>-1||window.location.href.indexOf(atob("aHdvcmsuaGFpZXIubmV0L3BvcnRhbA=="))>-1)&&(e=window.location.href.startsWith("https://p")||window.location.href.startsWith("http://p")?atob("aHR0cHM6Ly9wLWFwaS1jbi1zcDAwMDY3NS1pLmh3b3JrLmhhaWVyLm5ldA=="):atob("aHR0cHM6Ly9hcGktY24tc3AwMDA2NzUtaS5od29yay5oYWllci5uZXQ=")),o=[e+"/download/hikits/icons.js"],n=function(){window.HiServe.icons=window.Hi_Icons,window.localStorage.setItem("HI_ICONS",JSON.stringify(window.Hi_Icons))},r=document.getElementsByTagName("head")[0],Promise.all(o.map((function(t){return new Promise((function(e){var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=t,o.addEventListener("load",(function(t){return e()}),!1),r.appendChild(o)}))}))).then(n)}var o,n,r}return F(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var o in t){var n=t[o];mt(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}();function wt(){var t="",e=bt.case.config.theme;for(var o in e)o&&(t+="".concat(o,":").concat(e[o],";"));return":host,:root{".concat(t,"} ").concat(".Visibility{visibility:hidden}"," ").concat(yt())}var kt,St={path:atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA=="),pathys:atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),coupon:"/download/img/collect/certificate.png",card1:"/download/img/collect/card/card01.png",card2:"/download/img/collect/card/card02.png",card3:"/download/img/collect/card/card03.png",card4:"/download/img/collect/card/card04.png",card5:"/download/img/collect/card/card05.png",card6:"/download/img/collect/card/card06.png"},Ct=t(kt||(kt=z(["\n","\n:host{\ntext-align:center;color:#fff;\nposition:fixed;left:-100%;top:0;width:100vw;height:100vh;\n}\n:host([show]){display:block;z-index:3000;top:0;left:0;}\n.VideoWrap{position:absolute;top:0;left:0; width:720px;height:1560px;display:inline-block;\ntransform-origin:0 0;transform: translate3d(0, 0, 0);\n}\n.VideoWrap img{width:100%;height:100%;position:absolute;top:0;left:0;}\n.VideoWrap .Svga {width:100vw;height:100vh;}\n.ConflateWrap {position:absolute;top:0;left:0;width:100vw;height:100vh;display:block;z-index:3200;background:rgba(0, 0, 0, 0.4);}\n.ConflateWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n\n\n.ConflateWrap .Bg{position:absolute;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.ConflateWrap .Title img{\n height:28vw\n}\n.ConflateWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.ConflateWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 3.2vw;\ncolor: #FFF1D8;\nline-height: 1.5;\nfont-weight: 400;\n}\n.Icon{display:flex;justify-content:space-around;position:absolute;width:100%;bottom:58vw;}\n.Icon span{display:none}\n.Icon span.Coupon{display:block;position:relative;}\n.Icon div{width:33.333333vw;text-align:center}\n.Icon div p{font-size:12px;}\n.Icon img{width:19.2vw}\n.Icon span.Coupon img{width:auto;height:19.2vw}\n.Icon span.Coupon i{position:absolute;font-style:normal;color:#f83a0a;top:4vw;left:0;right:0; text-align:center;}\n.Icon.Two{padding:0 10vw}\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n@media screen and (max-height : 210vw) {\n .VideoWrap{margin-top:-5vw}\n .Icon{bottom:54vw;}\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 200vw) {\n .ConflateWrap .Title{margin-top:-5vw}\n .VideoWrap{margin-top:-10vw}\n .Icon{bottom:50vw;}\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 190vw) {\n .ConflateWrap .Title{margin-top:-10vw}\n .VideoWrap{margin-top:-15vw}\n .Icon{bottom:45vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap{margin-top:-18vw}\n .Button{bottom:18vw;}\n}\n@media screen and (max-height : 170vw) {\n .ConflateWrap .Title{margin-top:-16vw}\n .VideoWrap{margin-top:-20vw}\n .Icon{bottom:38vw;}\n .Button{bottom:15vw;}\n}\n"])),wt(),St.path);function Mt(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a}const _t=t=>Object.prototype.toString.call(t),Ot=t=>"[object Object]"==_t(t);function It(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((t=>{t=It(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(const e in t)t[e]=It(t[e]);return t}function Lt(t){return(e,o)=>{if(Ot(e))for(var n in e)Et(t)(n,e[n]);"string"==typeof e&&(/:/g.test(e)?e.split(";").forEach((e=>{const o=(e=It(e)).split(":");Et(t)(o[0],o[1])})):Et(t)(e,o))}}function Et(t){return(e,o)=>{if(t){if(void 0===o)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=o}}}class zt{static get instance(){return this._instance||(this._instance=new zt),this._instance}constructor(){"classList"in document.documentElement?(this.has=(t,e)=>t.classList.contains(e),this.add=(t,e)=>{const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.add(o[e])},this.remove=(t,e)=>{if(!t)return;const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.remove(o[e])}):(this.has=(t,e)=>this.classReg(e).test(t.className),this.add=(t,e)=>{this.has(t,e)||(t.className=t.className+" "+e)},this.remove=(t,e)=>{t.className=t.className.replace(this.classReg(e)," ")})}classReg(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}toggle(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}const Bt={addHandler(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},removeHandler(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},onceHandler(t,e,o){this.addHandler(t,e,o,{once:!0})},trigger(t,e,o){t.dispatchEvent(new CustomEvent(e,{detail:o,bubbles:!0,cancelable:!0}))},emitEvent(t,e,...o){let n,r;"string"==typeof e?(n=e,r="on"+this.capitalize(e)):(n=e.event,r=e.method),t.$listeners[`${n}`]&&t.$emit(n,...o),"function"==typeof t.$props[r]&&t.$props[r](...o)},capitalize:t=>t.charAt(0).toUpperCase()+t.slice(1)},At=t`
2
+ :host{
3
+ position: fixed;
4
+ left: 0;
5
+ top: 0;
6
+ right: 0;
7
+ bottom: 0;
8
+ visibility:hidden;
9
+ background: rgba(0,0,0,0.4);
10
+ transition-duration: 0.3s;
11
+ opacity: 0;
12
+ z-index: 10;
13
+ }
14
+ :host([show]){
15
+ visibility: visible;
16
+ opacity: 1;
17
+ }
18
+ :host([class="Leave"]) {
19
+ opacity: 0;
20
+ transition: all 0.35s ease-out;
21
+ }
22
+ `;let Pt=class extends n{constructor(){super(),this.show=!1}showChanged(t,e){null===e||!1===e?zt.instance.add(this,"Leave"):zt.instance.remove(this,"Leave")}connectedCallback(){super.connectedCallback(),this.background&&Lt(this)("background",this.background),Bt.addHandler(this,"transitionend",(()=>{this.transitionendChange()}))}transitionendChange(){this.show||this.$emit("change")}};Mt([e],Pt.prototype,"background",void 0),Mt([e({mode:"boolean"})],Pt.prototype,"show",void 0),Pt=Mt([o({name:"h-mask",styles:At,shadowOptions:{mode:"closed"}})],Pt);const jt=new class{constructor(){if(this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=()=>{void 0!==this.previousBodyPaddingRight&&(document.body.style.paddingRight=this.previousBodyPaddingRight,this.previousBodyPaddingRight=void 0),void 0!==this.previousBodyOverflowSetting&&(document.body.style.overflow=this.previousBodyOverflowSetting,document.documentElement.style.overflow=this.previousBodyOverflowSetting,this.previousBodyOverflowSetting=void 0)},this.handleScroll=(t,e)=>{const o=t.targetTouches[0].clientY-this.initialClientY;return!this.allowTouchMove(t.target)&&(e&&0===e.scrollTop&&o>0||this.isTargetElementTotallyScrolled(e)&&o<0?this.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){const t={get passive(){this.hasPassiveEvents=!0}};Bt.addHandler(window,"testPassive",null,t),Bt.removeHandler(window,"testPassive",null,t)}}isTargetElementTotallyScrolled(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}allowTouchMove(t){this.locks.some((e=>!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))))}preventDefault(t){const e=t||window.event;return!!this.allowTouchMove(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}setOverflowHidden(t){if(void 0===this.previousBodyPaddingRight){const e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=`${o}px`)}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}disable(t,e){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(this.locks.some((e=>e.targetElement===t)))return;const o={targetElement:t,options:e||{}};this.locks=[...this.locks,o],this.isIosDevice?(t.ontouchstart=t=>{1===t.targetTouches.length&&(this.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=e=>{1===e.targetTouches.length&&this.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}clearAll(){this.isIosDevice?(this.locks.forEach((t=>{t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Bt.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}enable(t){t?(this.locks=this.locks.filter((e=>e.targetElement!==t)),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Bt.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}};function Tt(t,e,o){const n=o.value;return o.value=function(t,e){return null===e||!1===e?jt.enable(document.body):jt.disable(document.body),n.apply(this,arguments)},o}function Dt(t){return t?function(e,o){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,o);else for(var n in e)t[n]=e[n],t.setAttribute(n,e[n])}:()=>{}}function Rt(t){return t?e=>{if("string"==typeof e)t.removeAttribute(e);else for(let o=0;o<e.length;o++){const n=e[o];t.removeAttribute(n)}}:()=>{}}const{min:Ft,max:Nt,floor:Wt,round:$t}=Math;function Ht(t,e,o){e/=100,o/=100;let n=Wt(t=t/360*6),r=t-n,i=o*(1-e),a=o*(1-r*e),s=o*(1-(1-r)*e),l=n%6;return[255*[o,a,i,i,s,o][l],255*[s,o,o,a,i,i][l],255*[i,i,s,o,o,a][l]]}function Vt(t,e,o){let n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}function Yt(t,e,o){let n,r,i;const a=Ft(t/=255,e/=255,o/=255),s=Nt(t,e,o),l=s-a;if(i=s,0===l)n=r=0;else{r=l/s;let i=((s-t)/6+l/2)/l,a=((s-e)/6+l/2)/l,c=((s-o)/6+l/2)/l;t===s?n=c-a:e===s?n=1/3+i-c:o===s&&(n=2/3+a-i),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*i]}function Gt(t,e,o,n){return e/=100,o/=100,[...Yt(255*(1-Ft(1,(t/=100)*(1-(n/=100))+n)),255*(1-Ft(1,e*(1-n)+n)),255*(1-Ft(1,o*(1-n)+n)))]}function Ut(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function Xt(t){return Yt(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function Zt(t=0,e=0,o=0,n=1){const r=(t,e)=>(o=0)=>e(~o?t.map((t=>Number(t.toFixed(o)))):t),i={h:t,s:e,v:o,a:n,toHSVA(){const t=[i.h,i.s,i.v,i.a];return t.toString=r(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toHSLA(){const t=[...Vt(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toRGBA(){const t=[...Ht(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${i.a})`)),t},toCMYK(){const t=function(t,e,o){const n=Ht(t,e,o),r=n[0]/255,i=n[1]/255,a=n[2]/255;let s,l,c,d;return s=Ft(1-r,1-i,1-a),l=1===s?0:(1-r-s)/(1-s),c=1===s?0:(1-i-s)/(1-s),d=1===s?0:(1-a-s)/(1-s),[100*l,100*c,100*d,100*s]}(i.h,i.s,i.v);return t.toString=r(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t},toHEXA(){const t=function(t,e,o){return Ht(t,e,o).map((t=>$t(t).toString(16).padStart(2,"0")))}(i.h,i.s,i.v),e=i.a>=1?"":Number((255*i.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t},clone:()=>Zt(i.h,i.s,i.v,i.a)};return i}function Jt(t,e){const o=Zt(...function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let n;t:for(const r in e)if(n=e[r].exec(t))switch(r){case"cmyk":{let[,t,e,i,a]=o(n);if(t>100||e>100||i>100||a>100)break t;return{values:Gt(t,e,i,a),type:r}}case"rgba":{let[,,,t,e,i,a]=o(n);if(t>255||e>255||i>255||a<0||a>1)break t;return{values:[...Yt(t,e,i),a],a:a,type:r}}case"hexa":{let[,t]=n;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...Xt(e),o],a:o,type:r}}case"hsla":{let[,,,t,e,i,a]=o(n);if(t>360||e>100||i>100||a<0||a>1)break t;return{values:[...Ut(t,e,i),a],a:a,type:r}}case"hsva":{let[,,,t,e,i,a]=o(n);if(t>360||e>100||i>100||a<0||a>1)break t;return{values:[t,e,i,a],a:a,type:r}}}return{values:null,type:null}}(t).values).toRGBA();return`rgba(${o[0].toFixed(0)},${o[1].toFixed(0)},${o[2].toFixed(0)},${Number(o[3].toFixed(2))*e})`}const qt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},Qt=t=>t.trim().toLowerCase().replace(t[0],t[0].toUpperCase()),Kt=t=>({[`--${t}Color`]:`var(--hi${Qt(t)}Color,${qt[t]})`,[`--${t}Color-hover`]:`var(--hi${Qt(t)}Color-hover,${Jt(qt[t],.6)})`,[`--${t}Color-active`]:`var(--hi${Qt(t)}Color-active,${Jt(qt[t],.4)})`,[`--${t}Color-outline`]:`var(--hi${Qt(t)}Color-outline,${Jt(qt[t],.15)})`}),te=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":`var(--hiThemeColor,${qt.primary})`,"--themeShadow":`var(--hiThemeShadow, ${Jt(qt.primary,.25)})`,"--themeBackground":`var(--hiThemeBackground,${qt.primary})`,"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":`var(--hiLinkFontColor,${qt.primary})`,"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},Kt("primary")),Kt("success")),Kt("error")),Kt("warning")),Kt("info"));function ee(t){const e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"};let o="";if(t&&(t=>"[object Array]"==_t(t))(t))for(let n=0;n<t.length;n++)o+=`${e[t[n]]};`;else{o+="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n }\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n ";for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o+=`.${t}{${e[t]}}`)}return o}class oe{static get case(){return this._case||(this._case=new oe),this._case}constructor(){this.config={theme:te,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE"))return;let t="✰ hi-kits ✰",e=`\n\ndocs: ${atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA==")}/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n`,o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){let o=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,o)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t,e={}){return new Promise(((o,n)=>{const{async:r=!0,beforeSend:i=()=>{},data:a=null,headers:s={},method:l="get",responseType:c="json",timeout:d=0}=e,u=new XMLHttpRequest;let p,h;if(u.open(l,t,r),d&&(p=window.setTimeout((()=>{n(new Error(`the xhr request timeout ${d}ms`))}),d)),u.onerror=()=>{n(new Error("unknown error"))},u.onreadystatechange=()=>{if(4===u.readyState)if(d&&void 0!==p&&clearTimeout(p),u.status>=200&&u.status<300)o(u);else{const t=new Error("the request is error");n(t)}},Ot(a))try{h=JSON.stringify(a),s["content-type"]="application/json"}catch(t){n(t)}else(t=>"string"==typeof t)(a)&&(s["content-type"]="application/x-www-form-urlencoded");for(const t in s)u.setRequestHeader(t,s[t]);d&&(u.timeout=d),u.responseType=c,!1!==i(u)&&u.send(h)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((t=>{window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}install(t){}init(t,e=this.config){for(const o in t){const n=t[o];Ot(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}const ne=t`
23
+ :host .LoadBox{
24
+ position: fixed;
25
+ display: flex;
26
+ justify-content: center;
27
+ width: 100%;
28
+ height: 100%;
29
+ transform: translate3d(0,200vh,0);
30
+ transition-property: transform;
31
+ z-index: 2890;
32
+ transition-duration: 0.35s;
33
+ pointer-events:none;
34
+ }
35
+ slot {
36
+ pointer-events:auto;
37
+ }
38
+
39
+
40
+ :host([show]) .LoadBox{
41
+ transform: translate3d(0,0,0);
42
+ }
43
+
44
+ :host([dir="bottom"]) .LoadBox,
45
+ :host([dir="top"]) .LoadBox {
46
+ left: 0; height: auto;
47
+ }
48
+ :host([dir="bottom"]) .LoadBox {
49
+ bottom: 0; transform: translate3d(0,150vh,0);
50
+ }
51
+ :host([show][dir="bottom"]) .LoadBox {
52
+ transform: translate3d(0,0,0);
53
+ }
54
+
55
+ :host([dir="top"]) .LoadBox {
56
+ top: 0; transform: translate3d(0,-150vh,0);
57
+ }
58
+ :host([show][dir="top"]) .LoadBox {
59
+ transform: translate3d(0,0,0);
60
+ }
61
+
62
+ :host([dir="left"]) .LoadBox,
63
+ :host([dir="right"]) .LoadBox {
64
+ align-items: center; justify-content: normal; top:0; width: auto;
65
+ }
66
+
67
+ :host([dir="left"]) .LoadBox {
68
+ left:0; transform: translate3d(-150vw,0,0);
69
+ }
70
+ :host([show][dir="left"]) .LoadBox {
71
+ transform: translate3d(0,0,0);
72
+ }
73
+
74
+
75
+ :host([dir="right"]) .LoadBox {
76
+ right: 0; transform: translate3d(150vw,0,0);
77
+ }
78
+ :host([show][dir="right"]) .LoadBox {
79
+ transform: translate3d(0,0,0);
80
+ }
81
+
82
+
83
+ :host([dir="center"]) .LoadBox {
84
+ left:0;
85
+ right:0;
86
+ top:0;
87
+ bottom:0;
88
+ align-items:center;
89
+ opacity:0;
90
+ transform: translate3d(0,0,0);
91
+ }
92
+ :host([show][dir="center"]) .LoadBox {
93
+ opacity: 1;
94
+ }
95
+
96
+ `,re=r`
97
+ <h-mask
98
+ ${i("HIMask")}
99
+ background="${t=>t.background}"
100
+ @click="${t=>t.close()}"
101
+ @change="${t=>t.closeChange()}"
102
+ ></h-mask>
103
+ <div class="LoadBox" ${i("LoadBox")}>
104
+ <slot></slot>
105
+ </div>
106
+ `;let ie=class extends n{constructor(){super(),this.show=!1,oe.case.install([Pt])}showChanged(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Dt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}close(){Rt(this.HIMask)("show"),this.$emit("close")}closeChange(){this.$emit("change")}};function ae(t,e="px"){const o=["%","em","rem","ex","ch","vh","vw","vmax","vmin","px","pt","pc","cm","mm","in","kHz","Hz","ms","s","dpi","dpcm","dppx","deg","grad","rad","turn"];let n=!1;for(let e=0;e<o.length;e++){const r=o[e];String(t).toLowerCase().indexOf(r)>-1&&(n=!0)}return n?t:t+e}Mt([a],ie.prototype,"HIMask",void 0),Mt([a],ie.prototype,"LoadBox",void 0),Mt([e({mode:"boolean"})],ie.prototype,"show",void 0),Mt([Tt],ie.prototype,"showChanged",null),Mt([e],ie.prototype,"dir",void 0),Mt([e],ie.prototype,"background",void 0),ie=Mt([o({name:"h-load",styles:ne,template:re,shadowOptions:{mode:"closed"}})],ie);const se=t`
107
+ :host .LoadBox{
108
+ position: fixed;
109
+ display: flex;
110
+ justify-content: center;
111
+ width: 100%;
112
+ height: 100%;
113
+ transform: translate3d(0,200vh,0);
114
+ z-index: 2890;
115
+ transition:all 0.35s;
116
+ pointer-events:none;
117
+ }
118
+ slot {
119
+ pointer-events:auto;
120
+ }
121
+
122
+
123
+ :host([show]) .LoadBox{
124
+ transform: translate3d(0,0,0);
125
+ }
126
+
127
+ :host([dir="bottom"]) .LoadBox,
128
+ :host([dir="top"]) .LoadBox {
129
+ left: 0; height: auto;
130
+ }
131
+ :host([dir="bottom"]) .LoadBox {
132
+ bottom: 0; transform: translate3d(0,150vh,0);
133
+ }
134
+ :host([show][dir="bottom"]) .LoadBox {
135
+ transform: translate3d(0,0,0);
136
+ }
137
+
138
+ :host([dir="top"]) .LoadBox {
139
+ top: 0; transform: translate3d(0,-150vh,0);
140
+ }
141
+ :host([show][dir="top"]) .LoadBox {
142
+ transform: translate3d(0,0,0);
143
+ }
144
+
145
+ :host([dir="left"]) .LoadBox,
146
+ :host([dir="right"]) .LoadBox {
147
+ align-items: center; justify-content: normal; top:0; width: auto;
148
+ }
149
+
150
+ :host([dir="left"]) .LoadBox {
151
+ left:0; transform: translate3d(-150vw,0,0);
152
+ }
153
+ :host([show][dir="left"]) .LoadBox {
154
+ transform: translate3d(0,0,0);
155
+ }
156
+
157
+
158
+ :host([dir="right"]) .LoadBox {
159
+ right: 0; transform: translate3d(150vw,0,0);
160
+ }
161
+ :host([show][dir="right"]) .LoadBox {
162
+ transform: translate3d(0,0,0);
163
+ }
164
+
165
+
166
+ :host([dir="center"]) .LoadBox {
167
+ left:0;
168
+ right:0;
169
+ top:0;
170
+ bottom:0;
171
+ align-items:center;
172
+ opacity:0;
173
+ transform: translate3d(0,0,0);
174
+ }
175
+ :host([show][dir="center"]) .LoadBox {
176
+ opacity: 1;
177
+ }
178
+
179
+ `,le=r`
180
+ <h-mask
181
+ ${i("HIMask")}
182
+ background="${t=>t.background}"
183
+ @click="${t=>t.clickFn()}"
184
+ @change="${t=>t.changeFn()}"
185
+ ></h-mask>
186
+ <div class="LoadBox" ${i("LoadBox")}>
187
+ <slot></slot>
188
+ </div>
189
+ `;let ce=class extends n{constructor(){super(),this.show=!1,oe.case.install([Pt])}showChanged(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Dt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}clickFn(){this.$emit("click")}changeFn(){this.$emit("change")}};Mt([a],ce.prototype,"HIMask",void 0),Mt([a],ce.prototype,"LoadBox",void 0),Mt([e({mode:"boolean"})],ce.prototype,"show",void 0),Mt([Tt],ce.prototype,"showChanged",null),Mt([e],ce.prototype,"dir",void 0),Mt([e],ce.prototype,"background",void 0),ce=Mt([o({name:"h-enter",styles:se,template:le,shadowOptions:{mode:"closed"}})],ce);const de=t`
190
+ .Border{
191
+ -webkit-mask-size: 100%;
192
+ -webkit-mask-position: 0;
193
+ -webkit-mask-repeat: no-repeat;
194
+ }
195
+ `,ue=r`
196
+ <div class="Border" ${i("Border")}></div>
197
+ `;let pe=class extends n{constructor(){super(),this.dasharray="10 10"}connectedCallback(){super.connectedCallback(),this.setSvg()}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),this.setSvg()}setSvg(){const t=this.border/2,e=Math.min(this.width,this.height),o=2*this.radius>e?e/2:this.radius,n=`<svg width="${ae(this.width)}" height="${ae(this.height)}" viewBox="0 0 ${this.width} ${this.height}" version="1.1" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="${this.border}" fill="none" fill-rule="evenodd"><rect x="${t}" y="${t}" width="${this.width-this.border}" height="${this.height-this.border}" rx="${o}" stroke="#000" ${this.dashed?`stroke-dasharray="${this.dasharray}"`:""}></rect></g></svg>`;Lt(this.Border)({width:ae(this.width),height:ae(this.height),"border-radius":ae(o),"background-image":this.color,"-webkit-mask-image":`url(data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)})`})}};Mt([a],pe.prototype,"Border",void 0),Mt([e({converter:s})],pe.prototype,"width",void 0),Mt([e({converter:s})],pe.prototype,"height",void 0),Mt([e],pe.prototype,"color",void 0),Mt([e({converter:s})],pe.prototype,"border",void 0),Mt([e({mode:"boolean"})],pe.prototype,"dashed",void 0),Mt([e],pe.prototype,"dasharray",void 0),Mt([e({converter:s})],pe.prototype,"radius",void 0),pe=Mt([o({name:"h-border",styles:de,template:ue,shadowOptions:{mode:"closed"}})],pe);const he=t`
198
+ ${function(){let t="",e=oe.case.config.theme;for(var o in e)o&&(t+=`${o}:${e[o]};`);return`:host,:root{${t}} .Visibility{visibility:hidden} ${ee()}`}()}
199
+ ${function(t){return`:host([hidden]),:host([hide]){display:none}:host{display:${t}}`}("flex")}
200
+ :host{
201
+ position:fixed;
202
+ left:0;
203
+ top:0;
204
+ right:0;
205
+ bottom:0;
206
+ visibility:hidden;
207
+ transition-duration:0.35s;
208
+ opacity:0;
209
+ z-index:3100;
210
+ }
211
+ :host([show]){
212
+ visibility:visible;
213
+ opacity:1;
214
+ }
215
+ :host([show]) .Overlay{
216
+ opacity:1!important;
217
+ }
218
+ :host .Overlay {
219
+ position:relative;
220
+ margin:auto;
221
+ display:flex;
222
+ align-items:center;
223
+ justify-content:center;
224
+ z-index:10;
225
+ }
226
+ `,fe=r`
227
+ <h-mask ${i("Mask")}
228
+ @click="${t=>t.close()}"
229
+ @change="${t=>t.close()}"
230
+ ></h-mask>
231
+
232
+ <div class="Overlay PosF OH" style="opacity:0;">
233
+ <slot></slot>
234
+ </div>
235
+ `;let ve=class extends n{constructor(){super(),this.mode="auto",this.show=!1,oe.case.install([Pt])}showChanged(t,e){null===e||!1===e?Rt(this.Mask)("show"):Dt(this.Mask)("show")}connectedCallback(){super.connectedCallback()}close(){"auto"==this.mode&&(this.show=!1)}};Mt([a],ve.prototype,"Mask",void 0),Mt([e],ve.prototype,"mode",void 0),Mt([e({mode:"boolean"})],ve.prototype,"show",void 0),ve=Mt([o({name:"h-overlay",styles:he,template:fe})],ve);const ge=t`
236
+ :host{
237
+ position: absolute;
238
+ pointer-events: none;
239
+ width: 22px;
240
+ height: 22px;
241
+ --arrow-background-color: currentColor;
242
+ }
243
+ .ArrowWrap {
244
+ position: absolute;
245
+ z-index: 2;
246
+ display: block;
247
+ width: 22px;
248
+ height: 22px;
249
+ overflow: hidden;
250
+ background: transparent;
251
+ pointer-events: none
252
+ }
253
+ .Arrow {
254
+ position: absolute;
255
+ top: 0;
256
+ right: 0;
257
+ bottom: 0;
258
+ left: 0;
259
+ display: block;
260
+ width: 11.3137085px;
261
+ height: 11.3137085px;
262
+ margin: auto;
263
+ border-radius:0 0 2px;
264
+ pointer-events: none;
265
+ box-shadow: 3px 3px 7px rgb(0 0 0 / 7%);
266
+ transform: translateY(-11px) rotate(45deg);
267
+ }
268
+ .Arrow:before {
269
+ position: absolute;
270
+ top: -11.313709px;
271
+ left: -11.54px;
272
+ width: 33.9411255px;
273
+ height: 33.9411255px;
274
+ background: var(--arrow-background-color);
275
+ content: "";
276
+ -webkit-clip-path: path("M 9.849242 24.091883092036785 A5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 24.091883 9.849242404917499 L 9.849242404917499 24.091883 Z");
277
+ clip-path: path("M 9.849242 24.091883092036785 A5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 24.091883 9.849242404917499 L 9.849242404917499 24.091883 Z");
278
+ }
279
+ :host([dir="top"]){
280
+ transform: rotate(360deg);
281
+ left: 50%;
282
+ margin-left: -11px;
283
+ bottom: -22px;
284
+ }
285
+ :host([dir="right"]){
286
+ transform: rotate(90deg);
287
+ left: -22px;
288
+ top: 50%;
289
+ margin-top: -11px;
290
+ }
291
+ :host([dir="left"]){
292
+ transform: rotate(270deg);
293
+ right: -22px;
294
+ top: 50%;
295
+ margin-top: -11px;
296
+ }
297
+ :host([dir="bottom"]){
298
+ top: -22px;
299
+ left: 50%;
300
+ transform: rotate(180deg);
301
+ margin-left: -11px;
302
+ }
303
+
304
+ :host([dir="topleft"]){
305
+ left:10px;
306
+ bottom: -22px;
307
+ }
308
+ :host([dir="topright"]){
309
+ right:10px;
310
+ bottom: -22px;
311
+ }
312
+
313
+ :host([dir="righttop"]),
314
+ :host([dir="rightbottom"]){
315
+ transform: rotate(90deg);
316
+ left: -22px;
317
+ }
318
+ :host([dir="righttop"]) {
319
+ top: 10px;
320
+ }
321
+ :host([dir="rightbottom"]){
322
+ bottom: 10px;
323
+ }
324
+ :host([dir="bottomleft"]),
325
+ :host([dir="bottomright"]){
326
+ top: -22px;
327
+ transform: rotate(180deg);
328
+ }
329
+ :host([dir="bottomleft"]){
330
+ left: 10px;
331
+ }
332
+ :host([dir="bottomright"]){
333
+ right: 10px;
334
+ }
335
+
336
+ :host([dir="lefttop"]),
337
+ :host([dir="leftbottom"]) {
338
+ right: -22px;
339
+ transform: rotate(270deg);
340
+ }
341
+ :host([dir="lefttop"]) {
342
+ top: 10px;
343
+
344
+ }
345
+ :host([dir="leftbottom"]){
346
+ bottom: 10px;
347
+ }
348
+
349
+
350
+
351
+ `,me=r`
352
+ <div class="ArrowWrap">
353
+ <span class="Arrow"></span>
354
+ </div>
355
+ `;let ye=class extends n{constructor(){super(),this.dir="top"}colorChanged(t,e){Lt(this)({color:e})}connectedCallback(){super.connectedCallback()}};Mt([e],ye.prototype,"dir",void 0),Mt([e],ye.prototype,"color",void 0),ye=Mt([o({name:"h-arrow",styles:ge,template:me,shadowOptions:{mode:"closed"}})],ye);var xe=function(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},be=function(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},we=function(){return F((function t(){var e=this;if(P(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,o){var n=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(o&&0===o.scrollTop&&n>0||e.isTargetElementTotallyScrolled(o)&&n<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var o={get passive(){this.hasPassiveEvents=!0}};xe(window,"testPassive",null,o),be(window,"testPassive",null,o)}}),[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!(!this.allowTouchMove||!this.allowTouchMove(e.target))||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(o,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var o=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};this.locks=[].concat(X(this.locks),[n]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(o.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&o.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(be(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(be(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}])}(),ke=new we;function Se(t,e,o){var n=o.value;return o.value=function(t,e){return null===e||!1===e?ke.enable(document.body):ke.disable(document.body),n.apply(this,arguments)},o}var Ce,Me,_e,Oe,Ie=function(){function t(){var e=this;P(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.add(o[n])},this.remove=function(t,e){if(t)for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.remove(o[n])}):(this.has=function(t,o){return e.classReg(o).test(t.className)},this.add=function(t,o){e.has(t,o)||(t.className=t.className+" "+o)},this.remove=function(t,o){t.className=t.className.replace(e.classReg(o)," ")})}return F(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}])}();function Le(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((function(t){t=Le(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(var e in t)t[e]=Le(t[e]);return t}function Ee(t){return function(e,o){if(mt(e))for(var n in e)ze(t)(n,e[n]);if("string"==typeof e){if(/:/g.test(e))e.split(";").forEach((function(e){var o=(e=Le(e)).split(":");ze(t)(o[0],o[1])}));else ze(t)(e,o)}}}function ze(t){return function(e,o){if(t){if(void 0===o)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=o}}}function Be(t){var e=null;return function(o,n,r){var i=r.value;return r.value=function(){for(var o=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];e&&clearTimeout(e),e=setTimeout((function(){i.apply(o,r)}),t)},r}}function Ae(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ae=function(){return!!t})()}var Pe=r(Ce||(Ce=z(['\n<div class="ConflateWrap">\n <div class="Bg"></div>\n <div class="VideoBox">\n <div class="VideoWrap" ',">\n ","\n </div>\n </div>\n <div ",' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/conflate/title03.png"/>\n </div>\n <div class="Icon ','">\n <div><img src="','/download/img/collect/conflate/icon03.png"/><p class="TEll">2.24抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/conflate/icon02.png"/><p class="TEll">iHaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n ',"\n <p>iHaier新年头像框将通过您的iHaier发放</p>\n </div>\n </div>\n </div>\n"])),i("aniImg"),l((function(t,e){return t.ImgList}),r(Me||(Me=z(['<img src="','" style="z-index:',';" />'])),(function(t){return t.img}),(function(t){return t.index})),{positioning:!0}),i("contentWrap"),St.path,(function(t){return t.isCoupon?"":"Two"}),St.path,(function(t){return t.isCoupon?"Coupon":""}),c((function(t){return t.isCoupon}),r(_e||(_e=z(['<div><img src="','"/><p class="TEll">',"</p></div>\n "])),(function(t){return t.prizeImg}),(function(t){return t.prizeName}))),St.path,(function(t){return t.accept()}),St.path,c((function(t){return t.isCoupon}),r(Oe||(Oe=z(["<p>优惠券可在【我的奖品-商城卡券】中查看</p>"]))))),je=function(){function t(){var e;return h(this,t),e=function(t,e,o){return e=S(e),w(t,Ae()?Reflect.construct(e,o||[],S(t).constructor):e.apply(t,o))}(this,t),e.isLowend=!1,e.isCoupon=!1,e.prizeName="",e.prizeQuota="",e.prizeImg="https://zjrs.haier.net/download/img/collect/coupon.png",e.ImgList=Array.from({length:48},(function(t,e){return{index:80-e,img:St.path+"/download/img/collect/conflate/000"+(e<10?"0":"")+e+".jpg"}})),e.isClick=!1,e.index=0,e.row=0,e.col=0,bt.case.install([ve]),e}return L(t,n),y(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Ie.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){var e=this;!function(t,e,o,n){var r=_(S(1&n?t.prototype:t),e,o);return 2&n&&"function"==typeof r?function(t){return r.apply(o,t)}:r}(t,"connectedCallback",this,3)([]),Ee(this.aniImg)("transform","scale("+document.documentElement.clientWidth/720+")"),this.isLowend=736==screen.height&&414==screen.width&&this.isIphone()||667==screen.height&&375==screen.width&&this.isIphone(),setTimeout((function(){e.isLowend?e.ImgList=[{index:80,img:St.path+"/download/img/collect/conflate/loop.webp"}]:e.ImgList.push({index:31,display:"none",img:St.path+"/download/img/collect/conflate/loop.webp"})}),100)}},{key:"isIphone",value:function(){return/iPhone/.test(navigator.userAgent)&&/Mobile/.test(navigator.userAgent)}},{key:"init",value:function(){var t=this;this.isLowend?(Ie.instance.add(this.contentWrap,"show"),setTimeout((function(){t.isClick=!0}),10)):(setTimeout((function(){t.timer=setInterval((function(){t.play()}),40)}),80),setTimeout((function(){Ie.instance.add(t.contentWrap,"show")}),1500),setTimeout((function(){t.isClick=!0}),3500))}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"play",value:function(){this.aniImg.children[0]&&this.aniImg.children[0].remove(),this.index++,48===this.index&&(Ee(this.aniImg.children[0])("display","block"),clearInterval(this.timer),this.index=0)}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&t.prizeId&&(this.prizeName=t.prizeName,this.prizeImg=t.prizeImg,this.prizeQuota=t.prizeQuota,this.isCoupon=!0)}}])}();B([a],je.prototype,"Overlay",void 0),B([a],je.prototype,"isLowend",void 0),B([a],je.prototype,"video",void 0),B([a],je.prototype,"contentWrap",void 0),B([a],je.prototype,"isCoupon",void 0),B([a],je.prototype,"prizeName",void 0),B([a],je.prototype,"prizeQuota",void 0),B([a],je.prototype,"prizeImg",void 0),B([a],je.prototype,"aniImg",void 0),B([a],je.prototype,"ImgList",void 0),B([e({mode:"boolean"})],je.prototype,"show",void 0),B([Se],je.prototype,"showChanged",null),B([Be(300)],je.prototype,"accept",null),je=B([o({name:"g-collect-conflate",template:Pe,styles:Ct})],je);var Te,De=new(function(){function t(){P(this,t),this.isMobile=!1,this.size=375,this.pageSize=function(){var t=0,e=0;window.innerHeight&&window.scrollMaxY?(t=window.innerWidth+window.scrollMaxX,e=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(t=document.body.scrollWidth,e=document.body.scrollHeight):document.body&&(t=document.body.offsetWidth,e=document.body.offsetHeight);var o=0,n=0;return window.innerHeight?(o=window.innerWidth,n=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(o=document.documentElement.clientWidth,n=document.documentElement.clientHeight):document.body&&(o=document.body.clientWidth,n=document.body.clientHeight),{PageW:t<o?o:t,PageH:e<n?n:e,WinW:o,WinH:n}}(),this.isMobile=this.pageSize.PageW<768}return F(t,[{key:"toVw",value:function(t){return this.isMobile?"".concat(t/this.size*100,"vw"):"".concat(t,"px")}},{key:"toPerce",value:function(t){return"".concat(t/this.size*100,"%")}},{key:"toPx",value:function(t){return"".concat(this.pageSize.PageW/this.size*t,"px")}},{key:"toEm",value:function(t){return"".concat(t/10,"em")}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}()),Re=t(Te||(Te=z(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardBox{width:",";overflow: hidden;\noverflow-x: auto;position:relative;}\n.CardBox::-webkit-scrollbar{display:none}\n.CardWrap{display:inline-flex}\n.CardWrap div.Card{\nwidth:",";\nheight:",";\nmargin: 0 0 0 ",";\n}\n.CardWrap div.Card:last-child{margin-right:","}\n.CardWrap div.Card img {width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:0;\n}\n.Synthesis .Img {z-index:2; opacity: 0.8;}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),wt(),De.toVw(279),De.toVw(70),De.toVw(84),De.toVw(10),De.toVw(5),yt(["PoiNo"]),yt(["PoiNo"]));class Fe extends n{constructor(){super(...arguments),this.disabled=!1}colorChanged(t,e){Lt(this)({color:e})}sizeChanged(t,e){for(let t=0;t<this.children.length;t++){Dt(this.children[t])("size",this.size)}}connectedCallback(){super.connectedCallback()}injection(t){t&&t(this)}setValueFn(t,e){this[t+"Changed"]("",e)}update(t,e){e&&e(t)}childrenFn(t){const e=this.children.length;if(e>0){for(let t=0;t<e;t++){const o=this.children[t];0==t?Dt(o)("first"):t+1==e&&Dt(o)("last"),Dt(o)("index",String(t))}t&&t()}}}Mt([e],Fe.prototype,"color",void 0),Mt([e],Fe.prototype,"size",void 0),Mt([e({mode:"boolean"})],Fe.prototype,"disabled",void 0);class Ne{constructor(){this.timeOut=0}init(t){let e,o;e=setInterval((()=>{o="string"==typeof t.front?window[t.front]:t.front(),this.timeOut++,(this.timeOut>=60||o)&&(clearInterval(e),t.callback())}),50)}}const We=t`
356
+ :host{
357
+ overflow: hidden;
358
+ display: inline-block;
359
+ position: relative;
360
+ }
361
+ :host span{
362
+ position: absolute;
363
+ top: 0;
364
+ left: 0;
365
+ width: 100%;
366
+ height: 100%;
367
+ }
368
+ div{
369
+ width: 100%;
370
+ height: 100%;
371
+ }
372
+ `,$e=r`
373
+ <template>
374
+ <span>
375
+ <div ${i("SVGAPlayer")}></div>
376
+ </span>
377
+ </template>
378
+ `;let He=class extends Fe{pathChanged(t,e){e&&this.loadSvga()}connectedCallback(){super.connectedCallback(),this.loadSvga()}loadSvga(){return function(t,e,o,n){return new(o||(o=Promise))((function(r,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function s(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){var t;yield(t=atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")+"/download/cdn/svga.min.js",new Promise(((e,o)=>{if(void 0!==t){const o=new Ne,n=t.substring(t.lastIndexOf(".")+1),r=document.getElementsByTagName("head")[0];if(document.querySelectorAll('script[src*="'+t+'"]').length<=0){if("js"===n){const o=document.createElement("script");o.src=t,o.type="text/javascript",r.appendChild(o),o.onload=o.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||e(!0)}}else if("css"===n){const e=document.createElement("link");e.href=t,e.rel="stylesheet",e.type="text/css",r.appendChild(e)}}else o.init({front:String("SVGA"),callback:()=>{e(!0)}})}else o(!1)})));let e=new SVGA.Player(this.SVGAPlayer);new SVGA.Parser(this.SVGAPlayer).load(this.path,(t=>{this.height=t.videoSize.height,this.width=t.videoSize.width,this.$emit("change",{height:t.videoSize.height,width:t.videoSize.width}),e.setVideoItem(t),e.startAnimation()}))}))}};var Ve,Ye,Ge;function Ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ue=function(){return!!t})()}Mt([a],He.prototype,"SVGAPlayer",void 0),Mt([e],He.prototype,"path",void 0),Mt([e({converter:s})],He.prototype,"width",void 0),Mt([e({converter:s})],He.prototype,"height",void 0),He=Mt([o({name:"h-svga",styles:We,template:$e})],He);var Xe,Ze=r(Ve||(Ve=z(['\n<section class="ListWrap">\n <div class="Synthesis">\n <span>\n ','\n </span>\n <img class="Img ','" src="','/download/img/collect/synthesis.png" />\n </div>\n <div class="CardBox">\n <span class="CardWrap">\n ',"\n </span>\n </div>\n</section>\n"])),c((function(t){return t.isVideo}),r(Ye||(Ye=z(['<div style="position:absolute; z-index:4; display: block;height: 100%;width: 100%;" @click="','"> <img class="Img" src="','/download/img/collect/synthesis1.png" /><img class="Tips" src="','/download/img/collect/tips.png" /></div>'])),(function(t){return t.SynthesisFn()}),St.path,St.path)),(function(t){return t.isVideo?"hide":""}),St.path,l((function(t){return t.cardItem}),r(Ge||(Ge=z(['<div class="Card">\n <img src="','"/></div>'])),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0})),Je=function(){function t(){var e;return h(this,t),e=function(t,e,o){return e=S(e),w(t,Ue()?Reflect.construct(e,o||[],S(t).constructor):e.apply(t,o))}(this,t),e.isVideo=!1,e.cardItem=Array.from({length:6},(function(t,e){return{card:"".concat(St.path,"/download/img/collect/list/small0").concat(e+1,".png"),grey:"".concat(St.path,"/download/img/collect/list/small0").concat(e+1,"-1.png")}})),bt.case.install([He]),e}return L(t,n),y(t,[{key:"connectedCallback",value:function(){!function(t,e,o,n){var r=_(S(1&n?t.prototype:t),e,o);return 2&n&&"function"==typeof r?function(t){return r.apply(o,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"revert",value:function(){this.isVideo=!1,this.cardItem=Array.from({length:6},(function(t,e){return{card:"".concat(St.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(St.path,"/download/img/collect/small0").concat(e+1,"-1.png")}}))}},{key:"update",value:function(t){if(t&&t.isRevert)this.revert();else if(t&&t.cardList){for(var e=Array.from({length:6}),o=0;o<t.cardList.length;o++){var n=t.cardList[o];e[n.cardType-1]={total:n.cardNum,card:"".concat(St.path,"/download/img/collect/small0").concat(n.cardType,".png"),grey:"".concat(St.path,"/download/img/collect/small0").concat(n.cardType,"-1.png")}}this.cardItem=e,this.isVideo=t.isCanCompose}}}])}();B([a],Je.prototype,"isVideo",void 0),B([a],Je.prototype,"cardItem",void 0),B([Be(300)],Je.prototype,"SynthesisFn",null),Je=B([o({name:"g-collect-list",template:Ze,styles:Re,shadowOptions:{mode:"closed"}})],Je);var qe=t(Xe||(Xe=z(["\n","\n:host{text-align:center;display:none}\n:host([show]){display:block}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;z-index:3100;background:rgba(0, 0, 0, 0.4);}\n.PrizeWrap .Content{position:relative; z-index:60;height:100%;\n padding-top: 20vw;text-align:center;","\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n\n\n.Conten{position:fixed;top:0;left:0;width:100vw;height:100vh; z-index:2;display:block;}\n.Conten .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Conten .Img{position: absolute; overflow:hidden;\nz-index:99;left:20vw;top:60vw; \nwidth:60vw;\nheight:70vw;}\n.Conten .Img span {display:block}\n.Conten .Light{position: absolute;top: 0;",'\n bottom: 0;width:100%; overflow:hidden;\n left: 0;z-index:30;\n border-radius:8vw;}\n.Conten .Light::after{\n content: "";\n background-color: #fff9;\n opacity: 0.6;\n top: -25%;\n bottom: 0;\n left: -100%;\n position: absolute;\n width: 13vw;\n height:150%;\n box-shadow: 0 0 10vmin 2.5vmin #fff;\n transform:rotateZ(145deg) translateZ(0);\n transition: all 05s ease;\n animation-duration: 0.5s;\n animation-delay: 1s;\n animation-name: Light\n}\n\n.Conten .Img .Card {width:100%;height:100%}\n@keyframes Light{\n to{\n left: 400px;\n transition: left 0.5s ease 0s;\n }\n}\n\n@keyframes zoomInUp {\n from {opacity: 0;transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.49)}\n 60% {opacity: 1;transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -20px, 0);animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.5)}\n}\n.zoomInUp {animation-duration: 1s;\n animation-fill-mode: both;animation-name: zoomInUp}\n\n.CouponWrap {position:relative;}\n.CouponWrap .Info{position:absolute;width:100%;top:14.4vw;left:0;z-index:20;text-align:center;}\n.VideoWrap .Bg,\n.CouponWrap .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(',"/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Coupon{width:100%;height:70vw;position:relative;z-index:9;}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center;","}\n.Button img{height:20.26666666vw}\n\n.transit{display:none; ","}\n.show.transit{display:block;","}\n\n.Cache{display:none;position:absolute;bottom:-10px;left:-10px;z-index:-10}\n.Cache img{width:1px;height:1px;}\n\n\n@media screen and (max-height : 210vw) {\n .Button{bottom:27vw;}\n}\n@media screen and (max-height : 200vw) {\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 190vw) {\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap video{margin-top:10vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 170vw) {\n .VideoWrap video{margin-top:15vw;}\n .Button{bottom:15vw;}\n}\n"])),wt(),yt(["PoiNo"]),St.path,yt(["PoiNo"]),St.path,yt(["PoiAll"]),yt(["PoiNo"]),yt(["PoiAll"]));function Qe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ke,to={exports:{}};(Ke=to).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Ke.exports.__esModule=!0,Ke.exports.default=Ke.exports;var eo=Qe(to.exports),oo={exports:{}},no={exports:{}},ro={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(ro);var io=Qe(ro.exports),ao={exports:{}};!function(t){var e=ro.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(ao),function(t){var e=ro.exports.default,o=ao.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(no),function(t){var e=no.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(oo);var so=Qe(oo.exports),lo={exports:{}},co={exports:{}},uo={exports:{}};!function(t){function e(o){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(uo);var po=Qe(uo.exports);!function(t){var e=uo.exports;t.exports=function(t,o){for(;!Object.prototype.hasOwnProperty.call(t,o)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(co),function(t){var e=co.exports;function o(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=o=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,o,n){var r=e(t,o);if(r){var i=Object.getOwnPropertyDescriptor(r,o);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(this,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(lo);var ho=Qe(lo.exports),fo={exports:{}},vo={exports:{}};!function(t){function e(o,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(vo),function(t){var e=vo.exports;t.exports=function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&e(t,o)},t.exports.__esModule=!0,t.exports.default=t.exports}(fo);var go=Qe(fo.exports),mo={exports:{}},yo={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(yo),function(t){var e=ro.exports.default,o=yo.exports;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(mo);var xo,bo,wo=Qe(mo.exports);function ko(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"===("undefined"==typeof Reflect?"undefined":io(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a}xo=window,bo={},function t(e,o,n,r){var i=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),a="function"==typeof Path2D&&"function"==typeof DOMMatrix,s=function(){if(!e.OffscreenCanvas)return!1;var t=new OffscreenCanvas(1,1),o=t.getContext("2d");o.fillRect(0,0,1,1);var n=t.transferToImageBitmap();try{o.createPattern(n,"no-repeat")}catch(t){return!1}return!0}();function l(){}function c(t){var n=o.exports.Promise,r=void 0!==n?n:e.Promise;return"function"==typeof r?new r(t):(t(l,l),null)}var d,u,p,h,f,v,g,m,y,x,b,w=(d=s,u=new Map,{transform:function(t){if(d)return t;if(u.has(t))return u.get(t);var e=new OffscreenCanvas(t.width,t.height);return e.getContext("2d").drawImage(t,0,0),u.set(t,e),e},clear:function(){u.clear()}}),k=(f=Math.floor(1e3/60),v={},g=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(t){var e=Math.random();return v[e]=requestAnimationFrame((function o(n){g===n||g+f-1<n?(g=n,delete v[e],t()):v[e]=requestAnimationFrame(o)})),e},h=function(t){v[t]&&cancelAnimationFrame(v[t])}):(p=function(t){return setTimeout(t,f)},h=function(t){return clearTimeout(t)}),{frame:p,cancel:h}),S=(x={},function(){if(m)return m;if(!n&&i){var e=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{m=new Worker(URL.createObjectURL(new Blob([e])))}catch(t){return void 0!==("undefined"==typeof console?"undefined":io(console))&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",t),null}!function(t){function e(e,o){t.postMessage({options:e||{},callback:o})}t.init=function(e){var o=e.transferControlToOffscreen();t.postMessage({canvas:o},[o])},t.fire=function(o,n,r){if(y)return e(o,null),y;var i=Math.random().toString(36).slice(2);return y=c((function(n){function a(e){e.data.callback===i&&(delete x[i],t.removeEventListener("message",a),y=null,w.clear(),r(),n())}t.addEventListener("message",a),e(o,i),x[i]=a.bind(null,{data:{callback:i}})}))},t.reset=function(){for(var e in t.postMessage({reset:!0}),x)x[e](),delete x[e]}}(m)}return m}),C={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function M(t,e,o){return function(t,e){return e?e(t):t}(t&&null!=t[e]?t[e]:C[e],o)}function _(t){return t<0?0:Math.floor(t)}function O(t){return parseInt(t,16)}function I(t){return t.map(L)}function L(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:O(e.substring(0,2)),g:O(e.substring(2,4)),b:O(e.substring(4,6))}}function E(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function z(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function B(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var o=e.tick++/e.totalTicks,n=e.x+e.random*e.tiltCos,r=e.y+e.random*e.tiltSin,i=e.wobbleX+e.random*e.tiltCos,s=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-o)+")",t.beginPath(),a&&"path"===e.shape.type&&"string"==typeof e.shape.path&&Array.isArray(e.shape.matrix))t.fill(function(t,e,o,n,r,i,a){var s=new Path2D(t),l=new Path2D;l.addPath(s,new DOMMatrix(e));var c=new Path2D;return c.addPath(l,new DOMMatrix([Math.cos(a)*r,Math.sin(a)*r,-Math.sin(a)*i,Math.cos(a)*i,o,n])),c}(e.shape.path,e.shape.matrix,e.x,e.y,.1*Math.abs(i-n),.1*Math.abs(s-r),Math.PI/10*e.wobble));else if("bitmap"===e.shape.type){var l=Math.PI/10*e.wobble,c=.1*Math.abs(i-n),d=.1*Math.abs(s-r),u=e.shape.bitmap.width*e.scalar,p=e.shape.bitmap.height*e.scalar,h=new DOMMatrix([Math.cos(l)*c,Math.sin(l)*c,-Math.sin(l)*d,Math.cos(l)*d,e.x,e.y]);h.multiplySelf(new DOMMatrix(e.shape.matrix));var f=t.createPattern(w.transform(e.shape.bitmap),"no-repeat");f.setTransform(h),t.globalAlpha=1-o,t.fillStyle=f,t.fillRect(e.x-u/2,e.y-p/2,u,p),t.globalAlpha=1}else if("circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(i-n)*e.ovalScalar,Math.abs(s-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,o,n,r,i,a,s){t.save(),t.translate(e,o),t.rotate(i),t.scale(n,r),t.arc(0,0,1,0,s,void 0),t.restore()}(t,e.x,e.y,Math.abs(i-n)*e.ovalScalar,Math.abs(s-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if("star"===e.shape)for(var v=Math.PI/2*3,g=4*e.scalar,m=8*e.scalar,y=e.x,x=e.y,b=5,k=Math.PI/b;b--;)y=e.x+Math.cos(v)*m,x=e.y+Math.sin(v)*m,t.lineTo(y,x),v+=k,y=e.x+Math.cos(v)*g,x=e.y+Math.sin(v)*g,t.lineTo(y,x),v+=k;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(r)),t.lineTo(Math.floor(i),Math.floor(s)),t.lineTo(Math.floor(n),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}function A(t,o){var a,s=!t,l=!!M(o||{},"resize"),d=!1,u=M(o,"disableForReducedMotion",Boolean),p=i&&M(o||{},"useWorker")?S():null,h=s?E:z,f=!(!t||!p||!t.__confetti_initialized),v="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function g(e,o,i){for(var s,l,d,u,p=M(e,"particleCount",_),f=M(e,"angle",Number),v=M(e,"spread",Number),g=M(e,"startVelocity",Number),m=M(e,"decay",Number),y=M(e,"gravity",Number),x=M(e,"drift",Number),b=M(e,"colors",I),S=M(e,"ticks",Number),C=M(e,"shapes"),O=M(e,"scalar"),L=!!M(e,"flat"),E=function(t){var e=M(t,"origin",Object);return e.x=M(e,"x",Number),e.y=M(e,"y",Number),e}(e),z=p,A=[],P=t.width*E.x,j=t.height*E.y;z--;)A.push((l=(s={x:P,y:j,angle:f,spread:v,startVelocity:g,color:b[z%b.length],shape:C[(u=C.length,Math.floor(Math.random()*(u-0))+0)],ticks:S,decay:m,gravity:y,drift:x,scalar:O,flat:L}).angle*(Math.PI/180),d=s.spread*(Math.PI/180),{x:s.x,y:s.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*s.startVelocity+Math.random()*s.startVelocity,angle2D:-l+(.5*d-Math.random()*d),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:s.color,shape:s.shape,tick:0,totalTicks:s.ticks,decay:s.decay,drift:s.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*s.gravity,ovalScalar:.6,scalar:s.scalar,flat:s.flat}));return a?a.addFettis(A):(a=function(t,e,o,i,a){var s,l,d=e.slice(),u=t.getContext("2d"),p=c((function(e){function c(){s=l=null,u.clearRect(0,0,i.width,i.height),w.clear(),a(),e()}s=k.frame((function e(){!n||i.width===r.width&&i.height===r.height||(i.width=t.width=r.width,i.height=t.height=r.height),i.width||i.height||(o(t),i.width=t.width,i.height=t.height),u.clearRect(0,0,i.width,i.height),(d=d.filter((function(t){return B(u,t)}))).length?s=k.frame(e):c()})),l=c}));return{addFettis:function(t){return d=d.concat(t),p},canvas:t,promise:p,reset:function(){s&&k.cancel(s),l&&l()}}}(t,A,h,o,i),a.promise)}function m(o){var n=u||M(o,"disableForReducedMotion",Boolean),r=M(o,"zIndex",Number);if(n&&v)return c((function(t){t()}));s&&a?t=a.canvas:s&&!t&&(t=function(t){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}(r),document.body.appendChild(t)),l&&!f&&h(t);var i={width:t.width,height:t.height};function m(){if(p){var e={getBoundingClientRect:function(){if(!s)return t.getBoundingClientRect()}};return h(e),void p.postMessage({resize:{width:e.width,height:e.height}})}i.width=i.height=null}function y(){a=null,l&&(d=!1,e.removeEventListener("resize",m)),s&&t&&(document.body.removeChild(t),t=null,f=!1)}return p&&!f&&p.init(t),f=!0,p&&(t.__confetti_initialized=!0),l&&!d&&(d=!0,e.addEventListener("resize",m,!1)),p?p.fire(o,i,y):g(o,i,y)}return m.reset=function(){p&&p.reset(),a&&a.reset()},m}function P(){return b||(b=A(null,{useWorker:!0,resize:!0})),b}o.exports=function(){return P().apply(this,arguments)},o.exports.reset=function(){P().reset()},o.exports.create=A,o.exports.shapeFromPath=function(t){if(!a)throw new Error("path confetti are not supported in this browser");var e,o;"string"==typeof t?e=t:(e=t.path,o=t.matrix);var n=new Path2D(e),r=document.createElement("canvas").getContext("2d");if(!o){for(var i,s,l=1e3,c=l,d=l,u=0,p=0,h=0;h<l;h+=2)for(var f=0;f<l;f+=2)r.isPointInPath(n,h,f,"nonzero")&&(c=Math.min(c,h),d=Math.min(d,f),u=Math.max(u,h),p=Math.max(p,f));i=u-c,s=p-d;var v=Math.min(10/i,10/s);o=[v,0,0,v,-Math.round(i/2+c)*v,-Math.round(s/2+d)*v]}return{type:"path",path:e,matrix:o}},o.exports.shapeFromText=function(t){var e,o=1,n="#000000",r='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof t?e=t:(e=t.text,o="scalar"in t?t.scalar:o,r="fontFamily"in t?t.fontFamily:r,n="color"in t?t.color:n);var i=10*o,a=i+"px "+r,s=new OffscreenCanvas(i,i),l=s.getContext("2d");l.font=a;var c=l.measureText(e),d=Math.ceil(c.actualBoundingBoxRight+c.actualBoundingBoxLeft),u=Math.ceil(c.actualBoundingBoxAscent+c.actualBoundingBoxDescent),p=c.actualBoundingBoxLeft+2,h=c.actualBoundingBoxAscent+2;d+=4,u+=4,(l=(s=new OffscreenCanvas(d,u)).getContext("2d")).font=a,l.fillStyle=n,l.fillText(e,p,h);var f=1/o;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[f,0,0,f,-d*f/2,-u*f/2]}}}(function(){return void 0!==xo?xo:"undefined"!=typeof self?self:this||{}}(),bo,!1),xo.confetti=bo.exports;var So=function(){go(e,n);var t=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=po(t);if(e){var r=po(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return wo(this,o)}}(e);function e(){var o;return eo(this,e),(o=t.call(this)).defaults={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,origin:{x:.5,y:.5},shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],scalar:1},o.zindex=100,o}return so(e,[{key:"connectedCallback",value:function(){ho(po(e.prototype),"connectedCallback",this).call(this),this.load()}},{key:"load",value:function(){confetti({particleCount:150,spread:90,ticks:130,scalar:1.3,zIndex:this.zindex,origin:{y:.35}})}}]),e}();ko([a],So.prototype,"game",void 0),ko([e({converter:s})],So.prototype,"zindex",void 0),So=ko([o({name:"g-confetti",shadowOptions:{mode:"closed"}})],So);var Co={init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};confetti(Object.assign({particleCount:200,spread:70,zIndex:3e3,origin:{y:.4}},t))}};function Mo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}window.Effects=window.Effects||{},window.Effects.confetti=Co;var _o,Oo={exports:{}};(_o=Oo).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_o.exports.__esModule=!0,_o.exports.default=_o.exports;var Io=Mo(Oo.exports),Lo={exports:{}},Eo={exports:{}},zo={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(zo);var Bo=Mo(zo.exports),Ao={exports:{}};!function(t){var e=zo.exports.default;t.exports=function(t,o){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Ao),function(t){var e=zo.exports.default,o=Ao.exports;t.exports=function(t){var n=o(t,"string");return"symbol"==e(n)?n:n+""},t.exports.__esModule=!0,t.exports.default=t.exports}(Eo),function(t){var e=Eo.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(Lo);var Po=Mo(Lo.exports),jo={exports:{}},To={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(To),function(t){var e=zo.exports.default,o=To.exports;t.exports=function(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(jo);var Do=Mo(jo.exports),Ro={exports:{}};!function(t){function e(o){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Ro);var Fo=Mo(Ro.exports),No={exports:{}},Wo={exports:{}};!function(t){var e=Ro.exports;t.exports=function(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(Wo),function(t){var e=Wo.exports;function o(){return t.exports=o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,o,n){var r=e(t,o);if(r){var i=Object.getOwnPropertyDescriptor(r,o);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(No);var $o=Mo(No.exports),Ho={exports:{}},Vo={exports:{}};!function(t){function e(o,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Vo),function(t){var e=Vo.exports;t.exports=function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&e(t,o)},t.exports.__esModule=!0,t.exports.default=t.exports}(Ho);var Yo=Mo(Ho.exports),Go={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(Go);var Uo,Xo=Mo(Go.exports);function Zo(t,e,o,n){var r,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Bo(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,o,a):r(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a}"function"==typeof SuppressedError&&SuppressedError;var Jo=t(Uo||(Uo=Xo(["\n.LightWrap {position:fixed;width:500vw;height:500vw;top:50%;left:50%;transform: translate(-50%, -50%);filter: blur(6px);}\n:host([dir='top']) .LightWrap{top:0;}\n:host([dir='topleft']) .LightWrap{top:0;left:0;}\n:host([dir='topright']) .LightWrap{top:0;left:100%;}\n:host([dir='bottom']) .LightWrap{top:100%;}\n:host([dir='bottomleft']) .LightWrap{top:100%;left:0;}\n:host([dir='bottomright']) .LightWrap{top:100%;left:100%;}\n:host([dir='left']) .LightWrap{left:0;}\n:host([dir='right']) .LightWrap{left:100%;}\n.LightWrap .Circle {position:absolute;inset:0;border-radius:50%;transform:translateZ(0);-webkit-transform:translateZ(0);}\n.LightWrap .Circle1 {\n background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0%,var(--color) 1%,transparent 6%);\n -webkit-animation: 13s linear rotate infinite reverse;\n animation: 13s linear rotate infinite reverse;\n}\n.LightWrap .Circle2 {\n background:repeating-conic-gradient(from 19deg at 50% 50%,transparent 0%, var(--color) 1.2%,var(--color),transparent 4.8%,transparent 7.6%);\n -webkit-animation: 9s linear -2s rotate infinite;\n animation: 9s linear -2s rotate infinite;\n}\n.LightWrap .Circle3 {\n background:repeating-conic-gradient(from 37deg at 50% 50%,transparent 0%,var(--color) 4%,transparent 7.9%,transparent 12%);\n -webkit-animation: 17s linear rotate infinite reverse;\n animation: 17s linear rotate infinite reverse;\n}\n.LightWrap .Circle4 {\n background:repeating-conic-gradient(from 103deg at 50% 50%,transparent 0%,var(--color)) 5%,var(--color) 7%,transparent 12%);\n -webkit-animation:7s linear rotate infinite;\n animation:7s linear rotate infinite;\n}\n@-webkit-keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n@keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n"]))),qo={exports:{}},Qo={exports:{}},Ko={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n},t.exports.__esModule=!0,t.exports.default=t.exports}(Ko),function(t){var e=Ko.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Qo);var tn={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(tn);var en={exports:{}};!function(t){var e=Ko.exports;t.exports=function(t,o){if(t){if("string"==typeof t)return e(t,o);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,o):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(en);var on={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(on),function(t){var e=Qo.exports,o=tn.exports,n=en.exports,r=on.exports;t.exports=function(t){return e(t)||o(t)||n(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(qo);var nn=Mo(qo.exports),rn={exports:{}},an={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(an);var sn={exports:{}};!function(t){t.exports=function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i,a,s=[],l=!0,c=!1;try{if(i=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports}(sn);var ln={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(ln),function(t){var e=an.exports,o=sn.exports,n=en.exports,r=ln.exports;t.exports=function(t,i){return e(t)||o(t,i)||n(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(rn);var cn,dn=Mo(rn.exports),un=Math.min,pn=Math.max,hn=Math.floor,fn=Math.round;function vn(t,e,o){e/=100,o/=100;var n=hn(t=t/360*6),r=t-n,i=o*(1-e),a=o*(1-r*e),s=o*(1-(1-r)*e),l=n%6;return[255*[o,a,i,i,s,o][l],255*[s,o,o,a,i,i][l],255*[i,i,s,o,o,a][l]]}function gn(t,e,o){var n,r,i=un(t/=255,e/=255,o/=255),a=pn(t,e,o),s=a-i;if(0===s)n=r=0;else{r=s/a;var l=((a-t)/6+s/2)/s,c=((a-e)/6+s/2)/s,d=((a-o)/6+s/2)/s;t===a?n=d-c:e===a?n=1/3+l-d:o===a&&(n=2/3+c-l),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*a]}function mn(t,e,o,n){e/=100,o/=100;var r=255*(1-un(1,(t/=100)*(1-(n/=100))+n)),i=255*(1-un(1,e*(1-n)+n)),a=255*(1-un(1,o*(1-n)+n));return nn(gn(r,i,a))}function yn(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function xn(t){return gn.apply(void 0,nn(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function bn(){var t=function(t,e){return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~o?t.map((function(t){return Number(t.toFixed(o))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var o=[e.h,e.s,e.v,e.a];return o.toString=t(o,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toHSLA:function(){var o=[].concat(nn(function(t,e,o){var n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toRGBA:function(){var o=[].concat(nn(vn(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),o},toCMYK:function(){var o=function(t,e,o){var n,r=vn(t,e,o),i=r[0]/255,a=r[1]/255,s=r[2]/255;return[100*(1===(n=un(1-i,1-a,1-s))?0:(1-i-n)/(1-n)),100*(1===n?0:(1-a-n)/(1-n)),100*(1===n?0:(1-s-n)/(1-n)),100*n]}(e.h,e.s,e.v);return o.toString=t(o,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),o},toHEXA:function(){var t=function(t,e,o){return vn(t,e,o).map((function(t){return fn(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),o=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return o&&t.push(o),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return bn(e.h,e.s,e.v,e.a)}};return e}function wn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wn=function(){return!!t})()}var kn,Sn,Cn,Mn,_n,On,In=r(cn||(cn=Xo(['\n<section class="LightWrap">\n <div class="Circle Circle1"></div>\n <div class="Circle Circle2"></div>\n <div class="Circle Circle3"></div>\n <div class="Circle Circle4"></div>\n</section>\n']))),Ln=function(){function t(){var e;return Io(this,t),(e=function(t,e,o){return e=Fo(e),Do(t,wn()?Reflect.construct(e,o||[],Fo(t).constructor):e.apply(t,o))}(this,t)).color="#faf014",e}return Yo(t,n),Po(t,[{key:"colorChanged",value:function(t,e){var o,n;e&&this.style.setProperty("--color",(o=function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,o={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},n=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in o)if(e=o[r].exec(t))switch(r){case"cmyk":var i=n(e),a=dn(i,5),s=a[1],l=a[2],c=a[3],d=a[4];if(s>100||l>100||c>100||d>100)break t;return{values:mn(s,l,c,d),type:r};case"rgba":var u=n(e),p=dn(u,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(nn(gn(h,f,v)),[g]),a:g,type:r};case"hexa":var m=dn(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),x=m.substring(6);return x=x?parseInt(x,16)/255:void 0,{values:[].concat(nn(xn(y)),[x]),a:x,type:r};case"hsla":var b=n(e),w=dn(b,7),k=w[3],S=w[4],C=w[5],M=w[6];if(k>360||S>100||C>100||M<0||M>1)break t;return{values:[].concat(nn(yn(k,S,C)),[M]),a:M,type:r};case"hsva":var _=n(e),O=dn(_,7),I=O[3],L=O[4],E=O[5],z=O[6];if(I>360||L>100||E>100||z<0||z>1)break t;return{values:[I,L,E,z],a:z,type:r}}return{values:null,type:null}}(e),n=bn.apply(void 0,nn(o.values)).toRGBA(),"rgba(".concat(n[0].toFixed(0),",").concat(n[1].toFixed(0),",").concat(n[2].toFixed(0),",").concat(.2*Number(n[3].toFixed(2)),")")))}},{key:"connectedCallback",value:function(){var e,o,n;(e=t,o=this,n=$o(Fo(1&3?e.prototype:e),"connectedCallback",o),function(t){return n.apply(o,t)})([])}}])}();function En(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(En=function(){return!!t})()}Zo([e],Ln.prototype,"dir",void 0),Zo([e],Ln.prototype,"color",void 0),Ln=Zo([o({name:"h-spotlight",template:In,styles:Jo,shadowOptions:{mode:"closed"}})],Ln);var zn,Bn=r(kn||(kn=z(['\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <div class="Conten">\n <div class="Bg"></div>\n <h-spotlight color="#000"></h-spotlight>\n <div class="Img zoomInUp">\n <span>\n ',"\n </span>\n \n <span>\n ","\n </span>\n \n </div>\n </div>\n </div>\n\n <div ",' class="Content transit">\n <div class="Title">\n <span>\n ',"\n </span>\n <span>\n ",'\n </span> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n <div class="Cache">\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n <img src="','" />\n </div>\n'])),c((function(t){return 1==t.type}),r(Sn||(Sn=z(['<img src="','" class="Card" draggable="false"/>'])),(function(t){return t.imgSrc}))),c((function(t){return 2==t.type}),r(Cn||(Cn=z(['<div class="CouponWrap">\n <img class="Coupon" src="','"/>\n <div class="Info">\n <p style="color:#FF3B0A;font-size:9.6vw;font-weight:600;line-height:9.6vw">','</p>\n <p style="color:#EB330E;font-size:3.733vw;font-weight:600;margin:2vw 0 7vw">',"</p>\n </div>\n </div>"])),St.path+St.coupon,(function(t){return t.prizeQuota}),(function(t){return t.prizeName}))),i("contentWrap"),c((function(t){return 1==t.type}),r(Mn||(Mn=z(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),St.path,(function(t){return t.number>0?r(_n||(_n=z(["再集","张不同卡牌即可合成"])),(function(t){return t.number})):"已集齐6张,赶快去合成吧"}))),c((function(t){return 2==t.type}),r(On||(On=z(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">',"</p>"])),St.path,(function(t){return t.prizeQuota+t.prizeName}))),(function(t){return t.accept()}),St.path,St.path+St.coupon,St.path+St.card1,St.path+St.card2,St.path+St.card3,St.path+St.card4,St.path+St.card5,St.path+St.card6),An=function(){function t(){var e;return h(this,t),e=function(t,e,o){return e=S(e),w(t,En()?Reflect.construct(e,o||[],S(t).constructor):e.apply(t,o))}(this,t),e.prizeName="",e.prizeQuota="",e.isClick=!1,e.imgSrc="",e.type=1,e.index=1,e.number=3,bt.case.install([ve,So,Ln]),e}return L(t,n),y(t,[{key:"indexChanged",value:function(t,e){var o=this;setTimeout((function(){o.imgSrc=St.path+St["card"+e]}),10)}},{key:"showChanged",value:function(t,e){null===e||!1===e?Ie.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){!function(t,e,o,n){var r=_(S(1&n?t.prototype:t),e,o);return 2&n&&"function"==typeof r?function(t){return r.apply(o,t)}:r}(t,"connectedCallback",this,3)([])}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"init",value:function(){var t=this;setTimeout((function(){Ie.instance.add(t.contentWrap,"show")}),1e3),setTimeout((function(){t.isClick=!0}),2e3),window.confetti({particleCount:150,spread:90,ticks:130,scalar:1.3,zIndex:3200,origin:{y:.35}})}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&2==this.type&&(this.prizeName=t.prizeName,this.prizeQuota=t.prizeQuota)}}])}();B([a],An.prototype,"Overlay",void 0),B([a],An.prototype,"video",void 0),B([a],An.prototype,"contentWrap",void 0),B([a],An.prototype,"prizeName",void 0),B([a],An.prototype,"prizeQuota",void 0),B([a],An.prototype,"imgSrc",void 0),B([e({converter:s})],An.prototype,"type",void 0),B([e({converter:s})],An.prototype,"index",void 0),B([e({converter:s})],An.prototype,"number",void 0),B([e({mode:"boolean"})],An.prototype,"show",void 0),B([Se],An.prototype,"showChanged",null),B([Be(300)],An.prototype,"accept",null),An=B([o({name:"g-collect-prize",template:Bn,styles:qe,shadowOptions:{mode:"closed"}})],An);var Pn,jn,Tn,Dn,Rn=t(zn||(zn=z(["\n:host{\ndisplay:inline-block;\nwidth:60vw;\nheight:55vw;\n}\n.SwipeWrap {\nposition: relative;\nwidth:60vw;\nheight:55vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardList{\n position: absolute;\nz-index:99;\nwidth:60vw;\nheight:62vw;\n}\n.CardList svg,\n.CardContainer svg{\n position: absolute;\n z-index:110;\n top:0;\n left:0;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;\n}\nimg {\n -webkit-touch-callout :none;\n user-select:none;\n}\n.Nav {\n position: absolute;\n display: none;\n align-items: center;\n justify-content: center;\n top: 35%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:9.666666666vw;\n height:9.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: 0;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: 0;\n transform: translateX(100%) translatey(-50%);\n}\n:host(.isArrow) .Nav{display: flex;}\n"])));function Fn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fn=function(){return!!t})()}var Nn,Wn=r(Pn||(Pn=z(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span ",">\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),c((function(t){return t.active>0}),r(jn||(jn=z(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(t){return t.setActive("l")}),St.path)),i("listItems"),l((function(t){return t.cardItem}),r(Tn||(Tn=z(['<div class="CardContainer ','" style="','">\n <img src="','" draggable="false"/>\n </div>'])),(function(t,e){return e.parent.classFn(e.index)}),(function(t,e){return e.parent.styleFn(e.index)}),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0}),c((function(t){return t.active<t.cardItem.length-1}),r(Dn||(Dn=z(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(t){return t.setActive("r")}),St.path))),$n=function(){function t(){var e;return h(this,t),e=function(t,e,o){return e=S(e),w(t,Fn()?Reflect.construct(e,o||[],S(t).constructor):e.apply(t,o))}(this,t),e.cardItem=Array.from({length:6},(function(t,e){return{card:"".concat(St.path,"/download/img/collect/card/card0").concat(e+1,".png"),grey:"".concat(St.path,"/download/img/collect/card/card01-1.png")}})),e.MAX_VISIBILITY=1,e.active=0,e.arrow=!0,e}return L(t,n),y(t,[{key:"arrowChanged",value:function(t,e){null===e||!1===e||this.isComposed?Ie.instance.remove(this,"isArrow"):Ie.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){var e,o,n=this;!function(t,e,o,n){var r=_(S(1&n?t.prototype:t),e,o);return 2&n&&"function"==typeof r?function(t){return r.apply(o,t)}:r}(t,"connectedCallback",this,3)([]),(e="".concat(St.path,"/download/cdn/lottie.min.js"),o="lottie",new Promise((function(t,n){if(void 0!==e){var r=new xt,i=e.substring(e.lastIndexOf(".")+1),a=document.getElementsByTagName("head")[0];if(document.querySelectorAll('script[src*="'+e+'"]').length<=0){if("js"===i){var s=document.createElement("script");s.src=e,s.type="text/javascript",s.async=!0,a.appendChild(s),s.onload=s.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||t(!0)}}else if("css"===i){var l=document.createElement("link");l.href=e,l.rel="stylesheet",l.type="text/css",a.appendChild(l)}}else r.init({front:String(o),callback:function(){t(!0)}})}else n(!1)}))).then((function(){n.initLottie()}))}},{key:"initLottie",value:function(){this.childs=this.listItems.querySelectorAll(".CardContainer"),Array.from(this.childs).forEach((function(t,e){t.lottie=window.lottie.loadAnimation({container:t,renderer:"svg",loop:!1,autoplay:!1,path:"".concat(St.path,"/download/img/collect/card/card0").concat(e+1,".json")})}))}},{key:"setActive",value:function(t){"l"==t?--this.active:++this.active}},{key:"classFn",value:function(t){return t==this.active&&this.playlotie(t,!1),t==this.active?"active":""}},{key:"playlotie",value:function(t,e){var o=this.childs||this.listItems.querySelectorAll(".CardContainer");o.length>0&&o[t].lottie&&this.cardItem[t].total>0&&setTimeout((function(){o[t].lottie.goToAndStop(0,!0),o[t].lottie.play()}),e?50:0)}},{key:"styleFn",value:function(t){var e="--active:".concat(t===this.active?1:0,";");return e+="--offset:".concat((this.active-t)/3,";"),e+="--direction:".concat(Math.sign(this.active-t),";"),e+="--abs-offset:".concat(Math.abs(this.active-t)/3,";"),e+="pointer-events:".concat(this.active===t?"auto":"none",";"),e+="opacity:".concat(Math.abs(this.active-t)>=this.MAX_VISIBILITY?"0":"1",";"),e+="display:".concat(Math.abs(this.active-t)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"revert",value:function(){this.isComposed=!1,this.arrow=!0,this.active=0,this.cardItem=Array.from({length:6},(function(t,e){return{card:"".concat(St.path,"/download/img/collect/card/card0").concat(e+1,".png"),grey:"".concat(St.path,"/download/img/collect/card/card01-1.png")}}))}},{key:"update",value:function(t){if(t&&t.isRevert)this.revert();else if(t&&t.cardList){for(var e=Array.from({length:6}),o=0;o<t.cardList.length;o++){var n=t.cardList[o];e[n.cardType-1]={total:n.cardNum,card:"".concat(St.path,"/download/img/collect/card/card0").concat(n.cardType,".png"),grey:"".concat(St.path,"/download/img/collect/card/card01-1.png")}}this.cardItem=e,this.playlotie(0,!0),t.isComposed&&(this.arrow=!1,this.isComposed=t.isComposed)}}}])}();B([a],$n.prototype,"listItems",void 0),B([a],$n.prototype,"cardItem",void 0),B([a],$n.prototype,"isComposed",void 0),B([a],$n.prototype,"childs",void 0),B([e({converter:s})],$n.prototype,"active",void 0),B([e({mode:"boolean"})],$n.prototype,"arrow",void 0),B([(Nn=300,function(t,e,o){var n=o.value;return o.value=function(){var t=arguments,e=this;setTimeout((function(){return n.apply(e,t)}),Nn)},o})],$n.prototype,"initLottie",null),$n=B([o({name:"g-collect-swipe",template:Wn,styles:Rn,shadowOptions:{mode:"closed"}})],$n);export{je as HiCollectConflate,Je as HiCollectList,An as HiCollectPrize,$n as HiCollectSwipe};