@gkits/collect 0.0.1

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 (95) hide show
  1. package/README.md +1 -0
  2. package/dist/dts/res/_utils/animate/animate.d.ts +13 -0
  3. package/dist/dts/res/_utils/animate/index.d.ts +15 -0
  4. package/dist/dts/res/_utils/attribute.d.ts +4 -0
  5. package/dist/dts/res/_utils/browser/UrlHandler.d.ts +13 -0
  6. package/dist/dts/res/_utils/browser/body.scroll.d.ts +19 -0
  7. package/dist/dts/res/_utils/browser/copy.d.ts +1 -0
  8. package/dist/dts/res/_utils/browser/device.d.ts +4 -0
  9. package/dist/dts/res/_utils/browser/fetcher.d.ts +0 -0
  10. package/dist/dts/res/_utils/browser/findDom.d.ts +1 -0
  11. package/dist/dts/res/_utils/browser/getBase64.d.ts +1 -0
  12. package/dist/dts/res/_utils/browser/getMousePoint.d.ts +4 -0
  13. package/dist/dts/res/_utils/browser/getPageScroll.d.ts +4 -0
  14. package/dist/dts/res/_utils/browser/getPageSize.d.ts +6 -0
  15. package/dist/dts/res/_utils/browser/guide.d.ts +7 -0
  16. package/dist/dts/res/_utils/browser/hiddenProperty.d.ts +1 -0
  17. package/dist/dts/res/_utils/browser/httpAjax.d.ts +12 -0
  18. package/dist/dts/res/_utils/browser/lazyLoad.d.ts +27 -0
  19. package/dist/dts/res/_utils/browser/loadJC.d.ts +2 -0
  20. package/dist/dts/res/_utils/browser/networkState.d.ts +6 -0
  21. package/dist/dts/res/_utils/browser/pinyin.d.ts +1 -0
  22. package/dist/dts/res/_utils/browser/ratioZoom.d.ts +3 -0
  23. package/dist/dts/res/_utils/browser/requestAnimationFrame.d.ts +2 -0
  24. package/dist/dts/res/_utils/browser/resize.d.ts +1 -0
  25. package/dist/dts/res/_utils/browser/scroll.d.ts +5 -0
  26. package/dist/dts/res/_utils/browser/touch.d.ts +44 -0
  27. package/dist/dts/res/_utils/browser/touchEvents.d.ts +5 -0
  28. package/dist/dts/res/_utils/color/getOpacityColor.d.ts +1 -0
  29. package/dist/dts/res/_utils/decorator/debounce.d.ts +1 -0
  30. package/dist/dts/res/_utils/decorator/scrollLocks.d.ts +1 -0
  31. package/dist/dts/res/_utils/decorator/timeout.d.ts +1 -0
  32. package/dist/dts/res/_utils/decorator/wait.d.ts +1 -0
  33. package/dist/dts/res/_utils/evalEventHandle.d.ts +9 -0
  34. package/dist/dts/res/_utils/event.d.ts +15 -0
  35. package/dist/dts/res/_utils/extend/arrayIndex.d.ts +17 -0
  36. package/dist/dts/res/_utils/extend/proxy.d.ts +4 -0
  37. package/dist/dts/res/_utils/function.d.ts +4 -0
  38. package/dist/dts/res/_utils/getcolor.d.ts +129 -0
  39. package/dist/dts/res/_utils/hsvacolor.d.ts +12 -0
  40. package/dist/dts/res/_utils/key-codes.d.ts +162 -0
  41. package/dist/dts/res/_utils/number/calc.d.ts +11 -0
  42. package/dist/dts/res/_utils/object/assign.d.ts +7 -0
  43. package/dist/dts/res/_utils/object/exist.d.ts +2 -0
  44. package/dist/dts/res/_utils/object/freeze.d.ts +1 -0
  45. package/dist/dts/res/_utils/object/linkedList.d.ts +14 -0
  46. package/dist/dts/res/_utils/place.d.ts +15 -0
  47. package/dist/dts/res/_utils/string/getFileType.d.ts +1 -0
  48. package/dist/dts/res/_utils/string/marker.d.ts +1 -0
  49. package/dist/dts/res/_utils/string/trim.d.ts +1 -0
  50. package/dist/dts/res/_utils/string/utilTools.d.ts +2 -0
  51. package/dist/dts/res/_utils/style/background.d.ts +7 -0
  52. package/dist/dts/res/_utils/style/basics.d.ts +3 -0
  53. package/dist/dts/res/_utils/style/classic.d.ts +10 -0
  54. package/dist/dts/res/_utils/style/disabled.d.ts +1 -0
  55. package/dist/dts/res/_utils/style/display.d.ts +3 -0
  56. package/dist/dts/res/_utils/style/index.d.ts +6 -0
  57. package/dist/dts/res/_utils/style/resize.d.ts +1 -0
  58. package/dist/dts/res/_utils/style/style.d.ts +13 -0
  59. package/dist/dts/res/_utils/style/styleCalc.d.ts +19 -0
  60. package/dist/dts/res/_utils/style/styleDeclare.d.ts +6 -0
  61. package/dist/dts/res/_utils/style/units.d.ts +1 -0
  62. package/dist/dts/res/_utils/style/visibility.d.ts +1 -0
  63. package/dist/dts/res/_utils/style/wrap.d.ts +1 -0
  64. package/dist/dts/res/_utils/throttle.d.ts +12 -0
  65. package/dist/dts/res/_utils/types.d.ts +17 -0
  66. package/dist/dts/res/conflate/conflate.d.ts +16 -0
  67. package/dist/dts/res/conflate/conflate.style.d.ts +1 -0
  68. package/dist/dts/res/conflate/index.d.ts +1 -0
  69. package/dist/dts/res/index.d.ts +4 -0
  70. package/dist/dts/res/list/index.d.ts +1 -0
  71. package/dist/dts/res/list/list.d.ts +9 -0
  72. package/dist/dts/res/list/list.style.d.ts +1 -0
  73. package/dist/dts/res/param.d.ts +3 -0
  74. package/dist/dts/res/prize/index.d.ts +1 -0
  75. package/dist/dts/res/prize/prize.d.ts +17 -0
  76. package/dist/dts/res/prize/prize.style.d.ts +1 -0
  77. package/dist/dts/res/shared/con.d.ts +1 -0
  78. package/dist/dts/res/shared/config/config.d.ts +10 -0
  79. package/dist/dts/res/shared/config/hello.d.ts +1 -0
  80. package/dist/dts/res/shared/environments/environment.d.ts +8 -0
  81. package/dist/dts/res/shared/index.d.ts +1 -0
  82. package/dist/dts/res/shared/interface/type.d.ts +50 -0
  83. package/dist/dts/res/shared/mixins/applyMixins.d.ts +1 -0
  84. package/dist/dts/res/shared/mixins/hiElementBase.d.ts +14 -0
  85. package/dist/dts/res/shared/mixins/hiElementForm.d.ts +17 -0
  86. package/dist/dts/res/shared/mixins/hiElementStyle.d.ts +26 -0
  87. package/dist/dts/res/shared/mixins/hiElementTouch.d.ts +28 -0
  88. package/dist/dts/res/shared/services/date.services.d.ts +1 -0
  89. package/dist/dts/res/shared/services/md5.d.ts +29 -0
  90. package/dist/dts/res/shared/theme/default.d.ts +29 -0
  91. package/dist/dts/res/swipe/index.d.ts +1 -0
  92. package/dist/dts/res/swipe/swipe.d.ts +12 -0
  93. package/dist/dts/res/swipe/swipe.style.d.ts +1 -0
  94. package/dist/index.js +450 -0
  95. package/package.json +56 -0
