ku4web-components 6.5.5 → 6.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. package/angular/index.js +3 -1
  2. package/angular/index.mjs +1 -1
  3. package/dist/cjs/index-1a439af7.js +14 -0
  4. package/dist/cjs/{index-57e2cfa5.js → index-5ea4489d.js} +1 -1
  5. package/dist/cjs/{index-e69a9e98.js → index-f2d8a1e9.js} +19 -12
  6. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +2 -2
  7. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  8. package/dist/cjs/ku4-carousel.cjs.entry.js +3 -3
  9. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  10. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  11. package/dist/cjs/ku4-feature.cjs.entry.js +2 -2
  12. package/dist/cjs/ku4-focus-trap.cjs.entry.js +9 -9
  13. package/dist/cjs/ku4-form.cjs.entry.js +14 -3
  14. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  15. package/dist/cjs/ku4-label.cjs.entry.js +2 -2
  16. package/dist/cjs/ku4-mask.cjs.entry.js +4 -4
  17. package/dist/cjs/ku4-modal.cjs.entry.js +3 -3
  18. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  19. package/dist/cjs/ku4-preview.cjs.entry.js +3 -3
  20. package/dist/cjs/ku4-tab-list.cjs.entry.js +4 -4
  21. package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
  22. package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
  23. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  24. package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
  25. package/dist/cjs/ku4-validation.cjs.entry.js +2 -2
  26. package/dist/cjs/ku4web-components.cjs.js +3 -3
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{shadow-css-42acdd0e.js → shadow-css-dcc70d0c.js} +2 -3
  29. package/dist/cjs/{uid-d533dbb1.js → uid-7f3954c8.js} +1 -1
  30. package/dist/esm/{index-3a223c58.js → index-733be374.js} +19 -12
  31. package/dist/esm/index-77bdf1f1.js +3 -0
  32. package/dist/esm/{index-f9890388.js → index-bb8d5d62.js} +1 -1
  33. package/dist/esm/ku4-carousel-controls.entry.js +2 -2
  34. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  35. package/dist/esm/ku4-carousel.entry.js +3 -3
  36. package/dist/esm/ku4-col.entry.js +1 -1
  37. package/dist/esm/ku4-drawer.entry.js +1 -1
  38. package/dist/esm/ku4-feature.entry.js +2 -2
  39. package/dist/esm/ku4-focus-trap.entry.js +9 -9
  40. package/dist/esm/ku4-form.entry.js +14 -3
  41. package/dist/esm/ku4-grid.entry.js +1 -1
  42. package/dist/esm/ku4-label.entry.js +2 -2
  43. package/dist/esm/ku4-mask.entry.js +4 -4
  44. package/dist/esm/ku4-modal.entry.js +3 -3
  45. package/dist/esm/ku4-panel.entry.js +1 -1
  46. package/dist/esm/ku4-preview.entry.js +3 -3
  47. package/dist/esm/ku4-tab-list.entry.js +4 -4
  48. package/dist/esm/ku4-tab-panel.entry.js +3 -3
  49. package/dist/esm/ku4-tab.entry.js +3 -3
  50. package/dist/esm/ku4-table.entry.js +1 -1
  51. package/dist/esm/ku4-tooltip.entry.js +2 -2
  52. package/dist/esm/ku4-validation.entry.js +2 -2
  53. package/dist/esm/ku4web-components.js +3 -3
  54. package/dist/esm/loader.js +3 -3
  55. package/dist/esm/{shadow-css-38a1326b.js → shadow-css-6763030b.js} +2 -3
  56. package/dist/esm/{uid-fbebccfd.js → uid-d593801c.js} +1 -1
  57. package/dist/esm-es5/index-733be374.js +2 -0
  58. package/dist/esm-es5/index-77bdf1f1.js +1 -0
  59. package/dist/esm-es5/{index-f9890388.js → index-bb8d5d62.js} +1 -1
  60. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  61. package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
  62. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  63. package/dist/esm-es5/ku4-col.entry.js +1 -1
  64. package/dist/esm-es5/ku4-drawer.entry.js +1 -1
  65. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  66. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  67. package/dist/esm-es5/ku4-form.entry.js +1 -1
  68. package/dist/esm-es5/ku4-grid.entry.js +1 -1
  69. package/dist/esm-es5/ku4-label.entry.js +1 -1
  70. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  71. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  72. package/dist/esm-es5/ku4-panel.entry.js +1 -1
  73. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  74. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  75. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  76. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  77. package/dist/esm-es5/ku4-table.entry.js +1 -1
  78. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  79. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  80. package/dist/esm-es5/ku4web-components.js +1 -1
  81. package/dist/esm-es5/loader.js +1 -1
  82. package/dist/esm-es5/shadow-css-6763030b.js +12 -0
  83. package/dist/esm-es5/uid-d593801c.js +1 -0
  84. package/dist/ku4web-components/ku4web-components.esm.js +1 -1
  85. package/dist/ku4web-components/ku4web-components.js +2 -1
  86. package/dist/ku4web-components/{p-e7d401cc.system.entry.js → p-0b394531.system.entry.js} +1 -1
  87. package/dist/ku4web-components/{p-536d6073.entry.js → p-0c30e23a.entry.js} +1 -1
  88. package/dist/ku4web-components/{p-4a012d6d.entry.js → p-125bd18e.entry.js} +1 -1
  89. package/dist/ku4web-components/p-14752b72.system.js +1 -0
  90. package/dist/ku4web-components/{p-09fb8c34.entry.js → p-1ebacbe9.entry.js} +1 -1
  91. package/dist/ku4web-components/{p-5d39e051.system.entry.js → p-2d695081.system.entry.js} +1 -1
  92. package/dist/ku4web-components/{p-e31755cd.system.entry.js → p-30c68717.system.entry.js} +1 -1
  93. package/dist/ku4web-components/{p-9e2f37cc.entry.js → p-3c2f545a.entry.js} +1 -1
  94. package/dist/ku4web-components/{p-1a09ae2c.entry.js → p-45e76c86.entry.js} +1 -1
  95. package/dist/ku4web-components/p-475a4157.system.js +1 -0
  96. package/dist/ku4web-components/{p-be0d8b6a.entry.js → p-4d02829b.entry.js} +1 -1
  97. package/dist/ku4web-components/{p-a7ab7c23.system.entry.js → p-4d4a49a4.system.entry.js} +1 -1
  98. package/dist/ku4web-components/p-52645384.js +2 -0
  99. package/dist/ku4web-components/{p-a13796dc.system.entry.js → p-543fea51.system.entry.js} +1 -1
  100. package/dist/ku4web-components/p-563d1517.system.js +1 -0
  101. package/dist/ku4web-components/{p-72be654e.system.entry.js → p-5a024700.system.entry.js} +1 -1
  102. package/dist/ku4web-components/p-5a54ccf4.js +1 -0
  103. package/dist/ku4web-components/{p-507093a6.entry.js → p-5ae82777.entry.js} +1 -1
  104. package/dist/ku4web-components/{p-eed33b36.entry.js → p-5c27da12.entry.js} +1 -1
  105. package/dist/ku4web-components/{p-4da33ea7.entry.js → p-6d2cd66b.entry.js} +1 -1
  106. package/dist/ku4web-components/{p-2681e152.system.entry.js → p-6d37f778.system.entry.js} +1 -1
  107. package/dist/ku4web-components/{p-ec165afd.system.entry.js → p-77105e17.system.entry.js} +1 -1
  108. package/dist/ku4web-components/{p-6515c623.system.entry.js → p-80624e03.system.entry.js} +1 -1
  109. package/dist/ku4web-components/{p-5e628256.entry.js → p-8246983c.entry.js} +1 -1
  110. package/dist/ku4web-components/{p-cbee5388.system.entry.js → p-83add0bd.system.entry.js} +1 -1
  111. package/dist/ku4web-components/p-85c36a3e.system.js +13 -0
  112. package/dist/ku4web-components/{p-23b35ab3.system.entry.js → p-85fb65c1.system.entry.js} +1 -1
  113. package/dist/ku4web-components/{p-ff9db3e7.entry.js → p-8cb960db.entry.js} +1 -1
  114. package/dist/ku4web-components/{p-d0f3bec4.js → p-905e4aac.js} +1 -1
  115. package/dist/ku4web-components/{p-13c90d3d.system.entry.js → p-961a30c5.system.entry.js} +1 -1
  116. package/dist/ku4web-components/p-a110d244.js +1 -0
  117. package/dist/ku4web-components/{p-7a3871e3.entry.js → p-ab80d126.entry.js} +1 -1
  118. package/dist/ku4web-components/{p-c760ec1e.system.entry.js → p-b3083404.system.entry.js} +1 -1
  119. package/dist/ku4web-components/{p-2faea8a9.system.entry.js → p-b6d5f681.system.entry.js} +1 -1
  120. package/dist/ku4web-components/{p-0a68e802.entry.js → p-bd1c1486.entry.js} +1 -1
  121. package/dist/ku4web-components/{p-c5448cc1.system.entry.js → p-bf5cd1f9.system.entry.js} +1 -1
  122. package/dist/ku4web-components/{p-dfc33643.system.entry.js → p-bf64d160.system.entry.js} +1 -1
  123. package/dist/ku4web-components/{p-7bac5d20.system.entry.js → p-c7d12bf2.system.entry.js} +1 -1
  124. package/dist/ku4web-components/{p-2f1425ac.entry.js → p-c99dc027.entry.js} +1 -1
  125. package/dist/ku4web-components/{p-c6a2f4ba.entry.js → p-cc0eb4db.entry.js} +1 -1
  126. package/dist/ku4web-components/p-d3fdb931.entry.js +1 -0
  127. package/dist/ku4web-components/{p-f791cd06.entry.js → p-d6a448ca.entry.js} +1 -1
  128. package/dist/ku4web-components/{p-991d53c6.entry.js → p-ddd266bf.entry.js} +1 -1
  129. package/dist/ku4web-components/{p-6459c75c.system.entry.js → p-e4f68eae.system.entry.js} +1 -1
  130. package/dist/ku4web-components/p-e8b35187.js +1 -0
  131. package/dist/ku4web-components/{p-27d5ad45.system.entry.js → p-ea032bb1.system.entry.js} +1 -1
  132. package/dist/ku4web-components/{p-973be48d.system.entry.js → p-eaa6e688.system.entry.js} +1 -1
  133. package/dist/ku4web-components/{p-f8a2bf9b.system.js → p-eb21757a.system.js} +1 -1
  134. package/dist/ku4web-components/{p-1ebea98a.entry.js → p-eb27616a.entry.js} +1 -1
  135. package/dist/ku4web-components/{p-cfd1b93c.entry.js → p-eb4821f6.entry.js} +1 -1
  136. package/dist/ku4web-components/p-f58c2ed4.system.js +2 -0
  137. package/dist/types/components/ku4-form/ku4-form.d.ts +4 -0
  138. package/dist/types/components.d.ts +31 -7
  139. package/package.json +50 -42
  140. package/react/index.js +3 -1
  141. package/react/index.mjs +1 -1
  142. package/vue/index.js +3 -1
  143. package/vue/index.mjs +1 -1
  144. package/vue3/index.js +3 -1
  145. package/vue3/index.mjs +1 -1
  146. package/dist/cjs/index-b46d22c6.js +0 -14
  147. package/dist/esm/index-919b08e6.js +0 -3
  148. package/dist/esm-es5/index-3a223c58.js +0 -1
  149. package/dist/esm-es5/index-919b08e6.js +0 -1
  150. package/dist/esm-es5/shadow-css-38a1326b.js +0 -12
  151. package/dist/esm-es5/uid-fbebccfd.js +0 -1
  152. package/dist/ku4web-components/p-016a7b4e.js +0 -1
  153. package/dist/ku4web-components/p-018d598f.entry.js +0 -1
  154. package/dist/ku4web-components/p-16f6027a.js +0 -1
  155. package/dist/ku4web-components/p-2ee63f57.system.js +0 -1
  156. package/dist/ku4web-components/p-50ea6684.js +0 -1
  157. package/dist/ku4web-components/p-c38c9cd1.system.js +0 -1
  158. package/dist/ku4web-components/p-cbb6fb91.js +0 -1
  159. package/dist/ku4web-components/p-e7cd2284.system.js +0 -13
  160. package/dist/ku4web-components/p-e9770900.system.js +0 -1
  161. package/dist/ku4web-components/p-fd3d3f56.system.js +0 -1
