From d36c5207bfd5da596f12ec3ed159bf2a221b44f6 Mon Sep 17 00:00:00 2001 From: "Diego H. Gurpegui" Date: Sun, 20 Dec 2020 20:44:52 -0300 Subject: [PATCH] Version bump and build --- dist/507.470b180d.js | 2 + dist/507.470b180d.js.LICENSE.txt | 102 ++++++++++++++++++ dist/656.de6365ae.js | 2 + dist/656.de6365ae.js.LICENSE.txt | 8 ++ dist/bundle.css | 5 +- dist/index.html | 2 +- dist/main.17f4fab0.js | 1 + dist/main.2ffcc7f0.js | 1 - dist/miniscript.js | 2 +- dist/miniscript_wrapper.js | 18 +--- dist/serviceAddress.2e3d35cd.js | 1 + dist/serviceAddress.975948c9.js | 1 - dist/serviceScript.596fb65b.js | 1 + dist/serviceScript.5cbeaf77.js | 1 - dist/serviceTx.53232bb2.js | 1 + dist/serviceTx.5b5ed60f.js | 1 - dist/vendors~main.098b9656.js | 93 ---------------- ...ddress~serviceScript~serviceTx.9825cc5b.js | 8 -- package-lock.json | 2 +- package.json | 2 +- 20 files changed, 125 insertions(+), 129 deletions(-) create mode 100644 dist/507.470b180d.js create mode 100644 dist/507.470b180d.js.LICENSE.txt create mode 100644 dist/656.de6365ae.js create mode 100644 dist/656.de6365ae.js.LICENSE.txt create mode 100644 dist/main.17f4fab0.js delete mode 100644 dist/main.2ffcc7f0.js create mode 100644 dist/serviceAddress.2e3d35cd.js delete mode 100644 dist/serviceAddress.975948c9.js create mode 100644 dist/serviceScript.596fb65b.js delete mode 100644 dist/serviceScript.5cbeaf77.js create mode 100644 dist/serviceTx.53232bb2.js delete mode 100644 dist/serviceTx.5b5ed60f.js delete mode 100644 dist/vendors~main.098b9656.js delete mode 100644 dist/vendors~main~serviceAddress~serviceScript~serviceTx.9825cc5b.js diff --git a/dist/507.470b180d.js b/dist/507.470b180d.js new file mode 100644 index 0000000..ab9aa14 --- /dev/null +++ b/dist/507.470b180d.js @@ -0,0 +1,2 @@ +/*! For license information please see 507.470b180d.js.LICENSE.txt */ +(self.webpackChunkbitcoin_forge=self.webpackChunkbitcoin_forge||[]).push([[507],{2122:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;tr})},1788:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,{Z:()=>r})},9756:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},8947:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;nxe,vI:()=>we,Qc:()=>Ee});var s=function(){},u={},c={},f={mark:s,measure:s};try{"undefined"!=typeof window&&(u=window),"undefined"!=typeof document&&(c=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(f=performance)}catch(e){}var d=(u.navigator||{}).userAgent,p=void 0===d?"":d,h=u,m=c,g=f,v=(h.document,!!m.documentElement&&!!m.head&&"function"==typeof m.addEventListener&&"function"==typeof m.createElement),y=(~p.indexOf("MSIE")||p.indexOf("Trident/"),"svg-inline--fa"),b=[1,2,3,4,5,6,7,8,9,10],w=b.concat([11,12,13,14,15,16,17,18,19,20]),_={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},E=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",_.GROUP,_.SWAP_OPACITY,_.PRIMARY,_.SECONDARY].concat(b.map((function(e){return"".concat(e,"x")}))).concat(w.map((function(e){return"w-".concat(e)}))),h.FontAwesomeConfig||{});m&&"function"==typeof m.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=l(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=m.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(E[r]=i)}));var x=a({},{familyPrefix:"fa",replacementClass:y,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},E);x.autoReplaceSvg||(x.observeMutations=!1);var k=a({},x);h.FontAwesomeConfig=k;var C=h||{};C.___FONT_AWESOME___||(C.___FONT_AWESOME___={}),C.___FONT_AWESOME___.styles||(C.___FONT_AWESOME___.styles={}),C.___FONT_AWESOME___.hooks||(C.___FONT_AWESOME___.hooks={}),C.___FONT_AWESOME___.shims||(C.___FONT_AWESOME___.shims=[]);var S=C.___FONT_AWESOME___,T=[];v&&((m.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m.readyState)||m.addEventListener("DOMContentLoaded",(function e(){m.removeEventListener("DOMContentLoaded",e),T.map((function(e){return e()}))})));var N,O="pending",P="settled",A="fulfilled",D="rejected",L=function(){},M=void 0!==n.g&&void 0!==n.g.process&&"function"==typeof n.g.process.emit,j="undefined"==typeof setImmediate?setTimeout:setImmediate,I=[];function R(){for(var e=0;e0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function G(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Z(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function J(e){return e.size!==Y.size||e.x!==Y.x||e.y!==Y.y||e.rotate!==Y.rotate||e.flipX||e.flipY}function ee(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var te={x:0,y:0,width:"100%",height:"100%"};function ne(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function re(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,l=e.transform,s=e.symbol,u=e.title,c=e.maskId,f=e.titleId,d=e.extra,p=e.watchable,h=void 0!==p&&p,m=r.found?r:n,g=m.width,v=m.height,y="fak"===i,b=y?"":"fa-w-".concat(Math.ceil(g/v*16)),w=[k.replacementClass,o?"".concat(k.familyPrefix,"-").concat(o):"",b].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),_={children:[],attributes:a({},d.attributes,{"data-prefix":i,"data-icon":o,class:w,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(v)})},E=y&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/v*16*.0625,"em")}:{};h&&(_.attributes["data-fa-i2svg"]=""),u&&_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(f||K())},children:[u]});var x=a({},_,{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:l,symbol:s,styles:a({},E,d.styles)}),C=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.mask,l=e.maskId,s=e.transform,u=i.width,c=i.icon,f=o.width,d=o.icon,p=ee({transform:s,containerWidth:f,iconWidth:u}),h={tag:"rect",attributes:a({},te,{fill:"white"})},m=c.children?{children:c.children.map(ne)}:{},g={tag:"g",attributes:a({},p.inner),children:[ne(a({tag:c.tag,attributes:a({},c.attributes,p.path)},m))]},v={tag:"g",attributes:a({},p.outer),children:[g]},y="mask-".concat(l||K()),b="clip-".concat(l||K()),w={tag:"mask",attributes:a({},te,{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,v]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=d,"g"===t.tag?t.children:[t])},w]};return n.push(_,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(y,")")},te)}),{children:n,attributes:r}}(x):function(e){var t=e.children,n=e.attributes,r=e.main,i=e.transform,o=Z(e.styles);if(o.length>0&&(n.style=o),J(i)){var l=ee({transform:i,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:a({},l.outer),children:[{tag:"g",attributes:a({},l.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:a({},r.icon.attributes,l.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(x),S=C.children,T=C.attributes;return x.children=S,x.attributes=T,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:a({},i,{id:!0===o?"".concat(t,"-").concat(k.familyPrefix,"-").concat(n):o}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,l=e.transform;if(J(l)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=Z(a({},o,{"transform-origin":"".concat(s.x+l.x/16,"em ").concat(s.y+l.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}var ie=(k.measurePerformance&&g&&g.mark&&g.measure,function(e,t,n,r){var i,o,a,l=Object.keys(e),s=l.length,u=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[l[0]]):(i=0,a=n);i2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,o=Object.keys(t).reduce((function(e,n){var r=t[n];return r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!=typeof S.hooks.addPack||i?S.styles[e]=a({},S.styles[e]||{},o):S.hooks.addPack(e,o),"fas"===e&&oe("fa",t)}var ae=S.styles,le=S.shims,se=function(){var e=function(e){return ie(ae,(function(t,n,r){return t[r]=ie(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in ae;ie(le,(function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),e[r]={prefix:i,iconName:o},e}),{})};function ue(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function ce(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?G(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(G(e[n]),'" ')}),"").trim()}(r),">").concat(o.map(ce).join(""),"")}se(),S.styles;function fe(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}fe.prototype=Object.create(Error.prototype),fe.prototype.constructor=fe;var de={fill:"currentColor"},pe={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},he=(a({},de,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),a({},pe,{attributeName:"opacity"}));function me(e){var t=e[0],n=e[1],r=l(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(k.familyPrefix,"-").concat(_.GROUP)},children:[{tag:"path",attributes:{class:"".concat(k.familyPrefix,"-").concat(_.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(k.familyPrefix,"-").concat(_.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}function ge(){k.autoAddCss&&!_e&&(function(e){if(e&&v){var t=m.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=m.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}m.head.insertBefore(t,r)}}(function(){var e="fa",t=y,n=k.familyPrefix,r=k.replacementClass,i='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(l,".".concat(r))}return i}()),_e=!0)}function ve(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ce(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(v){var t=m.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ye(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return ue(we.definitions,n,r)||ue(S.styles,n,r)}a({},de,{cx:"256",cy:"364",r:"28"}),a({},pe,{attributeName:"r",values:"28;14;28;28;14;28;"}),a({},he,{values:"1;0;1;1;0;1;"}),a({},de,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),a({},he,{values:"1;0;0;0;0;1;"}),a({},de,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),a({},he,{values:"0;0;1;1;0;0;"}),S.styles,S.styles;var be,we=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Y:n,i=t.symbol,o=void 0!==i&&i,l=t.mask,s=void 0===l?null:l,u=t.maskId,c=void 0===u?null:u,f=t.title,d=void 0===f?null:f,p=t.titleId,h=void 0===p?null:p,m=t.classes,g=void 0===m?[]:m,v=t.attributes,y=void 0===v?{}:v,b=t.styles,w=void 0===b?{}:b;if(e){var _=e.prefix,E=e.iconName,x=e.icon;return ve(a({type:"icon"},e),(function(){return ge(),k.autoA11y&&(d?y["aria-labelledby"]="".concat(k.replacementClass,"-title-").concat(h||K()):(y["aria-hidden"]="true",y.focusable="false")),re({icons:{main:me(x),mask:s?me(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:E,transform:a({},Y,r),symbol:o,title:d,maskId:c,titleId:h,extra:{attributes:y,styles:w,classes:g}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:ye(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ye(r||{})),be(n,a({},t,{mask:r}))})},1417:(e,t,n)=>{"use strict";n.d(t,{zhw:()=>r});var r={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]}},1436:(e,t,n)=>{"use strict";n.d(t,{acZ:()=>r,eFW:()=>i,Kb6:()=>o,eHv:()=>a,uMC:()=>l,KtF:()=>s,$aW:()=>u});var r={prefix:"fas",iconName:"arrow-left",icon:[448,512,[],"f060","M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"]},i={prefix:"fas",iconName:"arrow-right",icon:[448,512,[],"f061","M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"]},o={prefix:"fas",iconName:"cogs",icon:[640,512,[],"f085","M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"]},a={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},l={prefix:"fas",iconName:"minus-circle",icon:[512,512,[],"f056","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"]},s={prefix:"fas",iconName:"plus-circle",icon:[512,512,[],"f055","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"]},u={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"]}},7814:(e,t,n)=>{"use strict";n.d(t,{G:()=>y});var r=n(8947),i=n(5697),o=n.n(i),a=n(7294);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||!Array.isArray(t)&&t?s({},e,t):{}}function y(e){var t=e.forwardedRef,n=f(e,["forwardedRef"]),i=n.icon,o=n.mask,a=n.symbol,l=n.className,u=n.title,p=g(i),h=v("classes",[].concat(d(function(e){var t,n=e.spin,r=e.pulse,i=e.fixedWidth,o=e.inverse,a=e.border,l=e.listItem,u=e.flip,c=e.size,f=e.rotation,d=e.pull,p=(s(t={"fa-spin":n,"fa-pulse":r,"fa-fw":i,"fa-inverse":o,"fa-border":a,"fa-li":l,"fa-flip-horizontal":"horizontal"===u||"both"===u,"fa-flip-vertical":"vertical"===u||"both"===u},"fa-".concat(c),null!=c),s(t,"fa-rotate-".concat(f),null!=f&&0!==f),s(t,"fa-pull-".concat(d),null!=d),s(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(p).map((function(e){return p[e]?e:null})).filter((function(e){return e}))}(n)),d(l.split(" ")))),w=v("transform","string"==typeof n.transform?r.Qc.transform(n.transform):n.transform),_=v("mask",g(o)),E=(0,r.qv)(p,c({},h,{},w,{},_,{symbol:a,title:u}));if(!E)return function(){var e;!m&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",p),null;var x=E.abstract,k={ref:t};return Object.keys(n).forEach((function(e){y.defaultProps.hasOwnProperty(e)||(k[e]=n[e])})),b(x[0],k)}y.displayName="FontAwesomeIcon",y.propTypes={border:o().bool,className:o().string,mask:o().oneOfType([o().object,o().array,o().string]),fixedWidth:o().bool,inverse:o().bool,flip:o().oneOf(["horizontal","vertical","both"]),icon:o().oneOfType([o().object,o().array,o().string]),listItem:o().bool,pull:o().oneOf(["right","left"]),pulse:o().bool,rotation:o().oneOf([0,90,180,270]),size:o().oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:o().bool,symbol:o().oneOfType([o().bool,o().string]),title:o().string,transform:o().oneOfType([o().string,o().object]),swapOpacity:o().bool},y.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var b=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=h(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[p(t)]=r}return e}),{attrs:{}}),a=r.style,l=void 0===a?{}:a,s=f(r,["style"]);return o.attrs.style=c({},o.attrs.style,{},l),t.apply(void 0,[n.tag,c({},o.attrs,{},s)].concat(d(i)))}.bind(null,a.createElement)},3734:function(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(t),o=r(n);function a(e,t){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};f.jQueryDetection(),i.default.fn.emulateTransitionEnd=c,i.default.event.special[f.TRANSITION_END]={bindType:u,delegateType:u,handle:function(e){if(i.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var d="bs.alert",p=i.default.fn.alert,h=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){i.default.removeData(this._element,d),this._element=null},t._getRootElement=function(e){var t=f.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=i.default(e).closest(".alert")[0]),n},t._triggerCloseEvent=function(e){var t=i.default.Event("close.bs.alert");return i.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(i.default(e).removeClass("show"),i.default(e).hasClass("fade")){var n=f.getTransitionDurationFromElement(e);i.default(e).one(f.TRANSITION_END,(function(n){return t._destroyElement(e,n)})).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){i.default(e).detach().trigger("closed.bs.alert").remove()},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(d);r||(r=new e(this),n.data(d,r)),"close"===t&&r[t](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},l(e,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),e}();i.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),i.default.fn.alert=h._jQueryInterface,i.default.fn.alert.Constructor=h,i.default.fn.alert.noConflict=function(){return i.default.fn.alert=p,h._jQueryInterface};var m="bs.button",g=i.default.fn.button,v="active",y='[data-toggle^="button"]',b='input:not([type="hidden"])',w=".btn",_=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var r=this._element.querySelector(b);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(v))e=!1;else{var o=n.querySelector(".active");o&&i.default(o).removeClass(v)}e&&("checkbox"!==r.type&&"radio"!==r.type||(r.checked=!this._element.classList.contains(v)),this.shouldAvoidTriggerChange||i.default(r).trigger("change")),r.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(v)),e&&i.default(this._element).toggleClass(v))},t.dispose=function(){i.default.removeData(this._element,m),this._element=null},e._jQueryInterface=function(t,n){return this.each((function(){var r=i.default(this),o=r.data(m);o||(o=new e(this),r.data(m,o)),o.shouldAvoidTriggerChange=n,"toggle"===t&&o[t]()}))},l(e,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),e}();i.default(document).on("click.bs.button.data-api",y,(function(e){var t=e.target,n=t;if(i.default(t).hasClass("btn")||(t=i.default(t).closest(w)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var r=t.querySelector(b);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==n.tagName&&"LABEL"===t.tagName||_._jQueryInterface.call(i.default(t),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",y,(function(e){var t=i.default(e.target).closest(w)[0];i.default(t).toggleClass("focus",/^focus(in)?$/.test(e.type))})),i.default(window).on("load.bs.button.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(N)},t.nextWhenVisible=function(){var e=i.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(O)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(f.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(D);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)i.default(this._element).one(P,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?N:O;this._slide(r,this._items[e])}},t.dispose=function(){i.default(this._element).off(k),i.default.removeData(this._element,x),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=s({},S,e),f.typeCheckConfig(E,e,T),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&i.default(this._element).on("keydown.bs.carousel",(function(t){return e._keydown(t)})),"hover"===this._config.pause&&i.default(this._element).on("mouseenter.bs.carousel",(function(t){return e.pause(t)})).on("mouseleave.bs.carousel",(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&L[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){e._pointerEvent&&L[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(e){return e.preventDefault()})),this._pointerEvent?(i.default(this._element).on("pointerdown.bs.carousel",(function(e){return t(e)})),i.default(this._element).on("pointerup.bs.carousel",(function(e){return n(e)})),this._element.classList.add("pointer-event")):(i.default(this._element).on("touchstart.bs.carousel",(function(e){return t(e)})),i.default(this._element).on("touchmove.bs.carousel",(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),i.default(this._element).on("touchend.bs.carousel",(function(e){return n(e)})))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n=e===N,r=e===O,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var a=(i+(e===O?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(this._element.querySelector(D)),o=i.default.Event("slide.bs.carousel",{relatedTarget:e,direction:t,from:r,to:n});return i.default(this._element).trigger(o),o},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(t).removeClass(A);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&i.default(n).addClass(A)}},t._slide=function(e,t){var n,r,o,a=this,l=this._element.querySelector(D),s=this._getItemIndex(l),u=t||l&&this._getItemByDirection(e,l),c=this._getItemIndex(u),d=Boolean(this._interval);if(e===N?(n="carousel-item-left",r="carousel-item-next",o="left"):(n="carousel-item-right",r="carousel-item-prev",o="right"),u&&i.default(u).hasClass(A))this._isSliding=!1;else if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&l&&u){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(u);var p=i.default.Event(P,{relatedTarget:u,direction:o,from:s,to:c});if(i.default(this._element).hasClass("slide")){i.default(u).addClass(r),f.reflow(u),i.default(l).addClass(n),i.default(u).addClass(n);var h=parseInt(u.getAttribute("data-interval"),10);h?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=h):this._config.interval=this._config.defaultInterval||this._config.interval;var m=f.getTransitionDurationFromElement(l);i.default(l).one(f.TRANSITION_END,(function(){i.default(u).removeClass(n+" "+r).addClass(A),i.default(l).removeClass("active "+r+" "+n),a._isSliding=!1,setTimeout((function(){return i.default(a._element).trigger(p)}),0)})).emulateTransitionEnd(m)}else i.default(l).removeClass(A),i.default(u).addClass(A),this._isSliding=!1,i.default(this._element).trigger(p);d&&this.cycle()}},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(x),r=s({},S,i.default(this).data());"object"==typeof t&&(r=s({},r,t));var o="string"==typeof t?t:r.slide;if(n||(n=new e(this,r),i.default(this).data(x,n)),"number"==typeof t)n.to(t);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}))},e._dataApiClickHandler=function(t){var n=f.getSelectorFromElement(this);if(n){var r=i.default(n)[0];if(r&&i.default(r).hasClass("carousel")){var o=s({},i.default(r).data(),i.default(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),e._jQueryInterface.call(i.default(r),o),a&&i.default(r).data(x).to(a),t.preventDefault()}}},l(e,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return S}}]),e}();i.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",M._dataApiClickHandler),i.default(window).on("load.bs.carousel.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,n=e.length;t0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){i.default(this._element).hasClass(B)?this.hide():this.show()},t.show=function(){var t,n,r=this;if(!(this._isTransitioning||i.default(this._element).hasClass(B)||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(e){return"string"==typeof r._config.parent?e.getAttribute("data-parent")===r._config.parent:e.classList.contains(H)}))).length&&(t=null),t&&(n=i.default(t).not(this._selector).data(I))&&n._isTransitioning))){var o=i.default.Event("show.bs.collapse");if(i.default(this._element).trigger(o),!o.isDefaultPrevented()){t&&(e._jQueryInterface.call(i.default(t).not(this._selector),"hide"),n||i.default(t).data(I,null));var a=this._getDimension();i.default(this._element).removeClass(H).addClass(q),this._element.style[a]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(U).attr("aria-expanded",!0),this.setTransitioning(!0);var l="scroll"+(a[0].toUpperCase()+a.slice(1)),s=f.getTransitionDurationFromElement(this._element);i.default(this._element).one(f.TRANSITION_END,(function(){i.default(r._element).removeClass(q).addClass("collapse show"),r._element.style[a]="",r.setTransitioning(!1),i.default(r._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(s),this._element.style[a]=this._element[l]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&i.default(this._element).hasClass(B)){var t=i.default.Event("hide.bs.collapse");if(i.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",f.reflow(this._element),i.default(this._element).addClass(q).removeClass("collapse show");var r=this._triggerArray.length;if(r>0)for(var o=0;o0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),s({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(X);if(n||(n=new e(this,"object"==typeof t?t:null),i.default(this).data(X,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var n=[].slice.call(document.querySelectorAll(oe)),r=0,o=n.length;r0&&a--,40===t.which&&adocument.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(Se);var r=f.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(f.TRANSITION_END),i.default(this._element).one(f.TRANSITION_END,(function(){e._element.classList.remove(Se),n||i.default(e._element).one(f.TRANSITION_END,(function(){e._element.style.overflowY=""})).emulateTransitionEnd(e._element,r)})).emulateTransitionEnd(r),this._element.focus()}else this.hide()},t._showElement=function(e){var t=this,n=i.default(this._element).hasClass(ke),r=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&r?r.scrollTop=0:this._element.scrollTop=0,n&&f.reflow(this._element),i.default(this._element).addClass(Ce),this._config.focus&&this._enforceFocus();var o=i.default.Event("shown.bs.modal",{relatedTarget:e}),a=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,i.default(t._element).trigger(o)};if(n){var l=f.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(f.TRANSITION_END,a).emulateTransitionEnd(l)}else a()},t._enforceFocus=function(){var e=this;i.default(document).off(ye).on(ye,(function(t){document!==t.target&&e._element!==t.target&&0===i.default(e._element).has(t.target).length&&e._element.focus()}))},t._setEscapeEvent=function(){var e=this;this._isShown?i.default(this._element).on(_e,(function(t){e._config.keyboard&&27===t.which?(t.preventDefault(),e.hide()):e._config.keyboard||27!==t.which||e._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(_e)},t._setResizeEvent=function(){var e=this;this._isShown?i.default(window).on(be,(function(t){return e.handleUpdate(t)})):i.default(window).off(be)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(xe),e._resetAdjustments(),e._resetScrollbar(),i.default(e._element).trigger(ge)}))},t._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=i.default(this._element).hasClass(ke)?ke:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(we,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t._triggerBackdropTransition()})),n&&f.reflow(this._backdrop),i.default(this._backdrop).addClass(Ce),!e)return;if(!n)return void e();var r=f.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(f.TRANSITION_END,e).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(Ce);var o=function(){t._removeBackdrop(),e&&e()};if(i.default(this._element).hasClass(ke)){var a=f.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(f.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Ue="show",We="out",$e={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Ve="fade",Qe="show",Xe="hover",Ye="focus",Ke=function(){function e(e,t){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=i.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(Qe))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(t);var n=f.findShadowRoot(this.element),r=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!r)return;var a=this.getTipElement(),l=f.getUID(this.constructor.NAME);a.setAttribute("id",l),this.element.setAttribute("aria-describedby",l),this.setContent(),this.config.animation&&i.default(a).addClass(Ve);var s="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(s);this.addAttachmentClass(u);var c=this._getContainer();i.default(a).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(a).appendTo(c),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(u)),i.default(a).addClass(Qe),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,i.default(e.element).trigger(e.constructor.Event.SHOWN),t===We&&e._leave(null,e)};if(i.default(this.tip).hasClass(Ve)){var p=f.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(f.TRANSITION_END,d).emulateTransitionEnd(p)}else d()}},t.hide=function(e){var t=this,n=this.getTipElement(),r=i.default.Event(this.constructor.Event.HIDE),o=function(){t._hoverState!==Ue&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),i.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(i.default(this.element).trigger(r),!r.isDefaultPrevented()){if(i.default(n).removeClass(Qe),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,i.default(this.tip).hasClass(Ve)){var a=f.getTransitionDurationFromElement(n);i.default(n).one(f.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){i.default(this.getTipElement()).addClass("bs-tooltip-"+e)},t.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(i.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(e).removeClass("fade show")},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Le(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?i.default(t).parent().is(e)||e.empty().append(t):e.text(i.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return s({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:f.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},t._getAttachment=function(e){return He[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)i.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Xe?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===Xe?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;i.default(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(r,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||i.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Ye:Xe]=!0),i.default(t.getTipElement()).hasClass(Qe)||t._hoverState===Ue?t._hoverState=Ue:(clearTimeout(t._timeout),t._hoverState=Ue,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){t._hoverState===Ue&&t.show()}),t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||i.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Ye:Xe]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=We,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===We&&t.hide()}),t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=i.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==Fe.indexOf(e)&&delete t[e]})),"number"==typeof(e=s({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),f.typeCheckConfig(Me,e,this.constructor.DefaultType),e.sanitize&&(e.template=Le(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=i.default(this.getTipElement()),t=e.attr("class").match(ze);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(i.default(e).removeClass(Ve),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(je),o="object"==typeof t&&t;if((r||!/dispose|hide/.test(t))&&(r||(r=new e(this,o),n.data(je,r)),"string"==typeof t)){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},l(e,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return qe}},{key:"NAME",get:function(){return Me}},{key:"DATA_KEY",get:function(){return je}},{key:"Event",get:function(){return $e}},{key:"EVENT_KEY",get:function(){return Ie}},{key:"DefaultType",get:function(){return Be}}]),e}();i.default.fn.tooltip=Ke._jQueryInterface,i.default.fn.tooltip.Constructor=Ke,i.default.fn.tooltip.noConflict=function(){return i.default.fn.tooltip=Re,Ke._jQueryInterface};var Ge="popover",Ze="bs.popover",Je=".bs.popover",et=i.default.fn.popover,tt=new RegExp("(^|\\s)bs-popover\\S+","g"),nt=s({},Ke.Default,{placement:"right",trigger:"click",content:"",template:''}),rt=s({},Ke.DefaultType,{content:"(string|element|function)"}),it={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},ot=function(e){function t(){return e.apply(this,arguments)||this}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var o=t.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(e){i.default(this.getTipElement()).addClass("bs-popover-"+e)},o.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},o.setContent=function(){var e=i.default(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var e=i.default(this.getTipElement()),t=e.attr("class").match(tt);null!==t&&t.length>0&&e.removeClass(t.join(""))},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Ze),r="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,r),i.default(this).data(Ze,n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return nt}},{key:"NAME",get:function(){return Ge}},{key:"DATA_KEY",get:function(){return Ze}},{key:"Event",get:function(){return it}},{key:"EVENT_KEY",get:function(){return Je}},{key:"DefaultType",get:function(){return rt}}]),t}(Ke);i.default.fn.popover=ot._jQueryInterface,i.default.fn.popover.Constructor=ot,i.default.fn.popover.noConflict=function(){return i.default.fn.popover=et,ot._jQueryInterface};var at="scrollspy",lt="bs.scrollspy",st="."+lt,ut=i.default.fn[at],ct={offset:10,method:"auto",target:""},ft={offset:"number",method:"string",target:"(string|element)"},dt="active",pt=".nav, .list-group",ht=".nav-link",mt="position",gt=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+".nav-link,"+this._config.target+" "+".list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on("scroll.bs.scrollspy",(function(e){return n._process(e)})),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":mt,n="auto"===this._config.method?t:this._config.method,r=n===mt?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var t,o=f.getSelectorFromElement(e);if(o&&(t=document.querySelector(o)),t){var a=t.getBoundingClientRect();if(a.width||a.height)return[i.default(t)[n]().top+r,o]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},t.dispose=function(){i.default.removeData(this._element,lt),i.default(this._scrollElement).off(st),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=s({},ct,"object"==typeof e&&e?e:{})).target&&f.isElement(e.target)){var t=i.default(e.target).attr("id");t||(t=f.getUID(at),i.default(e.target).attr("id",t)),e.target="#"+t}return f.typeCheckConfig(at,e,ft),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e li > .active",kt=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(bt)||i.default(this._element).hasClass("disabled"))){var t,n,r=i.default(this._element).closest(".nav, .list-group")[0],o=f.getSelectorFromElement(this._element);if(r){var a="UL"===r.nodeName||"OL"===r.nodeName?xt:Et;n=(n=i.default.makeArray(i.default(r).find(a)))[n.length-1]}var l=i.default.Event("hide.bs.tab",{relatedTarget:this._element}),s=i.default.Event("show.bs.tab",{relatedTarget:n});if(n&&i.default(n).trigger(l),i.default(this._element).trigger(s),!s.isDefaultPrevented()&&!l.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,r);var u=function(){var t=i.default.Event("hidden.bs.tab",{relatedTarget:e._element}),r=i.default.Event("shown.bs.tab",{relatedTarget:n});i.default(n).trigger(t),i.default(e._element).trigger(r)};t?this._activate(t,t.parentNode,u):u()}}},t.dispose=function(){i.default.removeData(this._element,vt),this._element=null},t._activate=function(e,t,n){var r=this,o=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?i.default(t).children(Et):i.default(t).find(xt))[0],a=n&&o&&i.default(o).hasClass(wt),l=function(){return r._transitionComplete(e,o,n)};if(o&&a){var s=f.getTransitionDurationFromElement(o);i.default(o).removeClass(_t).one(f.TRANSITION_END,l).emulateTransitionEnd(s)}else l()},t._transitionComplete=function(e,t,n){if(t){i.default(t).removeClass(bt);var r=i.default(t.parentNode).find("> .dropdown-menu .active")[0];r&&i.default(r).removeClass(bt),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(i.default(e).addClass(bt),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),f.reflow(e),e.classList.contains(wt)&&e.classList.add(_t),e.parentNode&&i.default(e.parentNode).hasClass("dropdown-menu")){var o=i.default(e).closest(".dropdown")[0];if(o){var a=[].slice.call(o.querySelectorAll(".dropdown-toggle"));i.default(a).addClass(bt)}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(vt);if(r||(r=new e(this),n.data(vt,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},l(e,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),e}();i.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(e){e.preventDefault(),kt._jQueryInterface.call(i.default(this),"show")})),i.default.fn.tab=kt._jQueryInterface,i.default.fn.tab.Constructor=kt,i.default.fn.tab.noConflict=function(){return i.default.fn.tab=yt,kt._jQueryInterface};var Ct="toast",St="bs.toast",Tt=i.default.fn.toast,Nt="click.dismiss.bs.toast",Ot="hide",Pt="show",At="showing",Dt={animation:"boolean",autohide:"boolean",delay:"number"},Lt={animation:!0,autohide:!0,delay:500},Mt=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=i.default.Event("show.bs.toast");if(i.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){e._element.classList.remove(At),e._element.classList.add(Pt),i.default(e._element).trigger("shown.bs.toast"),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove(Ot),f.reflow(this._element),this._element.classList.add(At),this._config.animation){var r=f.getTransitionDurationFromElement(this._element);i.default(this._element).one(f.TRANSITION_END,n).emulateTransitionEnd(r)}else n()}},t.hide=function(){if(this._element.classList.contains(Pt)){var e=i.default.Event("hide.bs.toast");i.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains(Pt)&&this._element.classList.remove(Pt),i.default(this._element).off(Nt),i.default.removeData(this._element,St),this._element=null,this._config=null},t._getConfig=function(e){return e=s({},Lt,i.default(this._element).data(),"object"==typeof e&&e?e:{}),f.typeCheckConfig(Ct,e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;i.default(this._element).on(Nt,'[data-dismiss="toast"]',(function(){return e.hide()}))},t._close=function(){var e=this,t=function(){e._element.classList.add(Ot),i.default(e._element).trigger("hidden.bs.toast")};if(this._element.classList.remove(Pt),this._config.animation){var n=f.getTransitionDurationFromElement(this._element);i.default(this._element).one(f.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(St);if(r||(r=new e(this,"object"==typeof t&&t),n.data(St,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t](this)}}))},l(e,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"DefaultType",get:function(){return Dt}},{key:"Default",get:function(){return Lt}}]),e}();i.default.fn.toast=Mt._jQueryInterface,i.default.fn.toast.Constructor=Mt,i.default.fn.toast.noConflict=function(){return i.default.fn.toast=Tt,Mt._jQueryInterface},e.Alert=h,e.Button=_,e.Carousel=M,e.Collapse=V,e.Dropdown=ue,e.Modal=Oe,e.Popover=ot,e.Scrollspy=gt,e.Tab=kt,e.Toast=Mt,e.Tooltip=Ke,e.Util=f,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(9755),n(8981))},7531:(e,t,n)=>{"use strict";n.d(t,{lX:()=>b,q_:()=>C,ob:()=>d,PP:()=>T,Ep:()=>f});var r=n(2122);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r=0;d--){var p=a[d];"."===p?o(a,d):".."===p?(o(a,d),f++):f&&(o(a,d),f--)}if(!u)for(;f--;f)a.unshift("..");!u||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h}(l.pathname,a.pathname)):l.pathname=a.pathname:l.pathname||(l.pathname="/"),l}function p(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,i):n.push(i),h({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=d(e,t,m(),w.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,h({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t{"use strict";var r=n(9864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var l=s(t),m=s(n),g=0;g0&&t-1 in e)}k.fn=k.prototype={jquery:x,constructor:k,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),$=new RegExp(R+"|>"),V=new RegExp(B),Q=new RegExp("^"+z+"$"),X={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},ae=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(P=M.call(_.childNodes),_.childNodes),P[_.childNodes.length].nodeType}catch(e){L={apply:P.length?function(e,t){D.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function le(e,t,r,i){var o,l,u,c,f,h,v,y=t&&t.ownerDocument,_=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return r;if(!i&&(d(t),t=t||p,m)){if(11!==_&&(f=J.exec(e)))if(o=f[1]){if(9===_){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(y&&(u=y.getElementById(o))&&b(t,u)&&u.id===o)return r.push(u),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!T[e+" "]&&(!g||!g.test(e))&&(1!==_||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===_&&($.test(e)||W.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=w)),l=(h=a(e)).length;l--;)h[l]=(c?"#"+c:":scope")+" "+be(h[l]);v=h.join(",")}try{return L.apply(r,y.querySelectorAll(v)),r}catch(t){T(e,!0)}finally{c===w&&t.removeAttribute("id")}}}return s(e.replace(q,"$1"),t,r,i)}function se(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[w]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue((function(t){return t=+t,ue((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=le.support={},o=le.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},d=le.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:_;return a!=p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,m=!o(p),_!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Z.test(p.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+I+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Z.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",B)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(h.compareDocumentPosition),b=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==_&&b(_,e)?-1:t==p||t.ownerDocument==_&&b(_,t)?1:c?j(c,e)-j(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],l=[t];if(!i||!o)return e==p?-1:t==p?1:i?-1:o?1:c?j(c,e)-j(c,t):0;if(i===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[r]===l[r];)r++;return r?de(a[r],l[r]):a[r]==_?-1:l[r]==_?1:0},p):p},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&m&&!T[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){T(t,!0)}return le(t,p,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),b(e,t)},le.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&O.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},le.escape=function(e){return(e+"").replace(re,ie)},le.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},le.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(N),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=le.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=le.selectors={cacheLength:50,createPseudo:ue,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||le.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&le.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+R+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=le.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),l="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,s){var u,c,f,d,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=l&&t.nodeName.toLowerCase(),y=!s&&!l,b=!1;if(g){if(o){for(;m;){for(d=t;d=d[m];)if(l?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(b=(p=(u=(c=(f=(d=g)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&u[1])&&u[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[E,p,b];break}}else if(y&&(b=p=(u=(c=(f=(d=t)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&u[1]),!1===b)for(;(d=++p&&d&&d[m]||(b=p=0)||h.pop())&&((l?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((c=(f=d[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[E,b]),d!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||le.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=j(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ue((function(e){var t=[],n=[],r=l(e.replace(q,"$1"));return r[w]?ue((function(e,t,n,i){for(var o,a=r(e,null,i,[]),l=e.length;l--;)(o=a[l])&&(e[l]=!(t[l]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return le(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ue((function(e){return Q.test(e||"")||le.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ee(e,t,n,r,i){for(var o,a=[],l=0,s=e.length,u=null!=t;l-1&&(o[u]=!(a[u]=f))}}else v=Ee(v===a?v.splice(h,v.length):v),i?i(null,a,v,s):L.apply(a,v)}))}function ke(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],l=a||r.relative[" "],s=a?1:0,c=we((function(e){return e===t}),l,!0),f=we((function(e){return j(t,e)>-1}),l,!0),d=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];s1&&_e(d),s>1&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(q,"$1"),n,s0,i=e.length>0,o=function(o,a,l,s,c){var f,h,g,v=0,y="0",b=o&&[],w=[],_=u,x=o||i&&r.find.TAG("*",c),k=E+=null==_?1:Math.random()||.1,C=x.length;for(c&&(u=a==p||a||c);y!==C&&null!=(f=x[y]);y++){if(i&&f){for(h=0,a||f.ownerDocument==p||(d(f),l=!m);g=e[h++];)if(g(f,a||p,l)){s.push(f);break}c&&(E=k)}n&&((f=!g&&f)&&v--,o&&b.push(f))}if(v+=y,n&&y!==v){for(h=0;g=t[h++];)g(b,w,a,l);if(o){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=A.call(s));w=Ee(w)}L.apply(s,w),c&&!o&&w.length>0&&v+t.length>1&&le.uniqueSort(s)}return c&&(E=k,u=_),b};return n?ue(o):o}(o,i))).selector=e}return l},s=le.select=function(e,t,n,i){var o,s,u,c,f,d="function"==typeof e&&e,p=!i&&a(e=d.selector||e);if(n=n||[],1===p.length){if((s=p[0]=p[0].slice(0)).length>2&&"ID"===(u=s[0]).type&&9===t.nodeType&&m&&r.relative[s[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=X.needsContext.test(e)?0:s.length;o--&&(u=s[o],!r.relative[c=u.type]);)if((f=r.find[c])&&(i=f(u.matches[0].replace(te,ne),ee.test(s[0].type)&&ve(t.parentNode)||t))){if(s.splice(o,1),!(e=i.length&&be(s)))return L.apply(n,i),n;break}}return(d||l(e,p))(i,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=w.split("").sort(N).join("")===w,n.detectDuplicates=!!f,d(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ce((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(I,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),le}(r);k.find=S,k.expr=S.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=S.uniqueSort,k.text=S.getText,k.isXMLDoc=S.isXML,k.contains=S.contains,k.escapeSelector=S.escape;var T=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},N=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},O=k.expr.match.needsContext;function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return v(t)?k.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return c.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&O.test(e)?k(e):e||[],!1).length}});var L,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),A.test(r[1])&&k.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,L=k(b);var j=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(k(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return N((e.parentNode||{}).firstChild,e)},children:function(e){return N(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(P(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,r){var i=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=k.filter(r,i)),this.length>1&&(I[e]||k.uniqueSort(i),j.test(e)&&i.reverse()),this.pushStack(i)}}));var z=/[^\x20\t\r\n\f]+/g;function F(e){return e}function B(e){throw e}function H(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(z)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,r,i,o=[],a=[],l=-1,s=function(){for(i=i||e.once,r=t=!0;a.length;l=-1)for(n=a.shift();++l-1;)o.splice(n,1),n<=l&&l--})),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||s()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var l=this,s=arguments,u=function(){var r,u;if(!(e=o&&(n!==B&&(l=void 0,s=[r]),t.rejectWith(l,s))}};e?c():(k.Deferred.getStackHook&&(c.stackTrace=k.Deferred.getStackHook()),r.setTimeout(c))}}return k.Deferred((function(r){t[0][3].add(a(0,r,v(i)?i:F,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:F)),t[2][3].add(a(0,r,v(n)?n:B))})).promise()},promise:function(e){return null!=e?k.extend(e,i):i}},o={};return k.each(t,(function(e,r){var a=r[2],l=r[5];i[r[1]]=a.add,l&&a.add((function(){n=l}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=l.call(arguments),o=k.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?l.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(H(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)H(i[n],a(n),o.reject);return o.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&q.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){r.setTimeout((function(){throw e}))};var U=k.Deferred();function W(){b.removeEventListener("DOMContentLoaded",W),r.removeEventListener("load",W),k.ready()}k.fn.ready=function(e){return U.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||U.resolveWith(b,[k]))}}),k.ready.then=U.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",W),r.addEventListener("load",W));var $=function(e,t,n,r,i,o,a){var l=0,s=e.length,u=null==n;if("object"===E(n))for(l in i=!0,n)$(e,t,l,n[l],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(k(e),n)})),t))for(;l1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){k.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:k.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;he=b.createDocumentFragment().appendChild(b.createElement("div")),(me=b.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),he.appendChild(me),g.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="",g.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="",g.option=!!he.lastChild;var be={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function we(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&P(e,t)?k.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n",""]);var Ee=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,l,s,u,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p-1)i&&i.push(o);else if(u=le(o),a=we(f.appendChild(o),"script"),u&&_e(a),n)for(c=0;o=a[c++];)ye.test(o.type||"")&&n.push(o);return f}var ke=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ne(){return!1}function Oe(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Pe(e,t,n,r,i,o){var a,l;if("object"==typeof t){for(l in"string"!=typeof n&&(r=r||n,n=void 0),t)Pe(e,l,n,r,t[l],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ne;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each((function(){k.event.add(this,t,i,r,n)}))}function Ae(e,t,n){n?(Z.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=l.call(arguments),Z.set(this,t,o),r=n(this,t),this[t](),o!==(i=Z.get(this,t))||r?Z.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(Z.set(this,t,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&k.event.add(e,t,Te)}k.event={global:{},add:function(e,t,n,r,i){var o,a,l,s,u,c,f,d,p,h,m,g=Z.get(e);if(K(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ae,i),n.guid||(n.guid=k.guid++),(s=g.events)||(s=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(z)||[""]).length;u--;)p=m=(l=Se.exec(t[u])||[])[1],h=(l[2]||"").split(".").sort(),p&&(f=k.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=k.event.special[p]||{},c=k.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=s[p])||((d=s[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),k.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,l,s,u,c,f,d,p,h,m,g=Z.hasData(e)&&Z.get(e);if(g&&(s=g.events)){for(u=(t=(t||"").match(z)||[""]).length;u--;)if(p=m=(l=Se.exec(t[u])||[])[1],h=(l[2]||"").split(".").sort(),p){for(f=k.event.special[p]||{},d=s[p=(r?f.delegateType:f.bindType)||p]||[],l=l[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&m!==c.origType||n&&n.guid!==c.guid||l&&!l.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||k.removeEvent(e,p,g.handle),delete s[p])}else for(p in s)k.event.remove(e,p+t[u],n,r,!0);k.isEmptyObject(s)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,l=new Array(arguments.length),s=k.event.fix(e),u=(Z.get(this,"events")||Object.create(null))[s.type]||[],c=k.event.special[s.type]||{};for(l[0]=s,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n-1:k.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&l.push({elem:u,handlers:o})}return u=this,s\s*$/g;function je(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var n,r,i,o,a,l;if(1===t.nodeType){if(Z.hasData(e)&&(l=Z.get(e).events))for(i in Z.remove(t,"handle events"),l)for(n=0,r=l[i].length;n1&&"string"==typeof h&&!g.checkClone&&Le.test(h))return e.each((function(i){var o=e.eq(i);m&&(t[0]=h.call(this,i,o.html())),Be(o,t,n,r)}));if(d&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(l=(a=k.map(we(i,"script"),Ie)).length;f0&&_e(a,!s&&we(e,"script")),l},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(K(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),k.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return $(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Be(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return $(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!be[(ve.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n3,ae.removeChild(e)),l}}))}();var Xe=["Webkit","Moz","ms"],Ye=b.createElement("div").style,Ke={};function Ge(e){return k.cssProps[e]||Ke[e]||(e in Ye?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Ye)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Je=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,i,o){var a="width"===t?1:0,l=0,s=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(s+=k.css(e,n+oe[a],!0,i)),r?("content"===n&&(s-=k.css(e,"padding"+oe[a],!0,i)),"margin"!==n&&(s-=k.css(e,"border"+oe[a]+"Width",!0,i))):(s+=k.css(e,"padding"+oe[a],!0,i),"padding"!==n?s+=k.css(e,"border"+oe[a]+"Width",!0,i):l+=k.css(e,"border"+oe[a]+"Width",!0,i));return!r&&o>=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-s-l-.5))||0),s}function it(e,t,n){var r=Ue(e),i=(!g.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i,a=Ve(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&P(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===k.css(e,"boxSizing",!1,r),(o=l in e)&&(a=e[l])),(a=parseFloat(a)||0)+rt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ot(e,t,n,r,i){return new ot.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,l=Y(t),s=Je.test(t),u=e.style;if(s||(t=Ge(l)),a=k.cssHooks[t]||k.cssHooks[l],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ce(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||s||(n+=i&&i[3]||(k.cssNumber[l]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(s?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,l=Y(t);return Je.test(t)||(t=Ge(l)),(a=k.cssHooks[t]||k.cssHooks[l])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ve(e,t,r)),"normal"===i&&t in tt&&(i=tt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):We(e,et,(function(){return it(e,t,r)}))},set:function(e,n,r){var i,o=Ue(e),a=!g.scrollboxSize()&&"absolute"===o.position,l=(a||r)&&"border-box"===k.css(e,"boxSizing",!1,o),s=r?rt(e,t,r,l,o):0;return l&&a&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(e,t,"border",!1,o)-.5)),s&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),nt(0,n,s)}}})),k.cssHooks.marginLeft=Qe(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(k.cssHooks[e+t].set=nt)})),k.fn.extend({css:function(e,t){return $(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ue(e),i=t.length;a1)}}),k.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=ot.prototype.init,k.fx.step={};var at,lt,st=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function ct(){lt&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ct):r.setTimeout(ct,k.fx.interval),k.fx.tick())}function ft(){return r.setTimeout((function(){at=void 0})),at=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function pt(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&P(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(z);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=gt[t]||k.find.attr;gt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=gt[a],gt[a]=i,i=null!=n(e,t,r)?a:null,gt[a]=o),i}}));var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function bt(e){return(e.match(z)||[]).join(" ")}function wt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}k.fn.extend({prop:function(e,t){return $(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,r,i,o,a,l,s=0;if(v(e))return this.each((function(t){k(this).addClass(e.call(this,t,wt(this)))}));if((t=_t(e)).length)for(;n=this[s++];)if(i=wt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(l=bt(r))&&n.setAttribute("class",l)}return this},removeClass:function(e){var t,n,r,i,o,a,l,s=0;if(v(e))return this.each((function(t){k(this).removeClass(e.call(this,t,wt(this)))}));if(!arguments.length)return this.attr("class","");if((t=_t(e)).length)for(;n=this[s++];)if(i=wt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(l=bt(r))&&n.setAttribute("class",l)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,wt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=k(this),a=_t(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=wt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(wt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Et=/\r/g;k.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,k(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=k.map(i,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Et,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:bt(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,l=a?null:[],s=a?o+1:i.length;for(r=o<0?s:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in r;var xt=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,n,i){var o,a,l,s,u,c,f,d,h=[n||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(a=d=l=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!xt.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),f=k.event.special[m]||{},i||!f.trigger||!1!==f.trigger.apply(n,t))){if(!i&&!f.noBubble&&!y(n)){for(s=f.delegateType||m,xt.test(s+m)||(a=a.parentNode);a;a=a.parentNode)h.push(a),l=a;l===(n.ownerDocument||b)&&h.push(l.defaultView||l.parentWindow||r)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)d=a,e.type=o>1?s:f.bindType||m,(c=(Z.get(a,"events")||Object.create(null))[e.type]&&Z.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&K(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),t)||!K(n)||u&&v(n[m])&&!y(n)&&((l=n[u])&&(n[u]=null),k.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,kt),n[m](),e.isPropagationStopped()&&d.removeEventListener(m,kt),k.event.triggered=void 0,l&&(n[u]=l)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t);i||r.addEventListener(e,n,!0),Z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t)-1;i?Z.access(r,t,i):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var Ct=r.location,St={guid:Date.now()},Tt=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Nt=/\[\]$/,Ot=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,r){var i;if(Array.isArray(t))k.each(t,(function(t,i){n||Nt.test(e)?r(e,i):Dt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==E(t))r(e,t);else for(i in t)Dt(e+"["+i+"]",t[i],n,r)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){i(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&At.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}})):{name:t.name,value:n.replace(Ot,"\r\n")}})).get()}});var Lt=/%20/g,Mt=/#.*$/,jt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,zt=/^\/\//,Ft={},Bt={},Ht="*/".concat("*"),qt=b.createElement("a");function Ut(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(z)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Wt(e,t,n,r){var i={},o=e===Bt;function a(l){var s;return i[l]=!0,k.each(e[l]||[],(function(e,l){var u=l(t,n,r);return"string"!=typeof u||o||i[u]?o?!(s=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),s}return a(t.dataTypes[0])||!i["*"]&&a("*")}function $t(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}qt.href=Ct.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,k.ajaxSettings),t):$t(k.ajaxSettings,e)},ajaxPrefilter:Ut(Ft),ajaxTransport:Ut(Bt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,l,s,u,c,f,d,p=k.ajaxSetup({},t),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?k(h):k.event,g=k.Deferred(),v=k.Callbacks("once memory"),y=p.statusCode||{},w={},_={},E="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=It.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)x.always(e[x.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||E;return n&&n.abort(t),C(0,t),this}};if(g.promise(x),p.url=((e||p.url||Ct.href)+"").replace(zt,Ct.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(z)||[""],null==p.crossDomain){s=b.createElement("a");try{s.href=p.url,s.href=s.href,p.crossDomain=qt.protocol+"//"+qt.host!=s.protocol+"//"+s.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),Wt(Ft,p,t,x),u)return x;for(f in(c=k.event&&p.global)&&0==k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Rt.test(p.type),i=p.url.replace(Mt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Lt,"+")):(d=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Tt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(jt,"$1"),d=(Tt.test(i)?"&":"?")+"_="+St.guid+++d),p.url=i+d),p.ifModified&&(k.lastModified[i]&&x.setRequestHeader("If-Modified-Since",k.lastModified[i]),k.etag[i]&&x.setRequestHeader("If-None-Match",k.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ht+"; q=0.01":""):p.accepts["*"]),p.headers)x.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(h,x,p)||u))return x.abort();if(E="abort",v.add(p.complete),x.done(p.success),x.fail(p.error),n=Wt(Bt,p,t,x)){if(x.readyState=1,c&&m.trigger("ajaxSend",[x,p]),u)return x;p.async&&p.timeout>0&&(l=r.setTimeout((function(){x.abort("timeout")}),p.timeout));try{u=!1,n.send(w,C)}catch(e){if(u)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,a,s){var f,d,b,w,_,E=t;u||(u=!0,l&&r.clearTimeout(l),n=void 0,o=s||"",x.readyState=e>0?4:0,f=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var r,i,o,a,l=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in l)if(l[i]&&l[i].test(r)){s.unshift(i);break}if(s[0]in n)o=s[0];else{for(i in n){if(!s[0]||e.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==s[0]&&s.unshift(o),n[o]}(p,x,a)),!f&&k.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),w=function(e,t,n,r){var i,o,a,l,s,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=o,o=c.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(!(a=u[s+" "+o]||u["* "+o]))for(i in u)if((l=i.split(" "))[1]===o&&(a=u[s+" "+l[0]]||u["* "+l[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=l[0],c.unshift(l[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+s+" to "+o}}}return{state:"success",data:t}}(p,w,x,f),f?(p.ifModified&&((_=x.getResponseHeader("Last-Modified"))&&(k.lastModified[i]=_),(_=x.getResponseHeader("etag"))&&(k.etag[i]=_)),204===e||"HEAD"===p.type?E="nocontent":304===e?E="notmodified":(E=w.state,d=w.data,f=!(b=w.error))):(b=E,!e&&E||(E="error",e<0&&(e=0))),x.status=e,x.statusText=(t||E)+"",f?g.resolveWith(h,[d,E,x]):g.rejectWith(h,[x,E,b]),x.statusCode(y),y=void 0,c&&m.trigger(f?"ajaxSuccess":"ajaxError",[x,p,f?d:b]),v.fireWith(h,[x,E]),c&&(m.trigger("ajaxComplete",[x,p]),--k.active||k.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:i,data:n,success:r},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Qt=k.ajaxSettings.xhr();g.cors=!!Qt&&"withCredentials"in Qt,g.ajax=Qt=!!Qt,k.ajaxTransport((function(e){var t,n;if(g.cors||Qt&&!e.crossDomain)return{send:function(i,o){var a,l=e.xhr();if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)l[a]=e.xhrFields[a];for(a in e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)l.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?o(0,"error"):o(l.status,l.statusText):o(Vt[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=t(),n=l.onerror=l.ontimeout=t("error"),void 0!==l.onabort?l.onabort=n:l.onreadystatechange=function(){4===l.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{l.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=k("
\ No newline at end of file +Bitcoin Forge
\ No newline at end of file diff --git a/dist/main.17f4fab0.js b/dist/main.17f4fab0.js new file mode 100644 index 0000000..e6a6227 --- /dev/null +++ b/dist/main.17f4fab0.js @@ -0,0 +1 @@ +(()=>{var e={5463:(e,t,n)=>{"use strict";n.d(t,{rt:()=>r,mO:()=>a,UW:()=>o,p$:()=>l,Pg:()=>i,c0:()=>c,PQ:()=>s,TA:()=>u});var r="P2PKH",a="P2SH",o="P2SH-P2WPKH",l="P2WPKH",i="P2WSH",c=[r,a,o,"P2SH-P2WSH",l,i],s="STANDARD",u="OPRETURN"},9815:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8764).Buffer,a=n(7656),o=a.networks.bitcoin;const l={setTestnet:function(e){o=e?a.networks.testnet:a.networks.bitcoin},createP2PKH:function(e){var t=e;return r.isBuffer(t)||(t=r.from(t,"hex")),a.payments.p2pkh({pubkey:t,network:o}).address},createP2WPKH:function(e){var t=e;return r.isBuffer(t)||(t=r.from(t,"hex")),a.payments.p2wpkh({pubkey:t,network:o}).address},createP2PH_P2WPKH:function(e){var t=e;return r.isBuffer(t)||(t=r.from(t,"hex")),a.payments.p2sh({redeem:a.payments.p2wpkh({pubkey:t,network:o}),network:o}).address},createMultisigP2SH:function(e,t){var n=e.map((function(e){return r.from(e,"hex")}));return a.payments.p2sh({redeem:a.payments.p2ms({m:t,pubkeys:n,network:o}),network:o}).address},createMultisigP2WSH:function(e,t){var n=e.map((function(e){return r.from(e,"hex")}));return a.payments.p2wsh({redeem:a.payments.p2ms({m:t,pubkeys:n,network:o}),network:o}).address},createMultisigP2SH_P2WSH:function(e,t){var n=e.map((function(e){return r.from(e,"hex")}));return a.payments.p2sh({redeem:a.payments.p2wsh({redeem:a.payments.p2ms({m:t,pubkeys:n,network:o}),network:o})}).address},createP2SH:function(e){var t=e;return"string"==typeof e&&(t=r.from(e,"hex")),a.payments.p2sh({redeem:{output:t,network:o},network:o}).address},createP2WSH:function(e){var t=e;return"string"==typeof e&&(t=r.from(e,"hex")),a.payments.p2wsh({redeem:{output:t,network:o},network:o}).address}}},5501:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});const r=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name="",this.code=0,Object.assign(this,t)};var a=n(8764).Buffer,o=n(7656);const l={decompileScriptASM:function(e){if(!/[0-9a-fA-F]+/g.test(e))throw new Error("Invalid hexadecimal string.");var t=a.from(e,"hex");return o.script.toASM(t)},compileScript:function(e){var t=e.map((function(e){return"string"==typeof e?a.from(e,"hex"):e}));return o.script.compile(t)},compileScriptFromString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;n=(n=(n=(n=n.replace(/<(\S+)>/g,(function(e,n){var r=n;if(r.startsWith("HASH160")){r=r.substring(r.indexOf("(")+1,r.indexOf(")"));var l=t[r];return l&&(l=o.crypto.hash160(a.from(l,"hex")).toString("hex")),l}if(r.startsWith("HASH256")){r=r.substring(r.indexOf("(")+1,r.indexOf(")"));var i=t[r];return i&&(i=o.crypto.hash256(a.from(i,"hex")).toString("hex")),i}return t[n]||e}))).replace(/(\s|^)\d+(\s|$)/g,(function(e){return" ".concat(o.script.number.encode(parseInt(e,10)).toString("hex")," ")}))).replace(/\s+/g," ")).trim();var r=o.script.fromASM(n);return{script:r,parsedAsm:n}},getOpcodes:function(){return Object.getOwnPropertyNames(o.opcodes).map((function(e){return new r({name:e,code:o.opcodes[e]})}))}}},2026:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5463),a=n(8764).Buffer,o=n(7656),l=o.networks.bitcoin;const i={setTestnet:function(e){l=e?o.networks.testnet:o.networks.bitcoin},decodeTx:function(e){return o.Transaction.fromHex(e)},createTx:function(e,t){console.log("Start forging TX.");var n=new o.TransactionBuilder(l);n.setVersion(1),console.log("Add the inputs."),e.forEach((function(e){if(!Object.prototype.hasOwnProperty.call(e,"prevTxHash"))throw new Error("The Tx hash for the input was not found.");if(!Object.prototype.hasOwnProperty.call(e,"prevTxIndex"))throw new Error("The previous Tx output index for the input was not found.");if(!Object.prototype.hasOwnProperty.call(e,"privateKey"))throw new Error("The previous Tx output privateKey for the input was not found.");n.addInput(e.prevTxHash,e.prevTxIndex)})),console.log("Add the outputs."),t.forEach((function(e){if(e.type===r.TA){var t=a.from(e.data,"hex"),l=o.payments.embed({data:[t]});n.addOutput(l.output,0)}else{if(!Object.prototype.hasOwnProperty.call(e,"address"))throw new Error("The address for the output was not found.");if(!Object.prototype.hasOwnProperty.call(e,"amount"))throw new Error("The amount for the output was not found.");n.addOutput(e.address,e.amount)}})),console.log("Sign the inputs."),e.forEach((function(e,t){if([r.rt,r.p$,r.UW].includes(e.type)){var a,i,c=o.ECPair.fromWIF(e.privateKey,l);switch(e.type){case r.UW:a=o.payments.p2wpkh({pubkey:c.publicKey,network:l}),i=o.payments.p2sh({redeem:a,network:l}),n.sign(t,c,i.redeem.output,null,e.amount);break;case r.p$:a=o.payments.p2wpkh({pubkey:c.publicKey,network:l}),n.sign(t,c,a.redeem.output,null,e.amount);break;case r.rt:n.sign(t,c)}}}));var i=n.buildIncomplete();return console.log("Set redeem scripts for inputs."),e.forEach((function(e,t){var n;if([r.mO,r.Pg].includes(e.type))switch(e.type){case r.mO:n=e.redeemScript,i.setInputScript(t,a.from(n,"hex"))}})),i}}},3138:(e,t,n)=>{"use strict";var r=n(7294),a=n(3935),o=n(3727),l=n(5977),i=n(8947),c=n(1436),s=n(1417),u=n(7814);const p=function(){return r.createElement("div",null,r.createElement("h1",null,"Welcome to the Bitcoin Forge"),r.createElement("p",null,"This project intends to be an"," ",r.createElement("strong",null,"offline")," ","suite of tools for low-level operations with Bitcoin, like forging transactions or tinker with scripts."),r.createElement("h2",null,"Features"),r.createElement("p",null,"These are some of the things you can do with"," ",r.createElement("strong",null,"Bitcoin Forge"),":"),r.createElement("ul",null,r.createElement("li",null,"Transactions",r.createElement("ul",null,r.createElement("li",null,"Create a transaction by defining the inputs and outputs specifically"),r.createElement("li",null,"Deconde a transaction from it's raw hexa"))),r.createElement("li",null,"Address",r.createElement("ul",null,r.createElement("li",null,"Create an address in different formats given the public key(s) or redeem script"))),r.createElement("li",null,"Scripts",r.createElement("ul",null,r.createElement("li",null,"Decompile the script ASM given the raw hexa notation"),r.createElement("li",null,"Create a script manually by adding values or OPCODES to the stack"),r.createElement("li",null,"Create a script by using"," ",r.createElement("a",{href:"http://bitcoin.sipa.be/miniscript/"},"Miniscript")," ","notation"))),r.createElement("li",null,"Cryptography",r.createElement("ul",null,r.createElement("li",null,"Hash a message or a binary content (in hex) with different algorithms"),r.createElement("li",null,"Generate private and public keys using ECDSA. Sign content.")))),r.createElement("p",null,"This toolkit can run 100% offline, since everyting is executed on the browser once it's loaded."),r.createElement("h2",null,"Development notes"),r.createElement("p",null,"This web front-end is developed using"," ",r.createElement("a",{href:"https://reactjs.org"},"React"),", ",r.createElement("a",{href:"https://getbootstrap.com"},"Bootstrap")," and ",r.createElement("a",{href:"https://github.com/improvein/bitcoin-forge/blob/master/package.json"},"some other libraries"),r.createElement(u.G,{icon:"exclamation-triangle",className:"ml-1",title:"be careful of 3rd party libraries"}),"."),r.createElement("p",null,"The core Bitcoin features are developed using"," ",r.createElement("a",{href:"https://github.com/bitcoinjs/bitcoinjs-lib"},"BitcoinJS (bitcoinjs-lib)"),"."),r.createElement("p",null,"The Miniscript features are developed using code taken from"," ",r.createElement("a",{href:"http://bitcoin.sipa.be/miniscript/"},"http://bitcoin.sipa.be/miniscript/"),".",r.createElement("br",null),r.createElement("small",null,"Miniscript was designed and implemented by Pieter Wuille, Andrew Poelstra, and Sanket Kanjalkar.")),r.createElement("p",null,"Feel free to"," ",r.createElement("strong",null,"report an issue")," ","or"," ",r.createElement("strong",null,"collaborate")," ","on the GitHub project:",r.createElement("br",null),r.createElement("a",{href:"https://github.com/improvein/bitcoin-forge"},"https://github.com/improvein/bitcoin-forge")))};var m=n(2026),f=n(5697),d=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","text","id","btnClass","onClick","type","size"]);return r.createElement("button",h({type:i,className:"btn btn-".concat(o," ").concat(null!==c?"btn-".concat(c):""),id:a,onClick:l},s),n,t)};y.propTypes={id:d().string,text:d().oneOfType([d().string,d().element]),type:d().oneOf(["button","submit","reset"]),btnClass:d().oneOf(["primary","secondary","success","danger","warning","info","light","dark","link"]).isRequired,size:d().oneOf(["sm","lg"]),onClick:d().func.isRequired},y.defaultProps={id:null,type:"button",size:null,text:null};const b=y;function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","id","value","handleChange","horizontal","size"]),s=r.createElement(_,I({id:n,value:a,size:i,onChange:o},c));return r.createElement("div",{className:"form-group".concat(l?" row":"")},r.createElement("label",{htmlFor:n,className:"".concat(l?"col-sm-3 col-form-label":"")},t),l?r.createElement("div",{className:"col-sm-9"},s):s)};M.propTypes={label:d().string.isRequired,id:d().string.isRequired,value:d().number,horizontal:d().bool,size:d().oneOf(["sm","md","lg"]),handleChange:d().func},M.defaultProps={value:"",horizontal:!1,size:"md",handleChange:function(){}};const H=M;function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","id","value","handleChange","horizontal","size"]),s=r.createElement(U,Z({className:"form-control",id:n,value:a,size:i,onChange:o},c));return r.createElement("div",{className:"form-group".concat(l?" row":"")},r.createElement("label",{htmlFor:n,className:"".concat(l?"col-sm-3 col-form-label":"")},t),l?r.createElement("div",{className:"col-sm-9"},s):s)};B.propTypes={label:d().string.isRequired,id:d().string.isRequired,value:d().oneOfType([d().string,d().number]),horizontal:d().bool,size:d().oneOf(["sm","md","lg"]),handleChange:d().func},B.defaultProps={value:"",horizontal:!1,size:"md",handleChange:function(){}};const G=B;function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","id","value","handleChange","horizontal","size"]),s=r.createElement(ee,te({className:"form-control",id:n,value:a,size:i,onChange:o},c));return r.createElement("div",{className:"form-group".concat(l?" row":"")},r.createElement("label",{htmlFor:n,className:"".concat(l?"col-sm-3 col-form-label":"")},t),l?r.createElement("div",{className:"col-sm-9"},s):s)};ne.propTypes={label:d().string.isRequired,id:d().string.isRequired,value:d().oneOfType([d().string,d().number]),horizontal:d().bool,size:d().oneOf(["sm","md","lg"]),handleChange:d().func},ne.defaultProps={value:"",horizontal:!1,size:"md",handleChange:function(){}};const re=ne;function ae(){return(ae=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["icon","text","id","btnClass","className","onClick","align","type","size"]),f=r.Fragment;return f="string"==typeof t?r.createElement(u.G,{icon:t,className:"fa-fw mx-1"}):t,r.createElement("button",ae({type:s,className:"btn btn-expandable btn-".concat(o," ").concat(null!==p?"btn-".concat(p):""," btn-expandable-").concat(c," ").concat(l),id:a,onClick:i},m),"right"===c?r.createElement(r.Fragment,null,f,r.createElement("span",null,n)):r.createElement(r.Fragment,null,r.createElement("span",null,n),f))};oe.propTypes={id:d().string,text:d().oneOfType([d().string,d().element]),icon:d().oneOfType([d().string,d().element]),align:d().oneOf(["left","center","right"]),type:d().oneOf(["button","submit","reset"]),btnClass:d().oneOf(["primary","secondary","success","danger","warning","info","light","dark","link"]).isRequired,size:d().oneOf(["sm","lg"]),onClick:d().func.isRequired},oe.defaultProps={id:null,align:"left",type:"button",size:null,text:null};const le=oe;function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ce(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","id","value","handleChange","horizontal","size","helpMessage"]),u=r.createElement(r.Fragment,null,r.createElement(Ce,we({className:"form-control",id:n,value:a,size:i,onChange:o},s)),null!==c&&r.createElement("small",null,c));return r.createElement("div",{className:"form-group".concat(l?" row":"")},r.createElement("label",{htmlFor:n,className:"".concat(l?"col-sm-3 col-form-label":"")},t),l?r.createElement("div",{className:"col-sm-9"},u):u)};Se.propTypes={label:d().string.isRequired,id:d().string.isRequired,value:d().oneOfType([d().string,d().number]),horizontal:d().bool,size:d().oneOf(["sm","md","lg"]),handleChange:d().func,helpMessage:d().string},Se.defaultProps={value:"",horizontal:!1,size:"md",handleChange:function(){},helpMessage:null};const Oe=Se;function ke(){return(ke=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","type","id","value","handleChange","horizontal","size"]),u=r.createElement("input",ke({type:n,className:"form-control form-control-".concat(c),id:a,value:o,onChange:l},s));return r.createElement("div",{className:"form-group".concat(i?" row":"")},r.createElement("label",{htmlFor:a,className:"".concat(i?"col-sm-3 col-form-label":"")},t),i?r.createElement("div",{className:"col-sm-9"},u):u)};Ne.propTypes={label:d().string.isRequired,type:d().string.isRequired,id:d().string.isRequired,value:d().oneOfType([d().string,d().number]),horizontal:d().bool,size:d().oneOf(["sm","md","lg"]),handleChange:d().func},Ne.defaultProps={value:"",size:"md",horizontal:!1,handleChange:function(){}};const xe=Ne;function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","id","value","choices","handleChange","horizontal","size"]),u=r.createElement(He,ze({id:n,size:c,value:a,choices:o,onChange:l},s));return r.createElement("div",{className:"form-group".concat(i?" row":"")},r.createElement("label",{htmlFor:n,className:"".concat(i?"col-sm-3 col-form-label":"")},t),i?r.createElement("div",{className:"col-sm-9"},u):u)};Ke.propTypes={label:d().string.isRequired,id:d().string.isRequired,value:d().oneOfType([d().string,d().number]),choices:d().arrayOf(d().shape({text:d().string,value:d().string})).isRequired,horizontal:d().bool,size:d().oneOf(["sm","md","lg"]),handleChange:d().func},Ke.defaultProps={value:"",size:"md",horizontal:!1,handleChange:function(){}};const Ae=Ke;function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fe(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["label","id","value","handleChange"]);return r.createElement("div",{className:"form-group"},r.createElement("div",{className:"custom-control custom-switch"},r.createElement("input",Le({type:"checkbox",className:"custom-control-input",id:n,checked:a,onChange:o},l)),r.createElement("label",{htmlFor:n,className:"custom-control-label"},t)))};function Xe(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"STANDARD",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;lt(this,e),this.type=t,this.index=n,this.address=r,this.amount=a,this.data=o};function ct(e){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function st(e,t){for(var n=0;n0&&(n=Math.max.apply(Math,t.map((function(e){return e.index}))));var r=new $e({index:n+1});t.push(r),this.setState({inputs:t})}},{key:"onUpdateInput",value:function(e){var t=this.state.inputs,n=t.findIndex((function(t){return t.index===e.index}));t.splice(n,1,e),this.setState({inputs:t})}},{key:"onRemoveInput",value:function(e){var t=this,n=this.state.inputs,r=e-1;n.splice(r,1),this.setState({inputs:n},(function(){for(var e=r;e0&&(t=Math.max.apply(Math,e.map((function(e){return e.index}))));var n=new it(Je.PQ,t+1);e.push(n),this.setState({outputs:e})}},{key:"onAddOpReturn",value:function(){var e=this.state.outputs,t=0;e.length>0&&(t=Math.max.apply(Math,e.map((function(e){return e.index}))));var n=new it(Je.TA,t+1);e.push(n),this.setState({outputs:e})}},{key:"onUpdateOutput",value:function(e){var t=this.state.outputs,n=t.findIndex((function(t){return t.index===e.index}));t.splice(n,1,e),this.setState({outputs:t})}},{key:"onRemoveOutput",value:function(e){var t=this,n=this.state.outputs,r=e-1;n.splice(r,1),this.setState({outputs:n},(function(){for(var e=r;e0},r.createElement(u.G,{icon:"plus-circle",className:"mr-1"}),"Add OP_RETURN"))),"Outputs"),o.map((function(t){return r.createElement(ht,{key:t.index,item:t,onUpdate:e.onUpdateOutput,onRemove:e.onRemoveOutput})})),r.createElement("div",{className:"card bg-light mb-1"},r.createElement("div",{className:"card-body"},r.createElement("h4",{className:"card-title"},"Estimated fee"),r.createElement("p",{className:"card-subtitle mb-2 text-muted"},"Calculated based on entered amounts"),r.createElement("p",{className:"card-text text-right"},"".concat(c," sat"))))),r.createElement("div",{className:"col-sm-12"},r.createElement(b,{text:"Forge transaction",btnClass:"primary",onClick:this.submit}))),r.createElement("div",{className:"card mt-3"},r.createElement("div",{className:"card-body"},r.createElement("h5",{className:"card-title"},"Result"),i&&r.createElement("p",{className:"text-danger"},i),l&&r.createElement("div",{className:"tx-result"},r.createElement("dl",{className:"row"},r.createElement("dt",{className:"col-sm-3"},"ID"),r.createElement("dd",{className:"col-sm-9"},l.getId()),r.createElement("dt",{className:"col-sm-3"},"Size"),r.createElement("dd",{className:"col-sm-9"},"".concat(l.byteLength()," bytes")),r.createElement("dt",{className:"col-sm-3"},"Virtual size"),r.createElement("dd",{className:"col-sm-9"},"".concat(l.virtualSize()," bytes")),r.createElement("dt",{className:"col-sm-3"},"Weight"),r.createElement("dd",{className:"col-sm-9"},"".concat(l.weight()," bytes")),r.createElement("dt",{className:"col-sm-3"},"Miner fee"),r.createElement("dd",{className:"col-sm-9"},"".concat(c," sat (").concat(Math.round(c/l.virtualSize())," sat/vbyte)"))),r.createElement("div",{className:"form-group"},r.createElement("label",{htmlFor:"tx-hex"},"Hex"),r.createElement("textarea",{className:"form-control",id:"tx-hex",readOnly:!0,value:l.toHex()}))))))}}])&&bt(t.prototype,n),i}(r.Component);var St=n(9361),Ot=n.n(St),kt=n(9815);function Nt(e){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t){for(var n=0;n0){var r=new Yn({name:n,value:n});t.push(r),this.setState({stack:t})}}},{key:"onOpCodeFilterChange",value:function(e){var t=this.state.opCodes,n=e.target.value,r=t;n.length>0&&(r=t.filter((function(e){return e.name.toLowerCase().includes(n.toLowerCase())}))),this.setState({filteredOpCodes:r})}},{key:"onOpcodeAdd",value:function(e,t){var n=this.state.stack,r=new Yn({name:t.name,value:t.code});n.push(r),this.setState({stack:n})}},{key:"onStackClear",value:function(){this.setState({stack:[]})}},{key:"buttonClick",value:function(){var e=this.state.stack;if(0!==e.length)try{var t=e.map((function(e){return e.value})),n=Un.Z.compileScript(t);this.setState({script:n.toString("hex"),errorMessage:""})}catch(e){console.error(e),this.setState({errorMessage:e.message})}else this.setState({errorMessage:"The stack is empty"})}},{key:"render",value:function(){var e=this,t=this.state,n=t.stack,a=t.filteredOpCodes,o=t.script,l=t.errorMessage;return r.createElement("div",null,r.createElement("h1",null,"Create a script"),r.createElement("p",null,"Forge a script by adding items to the stack, and then compile it."),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-12 col-sm-5"},r.createElement("div",{className:"card border-primary"},r.createElement("div",{className:"card-header"},r.createElement("button",{type:"button",className:"btn btn-link btn-sm float-right",title:"Clear stack",onClick:this.onStackClear},r.createElement(u.G,{icon:"trash"})),r.createElement("h3",null,"Stack")),r.createElement("div",{className:"card-body"},r.createElement("ul",{className:"list-dnd"},n.map((function(t,n){return r.createElement("li",{key:n.toString(),draggable:!0,className:"list-dnd-item",onDragStart:function(t){return e.onItemDragStart(t,n)},onDragOver:function(){return e.onItemDragOver(n)},onDragEnd:e.onItemDragEnd},r.createElement("span",{className:"badge badge-".concat(t.isOpcode()?"secondary":"info"," my-1 list-dnd-item")},t.name))})))),r.createElement("div",{className:"card-footer"},r.createElement("small",null,"You can drag & drop opcodes in order to sort them."))),r.createElement("p",{className:"text-danger"},l)),r.createElement("div",{className:"col-12 col-sm-7"},r.createElement("div",{className:"form-group"},r.createElement("label",{htmlFor:"custom-value"},"Custom value"),r.createElement("div",{className:"d-flex"},r.createElement("button",{className:"btn btn-link",type:"button",title:"Add value to stack",onClick:this.onCustomValueAdd},r.createElement(u.G,{icon:"plus-circle"})),r.createElement("div",{className:"flex-grow-1"},r.createElement(Ce,{id:"customValue",onChange:this.onInputChange})))),r.createElement("div",{className:"card available-opcodes"},r.createElement("div",{className:"card-header"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col col-sm-6"},"Available OPCODES"),r.createElement("div",{className:"col col-sm-6"},r.createElement("input",{type:"search",className:"form-control form-control-sm",id:"opcodeFilter",onChange:this.onOpCodeFilterChange,placeholder:"Filter OPCODEs"})))),r.createElement("div",{className:"card-body"},r.createElement("ul",{className:"list-unstyled row"},a.map((function(t){return r.createElement("li",{key:t.name,className:"col text-nowrap opcode-item"},r.createElement("span",{className:"badge badge-secondary my-1"},t.name),r.createElement("button",{type:"button",className:"btn btn-link",title:"Add OPCODE to stack",onClick:function(n){return e.onOpcodeAdd(n,t)}},r.createElement(u.G,{icon:"plus-circle"})))}))))))),r.createElement(b,{text:"Compile",btnClass:"primary",onClick:this.buttonClick}),r.createElement("div",{className:"card mt-3"},r.createElement("div",{className:"card-body"},r.createElement("h5",{className:"card-title"},"Result raw script (hex)"),r.createElement("p",{className:"card-text",id:"hex-result"},o))))}}])&&er(t.prototype,n),i}(r.Component);function lr(e){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ir(e,t){for(var n=0;n{},3906:()=>{},1758:()=>{}},t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.x=e=>{},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/bitcoin-forge/",(()=>{var e={179:0,786:0,923:0,404:0},t=[[3138,656,507]],r=e=>{},a=(a,o)=>{for(var l,i,[c,s,u,p]=o,m=0,f=[];m{}),r}o.forEach(a.bind(null,0)),o.push=a.bind(null,o.push.bind(o));var i=n.x;n.x=()=>(n.x=i||(e=>{}),(r=l)())})(),n.x()})(); \ No newline at end of file diff --git a/dist/main.2ffcc7f0.js b/dist/main.2ffcc7f0.js deleted file mode 100644 index 9b71475..0000000 --- a/dist/main.2ffcc7f0.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function t(t){for(var r,i,l=t[0],c=t[1],s=t[2],p=0,m=[];p0&&void 0!==arguments[0]?arguments[0]:"STANDARD",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;i(this,e),this.type=t,this.index=n,this.address=r,this.amount=a,this.data=o}},2:function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return _})),n.d(t,"c",(function(){return G})),n.d(t,"d",(function(){return L.a})),n.d(t,"e",(function(){return $})),n.d(t,"f",(function(){return de})),n.d(t,"g",(function(){return ge})),n.d(t,"h",(function(){return ve.a})),n.d(t,"i",(function(){return _e})),n.d(t,"j",(function(){return Fe}));var r=n(0),a=n.n(r),o=n(1),i=n.n(o);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var g=function(e){var t=e.label,n=e.id,r=e.value,o=e.handleChange,i=e.horizontal,l=e.size,c=b(e,["label","id","value","handleChange","horizontal","size"]),s=a.a.createElement(h,y({id:n,value:r,size:l,onChange:o},c));return a.a.createElement("div",{className:"form-group".concat(i?" row":"")},a.a.createElement("label",{htmlFor:n,className:"".concat(i?"col-sm-3 col-form-label":"")},t),i?a.a.createElement("div",{className:"col-sm-9"},s):s)};g.propTypes={label:i.a.string.isRequired,id:i.a.string.isRequired,value:i.a.number,horizontal:i.a.bool,size:i.a.oneOf(["sm","md","lg"]),handleChange:i.a.func},g.defaultProps={value:"",horizontal:!1,size:"md",handleChange:function(){}};var v=g;function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var T=function(e){var t=e.label,n=e.id,r=e.value,o=e.handleChange,i=e.horizontal,l=e.size,c=R(e,["label","id","value","handleChange","horizontal","size"]),s=a.a.createElement(P,j({className:"form-control",id:n,value:r,size:l,onChange:o},c));return a.a.createElement("div",{className:"form-group".concat(i?" row":"")},a.a.createElement("label",{htmlFor:n,className:"".concat(i?"col-sm-3 col-form-label":"")},t),i?a.a.createElement("div",{className:"col-sm-9"},s):s)};T.propTypes={label:i.a.string.isRequired,id:i.a.string.isRequired,value:i.a.oneOfType([i.a.string,i.a.number]),horizontal:i.a.bool,size:i.a.oneOf(["sm","md","lg"]),handleChange:i.a.func},T.defaultProps={value:"",horizontal:!1,size:"md",handleChange:function(){}};var _=T;function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var U=function(e){var t=e.label,n=e.id,r=e.value,o=e.handleChange,i=e.horizontal,l=e.size,c=B(e,["label","id","value","handleChange","horizontal","size"]),s=a.a.createElement(F,W({className:"form-control",id:n,value:r,size:l,onChange:o},c));return a.a.createElement("div",{className:"form-group".concat(i?" row":"")},a.a.createElement("label",{htmlFor:n,className:"".concat(i?"col-sm-3 col-form-label":"")},t),i?a.a.createElement("div",{className:"col-sm-9"},s):s)};U.propTypes={label:i.a.string.isRequired,id:i.a.string.isRequired,value:i.a.oneOfType([i.a.string,i.a.number]),horizontal:i.a.bool,size:i.a.oneOf(["sm","md","lg"]),handleChange:i.a.func},U.defaultProps={value:"",horizontal:!1,size:"md",handleChange:function(){}};var G=U,L=n(37),V=n(8);function X(){return(X=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Y=function(e){var t=e.icon,n=e.text,r=e.id,o=e.btnClass,i=e.className,l=e.onClick,c=e.align,s=e.type,u=e.size,p=J(e,["icon","text","id","btnClass","className","onClick","align","type","size"]),m=a.a.createElement(a.a.Fragment,null);return m="string"==typeof t?a.a.createElement(V.a,{icon:t,className:"fa-fw mx-1"}):t,a.a.createElement("button",X({type:s,className:"btn btn-expandable btn-".concat(o," ").concat(null!==u?"btn-".concat(u):""," btn-expandable-").concat(c," ").concat(i),id:r,onClick:l},p),"right"===c?a.a.createElement(a.a.Fragment,null,m,a.a.createElement("span",null,n)):a.a.createElement(a.a.Fragment,null,a.a.createElement("span",null,n),m))};Y.propTypes={id:i.a.string,text:i.a.oneOfType([i.a.string,i.a.element]),icon:i.a.oneOfType([i.a.string,i.a.element]),align:i.a.oneOf(["left","center","right"]),type:i.a.oneOf(["button","submit","reset"]),btnClass:i.a.oneOf(["primary","secondary","success","danger","warning","info","light","dark","link"]).isRequired,size:i.a.oneOf(["sm","lg"]),onClick:i.a.func.isRequired},Y.defaultProps={id:null,align:"left",type:"button",size:null,text:null};var $=Y;function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var be=function(e){var t=e.label,n=e.id,r=e.value,o=e.handleChange,i=e.horizontal,l=e.size,c=e.helpMessage,s=ye(e,["label","id","value","handleChange","horizontal","size","helpMessage"]),u=a.a.createElement(a.a.Fragment,null,a.a.createElement(de,he({className:"form-control",id:n,value:r,size:l,onChange:o},s)),null!==c&&a.a.createElement("small",null,c));return a.a.createElement("div",{className:"form-group".concat(i?" row":"")},a.a.createElement("label",{htmlFor:n,className:"".concat(i?"col-sm-3 col-form-label":"")},t),i?a.a.createElement("div",{className:"col-sm-9"},u):u)};be.propTypes={label:i.a.string.isRequired,id:i.a.string.isRequired,value:i.a.oneOfType([i.a.string,i.a.number]),horizontal:i.a.bool,size:i.a.oneOf(["sm","md","lg"]),handleChange:i.a.func,helpMessage:i.a.string},be.defaultProps={value:"",horizontal:!1,size:"md",handleChange:function(){},helpMessage:null};var ge=be,ve=n(38);function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function we(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Te=function(e){var t=e.label,n=e.id,r=e.value,o=e.choices,i=e.handleChange,l=e.horizontal,c=e.size,s=Re(e,["label","id","value","choices","handleChange","horizontal","size"]),u=a.a.createElement(Pe,je({id:n,size:c,value:r,choices:o,onChange:i},s));return a.a.createElement("div",{className:"form-group".concat(l?" row":"")},a.a.createElement("label",{htmlFor:n,className:"".concat(l?"col-sm-3 col-form-label":"")},t),l?a.a.createElement("div",{className:"col-sm-9"},u):u)};Te.propTypes={label:i.a.string.isRequired,id:i.a.string.isRequired,value:i.a.oneOfType([i.a.string,i.a.number]),choices:i.a.arrayOf(i.a.shape({text:i.a.string,value:i.a.string})).isRequired,horizontal:i.a.bool,size:i.a.oneOf(["sm","md","lg"]),handleChange:i.a.func},Te.defaultProps={value:"",size:"md",horizontal:!1,handleChange:function(){}};var _e=Te;function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Me(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ue=function(e){var t=e.label,n=e.id,r=e.value,o=e.handleChange,i=Be(e,["label","id","value","handleChange"]);return a.a.createElement("div",{className:"form-group"},a.a.createElement("div",{className:"custom-control custom-switch"},a.a.createElement("input",We({type:"checkbox",className:"custom-control-input",id:n,checked:r,onChange:o},i)),a.a.createElement("label",{htmlFor:n,className:"custom-control-label"},t)))};Ue.propTypes={label:i.a.string.isRequired,id:i.a.string.isRequired,value:i.a.bool,handleChange:i.a.func},Ue.defaultProps={value:!1,handleChange:function(){}}},227:function(e,t,n){},228:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(110),i=n.n(o),l=n(15),c=n(10),s=n(43),u=n(30),p=n(116),m=n(8),f=function(){return a.a.createElement("div",null,a.a.createElement("h1",null,"Welcome to the Bitcoin Forge"),a.a.createElement("p",null,"This project intends to be an"," ",a.a.createElement("strong",null,"offline")," ","suite of tools for low-level operations with Bitcoin, like forging transactions or tinker with scripts."),a.a.createElement("h2",null,"Features"),a.a.createElement("p",null,"These are some of the things you can do with"," ",a.a.createElement("strong",null,"Bitcoin Forge"),":"),a.a.createElement("ul",null,a.a.createElement("li",null,"Transactions",a.a.createElement("ul",null,a.a.createElement("li",null,"Create a transaction by defining the inputs and outputs specifically"),a.a.createElement("li",null,"Deconde a transaction from it's raw hexa"))),a.a.createElement("li",null,"Address",a.a.createElement("ul",null,a.a.createElement("li",null,"Create an address in different formats given the public key(s) or redeem script"))),a.a.createElement("li",null,"Scripts",a.a.createElement("ul",null,a.a.createElement("li",null,"Decompile the script ASM given the raw hexa notation"),a.a.createElement("li",null,"Create a script manually by adding values or OPCODES to the stack"),a.a.createElement("li",null,"Create a script by using"," ",a.a.createElement("a",{href:"http://bitcoin.sipa.be/miniscript/"},"Miniscript")," ","notation"))),a.a.createElement("li",null,"Cryptography",a.a.createElement("ul",null,a.a.createElement("li",null,"Hash a message or a binary content (in hex) with different algorithms"),a.a.createElement("li",null,"Generate private and public keys using ECDSA. Sign content.")))),a.a.createElement("p",null,"This toolkit can run 100% offline, since everyting is executed on the browser once it's loaded."),a.a.createElement("h2",null,"Development notes"),a.a.createElement("p",null,"This web front-end is developed using"," ",a.a.createElement("a",{href:"https://reactjs.org"},"React"),", ",a.a.createElement("a",{href:"https://getbootstrap.com"},"Bootstrap")," and ",a.a.createElement("a",{href:"https://github.com/improvein/bitcoin-forge/blob/master/package.json"},"some other libraries"),a.a.createElement(m.a,{icon:"exclamation-triangle",className:"ml-1",title:"be careful of 3rd party libraries"}),"."),a.a.createElement("p",null,"The core Bitcoin features are developed using"," ",a.a.createElement("a",{href:"https://github.com/bitcoinjs/bitcoinjs-lib"},"BitcoinJS (bitcoinjs-lib)"),"."),a.a.createElement("p",null,"The Miniscript features are developed using code taken from"," ",a.a.createElement("a",{href:"http://bitcoin.sipa.be/miniscript/"},"http://bitcoin.sipa.be/miniscript/"),".",a.a.createElement("br",null),a.a.createElement("small",null,"Miniscript was designed and implemented by Pieter Wuille, Andrew Poelstra, and Sanket Kanjalkar.")),a.a.createElement("p",null,"Feel free to"," ",a.a.createElement("strong",null,"report an issue")," ","or"," ",a.a.createElement("strong",null,"collaborate")," ","on the GitHub project:",a.a.createElement("br",null),a.a.createElement("a",{href:"https://github.com/improvein/bitcoin-forge"},"https://github.com/improvein/bitcoin-forge")))},d=n(29),h=n(37);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var n=0;n0&&(n=Math.max.apply(Math,t.map((function(e){return e.index}))));var r=new P.b({index:n+1});t.push(r),this.setState({inputs:t})}},{key:"onUpdateInput",value:function(e){var t=this.state.inputs,n=t.findIndex((function(t){return t.index===e.index}));t.splice(n,1,e),this.setState({inputs:t})}},{key:"onRemoveInput",value:function(e){var t=this,n=this.state.inputs,r=e-1;n.splice(r,1),this.setState({inputs:n},(function(){for(var e=r;e0&&(t=Math.max.apply(Math,e.map((function(e){return e.index}))));var n=new P.c(j.h,t+1);e.push(n),this.setState({outputs:e})}},{key:"onAddOpReturn",value:function(){var e=this.state.outputs,t=0;e.length>0&&(t=Math.max.apply(Math,e.map((function(e){return e.index}))));var n=new P.c(j.g,t+1);e.push(n),this.setState({outputs:e})}},{key:"onUpdateOutput",value:function(e){var t=this.state.outputs,n=t.findIndex((function(t){return t.index===e.index}));t.splice(n,1,e),this.setState({outputs:t})}},{key:"onRemoveOutput",value:function(e){var t=this,n=this.state.outputs,r=e-1;n.splice(r,1),this.setState({outputs:n},(function(){for(var e=r;e0},a.a.createElement(m.a,{icon:"plus-circle",className:"mr-1"}),"Add OP_RETURN"))),"Outputs"),o.map((function(t){return a.a.createElement(V,{key:t.index,item:t,onUpdate:e.onUpdateOutput,onRemove:e.onRemoveOutput})})),a.a.createElement("div",{className:"card bg-light mb-1"},a.a.createElement("div",{className:"card-body"},a.a.createElement("h4",{className:"card-title"},"Estimated fee"),a.a.createElement("p",{className:"card-subtitle mb-2 text-muted"},"Calculated based on entered amounts"),a.a.createElement("p",{className:"card-text text-right"},"".concat(c," sat"))))),a.a.createElement("div",{className:"col-sm-12"},a.a.createElement(O.d,{text:"Forge transaction",btnClass:"primary",onClick:this.submit}))),a.a.createElement("div",{className:"card mt-3"},a.a.createElement("div",{className:"card-body"},a.a.createElement("h5",{className:"card-title"},"Result"),l&&a.a.createElement("p",{className:"text-danger"},l),i&&a.a.createElement("div",{className:"tx-result"},a.a.createElement("dl",{className:"row"},a.a.createElement("dt",{className:"col-sm-3"},"ID"),a.a.createElement("dd",{className:"col-sm-9"},i.getId()),a.a.createElement("dt",{className:"col-sm-3"},"Size"),a.a.createElement("dd",{className:"col-sm-9"},"".concat(i.byteLength()," bytes")),a.a.createElement("dt",{className:"col-sm-3"},"Virtual size"),a.a.createElement("dd",{className:"col-sm-9"},"".concat(i.virtualSize()," bytes")),a.a.createElement("dt",{className:"col-sm-3"},"Weight"),a.a.createElement("dd",{className:"col-sm-9"},"".concat(i.weight()," bytes")),a.a.createElement("dt",{className:"col-sm-3"},"Miner fee"),a.a.createElement("dd",{className:"col-sm-9"},"".concat(c," sat (").concat(Math.round(c/i.virtualSize())," sat/vbyte)"))),a.a.createElement("div",{className:"form-group"},a.a.createElement("label",{htmlFor:"tx-hex"},"Hex"),a.a.createElement("textarea",{className:"form-control",id:"tx-hex",readOnly:!0,value:i.toHex()}))))))}}])&&J(t.prototype,n),r&&J(t,r),i}(r.Component),ne=n(14),re=n.n(ne),ae=n(6);function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){for(var n=0;n0){var r=new qt({name:n,value:n});t.push(r),this.setState({stack:t})}}},{key:"onOpCodeFilterChange",value:function(e){var t=this.state.opCodes,n=e.target.value,r=t;n.length>0&&(r=t.filter((function(e){return e.name.toLowerCase().includes(n.toLowerCase())}))),this.setState({filteredOpCodes:r})}},{key:"onOpcodeAdd",value:function(e,t){var n=this.state.stack,r=new qt({name:t.name,value:t.code});n.push(r),this.setState({stack:n})}},{key:"onStackClear",value:function(){this.setState({stack:[]})}},{key:"buttonClick",value:function(){var e=this.state.stack;if(0!==e.length)try{var t=e.map((function(e){return e.value})),n=Rt.default.compileScript(t);this.setState({script:n.toString("hex"),errorMessage:""})}catch(e){console.error(e),this.setState({errorMessage:e.message})}else this.setState({errorMessage:"The stack is empty"})}},{key:"render",value:function(){var e=this,t=this.state,n=t.stack,r=t.filteredOpCodes,o=t.script,i=t.errorMessage;return a.a.createElement("div",null,a.a.createElement("h1",null,"Create a script"),a.a.createElement("p",null,"Forge a script by adding items to the stack, and then compile it."),a.a.createElement("div",{className:"row"},a.a.createElement("div",{className:"col-12 col-sm-5"},a.a.createElement("div",{className:"card border-primary"},a.a.createElement("div",{className:"card-header"},a.a.createElement("button",{type:"button",className:"btn btn-link btn-sm float-right",title:"Clear stack",onClick:this.onStackClear},a.a.createElement(m.a,{icon:"trash"})),a.a.createElement("h3",null,"Stack")),a.a.createElement("div",{className:"card-body"},a.a.createElement("ul",{className:"list-dnd"},n.map((function(t,n){return a.a.createElement("li",{key:n.toString(),draggable:!0,className:"list-dnd-item",onDragStart:function(t){return e.onItemDragStart(t,n)},onDragOver:function(){return e.onItemDragOver(n)},onDragEnd:e.onItemDragEnd},a.a.createElement("span",{className:"badge badge-".concat(t.isOpcode()?"secondary":"info"," my-1 list-dnd-item")},t.name))})))),a.a.createElement("div",{className:"card-footer"},a.a.createElement("small",null,"You can drag & drop opcodes in order to sort them."))),a.a.createElement("p",{className:"text-danger"},i)),a.a.createElement("div",{className:"col-12 col-sm-7"},a.a.createElement("div",{className:"form-group"},a.a.createElement("label",{htmlFor:"custom-value"},"Custom value"),a.a.createElement("div",{className:"d-flex"},a.a.createElement("button",{className:"btn btn-link",type:"button",title:"Add value to stack",onClick:this.onCustomValueAdd},a.a.createElement(m.a,{icon:"plus-circle"})),a.a.createElement("div",{className:"flex-grow-1"},a.a.createElement(O.f,{id:"customValue",onChange:this.onInputChange})))),a.a.createElement("div",{className:"card available-opcodes"},a.a.createElement("div",{className:"card-header"},a.a.createElement("div",{className:"row"},a.a.createElement("div",{className:"col col-sm-6"},"Available OPCODES"),a.a.createElement("div",{className:"col col-sm-6"},a.a.createElement("input",{type:"search",className:"form-control form-control-sm",id:"opcodeFilter",onChange:this.onOpCodeFilterChange,placeholder:"Filter OPCODEs"})))),a.a.createElement("div",{className:"card-body"},a.a.createElement("ul",{className:"list-unstyled row"},r.map((function(t){return a.a.createElement("li",{key:t.name,className:"col text-nowrap opcode-item"},a.a.createElement("span",{className:"badge badge-secondary my-1"},t.name),a.a.createElement("button",{type:"button",className:"btn btn-link",title:"Add OPCODE to stack",onClick:function(n){return e.onOpcodeAdd(n,t)}},a.a.createElement(m.a,{icon:"plus-circle"})))}))))))),a.a.createElement(O.d,{text:"Compile",btnClass:"primary",onClick:this.buttonClick}),a.a.createElement("div",{className:"card mt-3"},a.a.createElement("div",{className:"card-body"},a.a.createElement("h5",{className:"card-title"},"Result raw script (hex)"),a.a.createElement("p",{className:"card-text",id:"hex-result"},o))))}}])&&Wt(t.prototype,n),r&&Wt(t,r),i}(r.Component);function Jt(e){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=t;r=(r=(r=(r=r.replace(/<(\S+)>/g,(function(t,r){var o=r;if(o.startsWith("HASH160")){o=o.substring(o.indexOf("(")+1,o.indexOf(")"));var i=n[o];return i&&(i=a.crypto.hash160(e.from(i,"hex")).toString("hex")),i}if(o.startsWith("HASH256")){o=o.substring(o.indexOf("(")+1,o.indexOf(")"));var l=n[o];return l&&(l=a.crypto.hash256(e.from(l,"hex")).toString("hex")),l}var c=n[r];return c||t}))).replace(/(\s|^)\d+(\s|$)/g,(function(e){return" ".concat(a.script.number.encode(parseInt(e,10)).toString("hex")," ")}))).replace(/\s+/g," ")).trim();var o=a.script.fromASM(r);return{script:o,parsedAsm:r}},getOpcodes:function(){return Object.getOwnPropertyNames(a.opcodes).map((function(e){return new r.a({name:e,code:a.opcodes[e]})}))}}}.call(this,n(3).Buffer)},29:function(e,t,n){"use strict";n.r(t),function(e){var r=n(4),a=(n(13),n(31)),o=a.networks.bitcoin,i={setTestnet:function(e){o=e?a.networks.testnet:a.networks.bitcoin},decodeTx:function(e){return a.Transaction.fromHex(e)},createTx:function(t,n){console.log("Start forging TX.");var i=new a.TransactionBuilder(o);i.setVersion(1),console.log("Add the inputs."),t.forEach((function(e){if(!Object.prototype.hasOwnProperty.call(e,"prevTxHash"))throw new Error("The Tx hash for the input was not found.");if(!Object.prototype.hasOwnProperty.call(e,"prevTxIndex"))throw new Error("The previous Tx output index for the input was not found.");if(!Object.prototype.hasOwnProperty.call(e,"privateKey"))throw new Error("The previous Tx output privateKey for the input was not found.");i.addInput(e.prevTxHash,e.prevTxIndex)})),console.log("Add the outputs."),n.forEach((function(t){if(t.type===r.g){var n=e.from(t.data,"hex"),o=a.payments.embed({data:[n]});i.addOutput(o.output,0)}else{if(!Object.prototype.hasOwnProperty.call(t,"address"))throw new Error("The address for the output was not found.");if(!Object.prototype.hasOwnProperty.call(t,"amount"))throw new Error("The amount for the output was not found.");i.addOutput(t.address,t.amount)}})),console.log("Sign the inputs."),t.forEach((function(e,t){if([r.a,r.d,r.c].includes(e.type)){var n,l,c=a.ECPair.fromWIF(e.privateKey,o);switch(e.type){case r.c:n=a.payments.p2wpkh({pubkey:c.publicKey,network:o}),l=a.payments.p2sh({redeem:n,network:o}),i.sign(t,c,l.redeem.output,null,e.amount);break;case r.d:n=a.payments.p2wpkh({pubkey:c.publicKey,network:o}),i.sign(t,c,n.redeem.output,null,e.amount);break;case r.a:i.sign(t,c)}}}));var l=i.buildIncomplete();return console.log("Set redeem scripts for inputs."),t.forEach((function(t,n){var a;if([r.b,r.e].includes(t.type))switch(t.type){case r.b:a=t.redeemScript,l.setInputScript(n,e.from(a,"hex"))}})),l}};t.default=i}.call(this,n(3).Buffer)},37:function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=function(e){var t=e.children,n=e.text,r=e.id,o=e.btnClass,i=e.onClick,s=e.type,u=e.size,p=c(e,["children","text","id","btnClass","onClick","type","size"]);return a.a.createElement("button",l({type:s,className:"btn btn-".concat(o," ").concat(null!==u?"btn-".concat(u):""),id:r,onClick:i},p),n,t)};s.propTypes={id:i.a.string,text:i.a.oneOfType([i.a.string,i.a.element]),type:i.a.oneOf(["button","submit","reset"]),btnClass:i.a.oneOf(["primary","secondary","success","danger","warning","info","light","dark","link"]).isRequired,size:i.a.oneOf(["sm","lg"]),onClick:i.a.func.isRequired},s.defaultProps={id:null,type:"button",size:null,text:null},t.a=s},38:function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=function(e){var t=e.label,n=e.type,r=e.id,o=e.value,i=e.handleChange,s=e.horizontal,u=e.size,p=c(e,["label","type","id","value","handleChange","horizontal","size"]),m=a.a.createElement("input",l({type:n,className:"form-control form-control-".concat(u),id:r,value:o,onChange:i},p));return a.a.createElement("div",{className:"form-group".concat(s?" row":"")},a.a.createElement("label",{htmlFor:r,className:"".concat(s?"col-sm-3 col-form-label":"")},t),s?a.a.createElement("div",{className:"col-sm-9"},m):m)};s.propTypes={label:i.a.string.isRequired,type:i.a.string.isRequired,id:i.a.string.isRequired,value:i.a.oneOfType([i.a.string,i.a.number]),horizontal:i.a.bool,size:i.a.oneOf(["sm","md","lg"]),handleChange:i.a.func},s.defaultProps={value:"",size:"md",horizontal:!1,handleChange:function(){}},t.a=s},4:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"h",(function(){return s})),n.d(t,"g",(function(){return u}));var r="P2PKH",a="P2SH",o="P2SH-P2WPKH",i="P2WPKH",l="P2WSH",c=[r,a,o,"P2SH-P2WSH",i,l],s="STANDARD",u="OPRETURN"},44:function(e,t,n){"use strict";(function(e){var r=n(31);t.a={hash:function(t,n){var a=n;e.isBuffer(n)||(a=e.from(n,"utf8"));for(var o={},i=0;i=endIdx))++endPtr;if(endPtr-idx>16&&u8Array.subarray&&UTF8Decoder){return UTF8Decoder.decode(u8Array.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}var WASM_PAGE_SIZE=65536;var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferViews(){Module["HEAP8"]=HEAP8=new Int8Array(buffer);Module["HEAP16"]=HEAP16=new Int16Array(buffer);Module["HEAP32"]=HEAP32=new Int32Array(buffer);Module["HEAPU8"]=HEAPU8=new Uint8Array(buffer);Module["HEAPU16"]=HEAPU16=new Uint16Array(buffer);Module["HEAPU32"]=HEAPU32=new Uint32Array(buffer);Module["HEAPF32"]=HEAPF32=new Float32Array(buffer);Module["HEAPF64"]=HEAPF64=new Float64Array(buffer)}var DYNAMIC_BASE=5252992,DYNAMICTOP_PTR=10080;var TOTAL_STACK=5242880;var INITIAL_TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216;if(INITIAL_TOTAL_MEMORY>2]=DYNAMIC_BASE;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Module["dynCall_v"](func)}else{Module["dynCall_vi"](func,callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return String.prototype.startsWith?filename.startsWith(dataURIPrefix):filename.indexOf(dataURIPrefix)===0}var wasmBinaryFile="miniscript.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(Module["wasmBinary"]){return new Uint8Array(Module["wasmBinary"])}if(Module["readBinary"]){return Module["readBinary"](wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!Module["wasmBinary"]&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary()})}return new Promise(function(resolve,reject){resolve(getBinary())})}function createWasm(env){var info={"env":env,"global":{"NaN":NaN,Infinity:Infinity},"global.Math":Math,"asm2wasm":asm2wasmImports};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");if(Module["instantiateWasm"]){try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}if(!Module["wasmBinary"]&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&typeof fetch==="function"){WebAssembly.instantiateStreaming(fetch(wasmBinaryFile,{credentials:"same-origin"}),info).then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");instantiateArrayBuffer(receiveInstantiatedSource)})}else{instantiateArrayBuffer(receiveInstantiatedSource)}return{}}Module["asm"]=function(global,env,providedBuffer){env["memory"]=wasmMemory;env["table"]=wasmTable=new WebAssembly.Table({"initial":258,"maximum":258,"element":"anyfunc"});env["__memory_base"]=1024;env["__table_base"]=0;var exports=createWasm(env);return exports};__ATINIT__.push({func:function(){globalCtors()}});function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])}function ___cxa_allocate_exception(size){return _malloc(size)}function __ZSt18uncaught_exceptionv(){return!!__ZSt18uncaught_exceptionv.uncaught_exception}function ___cxa_free_exception(ptr){try{return _free(ptr)}catch(e){}}var EXCEPTIONS={last:0,caught:[],infos:{},deAdjust:function(adjusted){if(!adjusted||EXCEPTIONS.infos[adjusted])return adjusted;for(var key in EXCEPTIONS.infos){var ptr=+key;var adj=EXCEPTIONS.infos[ptr].adjusted;var len=adj.length;for(var i=0;i0);info.refcount--;if(info.refcount===0&&!info.rethrown){if(info.destructor){Module["dynCall_vi"](info.destructor,ptr)}delete EXCEPTIONS.infos[ptr];___cxa_free_exception(ptr)}},clearRef:function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];info.refcount=0}};function ___cxa_begin_catch(ptr){var info=EXCEPTIONS.infos[ptr];if(info&&!info.caught){info.caught=true;__ZSt18uncaught_exceptionv.uncaught_exception--}if(info)info.rethrown=false;EXCEPTIONS.caught.push(ptr);EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(ptr));return ptr}function ___cxa_end_catch(){_setThrew(0);var ptr=EXCEPTIONS.caught.pop();if(ptr){EXCEPTIONS.decRef(EXCEPTIONS.deAdjust(ptr));EXCEPTIONS.last=0}}function ___cxa_find_matching_catch_2(){return ___cxa_find_matching_catch.apply(null,arguments)}function ___cxa_find_matching_catch_3(){return ___cxa_find_matching_catch.apply(null,arguments)}function ___resumeException(ptr){if(!EXCEPTIONS.last){EXCEPTIONS.last=ptr}throw ptr}function ___cxa_find_matching_catch(){var thrown=EXCEPTIONS.last;if(!thrown){return(setTempRet0(0),0)|0}var info=EXCEPTIONS.infos[thrown];var throwntype=info.type;if(!throwntype){return(setTempRet0(0),thrown)|0}var typeArray=Array.prototype.slice.call(arguments);var pointer=Module["___cxa_is_pointer_type"](throwntype);if(!___cxa_find_matching_catch.buffer)___cxa_find_matching_catch.buffer=_malloc(4);HEAP32[___cxa_find_matching_catch.buffer>>2]=thrown;thrown=___cxa_find_matching_catch.buffer;for(var i=0;i>2];info.adjusted.push(thrown);return(setTempRet0(typeArray[i]),thrown)|0}}thrown=HEAP32[thrown>>2];return(setTempRet0(throwntype),thrown)|0}function ___cxa_throw(ptr,type,destructor){EXCEPTIONS.infos[ptr]={ptr:ptr,adjusted:[ptr],type:type,destructor:destructor,refcount:0,caught:false,rethrown:false};EXCEPTIONS.last=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exception=1}else{__ZSt18uncaught_exceptionv.uncaught_exception++}throw ptr}var SYSCALLS={buffers:[null,[],[]],printChar:function(stream,curr){var buffer=SYSCALLS.buffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}},varargs:0,get:function(varargs){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr:function(){var ret=UTF8ToString(SYSCALLS.get());return ret},get64:function(){var low=SYSCALLS.get(),high=SYSCALLS.get();return low},getZero:function(){SYSCALLS.get()}};function ___syscall140(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),offset_high=SYSCALLS.get(),offset_low=SYSCALLS.get(),result=SYSCALLS.get(),whence=SYSCALLS.get();return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall146(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.get(),iov=SYSCALLS.get(),iovcnt=SYSCALLS.get();var ret=0;for(var i=0;i>2];var len=HEAP32[iov+(i*8+4)>>2];for(var j=0;j>2]=value;return value}function invoke_i(index){var sp=stackSave();try{return dynCall_i(index)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_ii(index,a1){var sp=stackSave();try{return dynCall_ii(index,a1)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_iiddi(index,a1,a2,a3,a4){var sp=stackSave();try{return dynCall_iiddi(index,a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_iii(index,a1,a2){var sp=stackSave();try{return dynCall_iii(index,a1,a2)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_iiii(index,a1,a2,a3){var sp=stackSave();try{return dynCall_iiii(index,a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_iiiid(index,a1,a2,a3,a4){var sp=stackSave();try{return dynCall_iiiid(index,a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return dynCall_iiiii(index,a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return dynCall_iiiiiii(index,a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_iiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{return dynCall_iiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_iij(index,a1,a2,a3){var sp=stackSave();try{return dynCall_iij(index,a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_v(index){var sp=stackSave();try{dynCall_v(index)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_vi(index,a1){var sp=stackSave();try{dynCall_vi(index,a1)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_vid(index,a1,a2){var sp=stackSave();try{dynCall_vid(index,a1,a2)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_vii(index,a1,a2){var sp=stackSave();try{dynCall_vii(index,a1,a2)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_viid(index,a1,a2,a3){var sp=stackSave();try{dynCall_viid(index,a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_viidii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{dynCall_viidii(index,a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_viii(index,a1,a2,a3){var sp=stackSave();try{dynCall_viii(index,a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_viiidi(index,a1,a2,a3,a4,a5){var sp=stackSave();try{dynCall_viiidi(index,a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_viiii(index,a1,a2,a3,a4){var sp=stackSave();try{dynCall_viiii(index,a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_viiiid(index,a1,a2,a3,a4,a5){var sp=stackSave();try{dynCall_viiiid(index,a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_viiiidi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{dynCall_viiiidi(index,a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}function invoke_viiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{dynCall_viiiii(index,a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0&&e!=="longjmp")throw e;_setThrew(1,0)}}var asmGlobalArg={};var asmLibraryArg={"q":abort,"b":getTempRet0,"O":invoke_i,"g":invoke_ii,"u":invoke_iiddi,"d":invoke_iii,"h":invoke_iiii,"t":invoke_iiiid,"x":invoke_iiiii,"v":invoke_iiiiiii,"R":invoke_iiiiiiiiii,"G":invoke_iij,"A":invoke_v,"k":invoke_vi,"F":invoke_vid,"e":invoke_vii,"Q":invoke_viid,"P":invoke_viidii,"i":invoke_viii,"E":invoke_viiidi,"j":invoke_viiii,"z":invoke_viiiid,"s":invoke_viiiidi,"r":invoke_viiiii,"o":___assert_fail,"l":___cxa_allocate_exception,"w":___cxa_begin_catch,"y":___cxa_end_catch,"c":___cxa_find_matching_catch_2,"n":___cxa_find_matching_catch_3,"m":___cxa_free_exception,"p":___cxa_throw,"f":___resumeException,"D":___setErrNo,"N":___syscall140,"C":___syscall146,"M":___syscall6,"L":_abort,"K":_emscripten_get_heap_size,"J":_emscripten_memcpy_big,"I":_emscripten_resize_heap,"B":_llvm_eh_typeid_for,"H":abortOnCannotGrowMemory,"a":DYNAMICTOP_PTR};var asm=Module["asm"](asmGlobalArg,asmLibraryArg,buffer);Module["asm"]=asm;var ___cxa_can_catch=Module["___cxa_can_catch"]=function(){return Module["asm"]["S"].apply(null,arguments)};var ___cxa_is_pointer_type=Module["___cxa_is_pointer_type"]=function(){return Module["asm"]["T"].apply(null,arguments)};var _free=Module["_free"]=function(){return Module["asm"]["U"].apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return Module["asm"]["V"].apply(null,arguments)};var _miniscript_analyze=Module["_miniscript_analyze"]=function(){return Module["asm"]["W"].apply(null,arguments)};var _miniscript_compile=Module["_miniscript_compile"]=function(){return Module["asm"]["X"].apply(null,arguments)};var _setThrew=Module["_setThrew"]=function(){return Module["asm"]["Y"].apply(null,arguments)};var globalCtors=Module["globalCtors"]=function(){return Module["asm"]["ta"].apply(null,arguments)};var stackAlloc=Module["stackAlloc"]=function(){return Module["asm"]["ua"].apply(null,arguments)};var stackRestore=Module["stackRestore"]=function(){return Module["asm"]["va"].apply(null,arguments)};var stackSave=Module["stackSave"]=function(){return Module["asm"]["wa"].apply(null,arguments)};var dynCall_i=Module["dynCall_i"]=function(){return Module["asm"]["Z"].apply(null,arguments)};var dynCall_ii=Module["dynCall_ii"]=function(){return Module["asm"]["_"].apply(null,arguments)};var dynCall_iiddi=Module["dynCall_iiddi"]=function(){return Module["asm"]["$"].apply(null,arguments)};var dynCall_iii=Module["dynCall_iii"]=function(){return Module["asm"]["aa"].apply(null,arguments)};var dynCall_iiii=Module["dynCall_iiii"]=function(){return Module["asm"]["ba"].apply(null,arguments)};var dynCall_iiiid=Module["dynCall_iiiid"]=function(){return Module["asm"]["ca"].apply(null,arguments)};var dynCall_iiiii=Module["dynCall_iiiii"]=function(){return Module["asm"]["da"].apply(null,arguments)};var dynCall_iiiiiii=Module["dynCall_iiiiiii"]=function(){return Module["asm"]["ea"].apply(null,arguments)};var dynCall_iiiiiiiiii=Module["dynCall_iiiiiiiiii"]=function(){return Module["asm"]["fa"].apply(null,arguments)};var dynCall_iij=Module["dynCall_iij"]=function(){return Module["asm"]["ga"].apply(null,arguments)};var dynCall_v=Module["dynCall_v"]=function(){return Module["asm"]["ha"].apply(null,arguments)};var dynCall_vi=Module["dynCall_vi"]=function(){return Module["asm"]["ia"].apply(null,arguments)};var dynCall_vid=Module["dynCall_vid"]=function(){return Module["asm"]["ja"].apply(null,arguments)};var dynCall_vii=Module["dynCall_vii"]=function(){return Module["asm"]["ka"].apply(null,arguments)};var dynCall_viid=Module["dynCall_viid"]=function(){return Module["asm"]["la"].apply(null,arguments)};var dynCall_viidii=Module["dynCall_viidii"]=function(){return Module["asm"]["ma"].apply(null,arguments)};var dynCall_viii=Module["dynCall_viii"]=function(){return Module["asm"]["na"].apply(null,arguments)};var dynCall_viiidi=Module["dynCall_viiidi"]=function(){return Module["asm"]["oa"].apply(null,arguments)};var dynCall_viiii=Module["dynCall_viiii"]=function(){return Module["asm"]["pa"].apply(null,arguments)};var dynCall_viiiid=Module["dynCall_viiiid"]=function(){return Module["asm"]["qa"].apply(null,arguments)};var dynCall_viiiidi=Module["dynCall_viiiidi"]=function(){return Module["asm"]["ra"].apply(null,arguments)};var dynCall_viiiii=Module["dynCall_viiiii"]=function(){return Module["asm"]["sa"].apply(null,arguments)};Module["asm"]=asm;Module["cwrap"]=cwrap;Module["UTF8ToString"]=UTF8ToString;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};function run(args){args=args||Module["arguments"];if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}Module["run"]=run;function abort(what){if(Module["onAbort"]){Module["onAbort"](what)}if(what!==undefined){out(what);err(what);what=JSON.stringify(what)}else{what=""}ABORT=true;EXITSTATUS=1;throw"abort("+what+"). Build with -s ASSERTIONS=1 for more info."}Module["abort"]=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}Module["noExitRuntime"]=true;run(); +var key,Module=void 0!==Module?Module:{},moduleOverrides={};for(key in Module)Module.hasOwnProperty(key)&&(moduleOverrides[key]=Module[key]);Module.arguments=[],Module.thisProgram="./this.program",Module.quit=function(e,n){throw n},Module.preRun=[],Module.postRun=[];var ENVIRONMENT_IS_WEB=!0,ENVIRONMENT_IS_WORKER=!1,scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1):"",Module.read=function(e){var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(null),n.responseText},ENVIRONMENT_IS_WORKER&&(Module.readBinary=function(e){var n=new XMLHttpRequest;return n.open("GET",e,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}),Module.readAsync=function(e,n,i){var t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="arraybuffer",t.onload=function(){200==t.status||0==t.status&&t.response?n(t.response):i()},t.onerror=i,t.send(null)},Module.setWindowTitle=function(e){document.title=e});var out=Module.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),err=Module.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||out);for(key in moduleOverrides)moduleOverrides.hasOwnProperty(key)&&(Module[key]=moduleOverrides[key]);moduleOverrides=void 0;var wasmMemory,wasmTable,asm2wasmImports={"f64-rem":function(e,n){return e%n},debugger:function(){}},functionPointers=new Array(0),tempRet0=0,setTempRet0=function(e){tempRet0=e},getTempRet0=function(){return tempRet0};"object"!=typeof WebAssembly&&err("no native wasm support detected");var ABORT=!1,EXITSTATUS=0;function assert(e,n){e||abort("Assertion failed: "+n)}function getCFunc(e){var n=Module["_"+e];return assert(n,"Cannot call unknown function "+e+", make sure it is exported"),n}function ccall(e,n,i,t,r){var a={string:function(e){var n=0;if(null!=e&&0!==e){var i=1+(e.length<<2);stringToUTF8(e,n=stackAlloc(i),i)}return n},array:function(e){var n=stackAlloc(e.length);return writeArrayToMemory(e,n),n}},o=getCFunc(e),l=[],u=0;if(t)for(var c=0;c=t);)++r;if(r-n>16&&e.subarray&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(n,r));for(var a="";n>10,56320|1023&c)}}else a+=String.fromCharCode((31&o)<<6|l)}else a+=String.fromCharCode(o)}return a}function UTF8ToString(e,n){return e?UTF8ArrayToString(HEAPU8,e,n):""}function stringToUTF8Array(e,n,i,t){if(!(t>0))return 0;for(var r=i,a=i+t-1,o=0;o=55296&&l<=57343&&(l=65536+((1023&l)<<10)|1023&e.charCodeAt(++o)),l<=127){if(i>=a)break;n[i++]=l}else if(l<=2047){if(i+1>=a)break;n[i++]=192|l>>6,n[i++]=128|63&l}else if(l<=65535){if(i+2>=a)break;n[i++]=224|l>>12,n[i++]=128|l>>6&63,n[i++]=128|63&l}else{if(i+3>=a)break;n[i++]=240|l>>18,n[i++]=128|l>>12&63,n[i++]=128|l>>6&63,n[i++]=128|63&l}}return n[i]=0,i-r}function stringToUTF8(e,n,i){return stringToUTF8Array(e,HEAPU8,n,i)}var UTF16Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function writeArrayToMemory(e,n){HEAP8.set(e,n)}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,WASM_PAGE_SIZE=65536;function updateGlobalBufferViews(){Module.HEAP8=HEAP8=new Int8Array(buffer),Module.HEAP16=HEAP16=new Int16Array(buffer),Module.HEAP32=HEAP32=new Int32Array(buffer),Module.HEAPU8=HEAPU8=new Uint8Array(buffer),Module.HEAPU16=HEAPU16=new Uint16Array(buffer),Module.HEAPU32=HEAPU32=new Uint32Array(buffer),Module.HEAPF32=HEAPF32=new Float32Array(buffer),Module.HEAPF64=HEAPF64=new Float64Array(buffer)}var DYNAMIC_BASE=5252992,DYNAMICTOP_PTR=10080,TOTAL_STACK=5242880,INITIAL_TOTAL_MEMORY=Module.TOTAL_MEMORY||16777216;function callRuntimeCallbacks(e){for(;e.length>0;){var n=e.shift();if("function"!=typeof n){var i=n.func;"number"==typeof i?void 0===n.arg?Module.dynCall_v(i):Module.dynCall_vi(i,n.arg):i(void 0===n.arg?null:n.arg)}else n()}}INITIAL_TOTAL_MEMORY>2]=DYNAMIC_BASE;var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){runtimeInitialized||(runtimeInitialized=!0,callRuntimeCallbacks(__ATINIT__))}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var n=dependenciesFulfilled;dependenciesFulfilled=null,n()}}Module.preloadedImages={},Module.preloadedAudios={};var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(e){return String.prototype.startsWith?e.startsWith(dataURIPrefix):0===e.indexOf(dataURIPrefix)}var wasmBinaryFile="miniscript.wasm";function getBinary(){try{if(Module.wasmBinary)return new Uint8Array(Module.wasmBinary);if(Module.readBinary)return Module.readBinary(wasmBinaryFile);throw"both async and sync fetching of the wasm failed"}catch(e){abort(e)}}function getBinaryPromise(){return Module.wasmBinary||!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER||"function"!=typeof fetch?new Promise((function(e,n){e(getBinary())})):fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return e.arrayBuffer()})).catch((function(){return getBinary()}))}function createWasm(e){var n={env:e,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:asm2wasmImports};function i(e,n){var i=e.exports;Module.asm=i,removeRunDependency("wasm-instantiate")}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(n,i)}catch(e){return err("Module.instantiateWasm callback failed with error: "+e),!1}function t(e){i(e.instance)}function r(e){getBinaryPromise().then((function(e){return WebAssembly.instantiate(e,n)})).then(e,(function(e){err("failed to asynchronously prepare wasm: "+e),abort(e)}))}return Module.wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(wasmBinaryFile)||"function"!=typeof fetch?r(t):WebAssembly.instantiateStreaming(fetch(wasmBinaryFile,{credentials:"same-origin"}),n).then(t,(function(e){err("wasm streaming compile failed: "+e),err("falling back to ArrayBuffer instantiation"),r(t)})),{}}function ___assert_fail(e,n,i,t){abort("Assertion failed: "+UTF8ToString(e)+", at: "+[n?UTF8ToString(n):"unknown filename",i,t?UTF8ToString(t):"unknown function"])}function ___cxa_allocate_exception(e){return _malloc(e)}function __ZSt18uncaught_exceptionv(){return!!__ZSt18uncaught_exceptionv.uncaught_exception}function ___cxa_free_exception(e){try{return _free(e)}catch(e){}}isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile)),Module.asm=function(e,n,i){return n.memory=wasmMemory,n.table=wasmTable=new WebAssembly.Table({initial:258,maximum:258,element:"anyfunc"}),n.__memory_base=1024,n.__table_base=0,createWasm(n)},__ATINIT__.push({func:function(){globalCtors()}});var EXCEPTIONS={last:0,caught:[],infos:{},deAdjust:function(e){if(!e||EXCEPTIONS.infos[e])return e;for(var n in EXCEPTIONS.infos)for(var i=+n,t=EXCEPTIONS.infos[i].adjusted,r=t.length,a=0;a0),n.refcount--,0!==n.refcount||n.rethrown||(n.destructor&&Module.dynCall_vi(n.destructor,e),delete EXCEPTIONS.infos[e],___cxa_free_exception(e))}},clearRef:function(e){e&&(EXCEPTIONS.infos[e].refcount=0)}};function ___cxa_begin_catch(e){var n=EXCEPTIONS.infos[e];return n&&!n.caught&&(n.caught=!0,__ZSt18uncaught_exceptionv.uncaught_exception--),n&&(n.rethrown=!1),EXCEPTIONS.caught.push(e),EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(e)),e}function ___cxa_end_catch(){_setThrew(0);var e=EXCEPTIONS.caught.pop();e&&(EXCEPTIONS.decRef(EXCEPTIONS.deAdjust(e)),EXCEPTIONS.last=0)}function ___cxa_find_matching_catch_2(){return ___cxa_find_matching_catch.apply(null,arguments)}function ___cxa_find_matching_catch_3(){return ___cxa_find_matching_catch.apply(null,arguments)}function ___resumeException(e){throw EXCEPTIONS.last||(EXCEPTIONS.last=e),e}function ___cxa_find_matching_catch(){var e=EXCEPTIONS.last;if(!e)return 0|(setTempRet0(0),0);var n=EXCEPTIONS.infos[e],i=n.type;if(!i)return 0|(setTempRet0(0),e);var t=Array.prototype.slice.call(arguments);Module.___cxa_is_pointer_type(i),___cxa_find_matching_catch.buffer||(___cxa_find_matching_catch.buffer=_malloc(4)),HEAP32[___cxa_find_matching_catch.buffer>>2]=e,e=___cxa_find_matching_catch.buffer;for(var r=0;r>2],n.adjusted.push(e),0|(setTempRet0(t[r]),e);return e=HEAP32[e>>2],0|(setTempRet0(i),e)}function ___cxa_throw(e,n,i){throw EXCEPTIONS.infos[e]={ptr:e,adjusted:[e],type:n,destructor:i,refcount:0,caught:!1,rethrown:!1},EXCEPTIONS.last=e,"uncaught_exception"in __ZSt18uncaught_exceptionv?__ZSt18uncaught_exceptionv.uncaught_exception++:__ZSt18uncaught_exceptionv.uncaught_exception=1,e}var SYSCALLS={buffers:[null,[],[]],printChar:function(e,n){var i=SYSCALLS.buffers[e];0===n||10===n?((1===e?out:err)(UTF8ArrayToString(i,0)),i.length=0):i.push(n)},varargs:0,get:function(e){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(){return UTF8ToString(SYSCALLS.get())},get64:function(){var e=SYSCALLS.get();return SYSCALLS.get(),e},getZero:function(){SYSCALLS.get()}};function ___syscall140(e,n){SYSCALLS.varargs=n;try{return SYSCALLS.getStreamFromFD(),SYSCALLS.get(),SYSCALLS.get(),SYSCALLS.get(),SYSCALLS.get(),0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||abort(e),-e.errno}}function ___syscall146(e,n){SYSCALLS.varargs=n;try{for(var i=SYSCALLS.get(),t=SYSCALLS.get(),r=SYSCALLS.get(),a=0,o=0;o>2],u=HEAP32[t+(8*o+4)>>2],c=0;c>2]=e),e}function invoke_i(e){var n=stackSave();try{return dynCall_i(e)}catch(e){if(stackRestore(n),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_ii(e,n){var i=stackSave();try{return dynCall_ii(e,n)}catch(e){if(stackRestore(i),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiddi(e,n,i,t,r){var a=stackSave();try{return dynCall_iiddi(e,n,i,t,r)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iii(e,n,i){var t=stackSave();try{return dynCall_iii(e,n,i)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiii(e,n,i,t){var r=stackSave();try{return dynCall_iiii(e,n,i,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiid(e,n,i,t,r){var a=stackSave();try{return dynCall_iiiid(e,n,i,t,r)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiii(e,n,i,t,r){var a=stackSave();try{return dynCall_iiiii(e,n,i,t,r)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiii(e,n,i,t,r,a,o){var l=stackSave();try{return dynCall_iiiiiii(e,n,i,t,r,a,o)}catch(e){if(stackRestore(l),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiii(e,n,i,t,r,a,o,l,u,c){var _=stackSave();try{return dynCall_iiiiiiiiii(e,n,i,t,r,a,o,l,u,c)}catch(e){if(stackRestore(_),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_iij(e,n,i,t){var r=stackSave();try{return dynCall_iij(e,n,i,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_v(e){var n=stackSave();try{dynCall_v(e)}catch(e){if(stackRestore(n),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vi(e,n){var i=stackSave();try{dynCall_vi(e,n)}catch(e){if(stackRestore(i),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vid(e,n,i){var t=stackSave();try{dynCall_vid(e,n,i)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_vii(e,n,i){var t=stackSave();try{dynCall_vii(e,n,i)}catch(e){if(stackRestore(t),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viid(e,n,i,t){var r=stackSave();try{dynCall_viid(e,n,i,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viidii(e,n,i,t,r,a){var o=stackSave();try{dynCall_viidii(e,n,i,t,r,a)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viii(e,n,i,t){var r=stackSave();try{dynCall_viii(e,n,i,t)}catch(e){if(stackRestore(r),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiidi(e,n,i,t,r,a){var o=stackSave();try{dynCall_viiidi(e,n,i,t,r,a)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiii(e,n,i,t,r){var a=stackSave();try{dynCall_viiii(e,n,i,t,r)}catch(e){if(stackRestore(a),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiid(e,n,i,t,r,a){var o=stackSave();try{dynCall_viiiid(e,n,i,t,r,a)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiidi(e,n,i,t,r,a,o){var l=stackSave();try{dynCall_viiiidi(e,n,i,t,r,a,o)}catch(e){if(stackRestore(l),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}function invoke_viiiii(e,n,i,t,r,a){var o=stackSave();try{dynCall_viiiii(e,n,i,t,r,a)}catch(e){if(stackRestore(o),e!==e+0&&"longjmp"!==e)throw e;_setThrew(1,0)}}var asmGlobalArg={},asmLibraryArg={q:abort,b:getTempRet0,O:invoke_i,g:invoke_ii,u:invoke_iiddi,d:invoke_iii,h:invoke_iiii,t:invoke_iiiid,x:invoke_iiiii,v:invoke_iiiiiii,R:invoke_iiiiiiiiii,G:invoke_iij,A:invoke_v,k:invoke_vi,F:invoke_vid,e:invoke_vii,Q:invoke_viid,P:invoke_viidii,i:invoke_viii,E:invoke_viiidi,j:invoke_viiii,z:invoke_viiiid,s:invoke_viiiidi,r:invoke_viiiii,o:___assert_fail,l:___cxa_allocate_exception,w:___cxa_begin_catch,y:___cxa_end_catch,c:___cxa_find_matching_catch_2,n:___cxa_find_matching_catch_3,m:___cxa_free_exception,p:___cxa_throw,f:___resumeException,D:___setErrNo,N:___syscall140,C:___syscall146,M:___syscall6,L:_abort,K:_emscripten_get_heap_size,J:_emscripten_memcpy_big,I:_emscripten_resize_heap,B:_llvm_eh_typeid_for,H:abortOnCannotGrowMemory,a:DYNAMICTOP_PTR},asm=Module.asm(asmGlobalArg,asmLibraryArg,buffer);Module.asm=asm;var ___cxa_can_catch=Module.___cxa_can_catch=function(){return Module.asm.S.apply(null,arguments)},___cxa_is_pointer_type=Module.___cxa_is_pointer_type=function(){return Module.asm.T.apply(null,arguments)},_free=Module._free=function(){return Module.asm.U.apply(null,arguments)},_malloc=Module._malloc=function(){return Module.asm.V.apply(null,arguments)},_miniscript_analyze=Module._miniscript_analyze=function(){return Module.asm.W.apply(null,arguments)},_miniscript_compile=Module._miniscript_compile=function(){return Module.asm.X.apply(null,arguments)},_setThrew=Module._setThrew=function(){return Module.asm.Y.apply(null,arguments)},globalCtors=Module.globalCtors=function(){return Module.asm.ta.apply(null,arguments)},stackAlloc=Module.stackAlloc=function(){return Module.asm.ua.apply(null,arguments)},stackRestore=Module.stackRestore=function(){return Module.asm.va.apply(null,arguments)},stackSave=Module.stackSave=function(){return Module.asm.wa.apply(null,arguments)},dynCall_i=Module.dynCall_i=function(){return Module.asm.Z.apply(null,arguments)},dynCall_ii=Module.dynCall_ii=function(){return Module.asm._.apply(null,arguments)},dynCall_iiddi=Module.dynCall_iiddi=function(){return Module.asm.$.apply(null,arguments)},dynCall_iii=Module.dynCall_iii=function(){return Module.asm.aa.apply(null,arguments)},dynCall_iiii=Module.dynCall_iiii=function(){return Module.asm.ba.apply(null,arguments)},dynCall_iiiid=Module.dynCall_iiiid=function(){return Module.asm.ca.apply(null,arguments)},dynCall_iiiii=Module.dynCall_iiiii=function(){return Module.asm.da.apply(null,arguments)},dynCall_iiiiiii=Module.dynCall_iiiiiii=function(){return Module.asm.ea.apply(null,arguments)},dynCall_iiiiiiiiii=Module.dynCall_iiiiiiiiii=function(){return Module.asm.fa.apply(null,arguments)},dynCall_iij=Module.dynCall_iij=function(){return Module.asm.ga.apply(null,arguments)},dynCall_v=Module.dynCall_v=function(){return Module.asm.ha.apply(null,arguments)},dynCall_vi=Module.dynCall_vi=function(){return Module.asm.ia.apply(null,arguments)},dynCall_vid=Module.dynCall_vid=function(){return Module.asm.ja.apply(null,arguments)},dynCall_vii=Module.dynCall_vii=function(){return Module.asm.ka.apply(null,arguments)},dynCall_viid=Module.dynCall_viid=function(){return Module.asm.la.apply(null,arguments)},dynCall_viidii=Module.dynCall_viidii=function(){return Module.asm.ma.apply(null,arguments)},dynCall_viii=Module.dynCall_viii=function(){return Module.asm.na.apply(null,arguments)},dynCall_viiidi=Module.dynCall_viiidi=function(){return Module.asm.oa.apply(null,arguments)},dynCall_viiii=Module.dynCall_viiii=function(){return Module.asm.pa.apply(null,arguments)},dynCall_viiiid=Module.dynCall_viiiid=function(){return Module.asm.qa.apply(null,arguments)},dynCall_viiiidi=Module.dynCall_viiiidi=function(){return Module.asm.ra.apply(null,arguments)},dynCall_viiiii=Module.dynCall_viiiii=function(){return Module.asm.sa.apply(null,arguments)};function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function run(e){function n(){Module.calledRun||(Module.calledRun=!0,ABORT||(ensureInitRuntime(),preMain(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),postRun()))}e=e||Module.arguments,runDependencies>0||(preRun(),runDependencies>0||Module.calledRun||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),n()}),1)):n()))}function abort(e){throw Module.onAbort&&Module.onAbort(e),void 0!==e?(out(e),err(e),e=JSON.stringify(e)):e="",ABORT=!0,EXITSTATUS=1,"abort("+e+"). Build with -s ASSERTIONS=1 for more info."}if(Module.asm=asm,Module.cwrap=cwrap,Module.UTF8ToString=UTF8ToString,ExitStatus.prototype=new Error,ExitStatus.prototype.constructor=ExitStatus,dependenciesFulfilled=function e(){Module.calledRun||run(),Module.calledRun||(dependenciesFulfilled=e)},Module.run=run,Module.abort=abort,Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();Module.noExitRuntime=!0,run(); \ No newline at end of file diff --git a/dist/miniscript_wrapper.js b/dist/miniscript_wrapper.js index 58a3882..f258e60 100644 --- a/dist/miniscript_wrapper.js +++ b/dist/miniscript_wrapper.js @@ -1,17 +1 @@ -/* global Module */ -em_miniscript_compile = Module.cwrap('miniscript_compile', 'none', [ - 'string', - 'number', - 'number', - 'number', - 'number', - 'number', - 'number', -]); -em_miniscript_analyze = Module.cwrap('miniscript_analyze', 'none', [ - 'string', - 'number', - 'number', - 'number', - 'number', -]); +em_miniscript_compile=Module.cwrap("miniscript_compile","none",["string","number","number","number","number","number","number"]),em_miniscript_analyze=Module.cwrap("miniscript_analyze","none",["string","number","number","number","number"]); \ No newline at end of file diff --git a/dist/serviceAddress.2e3d35cd.js b/dist/serviceAddress.2e3d35cd.js new file mode 100644 index 0000000..1716124 --- /dev/null +++ b/dist/serviceAddress.2e3d35cd.js @@ -0,0 +1 @@ +(()=>{var r={9815:(r,t,e)=>{"use strict";e(8764).Buffer,e(7656).networks.bitcoin},2574:()=>{},3906:()=>{},1758:()=>{}},t={};function e(n){if(t[n])return t[n].exports;var o=t[n]={id:n,loaded:!1,exports:{}};return r[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}e.m=r,e.x=r=>{},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),e.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),e.nmd=r=>(r.paths=[],r.children||(r.children=[]),r),(()=>{var r={404:0},t=[[9815,656]],n=r=>{},o=(o,i)=>{for(var l,s,[h,u,a,c]=i,f=0,p=[];f{}),n}i.forEach(o.bind(null,0)),i.push=o.bind(null,i.push.bind(i));var s=e.x;e.x=()=>(e.x=s||(r=>{}),(n=l)())})(),e.x()})(); \ No newline at end of file diff --git a/dist/serviceAddress.975948c9.js b/dist/serviceAddress.975948c9.js deleted file mode 100644 index 1ee2419..0000000 --- a/dist/serviceAddress.975948c9.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function r(r){for(var n,s,a=r[0],p=r[1],f=r[2],c=0,d=[];c{var r={5501:(r,t,e)=>{"use strict";e(8764).Buffer,e(7656)},2574:()=>{},3906:()=>{},1758:()=>{}},t={};function e(n){if(t[n])return t[n].exports;var o=t[n]={id:n,loaded:!1,exports:{}};return r[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}e.m=r,e.x=r=>{},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),e.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),e.nmd=r=>(r.paths=[],r.children||(r.children=[]),r),(()=>{var r={786:0},t=[[5501,656]],n=r=>{},o=(o,i)=>{for(var l,h,[s,u,a,f]=i,c=0,p=[];c{}),n}i.forEach(o.bind(null,0)),i.push=o.bind(null,i.push.bind(i));var h=e.x;e.x=()=>(e.x=h||(r=>{}),(n=l)())})(),e.x()})(); \ No newline at end of file diff --git a/dist/serviceScript.5cbeaf77.js b/dist/serviceScript.5cbeaf77.js deleted file mode 100644 index 4d5afb9..0000000 --- a/dist/serviceScript.5cbeaf77.js +++ /dev/null @@ -1 +0,0 @@ -!function(t){function n(n){for(var r,a,c=n[0],u=n[1],s=n[2],p=0,l=[];p0&&void 0!==arguments[0]?arguments[0]:"STANDARD",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;a(this,t),this.type=n,this.index=e,this.address=r,this.amount=i,this.data=o}},26:function(t,n,e){"use strict";e.r(n),function(t){var r=e(13),i=e(31);n.default={decompileScriptASM:function(n){if(!/[0-9a-fA-F]+/g.test(n))throw new Error("Invalid hexadecimal string.");var e=t.from(n,"hex");return i.script.toASM(e)},compileScript:function(n){var e=n.map((function(n){return"string"==typeof n?t.from(n,"hex"):n}));return i.script.compile(e)},compileScriptFromString:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n;r=(r=(r=(r=r.replace(/<(\S+)>/g,(function(n,r){var o=r;if(o.startsWith("HASH160")){o=o.substring(o.indexOf("(")+1,o.indexOf(")"));var a=e[o];return a&&(a=i.crypto.hash160(t.from(a,"hex")).toString("hex")),a}if(o.startsWith("HASH256")){o=o.substring(o.indexOf("(")+1,o.indexOf(")"));var c=e[o];return c&&(c=i.crypto.hash256(t.from(c,"hex")).toString("hex")),c}var u=e[r];return u||n}))).replace(/(\s|^)\d+(\s|$)/g,(function(t){return" ".concat(i.script.number.encode(parseInt(t,10)).toString("hex")," ")}))).replace(/\s+/g," ")).trim();var o=i.script.fromASM(r);return{script:o,parsedAsm:r}},getOpcodes:function(){return Object.getOwnPropertyNames(i.opcodes).map((function(t){return new r.a({name:t,code:i.opcodes[t]})}))}}}.call(this,e(3).Buffer)},46:function(t,n){},47:function(t,n){},48:function(t,n){},49:function(t,n){}}); \ No newline at end of file diff --git a/dist/serviceTx.53232bb2.js b/dist/serviceTx.53232bb2.js new file mode 100644 index 0000000..f8b2721 --- /dev/null +++ b/dist/serviceTx.53232bb2.js @@ -0,0 +1 @@ +(()=>{var r={5463:(r,e,t)=>{"use strict";t.d(e,{rt:()=>n,mO:()=>o,UW:()=>i,p$:()=>l,Pg:()=>s,TA:()=>a});var n="P2PKH",o="P2SH",i="P2SH-P2WPKH",l="P2WPKH",s="P2WSH",a="OPRETURN"},2026:(r,e,t)=>{"use strict";t(5463),t(8764).Buffer,t(7656).networks.bitcoin},2574:()=>{},3906:()=>{},1758:()=>{}},e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={id:n,loaded:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}t.m=r,t.x=r=>{},t.d=(r,e)=>{for(var n in e)t.o(e,n)&&!t.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:e[n]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),t.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),t.nmd=r=>(r.paths=[],r.children||(r.children=[]),r),(()=>{var r={923:0},e=[[2026,656]],n=r=>{},o=(o,i)=>{for(var l,s,[a,u,c,f]=i,h=0,p=[];h{}),n}i.forEach(o.bind(null,0)),i.push=o.bind(null,i.push.bind(i));var s=t.x;t.x=()=>(t.x=s||(r=>{}),(n=l)())})(),t.x()})(); \ No newline at end of file diff --git a/dist/serviceTx.5b5ed60f.js b/dist/serviceTx.5b5ed60f.js deleted file mode 100644 index 542380c..0000000 --- a/dist/serviceTx.5b5ed60f.js +++ /dev/null @@ -1 +0,0 @@ -!function(t){function e(e){for(var r,u,a=e[0],s=e[1],c=e[2],p=0,l=[];p0&&void 0!==arguments[0]?arguments[0]:"STANDARD",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;u(this,t),this.type=e,this.index=n,this.address=r,this.amount=o,this.data=i}},29:function(t,e,n){"use strict";n.r(e),function(t){var r=n(4),o=(n(13),n(31)),i=o.networks.bitcoin,u={setTestnet:function(t){i=t?o.networks.testnet:o.networks.bitcoin},decodeTx:function(t){return o.Transaction.fromHex(t)},createTx:function(e,n){console.log("Start forging TX.");var u=new o.TransactionBuilder(i);u.setVersion(1),console.log("Add the inputs."),e.forEach((function(t){if(!Object.prototype.hasOwnProperty.call(t,"prevTxHash"))throw new Error("The Tx hash for the input was not found.");if(!Object.prototype.hasOwnProperty.call(t,"prevTxIndex"))throw new Error("The previous Tx output index for the input was not found.");if(!Object.prototype.hasOwnProperty.call(t,"privateKey"))throw new Error("The previous Tx output privateKey for the input was not found.");u.addInput(t.prevTxHash,t.prevTxIndex)})),console.log("Add the outputs."),n.forEach((function(e){if(e.type===r.g){var n=t.from(e.data,"hex"),i=o.payments.embed({data:[n]});u.addOutput(i.output,0)}else{if(!Object.prototype.hasOwnProperty.call(e,"address"))throw new Error("The address for the output was not found.");if(!Object.prototype.hasOwnProperty.call(e,"amount"))throw new Error("The amount for the output was not found.");u.addOutput(e.address,e.amount)}})),console.log("Sign the inputs."),e.forEach((function(t,e){if([r.a,r.d,r.c].includes(t.type)){var n,a,s=o.ECPair.fromWIF(t.privateKey,i);switch(t.type){case r.c:n=o.payments.p2wpkh({pubkey:s.publicKey,network:i}),a=o.payments.p2sh({redeem:n,network:i}),u.sign(e,s,a.redeem.output,null,t.amount);break;case r.d:n=o.payments.p2wpkh({pubkey:s.publicKey,network:i}),u.sign(e,s,n.redeem.output,null,t.amount);break;case r.a:u.sign(e,s)}}}));var a=u.buildIncomplete();return console.log("Set redeem scripts for inputs."),e.forEach((function(e,n){var o;if([r.b,r.e].includes(e.type))switch(e.type){case r.b:o=e.redeemScript,a.setInputScript(n,t.from(o,"hex"))}})),a}};e.default=u}.call(this,n(3).Buffer)},4:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"h",(function(){return c})),n.d(e,"g",(function(){return f}));var r="P2PKH",o="P2SH",i="P2SH-P2WPKH",u="P2WPKH",a="P2WSH",s=[r,o,i,"P2SH-P2WSH",u,a],c="STANDARD",f="OPRETURN"},46:function(t,e){},47:function(t,e){},48:function(t,e){},49:function(t,e){}}); \ No newline at end of file diff --git a/dist/vendors~main.098b9656.js b/dist/vendors~main.098b9656.js deleted file mode 100644 index 077b677..0000000 --- a/dist/vendors~main.098b9656.js +++ /dev/null @@ -1,93 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{0:function(e,t,n){"use strict";e.exports=n(117)},1:function(e,t,n){e.exports=n(122)()},10:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return y}));var r=n(16),i=n(0),o=n.n(i),a=(n(1),n(21)),l=n(75),s=n(17),u=n(12),c=n(76),f=n.n(c),d=(n(109),n(35)),p=(n(111),function(e){var t=Object(l.a)();return t.displayName=e,t}("Router-History")),h=function(e){var t=Object(l.a)();return t.displayName=e,t}("Router"),m=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(p.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;o.a.Component;var g={},v=0;function y(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,l=void 0!==a&&a,s=n.sensitive,u=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=g[n]||(g[n]={});if(r[e])return r[e];var i=[],o={regexp:f()(e,i,t),keys:i};return v<1e4&&(r[e]=o,v++),o}(n,{end:o,strict:l,sensitive:u}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var c=s[0],d=s.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var b=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(h.Consumer,null,(function(t){t||Object(s.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?y(n.pathname,e.props):t.match,i=Object(u.a)({},t,{location:n,match:r}),a=e.props,l=a.children,c=a.component,f=a.render;return Array.isArray(l)&&0===l.length&&(l=null),o.a.createElement(h.Provider,{value:i},i.match?l?"function"==typeof l?l(i):l:c?o.a.createElement(c,i):f?f(i):null:"function"==typeof l?l(i):null)}))},t}(o.a.Component);function w(e){return"/"===e.charAt(0)?e:"/"+e}function _(e,t){if(!e)return t;var n=w(e);return 0!==t.pathname.indexOf(n)?t:Object(u.a)({},t,{pathname:t.pathname.substr(n.length)})}function x(e){return"string"==typeof e?e:Object(a.e)(e)}function E(e){return function(){Object(s.a)(!1)}}function T(){}o.a.Component;o.a.Component;o.a.useContext},105:function(e,t){e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},106:function(e,t){e.exports={L:1,M:0,Q:3,H:2}},107:function(e,t,n){var r=n(108);function i(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n=256;)e-=255;return n.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)n.EXP_TABLE[r]=1<N.length&&N.push(e)}function L(e,t,n){return null==e?0:function e(t,n,r,i){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case a:s=!0}}if(s)return r(i,t,""===n?"."+j(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u