package/dist/index.js ADDED
@@ -0,0 +1,450 @@
1
+ import{css as t,attr as e,customElement as o,HIElement as n,html as r,ref as i,observable as s,nullableNumberConverter as a,when as l,repeat as c}from"hi-element";function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u,h={exports:{}};(u=h).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 p=d(h.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)||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}(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:String(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),b={exports:{}},w={exports:{}},x={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}(x);var k=d(x.exports);!function(t){var e=x.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}(w),function(t){var e=w.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}(b);var S=d(b.exports),C={exports:{}},O={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}(O),function(t){var e=O.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}(C);var L=d(C.exports),B={exports:{}},$={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}($),function(t){var e=g.exports.default,o=$.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}(B);var _=d(B.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 A=d(E.exports),I={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}(I);var z=d(I.exports);function T(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"===("undefined"==typeof Reflect?"undefined":z(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}var M={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}(M);var P=d(M.exports),j={exports:{}},R={exports:{}},F={exports:{}};!function(t){var e=I.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}(F),function(t){var e=I.exports.default,o=F.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}(R),function(t){var e=R.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 D=d(j.exports);var H={exports:{}};!function(t){var e=R.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}(H);var N=d(H.exports),W={exports:{}},V={exports:{}},Y={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}(Y),function(t){var e=Y.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(V);var G={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}(G);var J={exports:{}};!function(t){var e=Y.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}(J);var X={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}(X),function(t){var e=V.exports,o=G.exports,n=J.exports,r=X.exports;t.exports=function(t){return e(t)||o(t)||n(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(W);var U=d(W.exports),q={exports:{}},K={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(K);var Z={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,s,a=[],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)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports}(Z);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=K.exports,o=Z.exports,n=J.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}(q);var tt=d(q.exports),et=Math.min,ot=Math.max,nt=Math.floor,rt=Math.round;function it(t,e,o){e/=100,o/=100;var n=nt(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function st(t,e,o){var n,r,i=et(t/=255,e/=255,o/=255),s=ot(t,e,o),a=s-i;if(0===a)n=r=0;else{r=a/s;var l=((s-t)/6+a/2)/a,c=((s-e)/6+a/2)/a,d=((s-o)/6+a/2)/a;t===s?n=d-c:e===s?n=1/3+l-d:o===s&&(n=2/3+c-l),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*s]}function at(t,e,o,n){e/=100,o/=100;var r=255*(1-et(1,(t/=100)*(1-(n/=100))+n)),i=255*(1-et(1,e*(1-n)+n)),s=255*(1-et(1,o*(1-n)+n));return U(st(r,i,s))}function lt(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 ct(t){return st.apply(void 0,U(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function dt(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),s=tt(i,5),a=s[1],l=s[2],c=s[3],d=s[4];if(a>100||l>100||c>100||d>100)break t;return{values:at(a,l,c,d),type:r};case"rgba":var u=n(e),h=tt(u,7),p=h[3],f=h[4],v=h[5],g=h[6];if(p>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(U(st(p,f,v)),[g]),a:g,type:r};case"hexa":var m=tt(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),b=m.substring(6);return b=b?parseInt(b,16)/255:void 0,{values:[].concat(U(ct(y)),[b]),a:b,type:r};case"hsla":var w=n(e),x=tt(w,7),k=x[3],S=x[4],C=x[5],O=x[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(U(lt(k,S,C)),[O]),a:O,type:r};case"hsva":var L=n(e),B=tt(L,7),$=B[3],_=B[4],E=B[5],A=B[6];if($>360||_>100||E>100||A<0||A>1)break t;return{values:[$,_,E,A],a:A,type:r}}return{values:null,type:null}}function ut(){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(U(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(U(it(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=it(t,e,o),i=r[0]/255,s=r[1]/255,a=r[2]/255;return[100*(1===(n=et(1-i,1-s,1-a))?0:(1-i-n)/(1-n)),100*(1===n?0:(1-s-n)/(1-n)),100*(1===n?0:(1-a-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 it(t,e,o).map((function(t){return rt(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 ut(e.h,e.s,e.v,e.a)}};return e}function ht(t,e){var o=dt(t),n=ut.apply(void 0,U(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"},ft=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},vt=function(t){var e;return N(e={},"--".concat(t,"Color"),"var(--hi".concat(ft(t),"Color,").concat(pt[t],")")),N(e,"--".concat(t,"Color-hover"),"var(--hi".concat(ft(t),"Color-hover,").concat(ht(pt[t],.6),")")),N(e,"--".concat(t,"Color-active"),"var(--hi".concat(ft(t),"Color-active,").concat(ht(pt[t],.4),")")),N(e,"--".concat(t,"Color-outline"),"var(--hi".concat(ft(t),"Color-outline,").concat(ht(pt[t],.15),")")),e},gt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(pt.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(ht(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"},vt("primary")),vt("success")),vt("error")),vt("warning")),vt("info")),mt=function(t){return Object.prototype.toString.call(t)},yt=function(t){return"[object Object]"==mt(t)},bt=function(t){return"[object Array]"==mt(t)};function wt(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-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&&bt(t))for(var r=0;r<t.length;r++){var i=t[r];n+="".concat(e[i],";")}else for(var s in n+=o,e)if(Object.prototype.hasOwnProperty.call(e,s)){var a=e[s];n+=".".concat(s,"{").concat(a,"}")}return n}var xt,kt=function(){function t(){P(this,t),this.config={theme:gt,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"),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 s=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,s)}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(o,n){var r,i,s=e.async,a=void 0===s||s,l=e.beforeSend,c=void 0===l?function(){}:l,d=e.data,u=void 0===d?null:d,h=e.headers,p=void 0===h?{}:h,f=e.method,v=void 0===f?"get":f,g=e.responseType,m=void 0===g?"json":g,y=e.timeout,b=void 0===y?0:y,w=new XMLHttpRequest;if(w.open(v,t,a),b&&(r=window.setTimeout((function(){n(new Error("the xhr request timeout ".concat(b,"ms")))}),b)),w.onerror=function(){n(new Error("unknown error"))},w.onreadystatechange=function(){if(4===w.readyState)if(b&&void 0!==r&&clearTimeout(r),w.status>=200&&w.status<300)o(w);else{var t=new Error("the request is error");n(t)}},yt(u))try{i=JSON.stringify(u),p["content-type"]="application/json"}catch(t){n(t)}else"string"==typeof u&&(p["content-type"]="application/x-www-form-urlencoded");for(var x in p)w.setRequestHeader(x,p[x]);b&&(w.timeout=b),w.responseType=m,!1!==c(w)&&w.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 D(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];yt(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}}]),t}();function St(){var t="",e=kt.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(wt())}var Ct=t(xt||(xt=A(["\n:host{\n text-align:center;color:#fff\n}\n\n","\n:host{\n text-align:center;color:#fff\n}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {",";}\n.ConflateWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.ConflateWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\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:35vw;}\n.Icon div{width:25vw;text-align:center}\n.Icon div p{font-size:3.2vw;}\n.Icon img{width:19.2vw}\n\n.Button{position:absolute;width:100%;bottom:12vw;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\n\n"])),St(),wt(["PoiNo"]));function Ot(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}const Lt=t=>Object.prototype.toString.call(t),Bt=t=>"[object Object]"==Lt(t),$t=t=>"[object Array]"==Lt(t);function _t(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=_t(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(const e in t)t[e]=_t(t[e]);return t}function Et(t){return(e,o)=>{if(Bt(e))for(var n in e)At(t)(n,e[n]);"string"==typeof e&&(/:/g.test(e)?e.split(";").forEach((e=>{const o=(e=_t(e)).split(":");At(t)(o[0],o[1])})):At(t)(e,o))}}function At(t){return(e,o)=>{if(t){if(void 0===o)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=o}}}class It{static get instance(){return this._instance||(this._instance=new It),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 zt={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)},Tt=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 Mt=class extends n{constructor(){super(),this.show=!1}showChanged(t,e){null===e||!1===e?It.instance.add(this,"Leave"):It.instance.remove(this,"Leave")}connectedCallback(){super.connectedCallback(),this.background&&Et(this)("background",this.background),zt.addHandler(this,"transitionend",(()=>{this.transitionendChange()}))}transitionendChange(){this.show||this.$emit("change")}};Ot([e],Mt.prototype,"background",void 0),Ot([e({mode:"boolean"})],Mt.prototype,"show",void 0),Mt=Ot([o({name:"h-mask",styles:Tt,shadowOptions:{mode:"closed"}})],Mt);const Pt=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}};zt.addHandler(window,"testPassive",null,t),zt.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&&(zt.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&&(zt.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 jt(t,e,o){const n=o.value;return o.value=function(t,e){return null===e||!1===e?Pt.enable(document.body):Pt.disable(document.body),n.apply(this,arguments)},o}function Rt(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 Ft(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:Dt,max:Ht,floor:Nt,round:Wt}=Math;function Vt(t,e,o){e/=100,o/=100;let n=Nt(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function Yt(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 Gt(t,e,o){let n,r,i;const s=Dt(t/=255,e/=255,o/=255),a=Ht(t,e,o),l=a-s;if(i=a,0===l)n=r=0;else{r=l/a;let i=((a-t)/6+l/2)/l,s=((a-e)/6+l/2)/l,c=((a-o)/6+l/2)/l;t===a?n=c-s:e===a?n=1/3+i-c:o===a&&(n=2/3+s-i),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*i]}function Jt(t,e,o,n){return e/=100,o/=100,[...Gt(255*(1-Dt(1,(t/=100)*(1-(n/=100))+n)),255*(1-Dt(1,e*(1-n)+n)),255*(1-Dt(1,o*(1-n)+n)))]}function Xt(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 Ut(t){return Gt(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function qt(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=[...Yt(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=[...Vt(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=Vt(t,e,o),r=n[0]/255,i=n[1]/255,s=n[2]/255;let a,l,c,d;return a=Dt(1-r,1-i,1-s),l=1===a?0:(1-r-a)/(1-a),c=1===a?0:(1-i-a)/(1-a),d=1===a?0:(1-s-a)/(1-a),[100*l,100*c,100*d,100*a]}(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 Vt(t,e,o).map((t=>Wt(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:()=>qt(i.h,i.s,i.v,i.a)};return i}function Kt(t,e){const o=qt(...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,s]=o(n);if(t>100||e>100||i>100||s>100)break t;return{values:Jt(t,e,i,s),type:r}}case"rgba":{let[,,,t,e,i,s]=o(n);if(t>255||e>255||i>255||s<0||s>1)break t;return{values:[...Gt(t,e,i),s],a:s,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:[...Ut(e),o],a:o,type:r}}case"hsla":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[...Xt(t,e,i),s],a:s,type:r}}case"hsva":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[t,e,i,s],a:s,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 Zt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},Qt=t=>t.trim().toLowerCase().replace(t[0],t[0].toUpperCase()),te=t=>({[`--${t}Color`]:`var(--hi${Qt(t)}Color,${Zt[t]})`,[`--${t}Color-hover`]:`var(--hi${Qt(t)}Color-hover,${Kt(Zt[t],.6)})`,[`--${t}Color-active`]:`var(--hi${Qt(t)}Color-active,${Kt(Zt[t],.4)})`,[`--${t}Color-outline`]:`var(--hi${Qt(t)}Color-outline,${Kt(Zt[t],.15)})`}),ee=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":`var(--hiThemeColor,${Zt.primary})`,"--themeShadow":`var(--hiThemeShadow, ${Kt(Zt.primary,.25)})`,"--themeBackground":`var(--hiThemeBackground,${Zt.primary})`,"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":`var(--hiLinkFontColor,${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"},te("primary")),te("success")),te("error")),te("warning")),te("info"));function oe(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(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 ne{static get case(){return this._case||(this._case=new ne),this._case}constructor(){this.config={theme:ee,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:s=null,headers:a={},method:l="get",responseType:c="json",timeout:d=0}=e,u=new XMLHttpRequest;let h,p;if(u.open(l,t,r),d&&(h=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!==h&&clearTimeout(h),u.status>=200&&u.status<300)o(u);else{const t=new Error("the request is error");n(t)}},Bt(s))try{p=JSON.stringify(s),a["content-type"]="application/json"}catch(t){n(t)}else(t=>"string"==typeof t)(s)&&(a["content-type"]="application/x-www-form-urlencoded");for(const t in a)u.setRequestHeader(t,a[t]);d&&(u.timeout=d),u.responseType=c,!1!==i(u)&&u.send(p)}))}("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];Bt(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}function re(){let t="",e=ne.case.config.theme;for(var o in e)o&&(t+=`${o}:${e[o]};`);return`:host,:root{${t}} .Visibility{visibility:hidden} ${oe()}`}const ie=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
+ `,se=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 ae=class extends n{constructor(){super(),this.show=!1,ne.case.install([Mt])}showChanged(t,e){null===e||!1===e?Ft(this.HIMask)("show"):Rt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}close(){Ft(this.HIMask)("show"),this.$emit("close")}closeChange(){this.$emit("change")}};function le(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}function ce(t){return`:host([hidden]),:host([hide]){display:none}:host{display:${t}}`}Ot([s],ae.prototype,"HIMask",void 0),Ot([s],ae.prototype,"LoadBox",void 0),Ot([e({mode:"boolean"})],ae.prototype,"show",void 0),Ot([jt],ae.prototype,"showChanged",null),Ot([e],ae.prototype,"dir",void 0),Ot([e],ae.prototype,"background",void 0),ae=Ot([o({name:"h-load",styles:ie,template:se,shadowOptions:{mode:"closed"}})],ae);const de=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
+ `,ue=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 he=class extends n{constructor(){super(),this.show=!1,ne.case.install([Mt])}showChanged(t,e){null===e||!1===e?Ft(this.HIMask)("show"):Rt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}clickFn(){this.$emit("click")}changeFn(){this.$emit("change")}};Ot([s],he.prototype,"HIMask",void 0),Ot([s],he.prototype,"LoadBox",void 0),Ot([e({mode:"boolean"})],he.prototype,"show",void 0),Ot([jt],he.prototype,"showChanged",null),Ot([e],he.prototype,"dir",void 0),Ot([e],he.prototype,"background",void 0),he=Ot([o({name:"h-enter",styles:de,template:ue,shadowOptions:{mode:"closed"}})],he);const pe=t`
190
+ .Border{
191
+ -webkit-mask-size: 100%;
192
+ -webkit-mask-position: 0;
193
+ -webkit-mask-repeat: no-repeat;
194
+ }
195
+ `,fe=r`
196
+ <div class="Border" ${i("Border")}></div>
197
+ `;let ve=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="${le(this.width)}" height="${le(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>`;Et(this.Border)({width:le(this.width),height:le(this.height),"border-radius":le(o),"background-image":this.color,"-webkit-mask-image":`url(data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)})`})}};Ot([s],ve.prototype,"Border",void 0),Ot([e({converter:a})],ve.prototype,"width",void 0),Ot([e({converter:a})],ve.prototype,"height",void 0),Ot([e],ve.prototype,"color",void 0),Ot([e({converter:a})],ve.prototype,"border",void 0),Ot([e({mode:"boolean"})],ve.prototype,"dashed",void 0),Ot([e],ve.prototype,"dasharray",void 0),Ot([e({converter:a})],ve.prototype,"radius",void 0),ve=Ot([o({name:"h-border",styles:pe,template:fe,shadowOptions:{mode:"closed"}})],ve);const ge=t`
198
+ ${re()}
199
+ ${ce("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
+ `,me=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 ye=class extends n{constructor(){super(),this.mode="auto",this.show=!1,ne.case.install([Mt])}showChanged(t,e){null===e||!1===e?Ft(this.Mask)("show"):Rt(this.Mask)("show")}connectedCallback(){super.connectedCallback()}close(){"auto"==this.mode&&(this.show=!1)}};Ot([s],ye.prototype,"Mask",void 0),Ot([e],ye.prototype,"mode",void 0),Ot([e({mode:"boolean"})],ye.prototype,"show",void 0),ye=Ot([o({name:"h-overlay",styles:ge,template:me})],ye);const be=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
+ `,we=r`
352
+ <div class="ArrowWrap">
353
+ <span class="Arrow"></span>
354
+ </div>
355
+ `;let xe=class extends n{constructor(){super(),this.dir="top"}colorChanged(t,e){Et(this)({color:e})}connectedCallback(){super.connectedCallback()}};Ot([e],xe.prototype,"dir",void 0),Ot([e],xe.prototype,"color",void 0),xe=Ot([o({name:"h-arrow",styles:be,template:we,shadowOptions:{mode:"closed"}})],xe);var ke=function(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},Se=function(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},Ce=function(){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}};ke(window,"testPassive",null,o),Se(window,"testPassive",null,o)}}return D(t,[{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,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(U(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&&(Se(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&&(Se(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.")}}]),t}(),Oe=new Ce;function Le(t,e,o){var n=o.value;return o.value=function(t,e){return null===e||!1===e?Oe.enable(document.body):Oe.disable(document.body),n.apply(this,arguments)},o}function Be(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(){}}function $e(t){return t?function(e){if("string"==typeof e)t.removeAttribute(e);else for(var o=0;o<e.length;o++){var n=e[o];t.removeAttribute(n)}}:function(){}}var _e,Ee,Ae=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 D(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}}]),t}(),Ie={path:atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")};function ze(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=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}var Te,Me=r(_e||(_e=A(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)" >\n<div class="ConflateWrap">\n <div class="VideoWrap">\n <video ',' autoplay muted><source src="','/download/img/collect/conflate.mp4" /></video>\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 ','\n <div>\n <img src="','/download/img/collect/icon02.png"/>\n <p>ihaier新年头像框</p>\n </div>\n <div>\n <img src="','/download/img/collect/icon03.png"/>\n <p>2.18抽奖次数+1</p>\n </div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n <p>奖品可在【优惠券】中查看</p><p>ihaier新年头像框将通过您的ihaier发放</p>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),i("video"),Ie.path,i("contentWrap"),Ie.path,l((function(t){return t.isCoupon}),r(Ee||(Ee=A(['\n <div>\n <img src="','/download/img/collect/icon01.png"/>\n <p>三翼鸟场景券</p>\n </div>\n '])),Ie.path)),Ie.path,Ie.path,(function(t){return t.accept()}),Ie.path),Pe=function(t){L(o,n);var e=ze(o);function o(){var t;return p(this,o),(t=e.call(this)).isCoupon=!1,t.isClick=!1,kt.case.install([ye]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?$e(this.Overlay)("show"):Be(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),this.resize(),setTimeout((function(){Ae.instance.add(t.contentWrap,"show")}),2e3),setTimeout((function(){t.isClick=!0}),4e3)}},{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.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){}}]),o}();T([s],Pe.prototype,"Overlay",void 0),T([s],Pe.prototype,"video",void 0),T([s],Pe.prototype,"contentWrap",void 0),T([e({mode:"boolean"})],Pe.prototype,"show",void 0),T([Le],Pe.prototype,"showChanged",null),Pe=T([o({name:"g-collect-conflate",template:Me,styles:Ct,shadowOptions:{mode:"closed"}})],Pe);var je=t(Te||(Te=A(["\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.ListWrap div.Card{\nwidth:14.9333333333vw;\nheight:20.266666666vw;\nmargin: 0 2.666666666vw 0 0;\n}\n.ListWrap 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 .Tips{position:absolute;left:0;top:-5.5vw;z-index:6; width:35.2vw;}\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}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),wt(["PoiNo"]));class Re extends n{constructor(){super(...arguments),this.disabled=!1}colorChanged(t,e){Et(this)({color:e})}sizeChanged(t,e){for(let t=0;t<this.children.length;t++){Rt(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?Rt(o)("first"):t+1==e&&Rt(o)("last"),Rt(o)("index",String(t))}t&&t()}}}Ot([e],Re.prototype,"color",void 0),Ot([e],Re.prototype,"size",void 0),Ot([e({mode:"boolean"})],Re.prototype,"disabled",void 0);const Fe=t`
356
+ ${re()}
357
+ ${ce("flex")}
358
+ :host {
359
+ position: relative;
360
+ width: 100%;
361
+ }
362
+ :host .Badge{
363
+ top: 0;
364
+ right: 0;
365
+ transform: translate(50%,-50%);
366
+ transform-origin: 100% 0%;
367
+ direction: ltr;
368
+ z-index: auto;
369
+ min-width: 18px;
370
+ height: 18px;
371
+ padding: 0;
372
+ color: #fff;
373
+ font-weight: 400;
374
+ font-size: 12px;
375
+ line-height: 18px;
376
+ white-space: nowrap;
377
+ background: #ff4d4f;
378
+ border-radius: 100px;
379
+ box-shadow: 0 0 0 1px #fff;
380
+ }
381
+
382
+ :host([suit]) .Badge{
383
+ padding: 0 6px;
384
+ }
385
+
386
+ :host([invalid]) {
387
+ display: inline;
388
+ line-height: inherit;
389
+ vertical-align: baseline;
390
+ }
391
+ :host([invalid]) .Badge{
392
+ z-index: auto;
393
+ width: 10px;
394
+ min-width: 10px;
395
+ height: 10px;
396
+ padding: 0;
397
+ border-radius: 100%;
398
+ box-shadow: 0 0 0 1px #fff;
399
+ vertical-align: bottom;
400
+ }
401
+ .BadgeText {
402
+ margin-left: 8px;
403
+ color: #000000;
404
+ font-size: 14px;
405
+ }
406
+ :host([standAlone]) {
407
+ display: inline;
408
+ line-height: inherit;
409
+ vertical-align: baseline;
410
+ margin-right: 20px
411
+ }
412
+ :host([invalid]) .Badge,
413
+ :host([standAlone]) .Badge{
414
+ ${oe(["PosR","DisInBlock"])}
415
+ }
416
+ :host([dot]) {
417
+ display: flex;
418
+ }
419
+ :host([dot]) .Badge{
420
+ top: 0;
421
+ right: 0;
422
+ display: inline;
423
+ z-index: auto;
424
+ width: 6px;
425
+ min-width: 6px;
426
+ height: 6px;
427
+ padding: 0;
428
+ background: #ff4d4f;
429
+ border-radius: 100%;
430
+ box-shadow: 0 0 0 1px #fff;
431
+ transform: translate(0,0);
432
+ }
433
+ :host([size="large"]) .Badge{
434
+ min-width: 24px;
435
+ height: 24px;
436
+ font-size: 14px;
437
+ line-height: 24px;
438
+ }
439
+ :host([size="small"]) .Badge{
440
+ min-width: 16px;
441
+ height: 16px;
442
+ font-size: 10px;
443
+ line-height: 16px;
444
+ }
445
+ `,De=r`
446
+ <template>
447
+ <span class="Badge PosA TC" style="${t=>t.badgeStyle}">${t=>t.count}</span>
448
+ ${l((t=>t.text),r`<span class="BadgeText">${t=>t.text}</span>`)}
449
+ </template>
450
+ `;let He=class extends Re{countChanged(t,e){String(e).length>1?Rt(this)("suit"):Ft(this)("suit")}connectedCallback(){if(super.connectedCallback(),null!=this.count&&null!=this.count||this.dot)Ft(this)("invalid");else switch(Rt(this)("invalid"),this.status){case"success":this.badgeStyle=`background: ${ee["--successColor"]}`;break;case"error":this.badgeStyle=`background: ${ee["--errorColor"]}`;break;case"warning":this.badgeStyle=`background: ${ee["--warningColor"]}`;break;case"processing":this.badgeStyle=`background: ${ee["--primaryColor"]}`;break;case"default":return void(this.badgeStyle=`background: ${ee["--colorNeutral5"]}`)}}};var Ne,We,Ve;function Ye(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=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}Ot([e],He.prototype,"count",void 0),Ot([e({mode:"boolean"})],He.prototype,"dot",void 0),Ot([e],He.prototype,"badgeStyle",void 0),Ot([e({mode:"boolean"})],He.prototype,"standAlone",void 0),Ot([e],He.prototype,"status",void 0),Ot([e],He.prototype,"text",void 0),He=Ot([o({name:"h-badge",styles:Fe,template:De,shadowOptions:{mode:"closed"}})],He);var Ge,Je=r(Ne||(Ne=A(['\n<section class="ListWrap">\n <div class="Synthesis" @click="','">\n ','\n <img class="Img" src="','/download/img/collect/synthesis.png" />\n </div>\n ',"\n</section>\n"])),(function(t){return t.SynthesisFn()}),l((function(t){return t.isVideo}),r(We||(We=A(['<video autoplay muted loop><source src="','/download/img/collect/hecheng.mp4" /></video><img class="Tips" src="','/download/img/collect/tips.png" />'])),Ie.path,Ie.path)),Ie.path,c((function(t){return t.cardItem}),r(Ve||(Ve=A(['<div class="Card"><h-badge count="6"></h-badge><img src="','"/></div>'])),(function(t){return t.grey})),{positioning:!0})),Xe=function(t){L(o,n);var e=Ye(o);function o(){var t;return p(this,o),(t=e.call(this)).isVideo=!0,t.cardItem=Array.from({length:4},(function(t,e){return{card:"".concat(Ie.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(Ie.path,"/download/img/collect/small0").concat(e+1,"-1.png")}})),kt.case.install([He]),t}return y(o,[{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"update",value:function(t){}}]),o}();T([s],Xe.prototype,"isVideo",void 0),T([s],Xe.prototype,"cardItem",void 0),Xe=T([o({name:"g-collect-list",template:Je,styles:je,shadowOptions:{mode:"closed"}})],Xe);var Ue,qe,Ke,Ze=t(Ge||(Ge=A(["\n","\n:host{text-align:center;}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {","}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.PrizeWrap .Content{position:relative; z-index:6;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.Button{position:absolute;width:100%;bottom:15vw;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"])),St(),wt(["PoiNo"]));function Qe(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=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}var to,eo=r(Ue||(Ue=A(["\n<h-overlay ",' mode=\'handle\'>\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <video ',' autoplay muted><source src="','/download/img/collect/draw01.mp4" /></video>\n </div>\n\n <div ',' class="Content transit">\n <div class="Title">\n <div>\n ',"\n </div>\n <div>\n ",'\n </div> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),i("video"),Ie.path,i("contentWrap"),l((function(t){return 1==t.type}),r(qe||(qe=A(['<img src="','/download/img/collect/title01.png"/><p class="Subtitle">再集',"张不同卡面即可合成场景卡</p>"])),Ie.path,(function(t){return t.number}))),l((function(t){return 2==t.type}),r(Ke||(Ke=A(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">2000元食联网优惠券</p>'])),Ie.path)),(function(t){return t.accept()}),Ie.path),oo=function(t){L(o,n);var e=Qe(o);function o(){var t;return p(this,o),(t=e.call(this)).isClick=!1,t.type=1,t.number=1,kt.case.install([ye]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?$e(this.Overlay)("show"):Be(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),this.resize(),setTimeout((function(){Ae.instance.add(t.contentWrap,"show")}),2e3),setTimeout((function(){t.isClick=!0}),4e3)}},{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.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){}}]),o}();T([s],oo.prototype,"Overlay",void 0),T([s],oo.prototype,"video",void 0),T([s],oo.prototype,"contentWrap",void 0),T([e],oo.prototype,"type",void 0),T([e({converter:a})],oo.prototype,"number",void 0),T([e({mode:"boolean"})],oo.prototype,"show",void 0),T([Le],oo.prototype,"showChanged",null),oo=T([o({name:"g-collect-prize",template:eo,styles:Ze,shadowOptions:{mode:"closed"}})],oo);var no,ro,io,so,ao=t(to||(to=A(["\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}\n.Nav {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 50%;\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"])));function lo(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=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}var co=r(no||(no=A(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n ","\n <span>\n ","\n </span>\n</section>\n"])),l((function(t){return t.active>0}),r(ro||(ro=A(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(t){return t.setActive("l")}),Ie.path)),c((function(t){return t.cardItem}),r(io||(io=A(['<div class="CardContainer ','" style="','">\n <img src="','"/>\n </div>'])),(function(t,e){return e.parent.classFn(e.index)}),(function(t,e){return e.parent.styleFn(e.index)}),(function(t){return t.grey})),{positioning:!0}),l((function(t){return t.active<t.cardItem.length-1}),r(so||(so=A(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(t){return t.setActive("r")}),Ie.path))),uo=function(t){L(o,n);var e=lo(o);function o(){var t;return p(this,o),(t=e.call(this)).cardItem=Array.from({length:5},(function(t,e){return{card:"".concat(Ie.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(Ie.path,"/download/img/collect/card0").concat(e+1,"-1.png")}})),t.active=0,t.MAX_VISIBILITY=1,t}return y(o,[{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{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:"update",value:function(t){}}]),o}();T([s],uo.prototype,"cardItem",void 0),T([s],uo.prototype,"active",void 0),uo=T([o({name:"g-collect-swipe",template:co,styles:ao,shadowOptions:{mode:"closed"}})],uo);export{Pe as HiCollectConflate,Xe as HiCollectList,oo as HiCollectPrize,uo as HiCollectSwipe};
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@gkits/collect",
3
+ "version": "0.0.1",
4
+ "description": "> TODO: description",
5
+ "author": "liulina0228",
6
+ "homepage": "",
7
+ "license": "ISC",
8
+ "main": "dist/index.js",
9
+ "directories": {
10
+ "lib": "lib",
11
+ "test": "__tests__"
12
+ },
13
+ "files": [
14
+ "dist/*",
15
+ "README.md",
16
+ "package.json"
17
+ ],
18
+ "scripts": {
19
+ "tsc": "node ./copyUtil.js && tsc -b ./tsconfig.types.json && tsc-alias -p ./tsconfig.types.json",
20
+ "build": "rm -rf dist && rollup -c && npm run tsc",
21
+ "release:major": "npm run release -- --release-as major",
22
+ "release:minor": "npm run release -- --release-as minor",
23
+ "release:patch": "npm run release -- --release-as patch",
24
+ "release": "npm run build && standard-version",
25
+ "test": ""
26
+ },
27
+ "dependencies": {
28
+ "@hikits/ui": "0.0.30",
29
+ "hi-element": "^0.0.35"
30
+ },
31
+ "devDependencies": {
32
+ "@babel/core": "^7.5.5",
33
+ "@babel/plugin-external-helpers": "^7.18.6",
34
+ "@babel/plugin-proposal-class-properties": "^7.16.7",
35
+ "@babel/plugin-proposal-decorators": "^7.16.5",
36
+ "@babel/plugin-transform-runtime": "^7.5.5",
37
+ "@babel/preset-env": "^7.5.5",
38
+ "@babel/preset-typescript": "^7.16.5",
39
+ "@babel/runtime": "^7.5.5",
40
+ "@rollup/plugin-alias": "^4.0.3",
41
+ "@rollup/plugin-babel": "^5.3.0",
42
+ "@rollup/plugin-commonjs": "^21.0.0",
43
+ "@rollup/plugin-node-resolve": "^13.0.5",
44
+ "@rollup/plugin-typescript": "^8.3.0",
45
+ "@types/node": "^14.14.31",
46
+ "lint-staged": "^10.5.4",
47
+ "rollup": "^2.73.0",
48
+ "rollup-plugin-dynamic-import-variables": "^1.1.0",
49
+ "rollup-plugin-filesize": "9.1.2",
50
+ "rollup-plugin-import-css": "^3.0.2",
51
+ "rollup-plugin-terser": "^7.0.2",
52
+ "standard-version": "^9.3.0",
53
+ "tsc-alias": "^1.7.0",
54
+ "typescript": "^4.1.5"
55
+ }
56
+ }