package/vue3/index.mjs CHANGED
@@ -1 +1 @@
1
- class t{static isNull(t){return null===t}static isEmpty(r){return t.isString(r)&&""===r||t.isArray(r)&&r.length<1||t.isObjectLiteral(r)&&Object.keys(r).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(r){return!(t.isUndefined(r)||t.isNull(r))}static isNullOrEmpty(r){return!t.exists(r)||t.isEmpty(r)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(r){return t.isBool(r)&&!0===r}static isFalse(r){return t.isBool(r)&&!1===r}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(r){try{return"AsyncFunction"===Object.getPrototypeOf(r).constructor.name||t.isFunction(r)&&/^async/.test(r.toString())||t.isFunction(r().then)}catch(t){return!1}}static isPromise(t){return t instanceof Promise}static isObject(r){return t.exists(r)&&"object"==typeof r&&!(t.isBool(r)||t.isNumber(r)||t.isDate(r)||t.isArray(r)||t.isString(r)||t.isFunction(r))}static isObjectLiteral(r){return t.isObject(r)&&r.constructor==={}.constructor}static isTruthy(r){return!t.isFalsy(r)}static isFalsy(r){return t.isZero(r)||t.isFalse(r)||t.isNullOrEmpty(r)||isNaN(r)}}function r(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/^[\s\n]*/,""):r}function e(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/[\s\n]*$/,""):r}function n(t,r=0){const e=Math.pow(10,-r);return Math.round(parseFloat((t*e).toFixed(Math.abs(r))))/e}function i(t,r=0){return n(t+5*Math.pow(10,r-1),r)}function s(t,r=0){return 0===t?0:n(t-5*Math.pow(10,r-1),r)}function a(t){const r=(t,e=0,n=1)=>0<t?r(--t,n,e+n):e;return r(t)}function u(t){let r=0,e=1,n=0;for(;t>1;)n=r,r=e,e+=n,t--;return t<1?r:e}function o(t){const r=isNaN(parseInt(t))||t<0||t>24?24:t,e=Math.random().toString().substring(2),n=Math.random().toString().substring(2);return e.concat(n).substring(0,r)}function c(){return function t(r){return r?(r^16*Math.random()>>r/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}Object.freeze({__proto__:null,build:function(...t){return"".concat(...t)},chunk:function(r,e=0){if(!t.isString(r)||Number.isNaN(e)||e<0)return[];if(e<r.length){let t=0;const n=e||r.length,i=[];for(;t<r.length;)i.push(r.slice(t,t+n)),t+=n;return i}return[r]},format:function(t,...r){return r.reduce(((t,r,e)=>t.replace(new RegExp(`\\{${e}\\}`,"g"),r&&r.toString?r.toString():r)),t)},trim:function(t){return r(e(t))},trimStart:r,trimEnd:e,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(r,e,n="_"){return t.isFunction(e)?e(r):t.isString(e)&&r.split("").reduce(((t,r)=>t.replace(new RegExp(n),r)),e)},unmask:function(r,e,n="_"){const i=new RegExp(n);return t.isFunction(e)?e(r):t.isString(e)&&r.split("").reduce(((t,r,n)=>i.test(r)||!i.test(e.charAt(n))&&e.charAt(n)===r?t:t+r),"")}}),Object.freeze({__proto__:null,random:function(t=0,r=1){return Math.random()*(r-t)+t},round:n,roundUp:i,roundDown:s,roundTowardZero:function(t,r=0){return t<0?i(t,r):s(t,r)},gcd:function t(r,e){return 0===e?Math.abs(r):t(e,r%e)},fib:a,fib2:u,fibArray:function(t){return Array(t).fill(0).map((()=>a(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>u(--t))).reverse()},tryParseInt:function(t,r=0){const e=parseInt(t);return Number.isNaN(e)?r:e},tryParseFloat:function(t,r=0){const e=parseFloat(t);return Number.isNaN(e)?r:e}}),Object.freeze({__proto__:null,uid:o,uuid:c,suid:function(){return Symbol(o())},suuid:function(){return Symbol(c())}}),Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});class l{static isNull(t){return null===t}static isEmpty(t){return l.isString(t)&&""===t||l.isArray(t)&&t.length<1||l.isObjectLiteral(t)&&Object.keys(t).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(t){return!(l.isUndefined(t)||l.isNull(t))}static isNullOrEmpty(t){return!l.exists(t)||l.isEmpty(t)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(t){return l.isBool(t)&&!0===t}static isFalse(t){return l.isBool(t)&&!1===t}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(t){try{return"AsyncFunction"===Object.getPrototypeOf(t).constructor.name||l.isFunction(t)&&/^async/.test(t.toString())||l.isFunction(t().then)}catch(t){return!1}}static isPromise(t){return t instanceof Promise}static isObject(t){return l.exists(t)&&"object"==typeof t&&!(l.isBool(t)||l.isNumber(t)||l.isDate(t)||l.isArray(t)||l.isString(t)||l.isFunction(t))}static isObjectLiteral(t){return l.isObject(t)&&t.constructor==={}.constructor}static isTruthy(t){return!l.isFalsy(t)}static isFalsy(t){return l.isZero(t)||l.isFalse(t)||l.isNullOrEmpty(t)||isNaN(t)}}function h(...t){return"".concat(...t)}function f(t,...r){return r.reduce(((t,r,e)=>t.replace(new RegExp(`\\{${e}\\}`,"g"),r&&r.toString?r.toString():r)),t)}function p(t){return d(y(t))}function d(t){return l.exists(t)&&l.isFunction(t.replace)?t.replace(/^[\s\n]*/,""):t}function y(t){return l.exists(t)&&l.isFunction(t.replace)?t.replace(/[\s\n]*$/,""):t}function m(t,r){try{return t()}catch{return r}}let g;Object.freeze({__proto__:null,build:h,chunk:function(t,r=0){if(!l.isString(t)||Number.isNaN(r)||r<0)return[];if(r<t.length){let e=0;const n=r||t.length,i=[];for(;e<t.length;)i.push(t.slice(e,e+n)),e+=n;return i}return[t]},format:f,trim:p,trimStart:d,trimEnd:y,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(t,r,e="_"){return l.isFunction(r)?r(t):l.isString(r)&&t.split("").reduce(((t,r)=>t.replace(new RegExp(e),r)),r)},unmask:function(t,r,e="_"){const n=new RegExp(e);return l.isFunction(r)?r(t):l.isString(r)&&t.split("").reduce(((t,e,i)=>!n.test(e)&&n.test(r.charAt(i))?t+e:t),"")}}),m.async=async(t,r)=>{try{return await t()}catch{return r}};class b{constructor(t,r,e){if(r<1||r>12)throw new Error("Invalid month at Assert.DayPoint");if(e<1||e>_(r,t))throw new Error("Invalid date at DayPoint");this._value=arguments.length>=3?new Date(t,r-1,e):new Date,this._day=this._value.getDay(),this._date=e,this._month=r,this._year=t}get value(){return this._value}get day(){return this._day}get date(){return this._date}get month(){return this._month}get year(){return this._year}get shortYear(){const t=this._year.toString();return parseInt(t.substr(t.length-2))}get isWeekday(){const t=this._day;return t>0&&t<6}get isWeekend(){return!this.isWeekday}get isLeapYear(){return N(this._year)}get nextDay(){return w(this,1,0,0)}get prevDay(){return w(this,-1,0,0)}get nextMonth(){return w(this,0,1,0)}get prevMonth(){return w(this,0,-1,0)}get nextYear(){return w(this,0,0,1)}get prevYear(){return w(this,0,0,-1)}get firstDayOfMonth(){return new b(this._year,this._month,1)}get lastDayOfMonth(){return new b(this._year,this._month,_(this._month,this._year))}add(t,r,e){function n(t,r,e){let n=t,i=r;for(;i--;)n=n[e];return n}const{abs:i}=Math,s=i(t),a=i(e),u=i(r),o=e<0?"prevDay":"nextDay",c=r<0?"prevMonth":"nextMonth";return n(n(n(this,s,t<0?"prevYear":"nextYear"),u,c),a,o)}isBefore(t){return!(this.isAfter(t)||this.equals(t))}isAfter(t){const r=this._year,e=t.year,n=this._month,i=t.month;return r>e||r===e&&n>i||r===e&&n===i&&this._date>t.date}equals(t){return this._year===t.year&&this._month===t.month&&this._date===t.date}toString(t="mm/dd/yyyy"){const r=/y{3,}/i.test(t)?this._year:this.shortYear,e=this._month,n=this._date,i=/m{2}/i.test(t)&&e<10?"0{1}":"{1}",s=/d{2}/i.test(t)&&n<10?"0{2}":"{2}";return f(t.replace(/y+/gi,"{0}").replace(/m+/gi,i).replace(/d+/gi,s),r,e,n)}toDate(){return this._value}toJson(){return this._value.toJSON()}static canParse(t){return l.isString(t)||l.isNumber(t)||l.isDate(t)?!isNaN(new Date(t).valueOf()):t instanceof b}static parse(t){if(t instanceof b)return t;let r=l.isString(t)?p(t).replace(/T\d{2}:\d{2}:\d{2}(.\d+)?Z/,""):t;if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(r)){const t=r.split("-"),[e]=t;t.push(e),t.shift(),r=t.join("/")}const e=new Date(r);if(!l.exists(r)||Number.isNaN(e.valueOf()))throw new Error(f("Cannot parse value= {0}",r));return new b(e.getFullYear(),e.getMonth()+1,e.getDate())}static tryParse(t){return m((()=>b.parse(t)),null)}static assumeNow(t){g=b.parse(t)}static get today(){return g||b.parse(new Date)}}function _(t,r){return 2===t?N(r)?29:28:t<8&&l.isEven(t)||t>7&&l.isOdd(t)?30:31}function N(t){const r=t.toString().split(/\B/);return parseFloat(h(r[r.length-2],r[r.length-1]))%4==0}function w(t,r,e,n){const i=t.month,s=t.year,a=t.date,u=e,o=n;let c=a+r,l=i+u,h=s+o;if(a+r>_(i,s)&&(c=1,l=i+u+1),a+r<1){const r=t.prevMonth;c=_(r.month,r.year),l=i+u-1}return l>12&&(l=1,h=s+o+1),l<1&&(l=12,h=s+o-1),new b(h,l,c)}function A(t,r=0){const e=Math.pow(10,-r);return Math.round(parseFloat((t*e).toFixed(Math.abs(r))))/e}function F(t,r=0){return A(t+5*Math.pow(10,r-1),r)}function S(t,r=0){return 0===t?0:A(t-5*Math.pow(10,r-1),r)}function v(t){const r=(t,e=0,n=1)=>0<t?r(--t,n,e+n):e;return r(t)}function $(t){let r=0,e=1,n=0;for(;t>1;)n=r,r=e,e+=n,t--;return t<1?r:e}function O(t){const r=isNaN(parseInt(t))||t<0||t>24?24:t,e=Math.random().toString().substring(2),n=Math.random().toString().substring(2);return e.concat(n).substring(0,r)}function z(){return function t(r){return r?(r^16*Math.random()>>r/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}Object.freeze({__proto__:null,random:function(t=0,r=1){return Math.random()*(r-t)+t},round:A,roundUp:F,roundDown:S,roundTowardZero:function(t,r=0){return t<0?F(t,r):S(t,r)},gcd:function t(r,e){return 0===e?Math.abs(r):t(e,r%e)},fib:v,fib2:$,fibArray:function(t){return Array(t).fill(0).map((()=>v(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>$(--t))).reverse()},tryParseInt:function(t,r=0){const e=parseInt(t);return Number.isNaN(e)?r:e},tryParseFloat:function(t,r=0){const e=parseFloat(t);return Number.isNaN(e)?r:e}});var x=Object.freeze({__proto__:null,uid:O,uuid:z,suid:function(){return Symbol(O())},suuid:function(){return Symbol(z())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i}),x.uid(),b.today.nextYear.toDate();const E=t=>new window.FormData(t),M=t=>{const r={};try{E(t).forEach(((t,e)=>{const n=r[e];l.isArray(n)?r[e].push(t):l.exists(n)?r[e]=[r[e],t]:r[e]=t}))}catch(e){[...t.elements].forEach((t=>{const{name:e,type:n,value:i,files:s}=t;if("file"===n)r[e]=s[0];else if("checkbox"===n||"radio"===n)t.checked&&(r[e]=i);else if(t.multiple){const n=[];t.querySelectorAll("option").forEach((t=>t.selected&&n.push(t.value))),r[e]=n.length<2?n[0]:n}else r[e]=i}))}return r};var D=M,j=E;const k=(r,e)=>{if(r&&r.value&&!r.value.__ku4wired__)try{const n=r.value,{submit:i}=n;n.submit=async()=>{const s=D(r.value),a=j(r.value),u=await e(s,a,n);t.isFalse(u)||i.call(r.value)},n.__ku4wired__=!0}catch(t){throw new Error("wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.")}};export{k as wireForm};
1
+ class t{static isNull(t){return null===t}static isEmpty(r){return t.isString(r)&&""===r||t.isArray(r)&&r.length<1||t.isObjectLiteral(r)&&Object.keys(r).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(r){return!(t.isUndefined(r)||t.isNull(r))}static isNullOrEmpty(r){return!t.exists(r)||t.isEmpty(r)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(r){return t.isBool(r)&&!0===r}static isFalse(r){return t.isBool(r)&&!1===r}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(r){try{return"AsyncFunction"===Object.getPrototypeOf(r).constructor.name||t.isFunction(r)&&/^async/.test(r.toString())||t.isFunction(r().then)}catch(t){return!1}}static isPromise(t){return t instanceof Promise}static isObject(r){return t.exists(r)&&"object"==typeof r&&!(t.isBool(r)||t.isNumber(r)||t.isDate(r)||t.isArray(r)||t.isString(r)||t.isFunction(r))}static isObjectLiteral(r){return t.isObject(r)&&r.constructor==={}.constructor}static isTruthy(r){return!t.isFalsy(r)}static isFalsy(r){return t.isZero(r)||t.isFalse(r)||t.isNullOrEmpty(r)||isNaN(r)}}function r(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/^[\s\n]*/,""):r}function e(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/[\s\n]*$/,""):r}function n(t,r=0){const e=Math.pow(10,-r);return Math.round(parseFloat((t*e).toFixed(Math.abs(r))))/e}function i(t,r=0){return n(t+5*Math.pow(10,r-1),r)}function s(t,r=0){return 0===t?0:n(t-5*Math.pow(10,r-1),r)}function a(t){const r=(t,e=0,n=1)=>0<t?r(--t,n,e+n):e;return r(t)}function u(t){let r=0,e=1,n=0;for(;t>1;)n=r,r=e,e+=n,t--;return t<1?r:e}function o(t){const r=isNaN(parseInt(t))||t<0||t>24?24:t,e=Math.random().toString().substring(2),n=Math.random().toString().substring(2);return e.concat(n).substring(0,r)}function c(){return function t(r){return r?(r^16*Math.random()>>r/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}Object.freeze({__proto__:null,build:function(...t){return"".concat(...t)},chunk:function(r,e=0){if(!t.isString(r)||Number.isNaN(e)||e<0)return[];if(e<r.length){let t=0;const n=e||r.length,i=[];for(;t<r.length;)i.push(r.slice(t,t+n)),t+=n;return i}return[r]},format:function(t,...r){return r.reduce(((t,r,e)=>t.replace(new RegExp(`\\{${e}\\}`,"g"),r&&r.toString?r.toString():r)),t)},trim:function(t){return r(e(t))},trimStart:r,trimEnd:e,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(r,e,n="_"){return t.isFunction(e)?e(r):t.isString(e)&&r.split("").reduce(((t,r)=>t.replace(new RegExp(n),r)),e)},unmask:function(r,e,n="_"){const i=new RegExp(n);return t.isFunction(e)?e(r):t.isString(e)&&r.split("").reduce(((t,r,n)=>!i.test(r)&&i.test(e.charAt(n))?t+r:t),"")}}),Object.freeze({__proto__:null,random:function(t=0,r=1){return Math.random()*(r-t)+t},round:n,roundUp:i,roundDown:s,roundTowardZero:function(t,r=0){return t<0?i(t,r):s(t,r)},gcd:function t(r,e){return 0===e?Math.abs(r):t(e,r%e)},fib:a,fib2:u,fibArray:function(t){return Array(t).fill(0).map((()=>a(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>u(--t))).reverse()},tryParseInt:function(t,r=0){const e=parseInt(t);return Number.isNaN(e)?r:e},tryParseFloat:function(t,r=0){const e=parseFloat(t);return Number.isNaN(e)?r:e}}),Object.freeze({__proto__:null,uid:o,uuid:c,suid:function(){return Symbol(o())},suuid:function(){return Symbol(c())}}),Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/_:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?_]+=[^=?_]*(&[^=?_]+=[^=?_]*)*(_.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});class l{static isNull(t){return null===t}static isEmpty(t){return l.isString(t)&&""===t||l.isArray(t)&&t.length<1||l.isObjectLiteral(t)&&Object.keys(t).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(t){return!(l.isUndefined(t)||l.isNull(t))}static isNullOrEmpty(t){return!l.exists(t)||l.isEmpty(t)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(t){return l.isBool(t)&&!0===t}static isFalse(t){return l.isBool(t)&&!1===t}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(t){try{return"AsyncFunction"===Object.getPrototypeOf(t).constructor.name||l.isFunction(t)&&/^async/.test(t.toString())||l.isFunction(t().then)}catch(t){return!1}}static isPromise(t){return t instanceof Promise}static isObject(t){return l.exists(t)&&"object"==typeof t&&!(l.isBool(t)||l.isNumber(t)||l.isDate(t)||l.isArray(t)||l.isString(t)||l.isFunction(t))}static isObjectLiteral(t){return l.isObject(t)&&t.constructor==={}.constructor}static isTruthy(t){return!l.isFalsy(t)}static isFalsy(t){return l.isZero(t)||l.isFalse(t)||l.isNullOrEmpty(t)||isNaN(t)}}function h(...t){return"".concat(...t)}function f(t,...r){return r.reduce(((t,r,e)=>t.replace(new RegExp(`\\{${e}\\}`,"g"),r&&r.toString?r.toString():r)),t)}function p(t){return d(y(t))}function d(t){return l.exists(t)&&l.isFunction(t.replace)?t.replace(/^[\s\n]*/,""):t}function y(t){return l.exists(t)&&l.isFunction(t.replace)?t.replace(/[\s\n]*$/,""):t}function m(t,r){try{return t()}catch{return r}}let g;Object.freeze({__proto__:null,build:h,chunk:function(t,r=0){if(!l.isString(t)||Number.isNaN(r)||r<0)return[];if(r<t.length){let e=0;const n=r||t.length,i=[];for(;e<t.length;)i.push(t.slice(e,e+n)),e+=n;return i}return[t]},format:f,trim:p,trimStart:d,trimEnd:y,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(t,r,e="_"){return l.isFunction(r)?r(t):l.isString(r)&&t.split("").reduce(((t,r)=>t.replace(new RegExp(e),r)),r)},unmask:function(t,r,e="_"){const n=new RegExp(e);return l.isFunction(r)?r(t):l.isString(r)&&t.split("").reduce(((t,e,i)=>!n.test(e)&&n.test(r.charAt(i))?t+e:t),"")}}),m.async=async(t,r)=>{try{return await t()}catch{return r}};class _{constructor(t,r,e){if(r<1||r>12)throw new Error("Invalid month at Assert.DayPoint");if(e<1||e>b(r,t))throw new Error("Invalid date at DayPoint");this._value=arguments.length>=3?new Date(t,r-1,e):new Date,this._day=this._value.getDay(),this._date=e,this._month=r,this._year=t}get value(){return this._value}get day(){return this._day}get date(){return this._date}get month(){return this._month}get year(){return this._year}get shortYear(){const t=this._year.toString();return parseInt(t.substr(t.length-2))}get isWeekday(){const t=this._day;return t>0&&t<6}get isWeekend(){return!this.isWeekday}get isLeapYear(){return N(this._year)}get nextDay(){return w(this,1,0,0)}get prevDay(){return w(this,-1,0,0)}get nextMonth(){return w(this,0,1,0)}get prevMonth(){return w(this,0,-1,0)}get nextYear(){return w(this,0,0,1)}get prevYear(){return w(this,0,0,-1)}get firstDayOfMonth(){return new _(this._year,this._month,1)}get lastDayOfMonth(){return new _(this._year,this._month,b(this._month,this._year))}add(t,r,e){function n(t,r,e){let n=t,i=r;for(;i--;)n=n[e];return n}const{abs:i}=Math,s=i(t),a=i(e),u=i(r),o=e<0?"prevDay":"nextDay",c=r<0?"prevMonth":"nextMonth";return n(n(n(this,s,t<0?"prevYear":"nextYear"),u,c),a,o)}isBefore(t){return!(this.isAfter(t)||this.equals(t))}isAfter(t){const r=this._year,e=t.year,n=this._month,i=t.month;return r>e||r===e&&n>i||r===e&&n===i&&this._date>t.date}equals(t){return this._year===t.year&&this._month===t.month&&this._date===t.date}toString(t="mm/dd/yyyy"){const r=/y{3,}/i.test(t)?this._year:this.shortYear,e=this._month,n=this._date,i=/m{2}/i.test(t)&&e<10?"0{1}":"{1}",s=/d{2}/i.test(t)&&n<10?"0{2}":"{2}";return f(t.replace(/y+/gi,"{0}").replace(/m+/gi,i).replace(/d+/gi,s),r,e,n)}toDate(){return this._value}toJson(){return this._value.toJSON()}static canParse(t){return l.isString(t)||l.isNumber(t)||l.isDate(t)?!isNaN(new Date(t).valueOf()):t instanceof _}static parse(t){if(t instanceof _)return t;let r=l.isString(t)?p(t).replace(/T\d{2}:\d{2}:\d{2}(.\d+)?Z/,""):t;if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(r)){const t=r.split("-"),[e]=t;t.push(e),t.shift(),r=t.join("/")}const e=new Date(r);if(!l.exists(r)||Number.isNaN(e.valueOf()))throw new Error(f("Cannot parse value= {0}",r));return new _(e.getFullYear(),e.getMonth()+1,e.getDate())}static tryParse(t){return m((()=>_.parse(t)),null)}static assumeNow(t){g=_.parse(t)}static get today(){return g||_.parse(new Date)}}function b(t,r){return 2===t?N(r)?29:28:t<8&&l.isEven(t)||t>7&&l.isOdd(t)?30:31}function N(t){const r=t.toString().split(/\B/);return parseFloat(h(r[r.length-2],r[r.length-1]))%4==0}function w(t,r,e,n){const i=t.month,s=t.year,a=t.date,u=e,o=n;let c=a+r,l=i+u,h=s+o;if(a+r>b(i,s)&&(c=1,l=i+u+1),a+r<1){const r=t.prevMonth;c=b(r.month,r.year),l=i+u-1}return l>12&&(l=1,h=s+o+1),l<1&&(l=12,h=s+o-1),new _(h,l,c)}function A(t,r=0){const e=Math.pow(10,-r);return Math.round(parseFloat((t*e).toFixed(Math.abs(r))))/e}function F(t,r=0){return A(t+5*Math.pow(10,r-1),r)}function S(t,r=0){return 0===t?0:A(t-5*Math.pow(10,r-1),r)}function v(t){const r=(t,e=0,n=1)=>0<t?r(--t,n,e+n):e;return r(t)}function $(t){let r=0,e=1,n=0;for(;t>1;)n=r,r=e,e+=n,t--;return t<1?r:e}function O(t){const r=isNaN(parseInt(t))||t<0||t>24?24:t,e=Math.random().toString().substring(2),n=Math.random().toString().substring(2);return e.concat(n).substring(0,r)}function z(){return function t(r){return r?(r^16*Math.random()>>r/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}Object.freeze({__proto__:null,random:function(t=0,r=1){return Math.random()*(r-t)+t},round:A,roundUp:F,roundDown:S,roundTowardZero:function(t,r=0){return t<0?F(t,r):S(t,r)},gcd:function t(r,e){return 0===e?Math.abs(r):t(e,r%e)},fib:v,fib2:$,fibArray:function(t){return Array(t).fill(0).map((()=>v(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>$(--t))).reverse()},tryParseInt:function(t,r=0){const e=parseInt(t);return Number.isNaN(e)?r:e},tryParseFloat:function(t,r=0){const e=parseFloat(t);return Number.isNaN(e)?r:e}});var x=Object.freeze({__proto__:null,uid:O,uuid:z,suid:function(){return Symbol(O())},suuid:function(){return Symbol(z())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/_:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?_]+=[^=?_]*(&[^=?_]+=[^=?_]*)*(_.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i}),x.uid(),_.today.nextYear.toDate();const E=t=>new window.FormData(t),M=t=>{const r={};try{E(t).forEach(((t,e)=>{const n=r[e];l.isArray(n)?r[e].push(t):l.exists(n)?r[e]=[r[e],t]:r[e]=t}))}catch(e){[...t.elements].forEach((t=>{const{name:e,type:n,value:i,files:s}=t;if("file"===n)r[e]=s[0];else if("checkbox"===n||"radio"===n)t.checked&&(r[e]=i);else if(t.multiple){const n=[];t.querySelectorAll("option").forEach((t=>t.selected&&n.push(t.value))),r[e]=n.length<2?n[0]:n}else r[e]=i}))}return r};var D=M,j=E;const k=(r,e)=>{if(r&&r.value&&!r.value.__ku4wired__)try{const n=r.value,{submit:i}=n;n.submit=async()=>{const s=D(r.value),a=j(r.value),u=await e(s,a,n);t.isFalse(u)||i.call(r.value)},n.__ku4wired__=!0}catch(t){throw new Error("wireForm Error. See https://kodmunki.com/storybook/?path=/docs/form-ku4-form--basic for more information.")}};export{k as wireForm};
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- class t{static isNull(t){return null===t}static isEmpty(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(e){return !(t.isUndefined(e)||t.isNull(e))}static isNullOrEmpty(e){return !t.exists(e)||t.isEmpty(e)}static isArray(t){return Array.isArray(t)}static isBool(t){return "boolean"==typeof t}static isTrue(e){return t.isBool(e)&&!0===e}static isFalse(e){return t.isBool(e)&&!1===e}static isDate(t){return t instanceof Date}static isNumber(t){return ("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return "string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(e){try{return "AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(t){return !1}}static isPromise(t){return t instanceof Promise}static isObject(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))}static isObjectLiteral(e){return t.isObject(e)&&e.constructor==={}.constructor}static isTruthy(e){return !t.isFalsy(e)}static isFalsy(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)}}function e(...t){return "".concat(...t)}function r(t,...e){return e.reduce(((t,e,r)=>t.replace(new RegExp(`\\{${r}\\}`,"g"),e&&e.toString?e.toString():e)),t)}function i(t){return s(n(t))}function s(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/^[\s\n]*/,""):e}function n(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/[\s\n]*$/,""):e}var a=Object.freeze({__proto__:null,build:e,chunk:function(e,r=0){if(!t.isString(e)||Number.isNaN(r)||r<0)return [];if(r<e.length){let t=0;const i=r||e.length,s=[];for(;t<e.length;)s.push(e.slice(t,t+i)),t+=i;return s}return [e]},format:r,trim:i,trimStart:s,trimEnd:n,capitalize:function(t=""){return (t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(e,r,i="_"){return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((t,e)=>t.replace(new RegExp(i),e)),r)},unmask:function(e,r,i="_"){const s=new RegExp(i);return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((t,e,i)=>s.test(e)||!s.test(r.charAt(i))&&r.charAt(i)===e?t:t+e),"")}});var o=t=>t.reduce(((t,e)=>(t.includes(e)||t.push(e),t)),[]);class c{#i;#s;constructor(t){this.#i=t,this.#s=0;}get isEmpty(){return this.length<1}get index(){return this.#s}get length(){return this.#i.length}get current(){return this.#i[this.#s]}get next(){const{length:t}=this;let e=this.#s;return this.#s=e++<t-1?e:0,this.current}get prev(){const{length:t}=this;let e=this.#s;return this.#s=--e<0?t-1:e,this.current}get peekNext(){const{length:t}=this,e=this.#s;return this.#i[e+1<t?e+1:0]}get peekPrev(){const{length:t}=this,e=this.#s;return this.#i[e-1<0?t-1:e-1]}}function h(t,e){try{return t()}catch{return e}}h.async=async(t,e)=>{try{return await t()}catch{return e}};function m(t,e=0){const r=Math.pow(10,-e);return Math.round(parseFloat((t*r).toFixed(Math.abs(e))))/r}function g(t,e=0){return m(t+5*Math.pow(10,e-1),e)}function w(t,e=0){if(0===t)return 0;return m(t-5*Math.pow(10,e-1),e)}function x(t,e=0){return t<0?g(t,e):w(t,e)}function _(t){const e=(t,r=0,i=1)=>0<t?e(--t,i,r+i):r;return e(t)}function v(t){let e=0,r=1,i=0;for(;t>1;)i=e,e=r,r+=i,t--;return t<1?e:r}function b(t,e=0){const r=parseInt(t);return Number.isNaN(r)?e:r}Object.freeze({__proto__:null,random:function(t=0,e=1){return Math.random()*(e-t)+t},round:m,roundUp:g,roundDown:w,roundTowardZero:x,gcd:function t(e,r){return 0===r?Math.abs(e):t(r,e%r)},fib:_,fib2:v,fibArray:function(t){return Array(t).fill(0).map((()=>_(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>v(--t))).reverse()},tryParseInt:b,tryParseFloat:function(t,e=0){const r=parseFloat(t);return Number.isNaN(r)?e:r}});class ${constructor(e=0,r=0){if(!t.isNumber(e)||!t.isNumber(r))throw new Error("Coord requires numeric x and y values");this._x=e,this._y=r;}get x(){return this._x}get y(){return this._y}get value(){return {x:this.x,y:this.y}}get half(){return this.divide(new $(2,2))}get abs(){return new $(Math.abs(this.x),Math.abs(this.y))}equals(t){return this.x===t.x&&this.y===t.y}add(t){return new $(this.x+t.x,this.y+t.y)}subtract(t){return new $(this.x-t.x,this.y-t.y)}multiply(t){return new $(this.x*t.x,this.y*t.y)}divide(t){return new $(this.x/t.x,this.y/t.y)}round(t=0){return new $(m(this.x,t),m(this.y,t))}toString(){return `(${this.x},${this.y})`}static canParse(e){return t.isArray(e)?!(Number.isNaN(e[0])||Number.isNaN(e[1])):t.isObjectLiteral(e)&&"x"in e&&"y"in e?!(Number.isNaN(e.x)||Number.isNaN(e.y)):e instanceof $}static parse(e){return t.exists(e)?e instanceof $?e:t.isArray(e)?new $(e[0],e[1]):t.isObjectLiteral(e)&&t.exists(e.x)&&t.exists(e.y)?new $(e.x,e.y):null:null}static tryParse(t){return h((()=>$.parse(t)),null)}}class F extends ${constructor(t=0,e=0){super(t,e),this._lengthSquared=Math.pow(t,2)+Math.pow(e,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===t&&0===e?0:t/this._magnitude,this._unitNormalY=0===t&&0===e?0:e/this._magnitude;}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new F(this._unitNormalX,this._unitNormalY)}get invert(){return new F(-this.x,-this.y)}get norm(){return new F(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new F(-this.y,this.x)}equals(t){return t instanceof F&&this.x===t.x&&this.y===t.y}add(t){return t instanceof F?new F(this.x+t.x,this.y+t.y):null}dot(t){return t instanceof F?this.x*t.x+this.y*t.y:null}perpendicularAtTo(t){if(!(t instanceof F))return null;const e=t.add(this.projectionOfOnto(t).invert);return new F(e.x,e.y)}projectionOfOnto(t){if(!(t instanceof F))return null;const e=t.normal.scale(this.dot(t.normal));return new F(e.x,e.y)}scale(t){return new F(this.x*t,this.y*t)}unitNormalDot(t){return t instanceof F?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null}reflect(t){if(!(t instanceof F))return null;if(t.isZero)return this;const e=t.normal;return this.add(e.scale(2*e.dot(this)).invert)}round(t=0){return new F(m(this.x,t),m(this.y,t))}}class O extends ${constructor(t,e){super(t,e);}isAbove(t){return this.y<t.y}isBelow(t){return this.y>t.y}isLeftOf(t){return this.x<t.x}isRightOf(t){return this.x>t.x}distanceFrom(t){return new F(this.x-t.x,this.y-t.y)}distanceTo(t){return this.distanceFrom(t).invert}static canParse(t){return t instanceof O||$.canParse(t)}static parse(t){if(t instanceof O)return t;const e=$.parse(t);return new O(e.x,e.y)}static tryParse(t){return h((()=>O.parse(t)),null)}}class M{constructor(t=0,e=0,r=0,i=0){this.origin=new O(t,e),this.dimensions=new $(r,i),this.diagonal=O.parse(this.origin.add(this.dimensions)),this.center=this.diagonal.half;}contains(t){return this.origin.isAbove(t)&&this.origin.isLeftOf(t)&&this.diagonal.isRightOf(t)&&this.diagonal.isBelow(t)}aspectToFit(t){const e=this.dimensions,r=t.dimensions,i=r.x,s=r.y;let n=e.x,a=e.y;return n>a&&0!==n?(a*=i/n,n=i,a>s&&(a=s,n*=a/e.y)):a>s&&(n*=s/a,a=s),new M(this.origin.x,this.origin.y,n,a)}}var j=(t,e,r=!1)=>{let i;return (...s)=>{const n=r&&!i;clearTimeout(i),i=setTimeout((()=>{i=null,r||t(...s);}),e),n&&t(...s);}};class L{#n;#a;#u;constructor(t){this.#n=t;}get isRunning(){return t.exists(this.#a)}onInterval(t){return this.clear(),this.#u=t,this}start(){return this.clear(),this.#a=setInterval((()=>{this.#u();}),this.#n),this}clear(){return clearInterval(this.#a),this.#a=null,this}}class C{#n;#o;#c;constructor(t){this.#n=t;}get isRunning(){return t.exists(this.#o)}onTimeout(t){return this.clear(),this.#c=t,this}start(){return this.clear(),this.#o=setTimeout((()=>{this.#c();}),this.#n),this}clear(){return clearTimeout(this.#o),this.#o=null,this}}var Y=t=>new Promise((e=>setTimeout(e,t)));function k(t){const e=isNaN(parseInt(t))||t<0||t>24?24:t,r=Math.random().toString().substring(2),i=Math.random().toString().substring(2);return r.concat(i).substring(0,e)}function Z(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var R=Object.freeze({__proto__:null,uid:k,uuid:Z,suid:function(){return Symbol(k())},suuid:function(){return Symbol(Z())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});
4
-
5
- exports.C = C;
6
- exports.L = L;
7
- exports.M = M;
8
- exports.R = R;
9
- exports.Y = Y;
10
- exports.a = a;
11
- exports.c = c;
12
- exports.j = j;
13
- exports.o = o;
14
- exports.t = t;
@@ -1,3 +0,0 @@
1
- class t{static isNull(t){return null===t}static isEmpty(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(e){return !(t.isUndefined(e)||t.isNull(e))}static isNullOrEmpty(e){return !t.exists(e)||t.isEmpty(e)}static isArray(t){return Array.isArray(t)}static isBool(t){return "boolean"==typeof t}static isTrue(e){return t.isBool(e)&&!0===e}static isFalse(e){return t.isBool(e)&&!1===e}static isDate(t){return t instanceof Date}static isNumber(t){return ("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return "string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(e){try{return "AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(t){return !1}}static isPromise(t){return t instanceof Promise}static isObject(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))}static isObjectLiteral(e){return t.isObject(e)&&e.constructor==={}.constructor}static isTruthy(e){return !t.isFalsy(e)}static isFalsy(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)}}function e(...t){return "".concat(...t)}function r(t,...e){return e.reduce(((t,e,r)=>t.replace(new RegExp(`\\{${r}\\}`,"g"),e&&e.toString?e.toString():e)),t)}function i(t){return s(n(t))}function s(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/^[\s\n]*/,""):e}function n(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/[\s\n]*$/,""):e}var a=Object.freeze({__proto__:null,build:e,chunk:function(e,r=0){if(!t.isString(e)||Number.isNaN(r)||r<0)return [];if(r<e.length){let t=0;const i=r||e.length,s=[];for(;t<e.length;)s.push(e.slice(t,t+i)),t+=i;return s}return [e]},format:r,trim:i,trimStart:s,trimEnd:n,capitalize:function(t=""){return (t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(e,r,i="_"){return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((t,e)=>t.replace(new RegExp(i),e)),r)},unmask:function(e,r,i="_"){const s=new RegExp(i);return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((t,e,i)=>s.test(e)||!s.test(r.charAt(i))&&r.charAt(i)===e?t:t+e),"")}});var o=t=>t.reduce(((t,e)=>(t.includes(e)||t.push(e),t)),[]);class c{#i;#s;constructor(t){this.#i=t,this.#s=0;}get isEmpty(){return this.length<1}get index(){return this.#s}get length(){return this.#i.length}get current(){return this.#i[this.#s]}get next(){const{length:t}=this;let e=this.#s;return this.#s=e++<t-1?e:0,this.current}get prev(){const{length:t}=this;let e=this.#s;return this.#s=--e<0?t-1:e,this.current}get peekNext(){const{length:t}=this,e=this.#s;return this.#i[e+1<t?e+1:0]}get peekPrev(){const{length:t}=this,e=this.#s;return this.#i[e-1<0?t-1:e-1]}}function h(t,e){try{return t()}catch{return e}}h.async=async(t,e)=>{try{return await t()}catch{return e}};function m(t,e=0){const r=Math.pow(10,-e);return Math.round(parseFloat((t*r).toFixed(Math.abs(e))))/r}function g(t,e=0){return m(t+5*Math.pow(10,e-1),e)}function w(t,e=0){if(0===t)return 0;return m(t-5*Math.pow(10,e-1),e)}function x(t,e=0){return t<0?g(t,e):w(t,e)}function _(t){const e=(t,r=0,i=1)=>0<t?e(--t,i,r+i):r;return e(t)}function v(t){let e=0,r=1,i=0;for(;t>1;)i=e,e=r,r+=i,t--;return t<1?e:r}function b(t,e=0){const r=parseInt(t);return Number.isNaN(r)?e:r}Object.freeze({__proto__:null,random:function(t=0,e=1){return Math.random()*(e-t)+t},round:m,roundUp:g,roundDown:w,roundTowardZero:x,gcd:function t(e,r){return 0===r?Math.abs(e):t(r,e%r)},fib:_,fib2:v,fibArray:function(t){return Array(t).fill(0).map((()=>_(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>v(--t))).reverse()},tryParseInt:b,tryParseFloat:function(t,e=0){const r=parseFloat(t);return Number.isNaN(r)?e:r}});class ${constructor(e=0,r=0){if(!t.isNumber(e)||!t.isNumber(r))throw new Error("Coord requires numeric x and y values");this._x=e,this._y=r;}get x(){return this._x}get y(){return this._y}get value(){return {x:this.x,y:this.y}}get half(){return this.divide(new $(2,2))}get abs(){return new $(Math.abs(this.x),Math.abs(this.y))}equals(t){return this.x===t.x&&this.y===t.y}add(t){return new $(this.x+t.x,this.y+t.y)}subtract(t){return new $(this.x-t.x,this.y-t.y)}multiply(t){return new $(this.x*t.x,this.y*t.y)}divide(t){return new $(this.x/t.x,this.y/t.y)}round(t=0){return new $(m(this.x,t),m(this.y,t))}toString(){return `(${this.x},${this.y})`}static canParse(e){return t.isArray(e)?!(Number.isNaN(e[0])||Number.isNaN(e[1])):t.isObjectLiteral(e)&&"x"in e&&"y"in e?!(Number.isNaN(e.x)||Number.isNaN(e.y)):e instanceof $}static parse(e){return t.exists(e)?e instanceof $?e:t.isArray(e)?new $(e[0],e[1]):t.isObjectLiteral(e)&&t.exists(e.x)&&t.exists(e.y)?new $(e.x,e.y):null:null}static tryParse(t){return h((()=>$.parse(t)),null)}}class F extends ${constructor(t=0,e=0){super(t,e),this._lengthSquared=Math.pow(t,2)+Math.pow(e,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===t&&0===e?0:t/this._magnitude,this._unitNormalY=0===t&&0===e?0:e/this._magnitude;}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new F(this._unitNormalX,this._unitNormalY)}get invert(){return new F(-this.x,-this.y)}get norm(){return new F(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new F(-this.y,this.x)}equals(t){return t instanceof F&&this.x===t.x&&this.y===t.y}add(t){return t instanceof F?new F(this.x+t.x,this.y+t.y):null}dot(t){return t instanceof F?this.x*t.x+this.y*t.y:null}perpendicularAtTo(t){if(!(t instanceof F))return null;const e=t.add(this.projectionOfOnto(t).invert);return new F(e.x,e.y)}projectionOfOnto(t){if(!(t instanceof F))return null;const e=t.normal.scale(this.dot(t.normal));return new F(e.x,e.y)}scale(t){return new F(this.x*t,this.y*t)}unitNormalDot(t){return t instanceof F?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null}reflect(t){if(!(t instanceof F))return null;if(t.isZero)return this;const e=t.normal;return this.add(e.scale(2*e.dot(this)).invert)}round(t=0){return new F(m(this.x,t),m(this.y,t))}}class O extends ${constructor(t,e){super(t,e);}isAbove(t){return this.y<t.y}isBelow(t){return this.y>t.y}isLeftOf(t){return this.x<t.x}isRightOf(t){return this.x>t.x}distanceFrom(t){return new F(this.x-t.x,this.y-t.y)}distanceTo(t){return this.distanceFrom(t).invert}static canParse(t){return t instanceof O||$.canParse(t)}static parse(t){if(t instanceof O)return t;const e=$.parse(t);return new O(e.x,e.y)}static tryParse(t){return h((()=>O.parse(t)),null)}}class M{constructor(t=0,e=0,r=0,i=0){this.origin=new O(t,e),this.dimensions=new $(r,i),this.diagonal=O.parse(this.origin.add(this.dimensions)),this.center=this.diagonal.half;}contains(t){return this.origin.isAbove(t)&&this.origin.isLeftOf(t)&&this.diagonal.isRightOf(t)&&this.diagonal.isBelow(t)}aspectToFit(t){const e=this.dimensions,r=t.dimensions,i=r.x,s=r.y;let n=e.x,a=e.y;return n>a&&0!==n?(a*=i/n,n=i,a>s&&(a=s,n*=a/e.y)):a>s&&(n*=s/a,a=s),new M(this.origin.x,this.origin.y,n,a)}}var j=(t,e,r=!1)=>{let i;return (...s)=>{const n=r&&!i;clearTimeout(i),i=setTimeout((()=>{i=null,r||t(...s);}),e),n&&t(...s);}};class L{#n;#a;#u;constructor(t){this.#n=t;}get isRunning(){return t.exists(this.#a)}onInterval(t){return this.clear(),this.#u=t,this}start(){return this.clear(),this.#a=setInterval((()=>{this.#u();}),this.#n),this}clear(){return clearInterval(this.#a),this.#a=null,this}}class C{#n;#o;#c;constructor(t){this.#n=t;}get isRunning(){return t.exists(this.#o)}onTimeout(t){return this.clear(),this.#c=t,this}start(){return this.clear(),this.#o=setTimeout((()=>{this.#c();}),this.#n),this}clear(){return clearTimeout(this.#o),this.#o=null,this}}var Y=t=>new Promise((e=>setTimeout(e,t)));function k(t){const e=isNaN(parseInt(t))||t<0||t>24?24:t,r=Math.random().toString().substring(2),i=Math.random().toString().substring(2);return r.concat(i).substring(0,e)}function Z(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var R=Object.freeze({__proto__:null,uid:k,uuid:Z,suid:function(){return Symbol(k())},suuid:function(){return Symbol(Z())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});
2
-
3
- export { C, L, M, R, Y, a, c, j, o, t };
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function i(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):a(e.value).then(s,i)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(i){s=[6,i];a=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};var NAMESPACE="ku4web-components";var scopeId;var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var queuePending=false;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}};var supportsShadow=function(){return(doc.head.attachShadow+"").indexOf("[native")>-1}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructibleStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var addHostEventListeners=function(e,t,n,r){if(n){n.map((function(n){var r=n[0],a=n[1],o=n[2];var s=getHostListenerTarget(e,r);var i=hostListenerProxy(t,o);var l=hostListenerOpts(r);plt.ael(s,a,i,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(s,a,i,l)}))}))}};var hostListenerProxy=function(e,t){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}}catch(r){consoleError(r)}}};var getHostListenerTarget=function(e,t){if(t&8)return win;return e};var hostListenerOpts=function(e){return(e&2)!==0};var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,n){var r=styles.get(e);if(supportsConstructibleStylesheets&&n){r=r||new CSSStyleSheet;r.replace(t)}else{r=t}styles.set(e,r)};var addStyle=function(e,t,n,r){var a=getScopeId(t);var o=styles.get(a);e=e.nodeType===11?e:doc;if(o){if(typeof o==="string"){e=e.head||e;var s=rootAppliedStyles.get(e);var i=void 0;if(!s){rootAppliedStyles.set(e,s=new Set)}if(!s.has(a)){{{i=doc.createElement("style");i.innerHTML=o}e.insertBefore(i,e.querySelector("link"))}if(s){s.add(a)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var o=addStyle(supportsShadow&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=o;n.classList.add(o+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var EMPTY_OBJ={};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var a=null;var o=null;var s=false;var i=false;var l=[];var c=function(t){for(var n=0;n<t.length;n++){a=t[n];if(Array.isArray(a)){c(a)}else if(a!=null&&typeof a!=="boolean"){if(s=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(s&&i){l[l.length-1].$text$+=a}else{l.push(s?newVNode(null,a):a)}i=s}}};c(n);if(t){if(t.name){o=t.name}{var f=t.className||t.class;if(f){t.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var u=newVNode(e,null);u.$attrs$=t;if(l.length>0){u.$children$=l}{u.$name$=o}return u};var newVNode=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{n.$attrs$=null}{n.$name$=null}return n};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var setAccessor=function(e,t,n,r,a,o){if(n!==r){var s=isMemberInElement(e,t);var i=t.toLowerCase();if(t==="class"){var l=e.classList;var c=parseClassList(n);var f=parseClassList(r);l.remove.apply(l,c.filter((function(e){return e&&!f.includes(e)})));l.add.apply(l,f.filter((function(e){return e&&!c.includes(e)})))}else if(t==="style"){{for(var u in n){if(!r||r[u]==null){if(u.includes("-")){e.style.removeProperty(u)}else{e.style[u]=""}}}}for(var u in r){if(!n||r[u]!==n[u]){if(u.includes("-")){e.style.setProperty(u,r[u])}else{e.style[u]=r[u]}}}}else if(!s&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,i)){t=i.slice(2)}else{t=i[2]+t.slice(3)}if(n){plt.rel(e,t,n,false)}if(r){plt.ael(e,t,r,false)}}else{var $=isComplexType(r);if((s||$&&r!==null)&&!a){try{if(!e.tagName.includes("-")){var d=r==null?"":r;if(t==="list"){s=false}else if(n==null||e[t]!=d){e[t]=d}}else{e[t]=r}}catch(v){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!s||o&4||a)&&!$){r=r===true?"":r;{e.setAttribute(t,r)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,t,n,r){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var o=e&&e.$attrs$||EMPTY_OBJ;var s=t.$attrs$||EMPTY_OBJ;{for(r in o){if(!(r in s)){setAccessor(a,r,o[r],undefined,n,t.$flags$)}}}for(r in s){setAccessor(a,r,o[r],s[r],n,t.$flags$)}};var createElm=function(e,t,n,r){var a=t.$children$[n];var o=0;var s;var i;var l;if(!useNativeShadowDom){checkSlotRelocate=true;if(a.$tag$==="slot"){if(scopeId){r.classList.add(scopeId+"-s")}a.$flags$|=a.$children$?2:1}}if(a.$text$!==null){s=a.$elm$=doc.createTextNode(a.$text$)}else if(a.$flags$&1){s=a.$elm$=doc.createTextNode("")}else{s=a.$elm$=doc.createElement(a.$flags$&2?"slot-fb":a.$tag$);{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&s["s-si"]!==scopeId){s.classList.add(s["s-si"]=scopeId)}if(a.$children$){for(o=0;o<a.$children$.length;++o){i=createElm(e,a,o,s);if(i){s.appendChild(i)}}}}{s["s-hn"]=hostTagName;if(a.$flags$&(2|1)){s["s-sr"]=true;s["s-cr"]=contentRef;s["s-sn"]=a.$name$||"";l=e&&e.$children$&&e.$children$[n];if(l&&l.$tag$===a.$tag$&&e.$elm$){putBackInOriginalLocation(e.$elm$,false)}}}return s};var putBackInOriginalLocation=function(e,t){plt.$flags$|=1;var n=e.childNodes;for(var r=n.length-1;r>=0;r--){var a=n[r];if(a["s-hn"]!==hostTagName&&a["s-ol"]){parentReferenceNode(a).insertBefore(a,referenceNode(a));a["s-ol"].remove();a["s-ol"]=undefined;checkSlotRelocate=true}if(t){putBackInOriginalLocation(a,t)}}plt.$flags$&=~1};var addVnodes=function(e,t,n,r,a,o){var s=e["s-cr"]&&e["s-cr"].parentNode||e;var i;if(s.shadowRoot&&s.tagName===hostTagName){s=s.shadowRoot}for(;a<=o;++a){if(r[a]){i=createElm(null,n,a,e);if(i){r[a].$elm$=i;s.insertBefore(i,referenceNode(t))}}}};var removeVnodes=function(e,t,n,r,a){for(;t<=n;++t){if(r=e[t]){a=r.$elm$;{checkSlotFallbackVisibility=true;if(a["s-ol"]){a["s-ol"].remove()}else{putBackInOriginalLocation(a,true)}}a.remove()}}};var updateChildren=function(e,t,n,r){var a=0;var o=0;var s=t.length-1;var i=t[0];var l=t[s];var c=r.length-1;var f=r[0];var u=r[c];var $;while(a<=s&&o<=c){if(i==null){i=t[++a]}else if(l==null){l=t[--s]}else if(f==null){f=r[++o]}else if(u==null){u=r[--c]}else if(isSameVnode(i,f)){patch(i,f);i=t[++a];f=r[++o]}else if(isSameVnode(l,u)){patch(l,u);l=t[--s];u=r[--c]}else if(isSameVnode(i,u)){if(i.$tag$==="slot"||u.$tag$==="slot"){putBackInOriginalLocation(i.$elm$.parentNode,false)}patch(i,u);e.insertBefore(i.$elm$,l.$elm$.nextSibling);i=t[++a];u=r[--c]}else if(isSameVnode(l,f)){if(i.$tag$==="slot"||u.$tag$==="slot"){putBackInOriginalLocation(l.$elm$.parentNode,false)}patch(l,f);e.insertBefore(l.$elm$,i.$elm$);l=t[--s];f=r[++o]}else{{$=createElm(t&&t[o],n,o,e);f=r[++o]}if($){{parentReferenceNode(i.$elm$).insertBefore($,referenceNode(i.$elm$))}}}}if(a>s){addVnodes(e,r[c+1]==null?null:r[c+1].$elm$,n,r,o,c)}else if(o>c){removeVnodes(t,a,s)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){if(e.$tag$==="slot"){return e.$name$===t.$name$}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var a=t.$children$;var o=t.$tag$;var s=t.$text$;var i;if(s===null){{if(o==="slot");else{updateElement(e,t,isSvgMode)}}if(r!==null&&a!==null){updateChildren(n,r,t,a)}else if(a!==null){if(e.$text$!==null){n.textContent=""}addVnodes(n,null,t,a,0,a.length-1)}else if(r!==null){removeVnodes(r,0,r.length-1)}}else if(i=n["s-cr"]){i.parentNode.textContent=s}else if(e.$text$!==s){n.data=s}};var updateFallbackSlotVisibility=function(e){var t=e.childNodes;var n;var r;var a;var o;var s;var i;for(r=0,a=t.length;r<a;r++){n=t[r];if(n.nodeType===1){if(n["s-sr"]){s=n["s-sn"];n.hidden=false;for(o=0;o<a;o++){i=t[o].nodeType;if(t[o]["s-hn"]!==n["s-hn"]||s!==""){if(i===1&&s===t[o].getAttribute("slot")){n.hidden=true;break}}else{if(i===1||i===3&&t[o].textContent.trim()!==""){n.hidden=true;break}}}}updateFallbackSlotVisibility(n)}}};var relocateNodes=[];var relocateSlotContent=function(e){var t;var n;var r;var a;var o;var s;var i=0;var l=e.childNodes;var c=l.length;for(;i<c;i++){t=l[i];if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){r=n.parentNode.childNodes;a=t["s-sn"];for(s=r.length-1;s>=0;s--){n=r[s];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]){if(isNodeLocatedInSlot(n,a)){o=relocateNodes.find((function(e){return e.$nodeToRelocate$===n}));checkSlotFallbackVisibility=true;n["s-sn"]=n["s-sn"]||a;if(o){o.$slotRefNode$=t}else{relocateNodes.push({$slotRefNode$:t,$nodeToRelocate$:n})}if(n["s-sr"]){relocateNodes.map((function(e){if(isNodeLocatedInSlot(e.$nodeToRelocate$,n["s-sn"])){o=relocateNodes.find((function(e){return e.$nodeToRelocate$===n}));if(o&&!e.$slotRefNode$){e.$slotRefNode$=o.$slotRefNode$}}}))}}else if(!relocateNodes.some((function(e){return e.$nodeToRelocate$===n}))){relocateNodes.push({$nodeToRelocate$:n})}}}}if(t.nodeType===1){relocateSlotContent(t)}}};var isNodeLocatedInSlot=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var renderVdom=function(e,t){var n=e.$hostElement$;var r=e.$cmpMeta$;var a=e.$vnode$||newVNode(null,null);var o=isHost(t)?t:h(null,null,t);hostTagName=n.tagName;if(r.$attrsToReflect$){o.$attrs$=o.$attrs$||{};r.$attrsToReflect$.map((function(e){var t=e[0],r=e[1];return o.$attrs$[r]=n[t]}))}o.$tag$=null;o.$flags$|=4;e.$vnode$=o;o.$elm$=a.$elm$=n.shadowRoot||n;{scopeId=n["s-sc"]}{contentRef=n["s-cr"];useNativeShadowDom=supportsShadow&&(r.$flags$&1)!==0;checkSlotFallbackVisibility=false}patch(a,o);{plt.$flags$|=1;if(checkSlotRelocate){relocateSlotContent(o.$elm$);var s=void 0;var i=void 0;var l=void 0;var c=void 0;var f=void 0;var u=void 0;var $=0;for(;$<relocateNodes.length;$++){s=relocateNodes[$];i=s.$nodeToRelocate$;if(!i["s-ol"]){l=doc.createTextNode("");l["s-nr"]=i;i.parentNode.insertBefore(i["s-ol"]=l,i)}}for($=0;$<relocateNodes.length;$++){s=relocateNodes[$];i=s.$nodeToRelocate$;if(s.$slotRefNode$){c=s.$slotRefNode$.parentNode;f=s.$slotRefNode$.nextSibling;l=i["s-ol"];while(l=l.previousSibling){u=l["s-nr"];if(u&&u["s-sn"]===i["s-sn"]&&c===u.parentNode){u=u.nextSibling;if(!u||!u["s-nr"]){f=u;break}}}if(!f&&c!==i.parentNode||i.nextSibling!==f){if(i!==f){if(!i["s-hn"]&&i["s-ol"]){i["s-hn"]=i["s-ol"].parentNode.nodeName}c.insertBefore(i,f)}}}else{if(i.nodeType===1){i.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(o.$elm$)}plt.$flags$&=~1;relocateNodes.length=0}};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,n){var r=getElement(e);return{emit:function(e){return emitEvent(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}};var emitEvent=function(e,t,n){var r=plt.ce(t,n);e.dispatchEvent(r);return r};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var n=function(){return dispatchHooks(e,t)};return writeTask(n)};var dispatchHooks=function(e,t){var n=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var r=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return safeCall(r,t,n)}));e.$queuedListeners$=null}}{a=safeCall(r,"componentWillLoad")}}n();return then(a,(function(){return updateComponent(e,r,t)}))};var updateComponent=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,a,o,s,i,l;return __generator(this,(function(c){r=e.$hostElement$;a=createTime("update",e.$cmpMeta$.$tagName$);o=r["s-rc"];if(n){attachStyles(e)}s=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t)}if(o){o.map((function(e){return e()}));r["s-rc"]=undefined}s();a();{i=r["s-p"];l=function(){return postUpdateComponent(e)};if(i.length===0){l()}else{Promise.all(i).then(l);e.$flags$|=4;i.length=0}}return[2]}))}))};var callRender=function(e,t,n){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=createTime("postUpdate",t);var a=e.$lazyInstance$;var o=e.$ancestorComponent$;{safeCall(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(n)}{safeCall(a,"componentDidLoad")}r();{e.$onReadyResolve$(n);if(!o){appDidLoad()}}}else{r()}{e.$onInstanceResolve$(n)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(r){consoleError(r)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var addHydratedFlag=function(e){return e.setAttribute("hydrated","")};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,n,r){var a=getHostRef(e);var o=a.$hostElement$;var s=a.$instanceValues$.get(t);var i=a.$flags$;var l=a.$lazyInstance$;n=parsePropertyValue(n,r.$members$[t][0]);var c=Number.isNaN(s)&&Number.isNaN(n);var f=n!==s&&!c;if((!(i&8)||s===undefined)&&f){a.$instanceValues$.set(t,n);if(l){if(r.$watchers$&&i&128){var u=r.$watchers$[t];if(u){u.map((function(e){try{l[e](n,s,t)}catch(r){consoleError(r,o)}}))}}if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,n){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var r=Object.entries(t.$members$);var a=e.prototype;r.map((function(e){var r=e[0],o=e[1][0];if(o&31||n&2&&o&32){Object.defineProperty(a,r,{get:function(){return getValue(this,r)},set:function(e){setValue(this,r,e,t)},configurable:true,enumerable:true})}else if(n&1&&o&64){Object.defineProperty(a,r,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=getHostRef(this);return n.$onInstancePromise$.then((function(){var t;return(t=n.$lazyInstance$)[r].apply(t,e)}))}})}}));if(n&1){var o=new Map;a.attributeChangedCallback=function(e,t,n){var r=this;plt.jmp((function(){var t=o.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(a.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],r=e[1];var a=r[1]||n;o.set(a,n);if(r[0]&512){t.$attrsToReflect$.push([n,a])}return a}))}}return e};var initializeComponent=function(e,t,n,r,a){return __awaiter(void 0,void 0,void 0,(function(){var e,r,o,s,i,l,c;return __generator(this,(function(f){switch(f.label){case 0:if(!((t.$flags$&32)===0))return[3,5];t.$flags$|=32;a=loadModule(n);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=f.sent();e();f.label=2;case 2:if(!a.isProxied){{n.$watchers$=a.watchers}proxyComponent(a,n,2);a.isProxied=true}r=createTime("createInstance",n.$tagName$);{t.$flags$|=8}try{new a(t)}catch(u){consoleError(u)}{t.$flags$&=~8}{t.$flags$|=128}r();fireConnectedCallback(t.$lazyInstance$);if(!a.style)return[3,5];o=a.style;s=getScopeId(n);if(!!styles.has(s))return[3,5];i=createTime("registerStyles",n.$tagName$);if(!(n.$flags$&8))return[3,4];return[4,import("./shadow-css-38a1326b.js").then((function(e){return e.scopeCss(o,s,false)}))];case 3:o=f.sent();f.label=4;case 4:registerStyle(s,o,!!(n.$flags$&1));i();f.label=5;case 5:l=t.$ancestorComponent$;c=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(c)}else{c()}return[2]}}))}))};var fireConnectedCallback=function(e){{safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$cmpMeta$;var r=createTime("connectedCallback",n.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{if(n.$flags$&(4|8)){setContentReference(e)}}{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{initializeComponent(e,t,n)}}else{addHostEventListeners(e,t,n.$listeners$);fireConnectedCallback(t.$lazyInstance$)}r()}};var setContentReference=function(e){var t=e["s-cr"]=doc.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$lazyInstance$;{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}{safeCall(n,"disconnectedCallback")}}};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var n=createTime();var r=[];var a=t.exclude||[];var o=win.customElements;var s=doc.head;var i=s.querySelector("meta[charset]");var l=doc.createElement("style");var c=[];var f;var u=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{n.$members$=t[2]}{n.$listeners$=t[3]}{n.$attrsToReflect$=[]}{n.$watchers$={}}if(!supportsShadow&&n.$flags$&1){n.$flags$|=8}var s=n.$tagName$;var i=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;registerHost(t,n);if(n.$flags$&1){if(supportsShadow){{t.attachShadow({mode:"open"})}}else if(!("shadowRoot"in t)){t.shadowRoot=t}}return r}t.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if(u){c.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);n.$lazyBundleId$=e[0];if(!a.includes(s)&&!o.get(s)){r.push(s);o.define(s,proxyComponent(i,n,1))}}))}));{l.innerHTML=r+HYDRATED_CSS;l.setAttribute("data-styles","");s.insertBefore(l,i?i.nextSibling:s.firstChild)}u=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}n()};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,n,t.$listeners$);return hostRefs.set(e,n)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var o=cmpModules.get(a);if(o){return o[r]}return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[r]}),consoleError)};var styles=new Map;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(n){e.push(n);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(n){consoleError(n)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,NAMESPACE as N,bootstrapLazy as b,createEvent as c,doc as d,getElement as g,h,promiseResolve as p,registerInstance as r,win as w};
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(t,n,r,i){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,u){function s(t){try{c(i.next(t))}catch(e){u(e)}}function a(t){try{c(i["throw"](t))}catch(e){u(e)}}function c(t){t.done?r(t.value):o(t.value).then(s,a)}c((i=i.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,o,u,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return c([t,e])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,o&&(u=s[0]&2?o["return"]:s[0]?o["throw"]||((u=o["return"])&&u.call(o),0):o.next)&&!(u=u.call(o,s[1])).done)return u;if(o=0,u)s=[s[0]&2,u.value];switch(s[0]){case 0:case 1:u=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;o=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(u=r.trys,u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){r.label=s[1];break}if(s[0]===6&&r.label<u[1]){r.label=u[1];u=s;break}if(u&&r.label<u[2]){r.label=u[2];r.ops.push(s);break}if(u[2])r.ops.pop();r.trys.pop();continue}s=n.call(t,r)}catch(e){s=[6,e];o=0}finally{i=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n};var __classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)};var _c_i,_c_s,_L_n,_L_a,_L_u,_C_n,_C_o,_C_c;var t=function(){function t(){}t.isNull=function(t){return null===t};t.isEmpty=function(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1};t.isUndefined=function(t){return void 0===t};t.isZero=function(t){return 0===t};t.exists=function(e){return!(t.isUndefined(e)||t.isNull(e))};t.isNullOrEmpty=function(e){return!t.exists(e)||t.isEmpty(e)};t.isArray=function(t){return Array.isArray(t)};t.isBool=function(t){return"boolean"==typeof t};t.isTrue=function(e){return t.isBool(e)&&!0===e};t.isFalse=function(e){return t.isBool(e)&&!1===e};t.isDate=function(t){return t instanceof Date};t.isNumber=function(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)};t.isEven=function(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0};t.isOdd=function(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)};t.isString=function(t){return"string"==typeof t||t instanceof String};t.isFunction=function(t){return t instanceof Function};t.isAsyncFunction=function(e){try{return"AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(t){return!1}};t.isPromise=function(t){return t instanceof Promise};t.isObject=function(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))};t.isObjectLiteral=function(e){return t.isObject(e)&&e.constructor==={}.constructor};t.isTruthy=function(e){return!t.isFalsy(e)};t.isFalsy=function(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)};return t}();function e(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}return"".concat.apply("",t)}function r(t){var e=[];for(var n=1;n<arguments.length;n++){e[n-1]=arguments[n]}return e.reduce((function(t,e,n){return t.replace(new RegExp("\\{".concat(n,"\\}"),"g"),e&&e.toString?e.toString():e)}),t)}function i(t){return s(n(t))}function s(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/^[\s\n]*/,""):e}function n(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/[\s\n]*$/,""):e}var a=Object.freeze({__proto__:null,build:e,chunk:function(e,n){if(n===void 0){n=0}if(!t.isString(e)||Number.isNaN(n)||n<0)return[];if(n<e.length){var r=0;var i=n||e.length,o=[];for(;r<e.length;)o.push(e.slice(r,r+i)),r+=i;return o}return[e]},format:r,trim:i,trimStart:s,trimEnd:n,capitalize:function(t){if(t===void 0){t=""}return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(e,n,r){if(r===void 0){r="_"}return t.isFunction(n)?n(e):t.isString(n)&&e.split("").reduce((function(t,e){return t.replace(new RegExp(r),e)}),n)},unmask:function(e,n,r){if(r===void 0){r="_"}var i=new RegExp(r);return t.isFunction(n)?n(e):t.isString(n)&&e.split("").reduce((function(t,e,r){return i.test(e)||!i.test(n.charAt(r))&&n.charAt(r)===e?t:t+e}),"")}});var o=function(t){return t.reduce((function(t,e){return t.includes(e)||t.push(e),t}),[])};var c=function(){function t(t){_c_i.set(this,void 0);_c_s.set(this,void 0);__classPrivateFieldSet(this,_c_i,t,"f"),__classPrivateFieldSet(this,_c_s,0,"f")}Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.length<1},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"index",{get:function(){return __classPrivateFieldGet(this,_c_s,"f")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"length",{get:function(){return __classPrivateFieldGet(this,_c_i,"f").length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"current",{get:function(){return __classPrivateFieldGet(this,_c_i,"f")[__classPrivateFieldGet(this,_c_s,"f")]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"next",{get:function(){var t=this.length;var e=__classPrivateFieldGet(this,_c_s,"f");return __classPrivateFieldSet(this,_c_s,e++<t-1?e:0,"f"),this.current},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"prev",{get:function(){var t=this.length;var e=__classPrivateFieldGet(this,_c_s,"f");return __classPrivateFieldSet(this,_c_s,--e<0?t-1:e,"f"),this.current},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"peekNext",{get:function(){var t=this.length,e=__classPrivateFieldGet(this,_c_s,"f");return __classPrivateFieldGet(this,_c_i,"f")[e+1<t?e+1:0]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"peekPrev",{get:function(){var t=this.length,e=__classPrivateFieldGet(this,_c_s,"f");return __classPrivateFieldGet(this,_c_i,"f")[e-1<0?t-1:e-1]},enumerable:false,configurable:true});return t}();_c_i=new WeakMap,_c_s=new WeakMap;function h(t,e){try{return t()}catch(n){return e}}h.async=function(t,e){return __awaiter(void 0,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,t()];case 1:return[2,r.sent()];case 2:n=r.sent();return[2,e];case 3:return[2]}}))}))};function m(t,e){if(e===void 0){e=0}var n=Math.pow(10,-e);return Math.round(parseFloat((t*n).toFixed(Math.abs(e))))/n}function g(t,e){if(e===void 0){e=0}return m(t+5*Math.pow(10,e-1),e)}function w(t,e){if(e===void 0){e=0}if(0===t)return 0;return m(t-5*Math.pow(10,e-1),e)}function x(t,e){if(e===void 0){e=0}return t<0?g(t,e):w(t,e)}function _(t){var e=function(t,n,r){if(n===void 0){n=0}if(r===void 0){r=1}return 0<t?e(--t,r,n+r):n};return e(t)}function v(t){var e=0,n=1,r=0;for(;t>1;)r=e,e=n,n+=r,t--;return t<1?e:n}function b(t,e){if(e===void 0){e=0}var n=parseInt(t);return Number.isNaN(n)?e:n}Object.freeze({__proto__:null,random:function(t,e){if(t===void 0){t=0}if(e===void 0){e=1}return Math.random()*(e-t)+t},round:m,roundUp:g,roundDown:w,roundTowardZero:x,gcd:function t(e,n){return 0===n?Math.abs(e):t(n,e%n)},fib:_,fib2:v,fibArray:function(t){return Array(t).fill(0).map((function(){return _(--t)})).reverse()},fib2Array:function(t){return Array(t).fill(0).map((function(){return v(--t)})).reverse()},tryParseInt:b,tryParseFloat:function(t,e){if(e===void 0){e=0}var n=parseFloat(t);return Number.isNaN(n)?e:n}});var $=function(){function e(e,n){if(e===void 0){e=0}if(n===void 0){n=0}if(!t.isNumber(e)||!t.isNumber(n))throw new Error("Coord requires numeric x and y values");this._x=e,this._y=n}Object.defineProperty(e.prototype,"x",{get:function(){return this._x},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"y",{get:function(){return this._y},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"value",{get:function(){return{x:this.x,y:this.y}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"half",{get:function(){return this.divide(new e(2,2))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"abs",{get:function(){return new e(Math.abs(this.x),Math.abs(this.y))},enumerable:false,configurable:true});e.prototype.equals=function(t){return this.x===t.x&&this.y===t.y};e.prototype.add=function(t){return new e(this.x+t.x,this.y+t.y)};e.prototype.subtract=function(t){return new e(this.x-t.x,this.y-t.y)};e.prototype.multiply=function(t){return new e(this.x*t.x,this.y*t.y)};e.prototype.divide=function(t){return new e(this.x/t.x,this.y/t.y)};e.prototype.round=function(t){if(t===void 0){t=0}return new e(m(this.x,t),m(this.y,t))};e.prototype.toString=function(){return"(".concat(this.x,",").concat(this.y,")")};e.canParse=function(n){return t.isArray(n)?!(Number.isNaN(n[0])||Number.isNaN(n[1])):t.isObjectLiteral(n)&&"x"in n&&"y"in n?!(Number.isNaN(n.x)||Number.isNaN(n.y)):n instanceof e};e.parse=function(n){return t.exists(n)?n instanceof e?n:t.isArray(n)?new e(n[0],n[1]):t.isObjectLiteral(n)&&t.exists(n.x)&&t.exists(n.y)?new e(n.x,n.y):null:null};e.tryParse=function(t){return h((function(){return e.parse(t)}),null)};return e}();var F=function(t){__extends(e,t);function e(e,n){if(e===void 0){e=0}if(n===void 0){n=0}var r=this;r=t.call(this,e,n)||this,r._lengthSquared=Math.pow(e,2)+Math.pow(n,2),r._magnitude=Math.sqrt(r._lengthSquared),r._unitNormalX=0===e&&0===n?0:e/r._magnitude,r._unitNormalY=0===e&&0===n?0:n/r._magnitude;return r}Object.defineProperty(e.prototype,"magnitude",{get:function(){return this._magnitude},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isZero",{get:function(){return 0===this.x&&0===this.y},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"normal",{get:function(){return new e(this._unitNormalX,this._unitNormalY)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"invert",{get:function(){return new e(-this.x,-this.y)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"norm",{get:function(){return new e(Math.abs(this.x),Math.abs(this.y))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"perpendicular",{get:function(){return new e(-this.y,this.x)},enumerable:false,configurable:true});e.prototype.equals=function(t){return t instanceof e&&this.x===t.x&&this.y===t.y};e.prototype.add=function(t){return t instanceof e?new e(this.x+t.x,this.y+t.y):null};e.prototype.dot=function(t){return t instanceof e?this.x*t.x+this.y*t.y:null};e.prototype.perpendicularAtTo=function(t){if(!(t instanceof e))return null;var n=t.add(this.projectionOfOnto(t).invert);return new e(n.x,n.y)};e.prototype.projectionOfOnto=function(t){if(!(t instanceof e))return null;var n=t.normal.scale(this.dot(t.normal));return new e(n.x,n.y)};e.prototype.scale=function(t){return new e(this.x*t,this.y*t)};e.prototype.unitNormalDot=function(t){return t instanceof e?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null};e.prototype.reflect=function(t){if(!(t instanceof e))return null;if(t.isZero)return this;var n=t.normal;return this.add(n.scale(2*n.dot(this)).invert)};e.prototype.round=function(t){if(t===void 0){t=0}return new e(m(this.x,t),m(this.y,t))};return e}($);var O=function(t){__extends(e,t);function e(e,n){return t.call(this,e,n)||this}e.prototype.isAbove=function(t){return this.y<t.y};e.prototype.isBelow=function(t){return this.y>t.y};e.prototype.isLeftOf=function(t){return this.x<t.x};e.prototype.isRightOf=function(t){return this.x>t.x};e.prototype.distanceFrom=function(t){return new F(this.x-t.x,this.y-t.y)};e.prototype.distanceTo=function(t){return this.distanceFrom(t).invert};e.canParse=function(t){return t instanceof e||$.canParse(t)};e.parse=function(t){if(t instanceof e)return t;var n=$.parse(t);return new e(n.x,n.y)};e.tryParse=function(t){return h((function(){return e.parse(t)}),null)};return e}($);var M=function(){function t(t,e,n,r){if(t===void 0){t=0}if(e===void 0){e=0}if(n===void 0){n=0}if(r===void 0){r=0}this.origin=new O(t,e),this.dimensions=new $(n,r),this.diagonal=O.parse(this.origin.add(this.dimensions)),this.center=this.diagonal.half}t.prototype.contains=function(t){return this.origin.isAbove(t)&&this.origin.isLeftOf(t)&&this.diagonal.isRightOf(t)&&this.diagonal.isBelow(t)};t.prototype.aspectToFit=function(e){var n=this.dimensions,r=e.dimensions,i=r.x,o=r.y;var u=n.x,s=n.y;return u>s&&0!==u?(s*=i/u,u=i,s>o&&(s=o,u*=s/n.y)):s>o&&(u*=o/s,s=o),new t(this.origin.x,this.origin.y,u,s)};return t}();var j=function(t,e,n){if(n===void 0){n=!1}var r;return function(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}var u=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||t.apply(void 0,i)}),e),u&&t.apply(void 0,i)}};var L=function(){function e(t){_L_n.set(this,void 0);_L_a.set(this,void 0);_L_u.set(this,void 0);__classPrivateFieldSet(this,_L_n,t,"f")}Object.defineProperty(e.prototype,"isRunning",{get:function(){return t.exists(__classPrivateFieldGet(this,_L_a,"f"))},enumerable:false,configurable:true});e.prototype.onInterval=function(t){return this.clear(),__classPrivateFieldSet(this,_L_u,t,"f"),this};e.prototype.start=function(){var t=this;return this.clear(),__classPrivateFieldSet(this,_L_a,setInterval((function(){__classPrivateFieldGet(t,_L_u,"f").call(t)}),__classPrivateFieldGet(this,_L_n,"f")),"f"),this};e.prototype.clear=function(){return clearInterval(__classPrivateFieldGet(this,_L_a,"f")),__classPrivateFieldSet(this,_L_a,null,"f"),this};return e}();_L_n=new WeakMap,_L_a=new WeakMap,_L_u=new WeakMap;var C=function(){function e(t){_C_n.set(this,void 0);_C_o.set(this,void 0);_C_c.set(this,void 0);__classPrivateFieldSet(this,_C_n,t,"f")}Object.defineProperty(e.prototype,"isRunning",{get:function(){return t.exists(__classPrivateFieldGet(this,_C_o,"f"))},enumerable:false,configurable:true});e.prototype.onTimeout=function(t){return this.clear(),__classPrivateFieldSet(this,_C_c,t,"f"),this};e.prototype.start=function(){var t=this;return this.clear(),__classPrivateFieldSet(this,_C_o,setTimeout((function(){__classPrivateFieldGet(t,_C_c,"f").call(t)}),__classPrivateFieldGet(this,_C_n,"f")),"f"),this};e.prototype.clear=function(){return clearTimeout(__classPrivateFieldGet(this,_C_o,"f")),__classPrivateFieldSet(this,_C_o,null,"f"),this};return e}();_C_n=new WeakMap,_C_o=new WeakMap,_C_c=new WeakMap;var Y=function(t){return new Promise((function(e){return setTimeout(e,t)}))};function k(t){var e=isNaN(parseInt(t))||t<0||t>24?24:t,n=Math.random().toString().substring(2),r=Math.random().toString().substring(2);return n.concat(r).substring(0,e)}function Z(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var R=Object.freeze({__proto__:null,uid:k,uuid:Z,suid:function(){return Symbol(k())},suuid:function(){return Symbol(Z())}});Object.freeze({__proto__:null,pattern:function(t){return t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\")},escape:function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});export{C,L,M,R,Y,a,c,j,o,t};
@@ -1,12 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,c;o<n;o++){if(c||!(o in t)){if(!c)c=Array.prototype.slice.call(t,0,o);c[o]=t[o]}}return e.concat(c||Array.prototype.slice.call(t))};
2
- /**
3
- * @license
4
- * Copyright Google Inc. All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
8
- *
9
- * This file is a port of shadowCSS from webcomponents.js to TypeScript.
10
- * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
11
- * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
12
- */var safeSelector=function(e){var t=[];var r=0;var o;e=e.replace(/(\[[^\]]*\])/g,(function(e,o){var n="__ph-".concat(r,"__");t.push(o);r++;return n}));o=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(e,o,n){var c="__ph-".concat(r,"__");t.push(n);r++;return o+c}));var n={content:o,placeholders:t};return n};var restoreSafeSelector=function(e,t){return t.replace(/__ph-(\d+)__/g,(function(t,r){return e[+r]}))};var _polyfillHost="-shadowcsshost";var _polyfillSlotted="-shadowcssslotted";var _polyfillHostContext="-shadowcsscontext";var _parenSuffix=")(?:\\(("+"(?:\\([^)(]*\\)|[^)(]*)+?"+")\\))?([^,{]*)";var _cssColonHostRe=new RegExp("("+_polyfillHost+_parenSuffix,"gim");var _cssColonHostContextRe=new RegExp("("+_polyfillHostContext+_parenSuffix,"gim");var _cssColonSlottedRe=new RegExp("("+_polyfillSlotted+_parenSuffix,"gim");var _polyfillHostNoCombinator=_polyfillHost+"-no-combinator";var _polyfillHostNoCombinatorRe=/-shadowcsshost-no-combinator([^\s]*)/;var _shadowDOMSelectorsRe=[/::shadow/g,/::content/g];var _selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$";var _polyfillHostRe=/-shadowcsshost/gim;var _colonHostRe=/:host/gim;var _colonSlottedRe=/::slotted/gim;var _colonHostContextRe=/:host-context/gim;var _commentRe=/\/\*\s*[\s\S]*?\*\//g;var stripComments=function(e){return e.replace(_commentRe,"")};var _commentWithHashRe=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var extractCommentsWithHash=function(e){return e.match(_commentWithHashRe)||[]};var _ruleRe=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;var _curlyRe=/([{}])/g;var _selectorPartsRe=/(^.*?[^\\])??((:+)(.*)|$)/;var OPEN_CURLY="{";var CLOSE_CURLY="}";var BLOCK_PLACEHOLDER="%BLOCK%";var processRules=function(e,t){var r=escapeBlocks(e);var o=0;return r.escapedString.replace(_ruleRe,(function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var c=e[2];var s="";var l=e[4];var a="";if(l&&l.startsWith("{"+BLOCK_PLACEHOLDER)){s=r.blocks[o++];l=l.substring(BLOCK_PLACEHOLDER.length+1);a="{"}var i={selector:c,content:s};var p=t(i);return"".concat(e[1]).concat(p.selector).concat(e[3]).concat(a).concat(p.content).concat(l)}))};var escapeBlocks=function(e){var t=e.split(_curlyRe);var r=[];var o=[];var n=0;var c=[];for(var s=0;s<t.length;s++){var l=t[s];if(l===CLOSE_CURLY){n--}if(n>0){c.push(l)}else{if(c.length>0){o.push(c.join(""));r.push(BLOCK_PLACEHOLDER);c=[]}r.push(l)}if(l===OPEN_CURLY){n++}}if(c.length>0){o.push(c.join(""));r.push(BLOCK_PLACEHOLDER)}var a={escapedString:r.join(""),blocks:o};return a};var insertPolyfillHostInCssText=function(e){e=e.replace(_colonHostContextRe,_polyfillHostContext).replace(_colonHostRe,_polyfillHost).replace(_colonSlottedRe,_polyfillSlotted);return e};var convertColonRule=function(e,t,r){return e.replace(t,(function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(e[2]){var o=e[2].split(",");var n=[];for(var c=0;c<o.length;c++){var s=o[c].trim();if(!s)break;n.push(r(_polyfillHostNoCombinator,s,e[3]))}return n.join(",")}else{return _polyfillHostNoCombinator+e[3]}}))};var colonHostPartReplacer=function(e,t,r){return e+t.replace(_polyfillHost,"")+r};var convertColonHost=function(e){return convertColonRule(e,_cssColonHostRe,colonHostPartReplacer)};var colonHostContextPartReplacer=function(e,t,r){if(t.indexOf(_polyfillHost)>-1){return colonHostPartReplacer(e,t,r)}else{return e+t+r+", "+t+" "+e+r}};var convertColonSlotted=function(e,t){var r="."+t+" > ";var o=[];e=e.replace(_cssColonSlottedRe,(function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(e[2]){var n=e[2].trim();var c=e[3];var s=r+n+c;var l="";for(var a=e[4]-1;a>=0;a--){var i=e[5][a];if(i==="}"||i===","){break}l=i+l}var p=l+s;var v="".concat(l.trimRight()).concat(s.trim());if(p.trim()!==v.trim()){var f="".concat(v,", ").concat(p);o.push({orgSelector:p,updatedSelector:f})}return s}else{return _polyfillHostNoCombinator+e[3]}}));return{selectors:o,cssText:e}};var convertColonHostContext=function(e){return convertColonRule(e,_cssColonHostContextRe,colonHostContextPartReplacer)};var convertShadowDOMSelectors=function(e){return _shadowDOMSelectorsRe.reduce((function(e,t){return e.replace(t," ")}),e)};var makeScopeMatcher=function(e){var t=/\[/g;var r=/\]/g;e=e.replace(t,"\\[").replace(r,"\\]");return new RegExp("^("+e+")"+_selectorReSuffix,"m")};var selectorNeedsScoping=function(e,t){var r=makeScopeMatcher(t);return!r.test(e)};var injectScopingSelector=function(e,t){return e.replace(_selectorPartsRe,(function(e,r,o,n,c){if(r===void 0){r=""}if(n===void 0){n=""}if(c===void 0){c=""}return r+t+n+c}))};var applySimpleSelectorScope=function(e,t,r){_polyfillHostRe.lastIndex=0;if(_polyfillHostRe.test(e)){var o=".".concat(r);return e.replace(_polyfillHostNoCombinatorRe,(function(e,t){return injectScopingSelector(t,o)})).replace(_polyfillHostRe,o+" ")}return t+" "+e};var applyStrictSelectorScope=function(e,t,r){var o=/\[is=([^\]]*)\]/g;t=t.replace(o,(function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}return t[0]}));var n="."+t;var c=function(e){var o=e.trim();if(!o){return""}if(e.indexOf(_polyfillHostNoCombinator)>-1){o=applySimpleSelectorScope(e,t,r)}else{var c=e.replace(_polyfillHostRe,"");if(c.length>0){o=injectScopingSelector(c,n)}}return o};var s=safeSelector(e);e=s.content;var l="";var a=0;var i;var p=/( |>|\+|~(?!=))\s*/g;var v=e.indexOf(_polyfillHostNoCombinator)>-1;var f=!v;while((i=p.exec(e))!==null){var u=i[1];var _=e.slice(a,i.index).trim();f=f||_.indexOf(_polyfillHostNoCombinator)>-1;var h=f?c(_):_;l+="".concat(h," ").concat(u," ");a=p.lastIndex}var S=e.substring(a);f=f||S.indexOf(_polyfillHostNoCombinator)>-1;l+=f?c(S):S;return restoreSafeSelector(s.placeholders,l)};var scopeSelector=function(e,t,r,o){return e.split(",").map((function(e){if(o&&e.indexOf("."+o)>-1){return e.trim()}if(selectorNeedsScoping(e,t)){return applyStrictSelectorScope(e,t,r).trim()}else{return e.trim()}})).join(", ")};var scopeSelectors=function(e,t,r,o,n){return processRules(e,(function(e){var n=e.selector;var c=e.content;if(e.selector[0]!=="@"){n=scopeSelector(e.selector,t,r,o)}else if(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")){c=scopeSelectors(e.content,t,r,o)}var s={selector:n.replace(/\s{2,}/g," ").trim(),content:c};return s}))};var scopeCssText=function(e,t,r,o,n){e=insertPolyfillHostInCssText(e);e=convertColonHost(e);e=convertColonHostContext(e);var c=convertColonSlotted(e,o);e=c.cssText;e=convertShadowDOMSelectors(e);if(t){e=scopeSelectors(e,t,r,o)}e=e.replace(/-shadowcsshost-no-combinator/g,".".concat(r));e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 ");return{cssText:e.trim(),slottedSelectors:c.selectors}};var scopeCss=function(e,t,r){var o=t+"-h";var n=t+"-s";var c=extractCommentsWithHash(e);e=stripComments(e);var s=[];if(r){var l=function(e){var t="/*!@___".concat(s.length,"___*/");var r="/*!@".concat(e.selector,"*/");s.push({placeholder:t,comment:r});e.selector=t+e.selector;return e};e=processRules(e,(function(e){if(e.selector[0]!=="@"){return l(e)}else if(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")){e.content=processRules(e.content,l);return e}return e}))}var a=scopeCssText(e,t,o,n);e=__spreadArray([a.cssText],c,true).join("\n");if(r){s.forEach((function(t){var r=t.placeholder,o=t.comment;e=e.replace(r,o)}))}a.slottedSelectors.forEach((function(t){e=e.replace(t.orgSelector,t.updatedSelector)}));return e};export{scopeCss};
@@ -1 +0,0 @@
1
- import{R}from"./index-919b08e6.js";var uid=function(){return function(){R.uid()}()};export{uid as u};
@@ -1 +0,0 @@
1
- const e="ku4web-components";let t,n,l,o=!1,s=!1,c=!1,i=!1;const r="undefined"!=typeof window?window:{},a=r.document||{head:{}},u={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=(()=>(a.head.attachShadow+"").indexOf("[native")>-1)(),d=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),m=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=p(e,n),c=h(t,o),i=b(n);u.ael(s,l,c,i),(t.o=t.o||[]).push((()=>u.rel(s,l,c,i)))}))},h=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(l){re(l)}},p=(e,t)=>8&t?r:e,b=e=>0!=(2&e),y=new WeakMap,w=e=>"sc-"+e.$,k={},S=e=>"object"==(e=typeof e)||"function"===e,g=(e,t,...n)=>{let l=null,o=null,s=!1,c=!1,i=[];const r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!S(l))&&(l+=""),s&&c?i[i.length-1].m+=l:i.push(s?j(null,l):l),c=s)};if(r(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=j(e,null);return a.h=t,i.length>0&&(a.p=i),a.k=o,a},j=(e,t)=>({t:0,S:e,m:t,g:null,p:null,h:null,k:null}),v={},C=(e,t,n,l,o,s)=>{if(n!==l){let i=ie(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,o=O(n),s=O(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if(i||"o"!==t[0]||"n"!==t[1]){const r=S(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(c){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||o)&&!r&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):ie(r,a)?a.slice(2):a[2]+t.slice(3),n&&u.rel(e,t,n,!1),l&&u.ael(e,t,l,!1)}},M=/\s/,O=e=>e?e.split(M):[],R=(e,t,n,l)=>{const o=11===t.g.nodeType&&t.g.host?t.g.host:t.g,s=e&&e.h||k,c=t.h||k;for(l in s)l in c||C(o,l,s[l],void 0,n,t.t);for(l in c)C(o,l,s[l],c[l],n,t.t)},N=(e,s,i,r)=>{let u,f,d,$=s.p[i],m=0;if(o||(c=!0,"slot"===$.S&&(t&&r.classList.add(t+"-s"),$.t|=$.p?2:1)),null!==$.m)u=$.g=a.createTextNode($.m);else if(1&$.t)u=$.g=a.createTextNode("");else if(u=$.g=a.createElement(2&$.t?"slot-fb":$.S),R(null,$,!1),null!=t&&u["s-si"]!==t&&u.classList.add(u["s-si"]=t),$.p)for(m=0;m<$.p.length;++m)f=N(e,$,m,u),f&&u.appendChild(f);return u["s-hn"]=l,3&$.t&&(u["s-sr"]=!0,u["s-cr"]=n,u["s-sn"]=$.k||"",d=e&&e.p&&e.p[i],d&&d.S===$.S&&e.g&&P(e.g,!1)),u},P=(e,t)=>{u.t|=1;const n=e.childNodes;for(let o=n.length-1;o>=0;o--){const e=n[o];e["s-hn"]!==l&&e["s-ol"]&&(W(e).insertBefore(e,E(e)),e["s-ol"].remove(),e["s-ol"]=void 0,c=!0),t&&P(e,t)}u.t&=-2},T=(e,t,n,o,s,c)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===l&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=N(null,n,s,e),i&&(o[s].g=i,r.insertBefore(i,E(t))))},L=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(s=!0,(o=l.g)["s-ol"]?o["s-ol"].remove():P(o,!0),o.remove())},x=(e,t)=>e.S===t.S&&("slot"!==e.S||e.k===t.k),E=e=>e&&e["s-ol"]||e,W=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,A=(e,t)=>{const n=t.g=e.g,l=e.p,o=t.p,s=t.m;let c;null===s?("slot"===t.S||R(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,c=0,i=t.length-1,r=t[0],a=t[i],u=l.length-1,f=l[0],d=l[u];for(;s<=i&&c<=u;)null==r?r=t[++s]:null==a?a=t[--i]:null==f?f=l[++c]:null==d?d=l[--u]:x(r,f)?(A(r,f),r=t[++s],f=l[++c]):x(a,d)?(A(a,d),a=t[--i],d=l[--u]):x(r,d)?("slot"!==r.S&&"slot"!==d.S||P(r.g.parentNode,!1),A(r,d),e.insertBefore(r.g,a.g.nextSibling),r=t[++s],d=l[--u]):x(a,f)?("slot"!==r.S&&"slot"!==d.S||P(a.g.parentNode,!1),A(a,f),e.insertBefore(a.g,r.g),a=t[--i],f=l[++c]):(o=N(t&&t[c],n,c,e),f=l[++c],o&&W(r.g).insertBefore(o,E(r.g)));s>i?T(e,null==l[u+1]?null:l[u+1].g,n,l,c,u):c>u&&L(t,s,i)})(n,l,t,o):null!==o?(null!==e.m&&(n.textContent=""),T(n,null,t,o,0,o.length-1)):null!==l&&L(l,0,l.length-1)):(c=n["s-cr"])?c.parentNode.textContent=s:e.m!==s&&(n.data=s)},D=e=>{let t,n,l,o,s,c,i=e.childNodes;for(n=0,l=i.length;n<l;n++)if(t=i[n],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,o=0;o<l;o++)if(c=i[o].nodeType,i[o]["s-hn"]!==t["s-hn"]||""!==s){if(1===c&&s===i[o].getAttribute("slot")){t.hidden=!0;break}}else if(1===c||3===c&&""!==i[o].textContent.trim()){t.hidden=!0;break}D(t)}},F=[],H=e=>{let t,n,l,o,c,i,r=0,a=e.childNodes,u=a.length;for(;r<u;r++){if(t=a[r],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,o=t["s-sn"],i=l.length-1;i>=0;i--)n=l[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(U(n,o)?(c=F.find((e=>e.j===n)),s=!0,n["s-sn"]=n["s-sn"]||o,c?c.v=t:F.push({v:t,j:n}),n["s-sr"]&&F.map((e=>{U(e.j,n["s-sn"])&&(c=F.find((e=>e.j===n)),c&&!e.v&&(e.v=c.v))}))):F.some((e=>e.j===n))||F.push({j:n}));1===t.nodeType&&H(t)}},U=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,q=e=>oe(e).C,V=(e,t,n)=>{const l=q(e);return{emit:e=>_(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},_=(e,t,n)=>{const l=u.ce(t,n);return e.dispatchEvent(l),l},z=(e,t)=>{t&&!e.M&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.M=t)))},B=(e,t)=>{if(e.t|=16,!(4&e.t))return z(e,e.O),ye((()=>G(e,t)));e.t|=512},G=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>X(n,e,t))),e.u=null),l=X(n,"componentWillLoad")),Y(l,(()=>I(e,n,t)))},I=async(e,t,n)=>{const l=e.C,o=l["s-rc"];n&&(e=>{const t=e.R,n=e.C,l=t.t,o=((e,t)=>{let n=w(t),l=fe.get(n);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let t,o=y.get(e=e.head||e);o||y.set(e,o=new Set),o.has(n)||(t=a.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(f&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);J(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>K(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},J=(e,i)=>{try{i=i.render(),e.t&=-17,e.t|=2,((e,i)=>{const r=e.C,d=e.R,$=e.N||j(null,null),m=(e=>e&&e.S===v)(i)?i:g(null,null,i);if(l=r.tagName,d.P&&(m.h=m.h||{},d.P.map((([e,t])=>m.h[t]=r[e]))),m.S=null,m.t|=4,e.N=m,m.g=$.g=r.shadowRoot||r,t=r["s-sc"],n=r["s-cr"],o=f&&0!=(1&d.t),s=!1,A($,m),u.t|=1,c){let e,t,n,l,o,s;H(m.g);let c=0;for(;c<F.length;c++)e=F[c],t=e.j,t["s-ol"]||(n=a.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(c=0;c<F.length;c++)if(e=F[c],t=e.j,e.v){for(l=e.v.parentNode,o=e.v.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}s&&D(m.g),u.t&=-2,F.length=0})(e,i)}catch(r){re(r,e.C)}return null},K=e=>{const t=e.C,n=e.i,l=e.O;X(n,"componentDidRender"),64&e.t||(e.t|=64,Z(t),X(n,"componentDidLoad"),e.T(t),l||Q()),e.L(t),e.M&&(e.M(),e.M=void 0),512&e.t&&be((()=>B(e,!1))),e.t&=-517},Q=()=>{Z(a.documentElement),be((()=>_(r,"appload",{detail:{namespace:"ku4web-components"}})))},X=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(l){re(l)}},Y=(e,t)=>e&&e.then?e.then(t):t(),Z=e=>e.setAttribute("hydrated",""),ee=(e,t,n)=>{if(t.W){e.watchers&&(t.A=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>oe(this).D.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=oe(e),s=o.C,c=o.D.get(t),i=o.t,r=o.i;if(n=((e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&i)||void 0===c)&&n!==c&&(!Number.isNaN(c)||!Number.isNaN(n))&&(o.D.set(t,n),r)){if(l.A&&128&i){const e=l.A[t];e&&e.map((e=>{try{r[e](n,c,t)}catch(l){re(l,s)}}))}2==(18&i)&&B(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=oe(this);return n.F.then((()=>n.i[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){u.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.P.push([e,o]),o}))}}return e},te=e=>{X(e,"connectedCallback")},ne=(e,t={})=>{const n=[],l=t.exclude||[],o=r.customElements,s=a.head,c=s.querySelector("meta[charset]"),i=a.createElement("style"),d=[];let h,p=!0;Object.assign(u,t),u.l=new URL(t.resourcesUrl||"./",a.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],W:t[2],H:t[3]};s.W=t[2],s.H=t[3],s.P=[],s.A={},!f&&1&s.t&&(s.t|=8);const c=s.$,i=class extends HTMLElement{constructor(e){super(e),ce(e=this,s),1&s.t&&(f?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){h&&(clearTimeout(h),h=null),p?d.push(this):u.jmp((()=>(e=>{if(0==(1&u.t)){const t=oe(e),n=t.R,l=()=>{};if(1&t.t)m(e,t,n.H),te(t.i);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){z(t,t.O=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=ue(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.A=o.watchers,ee(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(i){re(i)}t.t&=-9,t.t|=128,e(),te(t.i)}if(o.style){let e=o.style;const t=w(n);if(!fe.has(t)){const l=()=>{};8&n.t&&(e=await import("./p-d0f3bec4.js").then((n=>n.scopeCss(e,t,!1)))),((e,t,n)=>{let l=fe.get(e);$&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,fe.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.O,c=()=>B(t,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(()=>{if(0==(1&u.t)){const e=oe(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),X(t,"disconnectedCallback")}})()))}componentOnReady(){return oe(this).U}};s.q=e[0],l.includes(c)||o.get(c)||(n.push(c),o.define(c,ee(i,s,1)))}))})),i.innerHTML=n+"{visibility:hidden}[hydrated]{visibility:inherit}",i.setAttribute("data-styles",""),s.insertBefore(i,c?c.nextSibling:s.firstChild),p=!1,d.length?d.map((e=>e.connectedCallback())):u.jmp((()=>h=setTimeout(Q,30)))},le=new WeakMap,oe=e=>le.get(e),se=(e,t)=>le.set(t.i=e,t),ce=(e,t)=>{const n={t:0,C:e,R:t,D:new Map};return n.F=new Promise((e=>n.L=e)),n.U=new Promise((e=>n.T=e)),e["s-p"]=[],e["s-rc"]=[],m(e,n,t.H),le.set(e,n)},ie=(e,t)=>t in e,re=(e,t)=>(0,console.error)(e,t),ae=new Map,ue=e=>{const t=e.$.replace(/-/g,"_"),n=e.q,l=ae.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ae.set(n,e),e[t])),re)},fe=new Map,de=[],$e=[],me=(e,t)=>n=>{e.push(n),i||(i=!0,t&&4&u.t?be(pe):u.raf(pe))},he=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){re(t)}e.length=0},pe=()=>{he(de),he($e),(i=de.length>0)&&u.raf(pe)},be=e=>d().then(e),ye=me($e,!0);export{v as H,e as N,ne as b,V as c,a as d,q as g,g as h,d as p,se as r,r as w}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,g as h}from"./p-016a7b4e.js";import{Y as e,t as a}from"./p-cbb6fb91.js";import{i as r}from"./p-16f6027a.js";const n=class{constructor(i){t(this,i),this.didValidate=s(this,"validate",7),this.validate=this.validate.bind(this),this.handleReset=this.handleReset.bind(this)}async listFieldNames(){return r.readFieldNames(this.form)}async validate(){const{fields:t}=this,s=t.map((t=>t.validate()));return this.isValid=await Promise.all(s).then((t=>!t.some((t=>!1===t)))),this.valid=this.isValid,this.invalid=!this.isValid,await e(100).then((()=>this.host.querySelectorAll("ku4-validation[invalid]"))).then((t=>this.didValidate.emit({invalid:t}))),this.isValid}async invalidate(t){if(a.isArray(t))t.forEach((t=>{const s=this.fields.find((s=>s.for===t));s&&(s.invalid=!0)}));else{const s=this.fields.find((s=>s.for===t));s&&(s.invalid=!0)}return this.isValid=!1,this.valid=this.isValid,this.invalid=!this.isValid,this}async read(){return r.read(this.form)}async write(t){return r.write(this.form,t),Object.keys(t).forEach((t=>{try{this.form.querySelector(`[name="${t}"]`).dispatchEvent(new window.Event("change"))}catch(s){}})),this}get form(){return this.host.querySelector("form")}get fields(){return[].slice.call(this.form.querySelectorAll("ku4-validation"))}handleReset(){this.isValid=!0,this.valid=this.isValid,this.invalid=!this.isValid}componentWillLoad(){const{form:t}=this;if(a.exists(t)){const s=t.onsubmit||(()=>{});t.onsubmit=i=>(i.preventDefault(),this.validate().then((h=>h&&s.call(t,i))).then((s=>!a.isFalse(s)&&t.submit())),!1),t.addEventListener("reset",this.handleReset),this.fields.forEach((t=>t.addEventListener("validated",this.validate)))}}disconnectedCallback(){const{form:t}=this;a.exists(t)&&(t.removeEventListener("reset",this.handleReset),this.fields.forEach((t=>t.removeEventListener("validated",this.validate))))}render(){return i("slot",null)}get host(){return h(this)}};export{n as ku4_form}
@@ -1 +0,0 @@
1
- class t{static isNull(t){return null===t}static isEmpty(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(e){return!(t.isUndefined(e)||t.isNull(e))}static isNullOrEmpty(e){return!t.exists(e)||t.isEmpty(e)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(e){return t.isBool(e)&&!0===e}static isFalse(e){return t.isBool(e)&&!1===e}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(e){try{return"AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(e){return!1}}static isPromise(t){return t instanceof Promise}static isObject(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))}static isObjectLiteral(e){return t.isObject(e)&&e.constructor==={}.constructor}static isTruthy(e){return!t.isFalsy(e)}static isFalsy(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)}}function e(...t){return"".concat(...t)}function r(t,...e){return e.reduce(((t,e,r)=>t.replace(new RegExp(`\\{${r}\\}`,"g"),e&&e.toString?e.toString():e)),t)}function n(t){return i(s(t))}function i(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/^[\s\n]*/,""):e}function s(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/[\s\n]*$/,""):e}function u(t,e){try{return t()}catch{return e}}let a;Object.freeze({__proto__:null,build:e,chunk:function(e,r=0){if(!t.isString(e)||Number.isNaN(r)||r<0)return[];if(r<e.length){let t=0;const n=r||e.length,i=[];for(;t<e.length;)i.push(e.slice(t,t+n)),t+=n;return i}return[e]},format:r,trim:n,trimStart:i,trimEnd:s,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(e,r,n="_"){return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((t,e)=>t.replace(new RegExp(n),e)),r)},unmask:function(e,r,n="_"){const i=new RegExp(n);return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((t,e,n)=>!i.test(e)&&i.test(r.charAt(n))?t+e:t),"")}}),u.async=async(t,e)=>{try{return await t()}catch{return e}};class o{constructor(t,e,r){if(e<1||e>12)throw new Error("Invalid month at Assert.DayPoint");if(r<1||r>c(e,t))throw new Error("Invalid date at DayPoint");this._value=arguments.length>=3?new Date(t,e-1,r):new Date,this._day=this._value.getDay(),this._date=r,this._month=e,this._year=t}get value(){return this._value}get day(){return this._day}get date(){return this._date}get month(){return this._month}get year(){return this._year}get shortYear(){const t=this._year.toString();return parseInt(t.substr(t.length-2))}get isWeekday(){const t=this._day;return t>0&&t<6}get isWeekend(){return!this.isWeekday}get isLeapYear(){return h(this._year)}get nextDay(){return l(this,1,0,0)}get prevDay(){return l(this,-1,0,0)}get nextMonth(){return l(this,0,1,0)}get prevMonth(){return l(this,0,-1,0)}get nextYear(){return l(this,0,0,1)}get prevYear(){return l(this,0,0,-1)}get firstDayOfMonth(){return new o(this._year,this._month,1)}get lastDayOfMonth(){return new o(this._year,this._month,c(this._month,this._year))}add(t,e,r){function n(t,e,r){let n=t,i=e;for(;i--;)n=n[r];return n}const{abs:i}=Math,s=i(t),u=i(r),a=i(e),o=r<0?"prevDay":"nextDay",c=e<0?"prevMonth":"nextMonth";return n(n(n(this,s,t<0?"prevYear":"nextYear"),a,c),u,o)}isBefore(t){return!(this.isAfter(t)||this.equals(t))}isAfter(t){const e=this._year,r=t.year,n=this._month,i=t.month;return e>r||e===r&&n>i||e===r&&n===i&&this._date>t.date}equals(t){return this._year===t.year&&this._month===t.month&&this._date===t.date}toString(t="mm/dd/yyyy"){const e=/y{3,}/i.test(t)?this._year:this.shortYear,n=this._month,i=this._date,s=/m{2}/i.test(t)&&n<10?"0{1}":"{1}",u=/d{2}/i.test(t)&&i<10?"0{2}":"{2}";return r(t.replace(/y+/gi,"{0}").replace(/m+/gi,s).replace(/d+/gi,u),e,n,i)}toDate(){return this._value}toJson(){return this._value.toJSON()}static canParse(e){return t.isString(e)||t.isNumber(e)||t.isDate(e)?!isNaN(new Date(e).valueOf()):e instanceof o}static parse(e){if(e instanceof o)return e;let i=t.isString(e)?n(e).replace(/T\d{2}:\d{2}:\d{2}(.\d+)?Z/,""):e;if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(i)){const t=i.split("-"),[e]=t;t.push(e),t.shift(),i=t.join("/")}const s=new Date(i);if(!t.exists(i)||Number.isNaN(s.valueOf()))throw new Error(r("Cannot parse value= {0}",i));return new o(s.getFullYear(),s.getMonth()+1,s.getDate())}static tryParse(t){return u((()=>o.parse(t)),null)}static assumeNow(t){a=o.parse(t)}static get today(){return a||o.parse(new Date)}}function c(e,r){return 2===e?h(r)?29:28:e<8&&t.isEven(e)||e>7&&t.isOdd(e)?30:31}function h(t){const r=t.toString().split(/\B/);return parseFloat(e(r[r.length-2],r[r.length-1]))%4==0}function l(t,e,r,n){const i=t.month,s=t.year,u=t.date,a=r,h=n;let l=u+e,d=i+a,w=s+h;if(u+e>c(i,s)&&(l=1,d=i+a+1),u+e<1){const e=t.prevMonth;l=c(e.month,e.year),d=i+a-1}return d>12&&(d=1,w=s+h+1),d<1&&(d=12,w=s+h-1),new o(w,d,l)}function d(t,e=0){const r=Math.pow(10,-e);return Math.round(parseFloat((t*r).toFixed(Math.abs(e))))/r}function w(t,e=0){return d(t+5*Math.pow(10,e-1),e)}function y(t,e=0){return 0===t?0:d(t-5*Math.pow(10,e-1),e)}function f(t){const e=(t,r=0,n=1)=>0<t?e(--t,n,r+n):r;return e(t)}function m(t){let e=0,r=1,n=0;for(;t>1;)n=e,e=r,r+=n,t--;return t<1?e:r}Object.freeze({__proto__:null,random:function(t=0,e=1){return Math.random()*(e-t)+t},round:d,roundUp:w,roundDown:y,roundTowardZero:function(t,e=0){return t<0?w(t,e):y(t,e)},gcd:function t(e,r){return 0===r?Math.abs(e):t(r,e%r)},fib:f,fib2:m,fibArray:function(t){return Array(t).fill(0).map((()=>f(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>m(--t))).reverse()},tryParseInt:function(t,e=0){const r=parseInt(t);return Number.isNaN(r)?e:r},tryParseFloat:function(t,e=0){const r=parseFloat(t);return Number.isNaN(r)?e:r}});class p{constructor(e=0,r=0){if(!t.isNumber(e)||!t.isNumber(r))throw new Error("Coord requires numeric x and y values");this._x=e,this._y=r}get x(){return this._x}get y(){return this._y}get value(){return{x:this.x,y:this.y}}get half(){return this.divide(new p(2,2))}get abs(){return new p(Math.abs(this.x),Math.abs(this.y))}equals(t){return this.x===t.x&&this.y===t.y}add(t){return new p(this.x+t.x,this.y+t.y)}subtract(t){return new p(this.x-t.x,this.y-t.y)}multiply(t){return new p(this.x*t.x,this.y*t.y)}divide(t){return new p(this.x/t.x,this.y/t.y)}round(t=0){return new p(d(this.x,t),d(this.y,t))}toString(){return`(${this.x},${this.y})`}static canParse(e){return t.isArray(e)?!(Number.isNaN(e[0])||Number.isNaN(e[1])):t.isObjectLiteral(e)&&"x"in e&&"y"in e?!(Number.isNaN(e.x)||Number.isNaN(e.y)):e instanceof p}static parse(e){return t.exists(e)?e instanceof p?e:t.isArray(e)?new p(e[0],e[1]):t.isObjectLiteral(e)&&t.exists(e.x)&&t.exists(e.y)?new p(e.x,e.y):null:null}static tryParse(t){return u((()=>p.parse(t)),null)}}class g extends p{constructor(t=0,e=0){super(t,e),this._lengthSquared=Math.pow(t,2)+Math.pow(e,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===t&&0===e?0:t/this._magnitude,this._unitNormalY=0===t&&0===e?0:e/this._magnitude}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new g(this._unitNormalX,this._unitNormalY)}get invert(){return new g(-this.x,-this.y)}get norm(){return new g(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new g(-this.y,this.x)}equals(t){return t instanceof g&&this.x===t.x&&this.y===t.y}add(t){return t instanceof g?new g(this.x+t.x,this.y+t.y):null}dot(t){return t instanceof g?this.x*t.x+this.y*t.y:null}perpendicularAtTo(t){if(!(t instanceof g))return null;const e=t.add(this.projectionOfOnto(t).invert);return new g(e.x,e.y)}projectionOfOnto(t){if(!(t instanceof g))return null;const e=t.normal.scale(this.dot(t.normal));return new g(e.x,e.y)}scale(t){return new g(this.x*t,this.y*t)}unitNormalDot(t){return t instanceof g?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null}reflect(t){if(!(t instanceof g))return null;if(t.isZero)return this;const e=t.normal;return this.add(e.scale(2*e.dot(this)).invert)}round(t=0){return new g(d(this.x,t),d(this.y,t))}}class b extends p{constructor(t,e){super(t,e)}isAbove(t){return this.y<t.y}isBelow(t){return this.y>t.y}isLeftOf(t){return this.x<t.x}isRightOf(t){return this.x>t.x}distanceFrom(t){return new g(this.x-t.x,this.y-t.y)}distanceTo(t){return this.distanceFrom(t).invert}static canParse(t){return t instanceof b||p.canParse(t)}static parse(t){if(t instanceof b)return t;const e=p.parse(t);return new b(e.x,e.y)}static tryParse(t){return u((()=>b.parse(t)),null)}}function K(t){const e=isNaN(parseInt(t))||t<0||t>24?24:t,r=Math.random().toString().substring(2),n=Math.random().toString().substring(2);return r.concat(n).substring(0,e)}function v(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var M=Object.freeze({__proto__:null,uid:K,uuid:v,suid:function(){return Symbol(K())},suuid:function(){return Symbol(v())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i}),M.uid(),o.today.nextYear.toDate();class ${static get orientation(){const{screen:t}=window,e=(t.orientation||{}).type||t.mozOrientation||t.msOrientation,r=window.orientation;return e===$.landscapePrimary||90===r?$.landscapePrimary:e===$.landscapeSecondary||-90===r?$.landscapeSecondary:e===$.portraitPrimary||0===r?$.portraitPrimary:e===$.portraitSecondary||180===r?$.portraitSecondary:void 0}static get landscapePrimary(){return"landscape-primary"}static get landscapeSecondary(){return"landscape-secondary"}static get portraitPrimary(){return"portrait-primary"}static get portraitSecondary(){return"portrait-secondary"}static get isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(window.navigator.userAgent)}}const A=new Set,N=new Set;let S,x,P,D=!1,O=!1,_=!1,k=!1;class E{static get scrollbarWidth(){return window.innerWidth-document.documentElement.clientWidth}static get isScrollPrevented(){return t.exists(E.scrollY)}static preventScroll(){try{A.forEach((t=>t()))}catch(t){}E.position=document.body.style.position,E.offsetY=document.body.style.top,E.offsetX=document.body.style.left,E.width=document.body.style.width,E.height=document.body.style.height,E.documentWidth=document.documentElement.style.width,E.documentWidth=document.documentElement.style.width,E.documentHeight=document.documentElement.style.height,E.overflowY=document.documentElement.style.overflowY,E.scrollX=window.scrollX||window.pageXOffset,E.scrollY=window.scrollY||window.pageYOffset;const{scrollbarWidth:t}=E;document.body.style.position="fixed",document.body.style.left=`-${E.scrollX}px`,document.body.style.top=`calc(-${E.scrollY}px - ${window.getComputedStyle(document.body)["padding-top"]} - ${window.getComputedStyle(document.body)["margin-top"]})`,document.body.style.width=`calc(100vw - ${t}px - ${window.getComputedStyle(document.body)["padding-left"]} - ${window.getComputedStyle(document.body)["padding-right"]} - ${window.getComputedStyle(document.body)["margin-left"]} - ${window.getComputedStyle(document.body)["margin-right"]})`,document.documentElement.style.width="100wh",document.documentElement.style.height="100vh",document.documentElement.style.overflowY=t&&"scroll"}static resumeScroll(){try{N.forEach((t=>t()))}catch(e){}document.body.style.position=E.position,document.body.style.top=E.offsetY,document.body.style.left=E.offsetX,document.body.style.width=E.width,document.body.style.height=E.height,document.documentElement.style.width=E.documentWidth,document.documentElement.style.height=E.documentHeight,document.documentElement.style.overflowY=E.overflowY,window.scrollTo(E.scrollX,E.scrollY),E.position=null,E.offsetY=null,E.offsetX=null,E.width=null,E.height=null,E.documentWidth=null,E.documentHeight=null,E.overflowY=null,E.scrollX=null,E.scrollY=null}static onPreventScroll(t){A.add(t)}static onResumeScroll(t){N.add(t)}static get scroll(){return S||(S=new z,x=window.pageYOffset,P=window.pageXOffset,D=!1,O=!1,_=!1,k=!1,window.addEventListener("unload",(()=>S.unload()))),S}}const F=()=>{const t=window.pageYOffset,e=window.pageXOffset;D=t>x,O=t<x,k=e>P,_=e<P,x=t||window.pageYOffset,P=e||window.pageXOffset};class z{constructor(){document.addEventListener("scroll",F,{passive:!0})}get down(){return D}get up(){return O}get left(){return _}get right(){return k}unload(){document.removeEventListener("scroll",F),D=!1,O=!1,_=!1,k=!1,x=window.pageYOffset,P=window.pageXOffset,S=null}}class j{static mute(e){return!!t.exists(e)&&(t.isFunction(e.preventDefault)&&e.preventDefault(),t.isFunction(e.stopPropagation)&&e.stopPropagation(),t.isFunction(e.stopImmediatePropagation)&&e.stopImmediatePropagation(),t.exists(e.cancelBubble)&&(e.cancelBubble=!0),!1)}}const T=t=>new window.FormData(t),B=e=>{const r={};try{T(e).forEach(((e,n)=>{const i=r[n];t.isArray(i)?r[n].push(e):r[n]=t.exists(i)?[r[n],e]:e}))}catch(t){[...e.elements].forEach((t=>{const{name:e,type:n,value:i,files:s}=t;if("file"===n)r[e]=s[0];else if("checkbox"===n||"radio"===n)t.checked&&(r[e]=i);else if(t.multiple){const n=[];t.querySelectorAll("option").forEach((t=>t.selected&&n.push(t.value))),r[e]=n.length<2?n[0]:n}else r[e]=i}))}return r};var R={readFieldNames:t=>{const e=t.getAttribute("id");return[...[...t.querySelectorAll("[name]")].map((t=>t.name)),...e?[...document.querySelectorAll(`[form="${e}"]`)].map((t=>t.name)):[]]},read:B,readData:T,readJson:t=>JSON.stringify(B(t)),write:(e,r)=>{[...e.elements].forEach((e=>{/^select$/i.test(e.nodeName)?t.isArray(r[e.name])?[...e.options].forEach((t=>{t.selected=r[e.name].indexOf(t.value)>=0})):t.exists(r[e.name])&&(e.value=r[e.name]):t.exists(r[e.name])&&("checkbox"===e.type||"radio"===e.type?e.checked=r[e.name]===e.value:e.value=r[e.name])}))}};class Y{constructor(t,e,r={}){this.key=t,this.msKey=e||t,this.altKey=r.altKey||!1,this.ctrlKey=r.ctrlKey||!1,this.metaKey=r.metaKey||!1,this.shiftKey=r.shiftKey||!1}get alt(){const{key:t,msKey:e,ctrlKey:r,metaKey:n,shiftKey:i}=this;return new Y(t,e,{altKey:!0,ctrlKey:r,metaKey:n,shiftKey:i})}get ctrl(){const{key:t,msKey:e,altKey:r,metaKey:n,shiftKey:i}=this;return new Y(t,e,{altKey:r,ctrlKey:!0,metaKey:n,shiftKey:i})}get meta(){const{key:t,msKey:e,altKey:r,ctrlKey:n,shiftKey:i}=this;return new Y(t,e,{altKey:r,ctrlKey:n,metaKey:!0,shiftKey:i})}get shift(){const{key:t,msKey:e,altKey:r,ctrlKey:n,metaKey:i}=this;return new Y(t,e,{altKey:r,ctrlKey:n,metaKey:i,shiftKey:!0})}equals(t){return t instanceof Y&&this.altKey===t.altKey&&this.ctrlKey===t.ctrlKey&&this.metaKey===t.metaKey&&this.shiftKey===t.shiftKey&&(this.key===t.key||this.msKey===t.msKey)}didFire(t){const{code:e,key:r,altKey:n,ctrlKey:i,metaKey:s,shiftKey:u}=t,a="Dead"===r?e:r;return t&&("ANY"===this.key||this.equals(new Y(a,a,{altKey:n,ctrlKey:i,metaKey:s,shiftKey:u})))}static get press(){return"keypress"}static get down(){return"keydown"}static get up(){return"keyup"}static get any(){return new Y("ANY")}static get esc(){return new Y("Escape","Esc")}static get enter(){return new Y("Enter")}static get space(){return new Y(" ","Spacebar")}static get tab(){return new Y("Tab")}static get left(){return new Y("ArrowLeft","Left")}static get right(){return new Y("ArrowRight","Right")}}class I{constructor(t,e=0){this.didTouchStart=this.didTouchStart.bind(this),this.didTouchEnd=this.didTouchEnd.bind(this),this.didTouchMove=this.didTouchMove.bind(this),t.addEventListener("touchstart",this.didTouchStart,{capture:!1,passive:!0}),t.addEventListener("touchend",this.didTouchEnd,{capture:!1,passive:!0}),t.addEventListener("touchmove",this.didTouchMove,{capture:!1,passive:!0}),this.element=t,this.tolerance=e,this.didSwipeLeft=()=>{},this.didSwipeRight=()=>{},this.didMove=()=>{}}onLeft(t){return this.didSwipeLeft=t,this}onRight(t){return this.didSwipeRight=t,this}onMove(t){return this.didMove=t,this}destroy(){const{element:t}=this;return t.removeEventListener("touchstart",this.didTouchStart,{capture:!1}),t.removeEventListener("touchend",this.didTouchEnd,{capture:!1}),t.removeEventListener("touchmove",this.didTouchMove,{capture:!1}),this}didTouchStart({touches:[t]}){this.touchStartPoint=new b(t.pageX,t.pageY)}didTouchEnd(t){const[e]=t.changedTouches,{touchStartPoint:r}=this,n=new b(e.pageX,e.pageY);n.isLeftOf(r)&&Math.abs(n.distanceFrom(r).x)>this.tolerance&&this.didSwipeLeft(t),n.isRightOf(r)&&Math.abs(n.distanceFrom(r).x)>this.tolerance&&this.didSwipeRight(t)}didTouchMove(t){const[e]=t.touches,{touchStartPoint:r}=this,n=new b(e.pageX,e.pageY);this.didMove({distance:n.distanceFrom(r),up:n.isAbove(r),down:n.isBelow(r),left:n.isLeftOf(r),right:n.isRightOf(r)})}}export{E as D,j as E,Y as K,I as S,$ as a,R as i}
@@ -1 +0,0 @@
1
- System.register(["./p-fd3d3f56.system.js"],(function(){"use strict";var e,t,s,a,o;return{setters:[function(r){e=r.d;t=r.N;s=r.w;a=r.p;o=r.b}],execute:function(){var r=function(){var o=Array.from(e.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(t,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===t}));var r={};if("onbeforeload"in o&&!history.scrollRestoration){return{then:function(){}}}{r.resourcesUrl=new URL(".",new URL(o.getAttribute("data-resources-url")||o.src,s.location.href)).href}return a(r)};r().then((function(e){return o([["p-dfc33643.system",[[1,"ku4-carousel",{swipeTolerance:[2,"swipe-tolerance"],auto:[4],noSwipe:[4,"no-swipe"],delay:[2],slideState:[32],next:[64],previous:[64],slideTo:[64],pause:[64],play:[64]}]]],["p-6459c75c.system",[[1,"ku4-carousel-controls",{for:[1]}]]],["p-a13796dc.system",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["p-c5448cc1.system",[[1,"ku4-col",{startXs:[2,"start-xs"],startSm:[2,"start-sm"],startMd:[2,"start-md"],startLg:[2,"start-lg"],spanXs:[2,"span-xs"],spanSm:[2,"span-sm"],spanMd:[2,"span-md"],spanLg:[2,"span-lg"],orderXs:[2,"order-xs"],orderSm:[2,"order-sm"],orderMd:[2,"order-md"],orderLg:[2,"order-lg"]}]]],["p-a7ab7c23.system",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["p-973be48d.system",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["p-13c90d3d.system",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["p-ec165afd.system",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64]}]]],["p-6515c623.system",[[1,"ku4-grid",{columnsXs:[2,"columns-xs"],columnsSm:[2,"columns-sm"],columnsMd:[2,"columns-md"],columnsLg:[2,"columns-lg"],offsetLeftXs:[2,"offset-left-xs"],offsetLeftSm:[2,"offset-left-sm"],offsetLeftMd:[2,"offset-left-md"],offsetLeftLg:[2,"offset-left-lg"],offsetRight:[2,"offset-right"],offsetRightXs:[2,"offset-right-xs"],offsetRightSm:[2,"offset-right-sm"],offsetRightMd:[2,"offset-right-md"],offsetRightLg:[2,"offset-right-lg"],offsetXs:[2,"offset-xs"],offsetSm:[2,"offset-sm"],offsetMd:[2,"offset-md"],offsetLg:[2,"offset-lg"]}]]],["p-7bac5d20.system",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["p-27d5ad45.system",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["p-5d39e051.system",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["p-e31755cd.system",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-cbee5388.system",[[1,"ku4-preview",{for:[1],src:[1],altsrc:[1],orientation:[2],resolutionX:[2,"resolution-x"],resolutionY:[2,"resolution-y"],capture:[1],status:[1537],alt:[1],currentSrc:[32],read:[64]}]]],["p-23b35ab3.system",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["p-e7d401cc.system",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["p-2faea8a9.system",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-72be654e.system",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["p-c760ec1e.system",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["p-2681e152.system",[[1,"ku4-validation",{for:[513],element:[513],pattern:[1],flags:[1],values:[1],checked:[4],method:[1],invalid:[1540],disabled:[1540],hidden:[1540],isValid:[32],validate:[64]}]]]],e)}))}}}));
@@ -1 +0,0 @@
1
- import{R as o}from"./p-cbb6fb91.js";const b=()=>{o.uid()};export{b as u}
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function u(t){try{a(n.next(t))}catch(e){o(e)}}function s(t){try{a(n["throw"](t))}catch(e){o(e)}}function a(t){t.done?r(t.value):i(t.value).then(u,s)}a((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(t){return function(e){return a([t,e])}}function a(u){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1];o=u;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(u);break}if(o[2])r.ops.pop();r.trys.pop();continue}u=e.call(t,r)}catch(s){u=[6,s];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r};var __classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};System.register([],(function(t){"use strict";return{execute:function(){var e=this;var r,n,i,o,u,s,a,c;var f=function(){function t(){}t.isNull=function(t){return null===t};t.isEmpty=function(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1};t.isUndefined=function(t){return void 0===t};t.isZero=function(t){return 0===t};t.exists=function(e){return!(t.isUndefined(e)||t.isNull(e))};t.isNullOrEmpty=function(e){return!t.exists(e)||t.isEmpty(e)};t.isArray=function(t){return Array.isArray(t)};t.isBool=function(t){return"boolean"==typeof t};t.isTrue=function(e){return t.isBool(e)&&!0===e};t.isFalse=function(e){return t.isBool(e)&&!1===e};t.isDate=function(t){return t instanceof Date};t.isNumber=function(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)};t.isEven=function(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0};t.isOdd=function(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)};t.isString=function(t){return"string"==typeof t||t instanceof String};t.isFunction=function(t){return t instanceof Function};t.isAsyncFunction=function(e){try{return"AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(t){return!1}};t.isPromise=function(t){return t instanceof Promise};t.isObject=function(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))};t.isObjectLiteral=function(e){return t.isObject(e)&&e.constructor==={}.constructor};t.isTruthy=function(e){return!t.isFalsy(e)};t.isFalsy=function(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)};return t}();t("t",f);function l(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}return"".concat.apply("",t)}function p(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}return e.reduce((function(t,e,r){return t.replace(new RegExp("\\{".concat(r,"\\}"),"g"),e&&e.toString?e.toString():e)}),t)}function h(t){return y(d(t))}function y(t){return f.exists(t)&&f.isFunction(t.replace)?t.replace(/^[\s\n]*/,""):t}function d(t){return f.exists(t)&&f.isFunction(t.replace)?t.replace(/[\s\n]*$/,""):t}var v=t("a",Object.freeze({__proto__:null,build:l,chunk:function(t,e){if(e===void 0){e=0}if(!f.isString(t)||Number.isNaN(e)||e<0)return[];if(e<t.length){var r=0;var n=e||t.length,i=[];for(;r<t.length;)i.push(t.slice(r,r+n)),r+=n;return i}return[t]},format:p,trim:h,trimStart:y,trimEnd:d,capitalize:function(t){if(t===void 0){t=""}return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(t,e,r){if(r===void 0){r="_"}return f.isFunction(e)?e(t):f.isString(e)&&t.split("").reduce((function(t,e){return t.replace(new RegExp(r),e)}),e)},unmask:function(t,e,r){if(r===void 0){r="_"}var n=new RegExp(r);return f.isFunction(e)?e(t):f.isString(e)&&t.split("").reduce((function(t,r,i){return n.test(r)||!n.test(e.charAt(i))&&e.charAt(i)===r?t:t+r}),"")}}));var b=t("o",(function(t){return t.reduce((function(t,e){return t.includes(e)||t.push(e),t}),[])}));var _=function(){function t(t){r.set(this,void 0);n.set(this,void 0);__classPrivateFieldSet(this,r,t,"f"),__classPrivateFieldSet(this,n,0,"f")}Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.length<1},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"index",{get:function(){return __classPrivateFieldGet(this,n,"f")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"length",{get:function(){return __classPrivateFieldGet(this,r,"f").length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"current",{get:function(){return __classPrivateFieldGet(this,r,"f")[__classPrivateFieldGet(this,n,"f")]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"next",{get:function(){var t=this.length;var e=__classPrivateFieldGet(this,n,"f");return __classPrivateFieldSet(this,n,e++<t-1?e:0,"f"),this.current},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"prev",{get:function(){var t=this.length;var e=__classPrivateFieldGet(this,n,"f");return __classPrivateFieldSet(this,n,--e<0?t-1:e,"f"),this.current},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"peekNext",{get:function(){var t=this.length,e=__classPrivateFieldGet(this,n,"f");return __classPrivateFieldGet(this,r,"f")[e+1<t?e+1:0]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"peekPrev",{get:function(){var t=this.length,e=__classPrivateFieldGet(this,n,"f");return __classPrivateFieldGet(this,r,"f")[e-1<0?t-1:e-1]},enumerable:false,configurable:true});return t}();r=new WeakMap,n=new WeakMap;t("c",_);function g(t,e){try{return t()}catch(r){return e}}g.async=function(t,r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,t()];case 1:return[2,n.sent()];case 2:e=n.sent();return[2,r];case 3:return[2]}}))}))};function m(t,e){if(e===void 0){e=0}var r=Math.pow(10,-e);return Math.round(parseFloat((t*r).toFixed(Math.abs(e))))/r}function w(t,e){if(e===void 0){e=0}return m(t+5*Math.pow(10,e-1),e)}function x(t,e){if(e===void 0){e=0}if(0===t)return 0;return m(t-5*Math.pow(10,e-1),e)}function P(t,e){if(e===void 0){e=0}return t<0?w(t,e):x(t,e)}function F(t){var e=function(t,r,n){if(r===void 0){r=0}if(n===void 0){n=1}return 0<t?e(--t,n,r+n):r};return e(t)}function O(t){var e=0,r=1,n=0;for(;t>1;)n=e,e=r,r+=n,t--;return t<1?e:r}function N(t,e){if(e===void 0){e=0}var r=parseInt(t);return Number.isNaN(r)?e:r}Object.freeze({__proto__:null,random:function(t,e){if(t===void 0){t=0}if(e===void 0){e=1}return Math.random()*(e-t)+t},round:m,roundUp:w,roundDown:x,roundTowardZero:P,gcd:function t(e,r){return 0===r?Math.abs(e):t(r,e%r)},fib:F,fib2:O,fibArray:function(t){return Array(t).fill(0).map((function(){return F(--t)})).reverse()},fib2Array:function(t){return Array(t).fill(0).map((function(){return O(--t)})).reverse()},tryParseInt:N,tryParseFloat:function(t,e){if(e===void 0){e=0}var r=parseFloat(t);return Number.isNaN(r)?e:r}});var j=function(){function t(t,e){if(t===void 0){t=0}if(e===void 0){e=0}if(!f.isNumber(t)||!f.isNumber(e))throw new Error("Coord requires numeric x and y values");this._x=t,this._y=e}Object.defineProperty(t.prototype,"x",{get:function(){return this._x},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return{x:this.x,y:this.y}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"half",{get:function(){return this.divide(new t(2,2))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"abs",{get:function(){return new t(Math.abs(this.x),Math.abs(this.y))},enumerable:false,configurable:true});t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y};t.prototype.add=function(e){return new t(this.x+e.x,this.y+e.y)};t.prototype.subtract=function(e){return new t(this.x-e.x,this.y-e.y)};t.prototype.multiply=function(e){return new t(this.x*e.x,this.y*e.y)};t.prototype.divide=function(e){return new t(this.x/e.x,this.y/e.y)};t.prototype.round=function(e){if(e===void 0){e=0}return new t(m(this.x,e),m(this.y,e))};t.prototype.toString=function(){return"(".concat(this.x,",").concat(this.y,")")};t.canParse=function(e){return f.isArray(e)?!(Number.isNaN(e[0])||Number.isNaN(e[1])):f.isObjectLiteral(e)&&"x"in e&&"y"in e?!(Number.isNaN(e.x)||Number.isNaN(e.y)):e instanceof t};t.parse=function(e){return f.exists(e)?e instanceof t?e:f.isArray(e)?new t(e[0],e[1]):f.isObjectLiteral(e)&&f.exists(e.x)&&f.exists(e.y)?new t(e.x,e.y):null:null};t.tryParse=function(e){return g((function(){return t.parse(e)}),null)};return t}();var S=function(t){__extends(e,t);function e(e,r){if(e===void 0){e=0}if(r===void 0){r=0}var n=this;n=t.call(this,e,r)||this,n._lengthSquared=Math.pow(e,2)+Math.pow(r,2),n._magnitude=Math.sqrt(n._lengthSquared),n._unitNormalX=0===e&&0===r?0:e/n._magnitude,n._unitNormalY=0===e&&0===r?0:r/n._magnitude;return n}Object.defineProperty(e.prototype,"magnitude",{get:function(){return this._magnitude},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isZero",{get:function(){return 0===this.x&&0===this.y},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"normal",{get:function(){return new e(this._unitNormalX,this._unitNormalY)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"invert",{get:function(){return new e(-this.x,-this.y)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"norm",{get:function(){return new e(Math.abs(this.x),Math.abs(this.y))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"perpendicular",{get:function(){return new e(-this.y,this.x)},enumerable:false,configurable:true});e.prototype.equals=function(t){return t instanceof e&&this.x===t.x&&this.y===t.y};e.prototype.add=function(t){return t instanceof e?new e(this.x+t.x,this.y+t.y):null};e.prototype.dot=function(t){return t instanceof e?this.x*t.x+this.y*t.y:null};e.prototype.perpendicularAtTo=function(t){if(!(t instanceof e))return null;var r=t.add(this.projectionOfOnto(t).invert);return new e(r.x,r.y)};e.prototype.projectionOfOnto=function(t){if(!(t instanceof e))return null;var r=t.normal.scale(this.dot(t.normal));return new e(r.x,r.y)};e.prototype.scale=function(t){return new e(this.x*t,this.y*t)};e.prototype.unitNormalDot=function(t){return t instanceof e?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null};e.prototype.reflect=function(t){if(!(t instanceof e))return null;if(t.isZero)return this;var r=t.normal;return this.add(r.scale(2*r.dot(this)).invert)};e.prototype.round=function(t){if(t===void 0){t=0}return new e(m(this.x,t),m(this.y,t))};return e}(j);var A=function(t){__extends(e,t);function e(e,r){return t.call(this,e,r)||this}e.prototype.isAbove=function(t){return this.y<t.y};e.prototype.isBelow=function(t){return this.y>t.y};e.prototype.isLeftOf=function(t){return this.x<t.x};e.prototype.isRightOf=function(t){return this.x>t.x};e.prototype.distanceFrom=function(t){return new S(this.x-t.x,this.y-t.y)};e.prototype.distanceTo=function(t){return this.distanceFrom(t).invert};e.canParse=function(t){return t instanceof e||j.canParse(t)};e.parse=function(t){if(t instanceof e)return t;var r=j.parse(t);return new e(r.x,r.y)};e.tryParse=function(t){return g((function(){return e.parse(t)}),null)};return e}(j);var M=function(){function t(t,e,r,n){if(t===void 0){t=0}if(e===void 0){e=0}if(r===void 0){r=0}if(n===void 0){n=0}this.origin=new A(t,e),this.dimensions=new j(r,n),this.diagonal=A.parse(this.origin.add(this.dimensions)),this.center=this.diagonal.half}t.prototype.contains=function(t){return this.origin.isAbove(t)&&this.origin.isLeftOf(t)&&this.diagonal.isRightOf(t)&&this.diagonal.isBelow(t)};t.prototype.aspectToFit=function(e){var r=this.dimensions,n=e.dimensions,i=n.x,o=n.y;var u=r.x,s=r.y;return u>s&&0!==u?(s*=i/u,u=i,s>o&&(s=o,u*=s/r.y)):s>o&&(u*=o/s,s=o),new t(this.origin.x,this.origin.y,u,s)};return t}();t("M",M);var G=t("j",(function(t,e,r){if(r===void 0){r=!1}var n;return function(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}var u=r&&!n;clearTimeout(n),n=setTimeout((function(){n=null,r||t.apply(void 0,i)}),e),u&&t.apply(void 0,i)}}));var E=function(){function t(t){i.set(this,void 0);o.set(this,void 0);u.set(this,void 0);__classPrivateFieldSet(this,i,t,"f")}Object.defineProperty(t.prototype,"isRunning",{get:function(){return f.exists(__classPrivateFieldGet(this,o,"f"))},enumerable:false,configurable:true});t.prototype.onInterval=function(t){return this.clear(),__classPrivateFieldSet(this,u,t,"f"),this};t.prototype.start=function(){var t=this;return this.clear(),__classPrivateFieldSet(this,o,setInterval((function(){__classPrivateFieldGet(t,u,"f").call(t)}),__classPrivateFieldGet(this,i,"f")),"f"),this};t.prototype.clear=function(){return clearInterval(__classPrivateFieldGet(this,o,"f")),__classPrivateFieldSet(this,o,null,"f"),this};return t}();i=new WeakMap,o=new WeakMap,u=new WeakMap;t("L",E);var T=function(){function t(t){s.set(this,void 0);a.set(this,void 0);c.set(this,void 0);__classPrivateFieldSet(this,s,t,"f")}Object.defineProperty(t.prototype,"isRunning",{get:function(){return f.exists(__classPrivateFieldGet(this,a,"f"))},enumerable:false,configurable:true});t.prototype.onTimeout=function(t){return this.clear(),__classPrivateFieldSet(this,c,t,"f"),this};t.prototype.start=function(){var t=this;return this.clear(),__classPrivateFieldSet(this,a,setTimeout((function(){__classPrivateFieldGet(t,c,"f").call(t)}),__classPrivateFieldGet(this,s,"f")),"f"),this};t.prototype.clear=function(){return clearTimeout(__classPrivateFieldGet(this,a,"f")),__classPrivateFieldSet(this,a,null,"f"),this};return t}();s=new WeakMap,a=new WeakMap,c=new WeakMap;t("C",T);var k=t("Y",(function(t){return new Promise((function(e){return setTimeout(e,t)}))}));function z(t){var e=isNaN(parseInt(t))||t<0||t>24?24:t,r=Math.random().toString().substring(2),n=Math.random().toString().substring(2);return r.concat(n).substring(0,e)}function $(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var C=t("R",Object.freeze({__proto__:null,uid:z,uuid:$,suid:function(){return Symbol(z())},suuid:function(){return Symbol($())}}));Object.freeze({__proto__:null,pattern:function(t){return t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\")},escape:function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i})}}}));
@@ -1 +0,0 @@
1
- class t{static isNull(t){return null===t}static isEmpty(r){return t.isString(r)&&""===r||t.isArray(r)&&r.length<1||t.isObjectLiteral(r)&&Object.keys(r).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(r){return!(t.isUndefined(r)||t.isNull(r))}static isNullOrEmpty(r){return!t.exists(r)||t.isEmpty(r)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(r){return t.isBool(r)&&!0===r}static isFalse(r){return t.isBool(r)&&!1===r}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(r){try{return"AsyncFunction"===Object.getPrototypeOf(r).constructor.name||t.isFunction(r)&&/^async/.test(r.toString())||t.isFunction(r().then)}catch(t){return!1}}static isPromise(t){return t instanceof Promise}static isObject(r){return t.exists(r)&&"object"==typeof r&&!(t.isBool(r)||t.isNumber(r)||t.isDate(r)||t.isArray(r)||t.isString(r)||t.isFunction(r))}static isObjectLiteral(r){return t.isObject(r)&&r.constructor==={}.constructor}static isTruthy(r){return!t.isFalsy(r)}static isFalsy(r){return t.isZero(r)||t.isFalse(r)||t.isNullOrEmpty(r)||isNaN(r)}}function r(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/^[\s\n]*/,""):r}function n(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/[\s\n]*$/,""):r}var e=Object.freeze({__proto__:null,build:function(...t){return"".concat(...t)},chunk:function(r,n=0){if(!t.isString(r)||Number.isNaN(n)||n<0)return[];if(n<r.length){let t=0;const e=n||r.length,i=[];for(;t<r.length;)i.push(r.slice(t,t+e)),t+=e;return i}return[r]},format:function(t,...r){return r.reduce(((t,r,n)=>t.replace(new RegExp(`\\{${n}\\}`,"g"),r&&r.toString?r.toString():r)),t)},trim:function(t){return r(n(t))},trimStart:r,trimEnd:n,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(r,n,e="_"){return t.isFunction(n)?n(r):t.isString(n)&&r.split("").reduce(((t,r)=>t.replace(new RegExp(e),r)),n)},unmask:function(r,n,e="_"){const i=new RegExp(e);return t.isFunction(n)?n(r):t.isString(n)&&r.split("").reduce(((t,r,e)=>i.test(r)||!i.test(n.charAt(e))&&n.charAt(e)===r?t:t+r),"")}}),i=t=>t.reduce(((t,r)=>(t.includes(r)||t.push(r),t)),[]);class s{#t;#r;constructor(t){this.#t=t,this.#r=0}get isEmpty(){return this.length<1}get index(){return this.#r}get length(){return this.#t.length}get current(){return this.#t[this.#r]}get next(){const{length:t}=this;let r=this.#r;return this.#r=r++<t-1?r:0,this.current}get prev(){const{length:t}=this;let r=this.#r;return this.#r=--r<0?t-1:r,this.current}get peekNext(){const{length:t}=this,r=this.#r;return this.#t[r+1<t?r+1:0]}get peekPrev(){const{length:t}=this,r=this.#r;return this.#t[r-1<0?t-1:r-1]}}function u(t,r){try{return t()}catch{return r}}function a(t,r=0){const n=Math.pow(10,-r);return Math.round(parseFloat((t*n).toFixed(Math.abs(r))))/n}function h(t,r=0){return a(t+5*Math.pow(10,r-1),r)}function c(t,r=0){return 0===t?0:a(t-5*Math.pow(10,r-1),r)}function o(t){const r=(t,n=0,e=1)=>0<t?r(--t,e,n+e):n;return r(t)}function l(t){let r=0,n=1,e=0;for(;t>1;)e=r,r=n,n+=e,t--;return t<1?r:n}u.async=async(t,r)=>{try{return await t()}catch{return r}},Object.freeze({__proto__:null,random:function(t=0,r=1){return Math.random()*(r-t)+t},round:a,roundUp:h,roundDown:c,roundTowardZero:function(t,r=0){return t<0?h(t,r):c(t,r)},gcd:function t(r,n){return 0===n?Math.abs(r):t(n,r%n)},fib:o,fib2:l,fibArray:function(t){return Array(t).fill(0).map((()=>o(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>l(--t))).reverse()},tryParseInt:function(t,r=0){const n=parseInt(t);return Number.isNaN(n)?r:n},tryParseFloat:function(t,r=0){const n=parseFloat(t);return Number.isNaN(n)?r:n}});class f{constructor(r=0,n=0){if(!t.isNumber(r)||!t.isNumber(n))throw new Error("Coord requires numeric x and y values");this._x=r,this._y=n}get x(){return this._x}get y(){return this._y}get value(){return{x:this.x,y:this.y}}get half(){return this.divide(new f(2,2))}get abs(){return new f(Math.abs(this.x),Math.abs(this.y))}equals(t){return this.x===t.x&&this.y===t.y}add(t){return new f(this.x+t.x,this.y+t.y)}subtract(t){return new f(this.x-t.x,this.y-t.y)}multiply(t){return new f(this.x*t.x,this.y*t.y)}divide(t){return new f(this.x/t.x,this.y/t.y)}round(t=0){return new f(a(this.x,t),a(this.y,t))}toString(){return`(${this.x},${this.y})`}static canParse(r){return t.isArray(r)?!(Number.isNaN(r[0])||Number.isNaN(r[1])):t.isObjectLiteral(r)&&"x"in r&&"y"in r?!(Number.isNaN(r.x)||Number.isNaN(r.y)):r instanceof f}static parse(r){return t.exists(r)?r instanceof f?r:t.isArray(r)?new f(r[0],r[1]):t.isObjectLiteral(r)&&t.exists(r.x)&&t.exists(r.y)?new f(r.x,r.y):null:null}static tryParse(t){return u((()=>f.parse(t)),null)}}class p extends f{constructor(t=0,r=0){super(t,r),this._lengthSquared=Math.pow(t,2)+Math.pow(r,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===t&&0===r?0:t/this._magnitude,this._unitNormalY=0===t&&0===r?0:r/this._magnitude}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new p(this._unitNormalX,this._unitNormalY)}get invert(){return new p(-this.x,-this.y)}get norm(){return new p(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new p(-this.y,this.x)}equals(t){return t instanceof p&&this.x===t.x&&this.y===t.y}add(t){return t instanceof p?new p(this.x+t.x,this.y+t.y):null}dot(t){return t instanceof p?this.x*t.x+this.y*t.y:null}perpendicularAtTo(t){if(!(t instanceof p))return null;const r=t.add(this.projectionOfOnto(t).invert);return new p(r.x,r.y)}projectionOfOnto(t){if(!(t instanceof p))return null;const r=t.normal.scale(this.dot(t.normal));return new p(r.x,r.y)}scale(t){return new p(this.x*t,this.y*t)}unitNormalDot(t){return t instanceof p?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null}reflect(t){if(!(t instanceof p))return null;if(t.isZero)return this;const r=t.normal;return this.add(r.scale(2*r.dot(this)).invert)}round(t=0){return new p(a(this.x,t),a(this.y,t))}}class g extends f{constructor(t,r){super(t,r)}isAbove(t){return this.y<t.y}isBelow(t){return this.y>t.y}isLeftOf(t){return this.x<t.x}isRightOf(t){return this.x>t.x}distanceFrom(t){return new p(this.x-t.x,this.y-t.y)}distanceTo(t){return this.distanceFrom(t).invert}static canParse(t){return t instanceof g||f.canParse(t)}static parse(t){if(t instanceof g)return t;const r=f.parse(t);return new g(r.x,r.y)}static tryParse(t){return u((()=>g.parse(t)),null)}}class d{constructor(t=0,r=0,n=0,e=0){this.origin=new g(t,r),this.dimensions=new f(n,e),this.diagonal=g.parse(this.origin.add(this.dimensions)),this.center=this.diagonal.half}contains(t){return this.origin.isAbove(t)&&this.origin.isLeftOf(t)&&this.diagonal.isRightOf(t)&&this.diagonal.isBelow(t)}aspectToFit(t){const r=this.dimensions,n=t.dimensions,e=n.x,i=n.y;let s=r.x,u=r.y;return s>u&&0!==s?(u*=e/s,s=e,u>i&&(u=i,s*=u/r.y)):u>i&&(s*=i/u,u=i),new d(this.origin.x,this.origin.y,s,u)}}var m=(t,r,n=!1)=>{let e;return(...i)=>{const s=n&&!e;clearTimeout(e),e=setTimeout((()=>{e=null,n||t(...i)}),r),s&&t(...i)}};class w{#n;#e;#i;constructor(t){this.#n=t}get isRunning(){return t.exists(this.#e)}onInterval(t){return this.clear(),this.#i=t,this}start(){return this.clear(),this.#e=setInterval((()=>{this.#i()}),this.#n),this}clear(){return clearInterval(this.#e),this.#e=null,this}}class y{#n;#s;#u;constructor(t){this.#n=t}get isRunning(){return t.exists(this.#s)}onTimeout(t){return this.clear(),this.#u=t,this}start(){return this.clear(),this.#s=setTimeout((()=>{this.#u()}),this.#n),this}clear(){return clearTimeout(this.#s),this.#s=null,this}}var b=t=>new Promise((r=>setTimeout(r,t)));function A(t){const r=isNaN(parseInt(t))||t<0||t>24?24:t,n=Math.random().toString().substring(2),e=Math.random().toString().substring(2);return n.concat(e).substring(0,r)}function N(){return function t(r){return r?(r^16*Math.random()>>r/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var $=Object.freeze({__proto__:null,uid:A,uuid:N,suid:function(){return Symbol(A())},suuid:function(){return Symbol(N())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});export{y as C,w as L,d as M,$ as R,b as Y,e as a,s as c,m as j,i as o,t}
@@ -1,13 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(r,t,e){if(e||arguments.length===2)for(var n=0,a=t.length,c;n<a;n++){if(c||!(n in t)){if(!c)c=Array.prototype.slice.call(t,0,n);c[n]=t[n]}}return r.concat(c||Array.prototype.slice.call(t))};System.register([],(function(r){"use strict";return{execute:function(){
2
- /**
3
- * @license
4
- * Copyright Google Inc. All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
8
- *
9
- * This file is a port of shadowCSS from webcomponents.js to TypeScript.
10
- * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
11
- * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
12
- */
13
- var t=function(r){var t=[];var e=0;var n;r=r.replace(/(\[[^\]]*\])/g,(function(r,n){var a="__ph-".concat(e,"__");t.push(n);e++;return a}));n=r.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(r,n,a){var c="__ph-".concat(e,"__");t.push(a);e++;return n+c}));var a={content:n,placeholders:t};return a};var e=function(r,t){return t.replace(/__ph-(\d+)__/g,(function(t,e){return r[+e]}))};var n="-shadowcsshost";var a="-shadowcssslotted";var c="-shadowcsscontext";var o=")(?:\\(("+"(?:\\([^)(]*\\)|[^)(]*)+?"+")\\))?([^,{]*)";var s=new RegExp("("+n+o,"gim");var i=new RegExp("("+c+o,"gim");var v=new RegExp("("+a+o,"gim");var u=n+"-no-combinator";var l=/-shadowcsshost-no-combinator([^\s]*)/;var f=[/::shadow/g,/::content/g];var p="([>\\s~+[.,{:][\\s\\S]*)?$";var h=/-shadowcsshost/gim;var g=/:host/gim;var d=/::slotted/gim;var m=/:host-context/gim;var _=/\/\*\s*[\s\S]*?\*\//g;var x=function(r){return r.replace(_,"")};var w=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var S=function(r){return r.match(w)||[]};var b=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;var W=/([{}])/g;var y=/(^.*?[^\\])??((:+)(.*)|$)/;var O="{";var j="}";var E="%BLOCK%";var R=function(r,t){var e=A(r);var n=0;return e.escapedString.replace(b,(function(){var r=[];for(var a=0;a<arguments.length;a++){r[a]=arguments[a]}var c=r[2];var o="";var s=r[4];var i="";if(s&&s.startsWith("{"+E)){o=e.blocks[n++];s=s.substring(E.length+1);i="{"}var v={selector:c,content:o};var u=t(v);return"".concat(r[1]).concat(u.selector).concat(r[3]).concat(i).concat(u.content).concat(s)}))};var A=function(r){var t=r.split(W);var e=[];var n=[];var a=0;var c=[];for(var o=0;o<t.length;o++){var s=t[o];if(s===j){a--}if(a>0){c.push(s)}else{if(c.length>0){n.push(c.join(""));e.push(E);c=[]}e.push(s)}if(s===O){a++}}if(c.length>0){n.push(c.join(""));e.push(E)}var i={escapedString:e.join(""),blocks:n};return i};var k=function(r){r=r.replace(m,c).replace(g,n).replace(d,a);return r};var T=function(r,t,e){return r.replace(t,(function(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}if(r[2]){var n=r[2].split(",");var a=[];for(var c=0;c<n.length;c++){var o=n[c].trim();if(!o)break;a.push(e(u,o,r[3]))}return a.join(",")}else{return u+r[3]}}))};var C=function(r,t,e){return r+t.replace(n,"")+e};var L=function(r){return T(r,s,C)};var $=function(r,t,e){if(t.indexOf(n)>-1){return C(r,t,e)}else{return r+t+e+", "+t+" "+r+e}};var B=function(r,t){var e="."+t+" > ";var n=[];r=r.replace(v,(function(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}if(r[2]){var a=r[2].trim();var c=r[3];var o=e+a+c;var s="";for(var i=r[4]-1;i>=0;i--){var v=r[5][i];if(v==="}"||v===","){break}s=v+s}var l=s+o;var f="".concat(s.trimRight()).concat(o.trim());if(l.trim()!==f.trim()){var p="".concat(f,", ").concat(l);n.push({orgSelector:l,updatedSelector:p})}return o}else{return u+r[3]}}));return{selectors:n,cssText:r}};var I=function(r){return T(r,i,$)};var K=function(r){return f.reduce((function(r,t){return r.replace(t," ")}),r)};var M=function(r){var t=/\[/g;var e=/\]/g;r=r.replace(t,"\\[").replace(e,"\\]");return new RegExp("^("+r+")"+p,"m")};var U=function(r,t){var e=M(t);return!e.test(r)};var q=function(r,t){return r.replace(y,(function(r,e,n,a,c){if(e===void 0){e=""}if(a===void 0){a=""}if(c===void 0){c=""}return e+t+a+c}))};var z=function(r,t,e){h.lastIndex=0;if(h.test(r)){var n=".".concat(e);return r.replace(l,(function(r,t){return q(t,n)})).replace(h,n+" ")}return t+" "+r};var D=function(r,n,a){var c=/\[is=([^\]]*)\]/g;n=n.replace(c,(function(r){var t=[];for(var e=1;e<arguments.length;e++){t[e-1]=arguments[e]}return t[0]}));var o="."+n;var s=function(r){var t=r.trim();if(!t){return""}if(r.indexOf(u)>-1){t=z(r,n,a)}else{var e=r.replace(h,"");if(e.length>0){t=q(e,o)}}return t};var i=t(r);r=i.content;var v="";var l=0;var f;var p=/( |>|\+|~(?!=))\s*/g;var g=r.indexOf(u)>-1;var d=!g;while((f=p.exec(r))!==null){var m=f[1];var _=r.slice(l,f.index).trim();d=d||_.indexOf(u)>-1;var x=d?s(_):_;v+="".concat(x," ").concat(m," ");l=p.lastIndex}var w=r.substring(l);d=d||w.indexOf(u)>-1;v+=d?s(w):w;return e(i.placeholders,v)};var F=function(r,t,e,n){return r.split(",").map((function(r){if(n&&r.indexOf("."+n)>-1){return r.trim()}if(U(r,t)){return D(r,t,e).trim()}else{return r.trim()}})).join(", ")};var G=function(r,t,e,n,a){return R(r,(function(r){var a=r.selector;var c=r.content;if(r.selector[0]!=="@"){a=F(r.selector,t,e,n)}else if(r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document")){c=G(r.content,t,e,n)}var o={selector:a.replace(/\s{2,}/g," ").trim(),content:c};return o}))};var H=function(r,t,e,n,a){r=k(r);r=L(r);r=I(r);var c=B(r,n);r=c.cssText;r=K(r);if(t){r=G(r,t,e,n)}r=r.replace(/-shadowcsshost-no-combinator/g,".".concat(e));r=r.replace(/>\s*\*\s+([^{, ]+)/gm," $1 ");return{cssText:r.trim(),slottedSelectors:c.selectors}};var J=r("scopeCss",(function(r,t,e){var n=t+"-h";var a=t+"-s";var c=S(r);r=x(r);var o=[];if(e){var s=function(r){var t="/*!@___".concat(o.length,"___*/");var e="/*!@".concat(r.selector,"*/");o.push({placeholder:t,comment:e});r.selector=t+r.selector;return r};r=R(r,(function(r){if(r.selector[0]!=="@"){return s(r)}else if(r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document")){r.content=R(r.content,s);return r}return r}))}var i=H(r,t,n,a);r=__spreadArray([i.cssText],c,true).join("\n");if(e){o.forEach((function(t){var e=t.placeholder,n=t.comment;r=r.replace(e,n)}))}i.slottedSelectors.forEach((function(t){r=r.replace(t.orgSelector,t.updatedSelector)}));return r}))}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-c38c9cd1.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.R}],execute:function(){var n=t("u",(function(){return function(){e.uid()}()}))}}}));
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{l(n.next(e))}catch(t){i(t)}}function o(e){try{l(n["throw"](e))}catch(t){i(t)}}function l(e){e.done?r(e.value):a(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(o){s=[6,o];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register([],(function(e,t){"use strict";return{execute:function(){var r=this;var n=e("N","ku4web-components");var a;var i;var s;var o=false;var l=false;var f=false;var $=false;var u=false;var c=e("w",typeof window!=="undefined"?window:{});var v=e("d",c.document||{head:{}});var d={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var h=function(){return(v.head.attachShadow+"").indexOf("[native")>-1}();var p=e("p",(function(e){return Promise.resolve(e)}));var m=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var g=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],i=r[2];var s=b(e,n);var o=y(t,i);var l=w(n);d.ael(s,a,o,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return d.rel(s,a,o,l)}))}))}};var y=function(e,t){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[t](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}}}catch(n){Le(n)}}};var b=function(e,t){if(t&8)return c;return e};var w=function(e){return(e&2)!==0};var N="{visibility:hidden}[hydrated]{visibility:inherit}";var R=function(e,t){if(t===void 0){t=""}{return function(){return}}};var _=function(e,t){{return function(){return}}};var S=new WeakMap;var x=function(e,t,r){var n=Ee.get(e);if(m&&r){n=n||new CSSStyleSheet;n.replace(t)}else{n=t}Ee.set(e,n)};var T=function(e,t,r,n){var a=L(t);var i=Ee.get(a);e=e.nodeType===11?e:v;if(i){if(typeof i==="string"){e=e.head||e;var s=S.get(e);var o=void 0;if(!s){S.set(e,s=new Set)}if(!s.has(a)){{{o=v.createElement("style");o.innerHTML=i}e.insertBefore(o,e.querySelector("link"))}if(s){s.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var C=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=R("attachStyles",t.$tagName$);var i=T(h&&r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var L=function(e,t){return"sc-"+e.$tagName$};var P={};var k=function(e){return e!=null};var E=function(e){e=typeof e;return e==="object"||e==="function"};var j=e("h",(function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var i=null;var s=false;var o=false;var l=[];var f=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(s=typeof e!=="function"&&!E(a)){a=String(a)}if(s&&o){l[l.length-1].$text$+=a}else{l.push(s?A(null,a):a)}o=s}}};f(r);if(t){if(t.name){i=t.name}{var $=t.className||t.class;if($){t.class=typeof $!=="object"?$:Object.keys($).filter((function(e){return $[e]})).join(" ")}}}var u=A(e,null);u.$attrs$=t;if(l.length>0){u.$children$=l}{u.$name$=i}return u}));var A=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}{r.$name$=null}return r};var I=e("H",{});var M=function(e){return e&&e.$tag$===I};var O=function(e,t,r,n,a,i){if(r!==n){var s=Ce(e,t);var o=t.toLowerCase();if(t==="class"){var l=e.classList;var f=z(r);var $=z(n);l.remove.apply(l,f.filter((function(e){return e&&!$.includes(e)})));l.add.apply(l,$.filter((function(e){return e&&!f.includes(e)})))}else if(t==="style"){{for(var u in r){if(!n||n[u]==null){if(u.includes("-")){e.style.removeProperty(u)}else{e.style[u]=""}}}}for(var u in n){if(!r||n[u]!==r[u]){if(u.includes("-")){e.style.setProperty(u,n[u])}else{e.style[u]=n[u]}}}}else if(!s&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(Ce(c,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(r){d.rel(e,t,r,false)}if(n){d.ael(e,t,n,false)}}else{var v=E(n);if((s||v&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var h=n==null?"":n;if(t==="list"){s=false}else if(r==null||e[t]!=h){e[t]=h}}else{e[t]=n}}catch(p){}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!s||i&4||a)&&!v){n=n===true?"":n;{e.setAttribute(t,n)}}}}};var B=/\s/;var z=function(e){return!e?[]:e.split(B)};var q=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||P;var s=t.$attrs$||P;{for(n in i){if(!(n in s)){O(a,n,i[n],undefined,r,t.$flags$)}}}for(n in s){O(a,n,i[n],s[n],r,t.$flags$)}};var U=function(e,t,r,n){var l=t.$children$[r];var u=0;var c;var d;var h;if(!o){f=true;if(l.$tag$==="slot"){if(a){n.classList.add(a+"-s")}l.$flags$|=l.$children$?2:1}}if(l.$text$!==null){c=l.$elm$=v.createTextNode(l.$text$)}else if(l.$flags$&1){c=l.$elm$=v.createTextNode("")}else{c=l.$elm$=v.createElement(l.$flags$&2?"slot-fb":l.$tag$);{q(null,l,$)}if(k(a)&&c["s-si"]!==a){c.classList.add(c["s-si"]=a)}if(l.$children$){for(u=0;u<l.$children$.length;++u){d=U(e,l,u,c);if(d){c.appendChild(d)}}}}{c["s-hn"]=s;if(l.$flags$&(2|1)){c["s-sr"]=true;c["s-cr"]=i;c["s-sn"]=l.$name$||"";h=e&&e.$children$&&e.$children$[r];if(h&&h.$tag$===l.$tag$&&e.$elm$){H(e.$elm$,false)}}}return c};var H=function(e,t){d.$flags$|=1;var r=e.childNodes;for(var n=r.length-1;n>=0;n--){var a=r[n];if(a["s-hn"]!==s&&a["s-ol"]){J(a).insertBefore(a,G(a));a["s-ol"].remove();a["s-ol"]=undefined;f=true}if(t){H(a,t)}}d.$flags$&=~1};var V=function(e,t,r,n,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;if(o.shadowRoot&&o.tagName===s){o=o.shadowRoot}for(;a<=i;++a){if(n[a]){l=U(null,r,a,e);if(l){n[a].$elm$=l;o.insertBefore(l,G(t))}}}};var W=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;{l=true;if(a["s-ol"]){a["s-ol"].remove()}else{H(a,true)}}a.remove()}}};var D=function(e,t,r,n){var a=0;var i=0;var s=t.length-1;var o=t[0];var l=t[s];var f=n.length-1;var $=n[0];var u=n[f];var c;while(a<=s&&i<=f){if(o==null){o=t[++a]}else if(l==null){l=t[--s]}else if($==null){$=n[++i]}else if(u==null){u=n[--f]}else if(F(o,$)){K(o,$);o=t[++a];$=n[++i]}else if(F(l,u)){K(l,u);l=t[--s];u=n[--f]}else if(F(o,u)){if(o.$tag$==="slot"||u.$tag$==="slot"){H(o.$elm$.parentNode,false)}K(o,u);e.insertBefore(o.$elm$,l.$elm$.nextSibling);o=t[++a];u=n[--f]}else if(F(l,$)){if(o.$tag$==="slot"||u.$tag$==="slot"){H(l.$elm$.parentNode,false)}K(l,$);e.insertBefore(l.$elm$,o.$elm$);l=t[--s];$=n[++i]}else{{c=U(t&&t[i],r,i,e);$=n[++i]}if(c){{J(o.$elm$).insertBefore(c,G(o.$elm$))}}}}if(a>s){V(e,n[f+1]==null?null:n[f+1].$elm$,r,n,i,f)}else if(i>f){W(t,a,s)}};var F=function(e,t){if(e.$tag$===t.$tag$){if(e.$tag$==="slot"){return e.$name$===t.$name$}return true}return false};var G=function(e){return e&&e["s-ol"]||e};var J=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var K=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var i=t.$tag$;var s=t.$text$;var o;if(s===null){{if(i==="slot");else{q(e,t,$)}}if(n!==null&&a!==null){D(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}V(r,null,t,a,0,a.length-1)}else if(n!==null){W(n,0,n.length-1)}}else if(o=r["s-cr"]){o.parentNode.textContent=s}else if(e.$text$!==s){r.data=s}};var Q=function(e){var t=e.childNodes;var r;var n;var a;var i;var s;var o;for(n=0,a=t.length;n<a;n++){r=t[n];if(r.nodeType===1){if(r["s-sr"]){s=r["s-sn"];r.hidden=false;for(i=0;i<a;i++){o=t[i].nodeType;if(t[i]["s-hn"]!==r["s-hn"]||s!==""){if(o===1&&s===t[i].getAttribute("slot")){r.hidden=true;break}}else{if(o===1||o===3&&t[i].textContent.trim()!==""){r.hidden=true;break}}}}Q(r)}}};var X=[];var Y=function(e){var t;var r;var n;var a;var i;var s;var o=0;var f=e.childNodes;var $=f.length;for(;o<$;o++){t=f[o];if(t["s-sr"]&&(r=t["s-cr"])&&r.parentNode){n=r.parentNode.childNodes;a=t["s-sn"];for(s=n.length-1;s>=0;s--){r=n[s];if(!r["s-cn"]&&!r["s-nr"]&&r["s-hn"]!==t["s-hn"]){if(Z(r,a)){i=X.find((function(e){return e.$nodeToRelocate$===r}));l=true;r["s-sn"]=r["s-sn"]||a;if(i){i.$slotRefNode$=t}else{X.push({$slotRefNode$:t,$nodeToRelocate$:r})}if(r["s-sr"]){X.map((function(e){if(Z(e.$nodeToRelocate$,r["s-sn"])){i=X.find((function(e){return e.$nodeToRelocate$===r}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!X.some((function(e){return e.$nodeToRelocate$===r}))){X.push({$nodeToRelocate$:r})}}}}if(t.nodeType===1){Y(t)}}};var Z=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var ee=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var $=e.$vnode$||A(null,null);var u=M(t)?t:j(null,null,t);s=r.tagName;if(n.$attrsToReflect$){u.$attrs$=u.$attrs$||{};n.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return u.$attrs$[n]=r[t]}))}u.$tag$=null;u.$flags$|=4;e.$vnode$=u;u.$elm$=$.$elm$=r.shadowRoot||r;{a=r["s-sc"]}{i=r["s-cr"];o=h&&(n.$flags$&1)!==0;l=false}K($,u);{d.$flags$|=1;if(f){Y(u.$elm$);var c=void 0;var p=void 0;var m=void 0;var g=void 0;var y=void 0;var b=void 0;var w=0;for(;w<X.length;w++){c=X[w];p=c.$nodeToRelocate$;if(!p["s-ol"]){m=v.createTextNode("");m["s-nr"]=p;p.parentNode.insertBefore(p["s-ol"]=m,p)}}for(w=0;w<X.length;w++){c=X[w];p=c.$nodeToRelocate$;if(c.$slotRefNode$){g=c.$slotRefNode$.parentNode;y=c.$slotRefNode$.nextSibling;m=p["s-ol"];while(m=m.previousSibling){b=m["s-nr"];if(b&&b["s-sn"]===p["s-sn"]&&g===b.parentNode){b=b.nextSibling;if(!b||!b["s-nr"]){y=b;break}}}if(!y&&g!==p.parentNode||p.nextSibling!==y){if(p!==y){if(!p["s-hn"]&&p["s-ol"]){p["s-hn"]=p["s-ol"].parentNode.nodeName}g.insertBefore(p,y)}}}else{if(p.nodeType===1){p.hidden=true}}}}if(l){Q(u.$elm$)}d.$flags$&=~1;X.length=0}};var te=e("g",(function(e){return Se(e).$hostElement$}));var re=e("c",(function(e,t,r){var n=te(e);return{emit:function(e){return ne(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}}));var ne=function(e,t,r){var n=d.ce(t,r);e.dispatchEvent(n);return n};var ae=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var ie=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}ae(e,e.$ancestorComponent$);var r=function(){return se(e,t)};return ze(r)};var se=function(e,t){var r=R("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],r=e[1];return ue(n,t,r)}));e.$queuedListeners$=null}}{a=ue(n,"componentWillLoad")}}r();return ce(a,(function(){return oe(e,n,t)}))};var oe=function(e,t,n){return __awaiter(r,void 0,void 0,(function(){var r,a,i,s,o,l;return __generator(this,(function(f){r=e.$hostElement$;a=R("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(n){C(e)}s=R("render",e.$cmpMeta$.$tagName$);{le(e,t)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}s();a();{o=r["s-p"];l=function(){return fe(e)};if(o.length===0){l()}else{Promise.all(o).then(l);e.$flags$|=4;o.length=0}}return[2]}))}))};var le=function(e,t,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{ee(e,t)}}}}catch(n){Le(n,e.$hostElement$)}return null};var fe=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=R("postUpdate",t);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;{ue(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{ve(r)}{ue(a,"componentDidLoad")}n();{e.$onReadyResolve$(r);if(!i){$e()}}}else{n()}{e.$onInstanceResolve$(r)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){Be((function(){return ie(e,false)}))}e.$flags$&=~(4|512)}};var $e=function(e){{ve(v.documentElement)}Be((function(){return ne(c,"appload",{detail:{namespace:n}})}))};var ue=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(n){Le(n)}}return undefined};var ce=function(e,t){return e&&e.then?e.then(t):t()};var ve=function(e){return e.setAttribute("hydrated","")};var de=function(e,t){if(e!=null&&!E(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var he=function(e,t){return Se(e).$instanceValues$.get(t)};var pe=function(e,t,r,n){var a=Se(e);var i=a.$hostElement$;var s=a.$instanceValues$.get(t);var o=a.$flags$;var l=a.$lazyInstance$;r=de(r,n.$members$[t][0]);var f=Number.isNaN(s)&&Number.isNaN(r);var $=r!==s&&!f;if((!(o&8)||s===undefined)&&$){a.$instanceValues$.set(t,r);if(l){if(n.$watchers$&&o&128){var u=n.$watchers$[t];if(u){u.map((function(e){try{l[e](r,s,t)}catch(n){Le(n,i)}}))}}if((o&(2|16))===2){ie(a,false)}}}};var me=function(e,t,r){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,n,{get:function(){return he(this,n)},set:function(e){pe(this,n,e,t)},configurable:true,enumerable:true})}else if(r&1&&i&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=Se(this);return r.$onInstancePromise$.then((function(){var t;return(t=r.$lazyInstance$)[n].apply(t,e)}))}})}}));if(r&1){var i=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;d.jmp((function(){var t=i.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a=n[1]||r;i.set(a,r);if(n[0]&512){t.$attrsToReflect$.push([r,a])}return a}))}}return e};var ge=function(e,n,a,i,s){return __awaiter(r,void 0,void 0,(function(){var e,r,i,o,l,f,$;return __generator(this,(function(u){switch(u.label){case 0:if(!((n.$flags$&32)===0))return[3,5];n.$flags$|=32;s=ke(a);if(!s.then)return[3,2];e=_();return[4,s];case 1:s=u.sent();e();u.label=2;case 2:if(!s.isProxied){{a.$watchers$=s.watchers}me(s,a,2);s.isProxied=true}r=R("createInstance",a.$tagName$);{n.$flags$|=8}try{new s(n)}catch(c){Le(c)}{n.$flags$&=~8}{n.$flags$|=128}r();ye(n.$lazyInstance$);if(!s.style)return[3,5];i=s.style;o=L(a);if(!!Ee.has(o))return[3,5];l=R("registerStyles",a.$tagName$);if(!(a.$flags$&8))return[3,4];return[4,t.import("./p-e7cd2284.system.js").then((function(e){return e.scopeCss(i,o,false)}))];case 3:i=u.sent();u.label=4;case 4:x(o,i,!!(a.$flags$&1));l();u.label=5;case 5:f=n.$ancestorComponent$;$=function(){return ie(n,true)};if(f&&f["s-rc"]){f["s-rc"].push($)}else{$()}return[2]}}))}))};var ye=function(e){{ue(e,"connectedCallback")}};var be=function(e){if((d.$flags$&1)===0){var t=Se(e);var r=t.$cmpMeta$;var n=R("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{if(r.$flags$&(4|8)){we(e)}}{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){ae(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{ge(e,t,r)}}else{g(e,t,r.$listeners$);ye(t.$lazyInstance$)}n()}};var we=function(e){var t=e["s-cr"]=v.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var Ne=function(e){if((d.$flags$&1)===0){var t=Se(e);var r=t.$lazyInstance$;{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}{ue(r,"disconnectedCallback")}}};var Re=e("b",(function(e,t){if(t===void 0){t={}}var r=R();var n=[];var a=t.exclude||[];var i=c.customElements;var s=v.head;var o=s.querySelector("meta[charset]");var l=v.createElement("style");var f=[];var $;var u=true;Object.assign(d,t);d.$resourcesUrl$=new URL(t.resourcesUrl||"./",v.baseURI).href;e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$listeners$=t[3]}{r.$attrsToReflect$=[]}{r.$watchers$={}}if(!h&&r.$flags$&1){r.$flags$|=8}var s=r.$tagName$;var o=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;Te(t,r);if(r.$flags$&1){if(h){{t.attachShadow({mode:"open"})}}else if(!("shadowRoot"in t)){t.shadowRoot=t}}return n}t.prototype.connectedCallback=function(){var e=this;if($){clearTimeout($);$=null}if(u){f.push(this)}else{d.jmp((function(){return be(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;d.jmp((function(){return Ne(e)}))};t.prototype.componentOnReady=function(){return Se(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(s)&&!i.get(s)){n.push(s);i.define(s,me(o,r,1))}}))}));{l.innerHTML=n+N;l.setAttribute("data-styles","");s.insertBefore(l,o?o.nextSibling:s.firstChild)}u=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{d.jmp((function(){return $=setTimeout($e,30)}))}}r()}));var _e=new WeakMap;var Se=function(e){return _e.get(e)};var xe=e("r",(function(e,t){return _e.set(t.$lazyInstance$=e,t)}));var Te=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onInstancePromise$=new Promise((function(e){return r.$onInstanceResolve$=e}))}{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}g(e,r,t.$listeners$);return _e.set(e,r)};var Ce=function(e,t){return t in e};var Le=function(e,t){return(0,console.error)(e,t)};var Pe=new Map;var ke=function(e,r,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var s=Pe.get(i);if(s){return s[a]}return t.import("./".concat(i,".entry.js").concat("")).then((function(e){{Pe.set(i,e)}return e[a]}),Le)};var Ee=new Map;var je=[];var Ae=[];var Ie=function(e,t){return function(r){e.push(r);if(!u){u=true;if(t&&d.$flags$&4){Be(Oe)}else{d.raf(Oe)}}}};var Me=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(r){Le(r)}}e.length=0};var Oe=function(){Me(je);{Me(Ae);if(u=je.length>0){d.raf(Oe)}}};var Be=function(e){return p().then(e)};var ze=Ie(Ae,true)}}}));