{"version":3,"file":"js/vendors~application-d2bde7a8e622fafdeb1d.chunk.js","sources":["webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@babel/polyfill/lib/index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@babel/polyfill/lib/noConflict.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/dist/symbol/volta-brand-icons.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/dist/symbol/volta-flag-icons.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/dist/symbol/volta-icons.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api-changelog--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api-changelog.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api-dashboard-vert--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api-dashboard-vert.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api-developer--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api-developer.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api-support--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api-support.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-api.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-apis--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-apis.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-developer--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-developer.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-lettermark--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-lettermark.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-logo-collapsed.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-nexmo--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-nexmo-vert--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-nexmo-vert.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-nexmo.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-tokbox--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-tokbox-vert--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-tokbox-vert.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-tokbox.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-video-api--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-video-api-stacked--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-video-api-stacked.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-video-api.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-wordmark--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/Vonage-wordmark.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/favicon.ico","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/volta-logo.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/vonage-logo--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/vonage-logo-collapsed--white.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/images/logos/vonage-logo.svg","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/@vonagevolta/volta2/js/addons/prism.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/algoliasearch/dist/algoliasearch.umd.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/base64-js/index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/clipboard/dist/clipboard.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/es6/index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/array/flat-map.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/array/includes.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/object/entries.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/object/get-own-property-descriptors.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/object/values.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/promise/finally.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/string/pad-end.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/string/pad-start.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/string/trim-end.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/string/trim-start.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/fn/symbol/async-iterator.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/fn/global.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_a-function.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_an-object.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_core.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_ctx.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_descriptors.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_dom-create.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_export.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_fails.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_global.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_has.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_hide.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_ie8-dom-define.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_is-object.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_object-dp.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_property-desc.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/_to-primitive.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/library/modules/es7.global.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_a-function.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_a-number-value.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_add-to-unscopables.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_advance-string-index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_an-instance.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_an-object.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_array-copy-within.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_array-fill.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_array-includes.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_array-methods.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_array-reduce.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_array-species-constructor.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_array-species-create.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_bind.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_classof.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_cof.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_collection-strong.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_collection-weak.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_collection.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_core.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_create-property.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_ctx.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_date-to-iso-string.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_date-to-primitive.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_defined.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_descriptors.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_dom-create.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_enum-bug-keys.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_enum-keys.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_export.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_fails-is-regexp.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_fails.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_fix-re-wks.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_flags.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_flatten-into-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_for-of.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_function-to-string.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_global.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_has.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_hide.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_html.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_ie8-dom-define.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_inherit-if-required.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_invoke.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_iobject.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_is-array-iter.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_is-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_is-integer.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_is-object.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_is-regexp.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_iter-call.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_iter-create.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_iter-define.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_iter-detect.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_iter-step.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_iterators.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_library.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_math-expm1.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_math-fround.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_math-log1p.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_math-sign.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_meta.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_microtask.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_new-promise-capability.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-assign.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-create.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-dp.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-dps.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-gopd.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-gopn-ext.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-gopn.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-gops.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-gpo.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-keys-internal.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-keys.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-pie.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-sap.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_object-to-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_own-keys.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_parse-float.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_parse-int.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_perform.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_promise-resolve.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_property-desc.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_redefine-all.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_redefine.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_regexp-exec-abstract.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_regexp-exec.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_same-value.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_set-proto.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_set-species.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_set-to-string-tag.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_shared-key.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_shared.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_species-constructor.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_strict-method.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_string-at.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_string-context.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_string-html.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_string-pad.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_string-repeat.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_string-trim.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_string-ws.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_task.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_to-absolute-index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_to-index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_to-integer.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_to-iobject.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_to-length.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_to-object.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_to-primitive.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_typed-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_typed-buffer.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_typed.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_uid.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_user-agent.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_validate-collection.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_wks-define.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_wks-ext.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/_wks.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/core.get-iterator-method.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.copy-within.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.every.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.fill.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.filter.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.find-index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.find.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.for-each.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.from.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.index-of.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.is-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.iterator.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.join.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.last-index-of.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.map.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.of.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.reduce-right.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.reduce.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.slice.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.some.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.sort.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.array.species.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.date.now.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.date.to-iso-string.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.date.to-json.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.date.to-primitive.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.date.to-string.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.function.bind.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.function.has-instance.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.function.name.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.map.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.acosh.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.asinh.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.atanh.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.cbrt.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.clz32.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.cosh.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.expm1.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.fround.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.hypot.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.imul.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.log10.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.log1p.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.log2.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.sign.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.sinh.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.tanh.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.math.trunc.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.constructor.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.epsilon.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.is-finite.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.is-integer.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.is-nan.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.is-safe-integer.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.max-safe-integer.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.min-safe-integer.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.parse-float.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.parse-int.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.to-fixed.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.number.to-precision.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.assign.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.create.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.define-properties.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.define-property.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.freeze.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.get-own-property-descriptor.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.get-own-property-names.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.get-prototype-of.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.is-extensible.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.is-frozen.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.is-sealed.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.is.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.keys.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.prevent-extensions.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.seal.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.set-prototype-of.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.object.to-string.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.parse-float.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.parse-int.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.promise.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.apply.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.construct.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.define-property.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.delete-property.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.enumerate.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.get-prototype-of.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.get.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.has.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.is-extensible.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.own-keys.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.prevent-extensions.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.set-prototype-of.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.reflect.set.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.regexp.constructor.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.regexp.exec.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.regexp.flags.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.regexp.match.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.regexp.replace.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.regexp.search.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.regexp.split.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.regexp.to-string.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.set.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.anchor.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.big.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.blink.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.bold.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.code-point-at.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.ends-with.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.fixed.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.fontcolor.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.fontsize.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.from-code-point.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.includes.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.italics.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.iterator.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.link.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.raw.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.repeat.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.small.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.starts-with.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.strike.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.sub.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.sup.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.string.trim.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.symbol.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.array-buffer.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.data-view.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.float32-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.float64-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.int16-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.int32-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.int8-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.uint16-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.uint32-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.uint8-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.typed.uint8-clamped-array.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.weak-map.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es6.weak-set.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.array.flat-map.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.array.includes.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.object.entries.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.object.values.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.promise.finally.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.string.pad-end.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.string.pad-start.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.string.trim-left.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.string.trim-right.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/es7.symbol.async-iterator.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/web.dom.iterable.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/web.immediate.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/modules/web.timers.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/core-js/web/index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/gsap/CSSPlugin.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/gsap/gsap-core.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/gsap/index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/ieee754/index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/isarray/index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/jsrsasign/lib/jsrsasign.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_Hash.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_ListCache.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_Map.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_MapCache.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_SetCache.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_Symbol.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_apply.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_arrayIncludes.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_arrayIncludesWith.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_arrayMap.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_arrayPush.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_assocIndexOf.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseDifference.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseFindIndex.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseFlatten.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseGetTag.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseIndexOf.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseIntersection.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseIsArguments.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseIsNaN.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseIsNative.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseRest.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseSetToString.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_baseUnary.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_cacheHas.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_castArrayLikeObject.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_coreJsData.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_defineProperty.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_freeGlobal.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_getMapData.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_getNative.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_getRawTag.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_getValue.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_hashClear.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_hashDelete.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_hashGet.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_hashHas.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_hashSet.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_isFlattenable.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_isKeyable.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_isMasked.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_listCacheClear.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_listCacheDelete.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_listCacheGet.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_listCacheHas.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_listCacheSet.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_mapCacheClear.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_mapCacheDelete.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_mapCacheGet.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_mapCacheHas.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_mapCacheSet.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_nativeCreate.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_objectToString.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_overRest.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_root.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_setCacheAdd.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_setCacheHas.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_setToString.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_shortOut.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_strictIndexOf.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/_toSource.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/constant.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/debounce.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/difference.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/eq.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/identity.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/intersection.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/isArguments.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/isArray.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/isArrayLike.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/isArrayLikeObject.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/isFunction.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/isLength.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/isObject.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/isObjectLike.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/isSymbol.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/now.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/lodash/toNumber.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/node-libs-browser/node_modules/buffer/index.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/popper.js/dist/esm/popper.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/process/browser.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/regenerator-runtime/runtime.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/setimmediate/setImmediate.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/timers-browserify/main.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/vue/dist/vue.esm.js","webpack:///(webpack)/buildin/global.js","webpack:///(webpack)/buildin/module.js","webpack:////Users/bgreenberg2/Documents/dev/station/node_modules/whatwg-fetch/fetch.js"],"sourcesContent":["\"use strict\";\n\nrequire(\"./noConflict\");\n\nvar _global = _interopRequireDefault(require(\"core-js/library/fn/global\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nif (_global[\"default\"]._babelPolyfill && typeof console !== \"undefined\" && console.warn) {\n console.warn(\"@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended \" + \"and may have consequences if different versions of the polyfills are applied sequentially. \" + \"If you do need to load the polyfill more than once, use @babel/polyfill/noConflict \" + \"instead to bypass the warning.\");\n}\n\n_global[\"default\"]._babelPolyfill = true;","\"use strict\";\n\nrequire(\"core-js/es6\");\n\nrequire(\"core-js/fn/array/includes\");\n\nrequire(\"core-js/fn/array/flat-map\");\n\nrequire(\"core-js/fn/string/pad-start\");\n\nrequire(\"core-js/fn/string/pad-end\");\n\nrequire(\"core-js/fn/string/trim-start\");\n\nrequire(\"core-js/fn/string/trim-end\");\n\nrequire(\"core-js/fn/symbol/async-iterator\");\n\nrequire(\"core-js/fn/object/get-own-property-descriptors\");\n\nrequire(\"core-js/fn/object/values\");\n\nrequire(\"core-js/fn/object/entries\");\n\nrequire(\"core-js/fn/promise/finally\");\n\nrequire(\"core-js/web\");\n\nrequire(\"regenerator-runtime/runtime\");","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*\nUnobtrusive JavaScript\nhttps://github.com/rails/rails/blob/master/actionview/app/assets/javascripts\nReleased under the MIT license\n */\n;\n(function () {\n var context = this;\n (function () {\n (function () {\n this.Rails = {\n linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]',\n buttonClickSelector: {\n selector: 'button[data-remote]:not([form]), button[data-confirm]:not([form])',\n exclude: 'form button'\n },\n inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',\n formSubmitSelector: 'form',\n formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',\n formDisableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',\n formEnableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',\n fileInputSelector: 'input[name][type=file]:not([disabled])',\n linkDisableSelector: 'a[data-disable-with], a[data-disable]',\n buttonDisableSelector: 'button[data-remote][data-disable-with], button[data-remote][data-disable]'\n };\n }).call(this);\n }).call(context);\n var Rails = context.Rails;\n (function () {\n (function () {\n var nonce;\n nonce = null;\n\n Rails.loadCSPNonce = function () {\n var ref;\n return nonce = (ref = document.querySelector(\"meta[name=csp-nonce]\")) != null ? ref.content : void 0;\n };\n\n Rails.cspNonce = function () {\n return nonce != null ? nonce : Rails.loadCSPNonce();\n };\n }).call(this);\n (function () {\n var expando, m;\n m = Element.prototype.matches || Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector;\n\n Rails.matches = function (element, selector) {\n if (selector.exclude != null) {\n return m.call(element, selector.selector) && !m.call(element, selector.exclude);\n } else {\n return m.call(element, selector);\n }\n };\n\n expando = '_ujsData';\n\n Rails.getData = function (element, key) {\n var ref;\n return (ref = element[expando]) != null ? ref[key] : void 0;\n };\n\n Rails.setData = function (element, key, value) {\n if (element[expando] == null) {\n element[expando] = {};\n }\n\n return element[expando][key] = value;\n };\n\n Rails.$ = function (selector) {\n return Array.prototype.slice.call(document.querySelectorAll(selector));\n };\n }).call(this);\n (function () {\n var $, csrfParam, csrfToken;\n $ = Rails.$;\n\n csrfToken = Rails.csrfToken = function () {\n var meta;\n meta = document.querySelector('meta[name=csrf-token]');\n return meta && meta.content;\n };\n\n csrfParam = Rails.csrfParam = function () {\n var meta;\n meta = document.querySelector('meta[name=csrf-param]');\n return meta && meta.content;\n };\n\n Rails.CSRFProtection = function (xhr) {\n var token;\n token = csrfToken();\n\n if (token != null) {\n return xhr.setRequestHeader('X-CSRF-Token', token);\n }\n };\n\n Rails.refreshCSRFTokens = function () {\n var param, token;\n token = csrfToken();\n param = csrfParam();\n\n if (token != null && param != null) {\n return $('form input[name=\"' + param + '\"]').forEach(function (input) {\n return input.value = token;\n });\n }\n };\n }).call(this);\n (function () {\n var CustomEvent, fire, matches, preventDefault;\n matches = Rails.matches;\n CustomEvent = window.CustomEvent;\n\n if (typeof CustomEvent !== 'function') {\n CustomEvent = function CustomEvent(event, params) {\n var evt;\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n };\n\n CustomEvent.prototype = window.Event.prototype;\n preventDefault = CustomEvent.prototype.preventDefault;\n\n CustomEvent.prototype.preventDefault = function () {\n var result;\n result = preventDefault.call(this);\n\n if (this.cancelable && !this.defaultPrevented) {\n Object.defineProperty(this, 'defaultPrevented', {\n get: function get() {\n return true;\n }\n });\n }\n\n return result;\n };\n }\n\n fire = Rails.fire = function (obj, name, data) {\n var event;\n event = new CustomEvent(name, {\n bubbles: true,\n cancelable: true,\n detail: data\n });\n obj.dispatchEvent(event);\n return !event.defaultPrevented;\n };\n\n Rails.stopEverything = function (e) {\n fire(e.target, 'ujs:everythingStopped');\n e.preventDefault();\n e.stopPropagation();\n return e.stopImmediatePropagation();\n };\n\n Rails.delegate = function (element, selector, eventType, handler) {\n return element.addEventListener(eventType, function (e) {\n var target;\n target = e.target;\n\n while (!(!(target instanceof Element) || matches(target, selector))) {\n target = target.parentNode;\n }\n\n if (target instanceof Element && handler.call(target, e) === false) {\n e.preventDefault();\n return e.stopPropagation();\n }\n });\n };\n }).call(this);\n (function () {\n var AcceptHeaders, CSRFProtection, createXHR, cspNonce, fire, prepareOptions, processResponse;\n cspNonce = Rails.cspNonce, CSRFProtection = Rails.CSRFProtection, fire = Rails.fire;\n AcceptHeaders = {\n '*': '*/*',\n text: 'text/plain',\n html: 'text/html',\n xml: 'application/xml, text/xml',\n json: 'application/json, text/javascript',\n script: 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript'\n };\n\n Rails.ajax = function (options) {\n var xhr;\n options = prepareOptions(options);\n xhr = createXHR(options, function () {\n var ref, response;\n response = processResponse((ref = xhr.response) != null ? ref : xhr.responseText, xhr.getResponseHeader('Content-Type'));\n\n if (Math.floor(xhr.status / 100) === 2) {\n if (typeof options.success === \"function\") {\n options.success(response, xhr.statusText, xhr);\n }\n } else {\n if (typeof options.error === \"function\") {\n options.error(response, xhr.statusText, xhr);\n }\n }\n\n return typeof options.complete === \"function\" ? options.complete(xhr, xhr.statusText) : void 0;\n });\n\n if (options.beforeSend != null && !options.beforeSend(xhr, options)) {\n return false;\n }\n\n if (xhr.readyState === XMLHttpRequest.OPENED) {\n return xhr.send(options.data);\n }\n };\n\n prepareOptions = function prepareOptions(options) {\n options.url = options.url || location.href;\n options.type = options.type.toUpperCase();\n\n if (options.type === 'GET' && options.data) {\n if (options.url.indexOf('?') < 0) {\n options.url += '?' + options.data;\n } else {\n options.url += '&' + options.data;\n }\n }\n\n if (AcceptHeaders[options.dataType] == null) {\n options.dataType = '*';\n }\n\n options.accept = AcceptHeaders[options.dataType];\n\n if (options.dataType !== '*') {\n options.accept += ', */*; q=0.01';\n }\n\n return options;\n };\n\n createXHR = function createXHR(options, done) {\n var xhr;\n xhr = new XMLHttpRequest();\n xhr.open(options.type, options.url, true);\n xhr.setRequestHeader('Accept', options.accept);\n\n if (typeof options.data === 'string') {\n xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');\n }\n\n if (!options.crossDomain) {\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n CSRFProtection(xhr);\n }\n\n xhr.withCredentials = !!options.withCredentials;\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState === XMLHttpRequest.DONE) {\n return done(xhr);\n }\n };\n\n return xhr;\n };\n\n processResponse = function processResponse(response, type) {\n var parser, script;\n\n if (typeof response === 'string' && typeof type === 'string') {\n if (type.match(/\\bjson\\b/)) {\n try {\n response = JSON.parse(response);\n } catch (error) {}\n } else if (type.match(/\\b(?:java|ecma)script\\b/)) {\n script = document.createElement('script');\n script.setAttribute('nonce', cspNonce());\n script.text = response;\n document.head.appendChild(script).parentNode.removeChild(script);\n } else if (type.match(/\\b(xml|html|svg)\\b/)) {\n parser = new DOMParser();\n type = type.replace(/;.+/, '');\n\n try {\n response = parser.parseFromString(response, type);\n } catch (error) {}\n }\n }\n\n return response;\n };\n\n Rails.href = function (element) {\n return element.href;\n };\n\n Rails.isCrossDomain = function (url) {\n var e, originAnchor, urlAnchor;\n originAnchor = document.createElement('a');\n originAnchor.href = location.href;\n urlAnchor = document.createElement('a');\n\n try {\n urlAnchor.href = url;\n return !((!urlAnchor.protocol || urlAnchor.protocol === ':') && !urlAnchor.host || originAnchor.protocol + '//' + originAnchor.host === urlAnchor.protocol + '//' + urlAnchor.host);\n } catch (error) {\n e = error;\n return true;\n }\n };\n }).call(this);\n (function () {\n var matches, toArray;\n matches = Rails.matches;\n\n toArray = function toArray(e) {\n return Array.prototype.slice.call(e);\n };\n\n Rails.serializeElement = function (element, additionalParam) {\n var inputs, params;\n inputs = [element];\n\n if (matches(element, 'form')) {\n inputs = toArray(element.elements);\n }\n\n params = [];\n inputs.forEach(function (input) {\n if (!input.name || input.disabled) {\n return;\n }\n\n if (matches(input, 'fieldset[disabled] *')) {\n return;\n }\n\n if (matches(input, 'select')) {\n return toArray(input.options).forEach(function (option) {\n if (option.selected) {\n return params.push({\n name: input.name,\n value: option.value\n });\n }\n });\n } else if (input.checked || ['radio', 'checkbox', 'submit'].indexOf(input.type) === -1) {\n return params.push({\n name: input.name,\n value: input.value\n });\n }\n });\n\n if (additionalParam) {\n params.push(additionalParam);\n }\n\n return params.map(function (param) {\n if (param.name != null) {\n return encodeURIComponent(param.name) + \"=\" + encodeURIComponent(param.value);\n } else {\n return param;\n }\n }).join('&');\n };\n\n Rails.formElements = function (form, selector) {\n if (matches(form, 'form')) {\n return toArray(form.elements).filter(function (el) {\n return matches(el, selector);\n });\n } else {\n return toArray(form.querySelectorAll(selector));\n }\n };\n }).call(this);\n (function () {\n var allowAction, fire, stopEverything;\n fire = Rails.fire, stopEverything = Rails.stopEverything;\n\n Rails.handleConfirm = function (e) {\n if (!allowAction(this)) {\n return stopEverything(e);\n }\n };\n\n Rails.confirm = function (message, element) {\n return confirm(message);\n };\n\n allowAction = function allowAction(element) {\n var answer, callback, message;\n message = element.getAttribute('data-confirm');\n\n if (!message) {\n return true;\n }\n\n answer = false;\n\n if (fire(element, 'confirm')) {\n try {\n answer = Rails.confirm(message, element);\n } catch (error) {}\n\n callback = fire(element, 'confirm:complete', [answer]);\n }\n\n return answer && callback;\n };\n }).call(this);\n (function () {\n var disableFormElement, disableFormElements, disableLinkElement, enableFormElement, enableFormElements, enableLinkElement, formElements, getData, isXhrRedirect, matches, setData, stopEverything;\n matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, stopEverything = Rails.stopEverything, formElements = Rails.formElements;\n\n Rails.handleDisabledElement = function (e) {\n var element;\n element = this;\n\n if (element.disabled) {\n return stopEverything(e);\n }\n };\n\n Rails.enableElement = function (e) {\n var element;\n\n if (e instanceof Event) {\n if (isXhrRedirect(e)) {\n return;\n }\n\n element = e.target;\n } else {\n element = e;\n }\n\n if (matches(element, Rails.linkDisableSelector)) {\n return enableLinkElement(element);\n } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formEnableSelector)) {\n return enableFormElement(element);\n } else if (matches(element, Rails.formSubmitSelector)) {\n return enableFormElements(element);\n }\n };\n\n Rails.disableElement = function (e) {\n var element;\n element = e instanceof Event ? e.target : e;\n\n if (matches(element, Rails.linkDisableSelector)) {\n return disableLinkElement(element);\n } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formDisableSelector)) {\n return disableFormElement(element);\n } else if (matches(element, Rails.formSubmitSelector)) {\n return disableFormElements(element);\n }\n };\n\n disableLinkElement = function disableLinkElement(element) {\n var replacement;\n\n if (getData(element, 'ujs:disabled')) {\n return;\n }\n\n replacement = element.getAttribute('data-disable-with');\n\n if (replacement != null) {\n setData(element, 'ujs:enable-with', element.innerHTML);\n element.innerHTML = replacement;\n }\n\n element.addEventListener('click', stopEverything);\n return setData(element, 'ujs:disabled', true);\n };\n\n enableLinkElement = function enableLinkElement(element) {\n var originalText;\n originalText = getData(element, 'ujs:enable-with');\n\n if (originalText != null) {\n element.innerHTML = originalText;\n setData(element, 'ujs:enable-with', null);\n }\n\n element.removeEventListener('click', stopEverything);\n return setData(element, 'ujs:disabled', null);\n };\n\n disableFormElements = function disableFormElements(form) {\n return formElements(form, Rails.formDisableSelector).forEach(disableFormElement);\n };\n\n disableFormElement = function disableFormElement(element) {\n var replacement;\n\n if (getData(element, 'ujs:disabled')) {\n return;\n }\n\n replacement = element.getAttribute('data-disable-with');\n\n if (replacement != null) {\n if (matches(element, 'button')) {\n setData(element, 'ujs:enable-with', element.innerHTML);\n element.innerHTML = replacement;\n } else {\n setData(element, 'ujs:enable-with', element.value);\n element.value = replacement;\n }\n }\n\n element.disabled = true;\n return setData(element, 'ujs:disabled', true);\n };\n\n enableFormElements = function enableFormElements(form) {\n return formElements(form, Rails.formEnableSelector).forEach(enableFormElement);\n };\n\n enableFormElement = function enableFormElement(element) {\n var originalText;\n originalText = getData(element, 'ujs:enable-with');\n\n if (originalText != null) {\n if (matches(element, 'button')) {\n element.innerHTML = originalText;\n } else {\n element.value = originalText;\n }\n\n setData(element, 'ujs:enable-with', null);\n }\n\n element.disabled = false;\n return setData(element, 'ujs:disabled', null);\n };\n\n isXhrRedirect = function isXhrRedirect(event) {\n var ref, xhr;\n xhr = (ref = event.detail) != null ? ref[0] : void 0;\n return (xhr != null ? xhr.getResponseHeader(\"X-Xhr-Redirect\") : void 0) != null;\n };\n }).call(this);\n (function () {\n var stopEverything;\n stopEverything = Rails.stopEverything;\n\n Rails.handleMethod = function (e) {\n var csrfParam, csrfToken, form, formContent, href, link, method;\n link = this;\n method = link.getAttribute('data-method');\n\n if (!method) {\n return;\n }\n\n href = Rails.href(link);\n csrfToken = Rails.csrfToken();\n csrfParam = Rails.csrfParam();\n form = document.createElement('form');\n formContent = \"\";\n\n if (csrfParam != null && csrfToken != null && !Rails.isCrossDomain(href)) {\n formContent += \"\";\n }\n\n formContent += '';\n form.method = 'post';\n form.action = href;\n form.target = link.target;\n form.innerHTML = formContent;\n form.style.display = 'none';\n document.body.appendChild(form);\n form.querySelector('[type=\"submit\"]').click();\n return stopEverything(e);\n };\n }).call(this);\n (function () {\n var ajax,\n fire,\n getData,\n isCrossDomain,\n isRemote,\n matches,\n serializeElement,\n setData,\n stopEverything,\n slice = [].slice;\n matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, fire = Rails.fire, stopEverything = Rails.stopEverything, ajax = Rails.ajax, isCrossDomain = Rails.isCrossDomain, serializeElement = Rails.serializeElement;\n\n isRemote = function isRemote(element) {\n var value;\n value = element.getAttribute('data-remote');\n return value != null && value !== 'false';\n };\n\n Rails.handleRemote = function (e) {\n var button, data, dataType, element, method, url, withCredentials;\n element = this;\n\n if (!isRemote(element)) {\n return true;\n }\n\n if (!fire(element, 'ajax:before')) {\n fire(element, 'ajax:stopped');\n return false;\n }\n\n withCredentials = element.getAttribute('data-with-credentials');\n dataType = element.getAttribute('data-type') || 'script';\n\n if (matches(element, Rails.formSubmitSelector)) {\n button = getData(element, 'ujs:submit-button');\n method = getData(element, 'ujs:submit-button-formmethod') || element.method;\n url = getData(element, 'ujs:submit-button-formaction') || element.getAttribute('action') || location.href;\n\n if (method.toUpperCase() === 'GET') {\n url = url.replace(/\\?.*$/, '');\n }\n\n if (element.enctype === 'multipart/form-data') {\n data = new FormData(element);\n\n if (button != null) {\n data.append(button.name, button.value);\n }\n } else {\n data = serializeElement(element, button);\n }\n\n setData(element, 'ujs:submit-button', null);\n setData(element, 'ujs:submit-button-formmethod', null);\n setData(element, 'ujs:submit-button-formaction', null);\n } else if (matches(element, Rails.buttonClickSelector) || matches(element, Rails.inputChangeSelector)) {\n method = element.getAttribute('data-method');\n url = element.getAttribute('data-url');\n data = serializeElement(element, element.getAttribute('data-params'));\n } else {\n method = element.getAttribute('data-method');\n url = Rails.href(element);\n data = element.getAttribute('data-params');\n }\n\n ajax({\n type: method || 'GET',\n url: url,\n data: data,\n dataType: dataType,\n beforeSend: function beforeSend(xhr, options) {\n if (fire(element, 'ajax:beforeSend', [xhr, options])) {\n return fire(element, 'ajax:send', [xhr]);\n } else {\n fire(element, 'ajax:stopped');\n return false;\n }\n },\n success: function success() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:success', args);\n },\n error: function error() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:error', args);\n },\n complete: function complete() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:complete', args);\n },\n crossDomain: isCrossDomain(url),\n withCredentials: withCredentials != null && withCredentials !== 'false'\n });\n return stopEverything(e);\n };\n\n Rails.formSubmitButtonClick = function (e) {\n var button, form;\n button = this;\n form = button.form;\n\n if (!form) {\n return;\n }\n\n if (button.name) {\n setData(form, 'ujs:submit-button', {\n name: button.name,\n value: button.value\n });\n }\n\n setData(form, 'ujs:formnovalidate-button', button.formNoValidate);\n setData(form, 'ujs:submit-button-formaction', button.getAttribute('formaction'));\n return setData(form, 'ujs:submit-button-formmethod', button.getAttribute('formmethod'));\n };\n\n Rails.preventInsignificantClick = function (e) {\n var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick;\n link = this;\n method = (link.getAttribute('data-method') || 'GET').toUpperCase();\n data = link.getAttribute('data-params');\n metaClick = e.metaKey || e.ctrlKey;\n insignificantMetaClick = metaClick && method === 'GET' && !data;\n nonPrimaryMouseClick = e.button != null && e.button !== 0;\n\n if (nonPrimaryMouseClick || insignificantMetaClick) {\n return e.stopImmediatePropagation();\n }\n };\n }).call(this);\n (function () {\n var $, CSRFProtection, delegate, disableElement, enableElement, fire, formSubmitButtonClick, getData, handleConfirm, handleDisabledElement, handleMethod, handleRemote, loadCSPNonce, preventInsignificantClick, refreshCSRFTokens;\n fire = Rails.fire, delegate = Rails.delegate, getData = Rails.getData, $ = Rails.$, refreshCSRFTokens = Rails.refreshCSRFTokens, CSRFProtection = Rails.CSRFProtection, loadCSPNonce = Rails.loadCSPNonce, enableElement = Rails.enableElement, disableElement = Rails.disableElement, handleDisabledElement = Rails.handleDisabledElement, handleConfirm = Rails.handleConfirm, preventInsignificantClick = Rails.preventInsignificantClick, handleRemote = Rails.handleRemote, formSubmitButtonClick = Rails.formSubmitButtonClick, handleMethod = Rails.handleMethod;\n\n if (typeof jQuery !== \"undefined\" && jQuery !== null && jQuery.ajax != null) {\n if (jQuery.rails) {\n throw new Error('If you load both jquery_ujs and rails-ujs, use rails-ujs only.');\n }\n\n jQuery.rails = Rails;\n jQuery.ajaxPrefilter(function (options, originalOptions, xhr) {\n if (!options.crossDomain) {\n return CSRFProtection(xhr);\n }\n });\n }\n\n Rails.start = function () {\n if (window._rails_loaded) {\n throw new Error('rails-ujs has already been loaded!');\n }\n\n window.addEventListener('pageshow', function () {\n $(Rails.formEnableSelector).forEach(function (el) {\n if (getData(el, 'ujs:disabled')) {\n return enableElement(el);\n }\n });\n return $(Rails.linkDisableSelector).forEach(function (el) {\n if (getData(el, 'ujs:disabled')) {\n return enableElement(el);\n }\n });\n });\n delegate(document, Rails.linkDisableSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.linkDisableSelector, 'ajax:stopped', enableElement);\n delegate(document, Rails.buttonDisableSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.buttonDisableSelector, 'ajax:stopped', enableElement);\n delegate(document, Rails.linkClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.linkClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.linkClickSelector, 'click', handleConfirm);\n delegate(document, Rails.linkClickSelector, 'click', disableElement);\n delegate(document, Rails.linkClickSelector, 'click', handleRemote);\n delegate(document, Rails.linkClickSelector, 'click', handleMethod);\n delegate(document, Rails.buttonClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.buttonClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.buttonClickSelector, 'click', handleConfirm);\n delegate(document, Rails.buttonClickSelector, 'click', disableElement);\n delegate(document, Rails.buttonClickSelector, 'click', handleRemote);\n delegate(document, Rails.inputChangeSelector, 'change', handleDisabledElement);\n delegate(document, Rails.inputChangeSelector, 'change', handleConfirm);\n delegate(document, Rails.inputChangeSelector, 'change', handleRemote);\n delegate(document, Rails.formSubmitSelector, 'submit', handleDisabledElement);\n delegate(document, Rails.formSubmitSelector, 'submit', handleConfirm);\n delegate(document, Rails.formSubmitSelector, 'submit', handleRemote);\n delegate(document, Rails.formSubmitSelector, 'submit', function (e) {\n return setTimeout(function () {\n return disableElement(e);\n }, 13);\n });\n delegate(document, Rails.formSubmitSelector, 'ajax:send', disableElement);\n delegate(document, Rails.formSubmitSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.formInputClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.formInputClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.formInputClickSelector, 'click', handleConfirm);\n delegate(document, Rails.formInputClickSelector, 'click', formSubmitButtonClick);\n document.addEventListener('DOMContentLoaded', refreshCSRFTokens);\n document.addEventListener('DOMContentLoaded', loadCSPNonce);\n return window._rails_loaded = true;\n };\n\n if (window.Rails === Rails && fire(document, 'rails:attachBindings')) {\n Rails.start();\n }\n }).call(this);\n }).call(this);\n\n if ((typeof module === \"undefined\" ? \"undefined\" : _typeof(module)) === \"object\" && module.exports) {\n module.exports = Rails;\n } else if (typeof define === \"function\" && define.amd) {\n define(Rails);\n }\n}).call(this);","module.exports = __webpack_public_path__ + \"media/symbol/volta-brand-icons-b0758c05.svg\";","module.exports = __webpack_public_path__ + \"media/symbol/volta-flag-icons-49881052.svg\";","module.exports = __webpack_public_path__ + \"media/symbol/volta-icons-f9923579.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api--white-faaff4ce.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api-changelog--white-1bd97f04.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api-changelog-d65d1f06.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api-dashboard-vert--white-1dfad70d.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api-dashboard-vert-8af86a96.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api-developer--white-e98b9c90.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api-developer-5f94c73a.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api-support--white-020f27bd.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api-support-9a09970e.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-api-f5f267d7.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-apis--white-274df3a4.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-apis-1a690a13.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-developer--white-fa61f085.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-developer-aaf580fc.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-lettermark--white-26cdf2d2.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-lettermark-c5f4c571.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-logo-collapsed-b51e5cfd.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-nexmo--white-df3a0984.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-nexmo-vert--white-53f43ae1.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-nexmo-vert-7b2e755e.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-nexmo-b55cd326.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-tokbox--white-588eecf3.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-tokbox-vert--white-3f7376b2.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-tokbox-vert-24f66958.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-tokbox-374d0b2b.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-video-api--white-ccd1c34e.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-video-api-stacked--white-c9449041.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-video-api-stacked-2239c1e1.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-video-api-6547ac01.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-wordmark--white-95eac2b4.svg\";","module.exports = __webpack_public_path__ + \"media/logos/Vonage-wordmark-a50689e2.svg\";","module.exports = __webpack_public_path__ + \"media/logos/favicon-ac1a15a7.ico\";","module.exports = __webpack_public_path__ + \"media/logos/volta-logo-7e38d941.svg\";","module.exports = __webpack_public_path__ + \"media/logos/vonage-logo--white-2a89ec1d.svg\";","module.exports = __webpack_public_path__ + \"media/logos/vonage-logo-collapsed--white-6cd2aa45.svg\";","module.exports = __webpack_public_path__ + \"media/logos/vonage-logo-4843dbd0.svg\";","/* PrismJS 1.20.0\nhttps://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+c+csharp+git+groovy+java+json+kotlin+markup-templating+objectivec+php+python+ruby+swift&plugins=line-highlight+line-numbers+keep-markup+command-line+toolbar+copy-to-clipboard */\nvar _self = \"undefined\" != typeof window ? window : \"undefined\" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope ? self : {},\n Prism = function (u) {\n var c = /\\blang(?:uage)?-([\\w-]+)\\b/i,\n n = 0,\n C = {\n manual: u.Prism && u.Prism.manual,\n disableWorkerMessageHandler: u.Prism && u.Prism.disableWorkerMessageHandler,\n util: {\n encode: function e(n) {\n return n instanceof _ ? new _(n.type, e(n.content), n.alias) : Array.isArray(n) ? n.map(e) : n.replace(/&/g, \"&\").replace(/ n.length) return;\n\n if (!(b instanceof _)) {\n var x = 1;\n\n if (d && y != t.tail.prev) {\n g.lastIndex = k;\n var w = g.exec(n);\n if (!w) break;\n var A = w.index + (h && w[1] ? w[1].length : 0),\n P = w.index + w[0].length,\n S = k;\n\n for (S += y.value.length; S <= A;) {\n y = y.next, S += y.value.length;\n }\n\n if (S -= y.value.length, k = S, y.value instanceof _) continue;\n\n for (var O = y; O !== t.tail && (S < P || \"string\" == typeof O.value && !O.prev.value.greedy); O = O.next) {\n x++, S += O.value.length;\n }\n\n x--, b = n.slice(k, S), w.index -= k;\n } else {\n g.lastIndex = 0;\n var w = g.exec(b);\n }\n\n if (w) {\n h && (v = w[1] ? w[1].length : 0);\n var A = w.index + v,\n w = w[0].slice(v),\n P = A + w.length,\n E = b.slice(0, A),\n N = b.slice(P),\n j = y.prev;\n E && (j = M(t, j, E), k += E.length), W(t, j, x);\n var L = new _(s, f ? C.tokenize(w, f) : w, p, w, d);\n if (y = M(t, j, L), N && M(t, y, N), 1 < x && e(n, t, r, y.prev, k, !0, s + \",\" + c), i) break;\n } else if (i) break;\n }\n }\n }\n }\n }\n }(e, a, n, a.head, 0), function (e) {\n var n = [],\n t = e.head.next;\n\n for (; t !== e.tail;) {\n n.push(t.value), t = t.next;\n }\n\n return n;\n }(a);\n },\n hooks: {\n all: {},\n add: function add(e, n) {\n var t = C.hooks.all;\n t[e] = t[e] || [], t[e].push(n);\n },\n run: function run(e, n) {\n var t = C.hooks.all[e];\n if (t && t.length) for (var r, a = 0; r = t[a++];) {\n r(n);\n }\n }\n },\n Token: _\n };\n\n function _(e, n, t, r, a) {\n this.type = e, this.content = n, this.alias = t, this.length = 0 | (r || \"\").length, this.greedy = !!a;\n }\n\n function l() {\n var e = {\n value: null,\n prev: null,\n next: null\n },\n n = {\n value: null,\n prev: e,\n next: null\n };\n e.next = n, this.head = e, this.tail = n, this.length = 0;\n }\n\n function M(e, n, t) {\n var r = n.next,\n a = {\n value: t,\n prev: n,\n next: r\n };\n return n.next = a, r.prev = a, e.length++, a;\n }\n\n function W(e, n, t) {\n for (var r = n.next, a = 0; a < t && r !== e.tail; a++) {\n r = r.next;\n }\n\n (n.next = r).prev = n, e.length -= a;\n }\n\n if (u.Prism = C, _.stringify = function n(e, t) {\n if (\"string\" == typeof e) return e;\n\n if (Array.isArray(e)) {\n var r = \"\";\n return e.forEach(function (e) {\n r += n(e, t);\n }), r;\n }\n\n var a = {\n type: e.type,\n content: n(e.content, t),\n tag: \"span\",\n classes: [\"token\", e.type],\n attributes: {},\n language: t\n },\n l = e.alias;\n l && (Array.isArray(l) ? Array.prototype.push.apply(a.classes, l) : a.classes.push(l)), C.hooks.run(\"wrap\", a);\n var i = \"\";\n\n for (var o in a.attributes) {\n i += \" \" + o + '=\"' + (a.attributes[o] || \"\").replace(/\"/g, \""\") + '\"';\n }\n\n return \"<\" + a.tag + ' class=\"' + a.classes.join(\" \") + '\"' + i + \">\" + a.content + \"\" + a.tag + \">\";\n }, !u.document) return u.addEventListener && (C.disableWorkerMessageHandler || u.addEventListener(\"message\", function (e) {\n var n = JSON.parse(e.data),\n t = n.language,\n r = n.code,\n a = n.immediateClose;\n u.postMessage(C.highlight(r, C.languages[t], t)), a && u.close();\n }, !1)), C;\n var e = C.util.currentScript();\n\n function t() {\n C.manual || C.highlightAll();\n }\n\n if (e && (C.filename = e.src, e.hasAttribute(\"data-manual\") && (C.manual = !0)), !C.manual) {\n var r = document.readyState;\n \"loading\" === r || \"interactive\" === r && e && e.defer ? document.addEventListener(\"DOMContentLoaded\", t) : window.requestAnimationFrame ? window.requestAnimationFrame(t) : window.setTimeout(t, 16);\n }\n\n return C;\n}(_self);\n\n\"undefined\" != typeof module && module.exports && (module.exports = Prism), \"undefined\" != typeof global && (global.Prism = Prism);\nPrism.languages.markup = {\n comment: //,\n prolog: /<\\?[\\s\\S]+?\\?>/,\n doctype: {\n pattern: /\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:(?!)*\\]\\s*)?>/i,\n greedy: !0\n },\n cdata: //i,\n tag: {\n pattern: /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/i,\n greedy: !0,\n inside: {\n tag: {\n pattern: /^<\\/?[^\\s>\\/]+/i,\n inside: {\n punctuation: /^<\\/?/,\n namespace: /^[^\\s>\\/:]+:/\n }\n },\n \"attr-value\": {\n pattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/i,\n inside: {\n punctuation: [/^=/, {\n pattern: /^(\\s*)[\"']|[\"']$/,\n lookbehind: !0\n }]\n }\n },\n punctuation: /\\/?>/,\n \"attr-name\": {\n pattern: /[^\\s>\\/]+/,\n inside: {\n namespace: /^[^\\s>\\/:]+:/\n }\n }\n }\n },\n entity: /?[\\da-z]{1,8};/i\n}, Prism.languages.markup.tag.inside[\"attr-value\"].inside.entity = Prism.languages.markup.entity, Prism.hooks.add(\"wrap\", function (a) {\n \"entity\" === a.type && (a.attributes.title = a.content.replace(/&/, \"&\"));\n}), Object.defineProperty(Prism.languages.markup.tag, \"addInlined\", {\n value: function value(a, e) {\n var s = {};\n s[\"language-\" + e] = {\n pattern: /(^$)/i,\n lookbehind: !0,\n inside: Prism.languages[e]\n }, s.cdata = /^$/i;\n var n = {\n \"included-cdata\": {\n pattern: //i,\n inside: s\n }\n };\n n[\"language-\" + e] = {\n pattern: /[\\s\\S]+/,\n inside: Prism.languages[e]\n };\n var t = {};\n t[a] = {\n pattern: RegExp(\"(<__[\\\\s\\\\S]*?>)(?:\\\\s*|[\\\\s\\\\S])*?(?=<\\\\/__>)\".replace(/__/g, function () {\n return a;\n }), \"i\"),\n lookbehind: !0,\n greedy: !0,\n inside: n\n }, Prism.languages.insertBefore(\"markup\", \"cdata\", t);\n }\n}), Prism.languages.xml = Prism.languages.extend(\"markup\", {}), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup;\n!function (s) {\n var e = /(\"|')(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/;\n s.languages.css = {\n comment: /\\/\\*[\\s\\S]*?\\*\\//,\n atrule: {\n pattern: /@[\\w-]+[\\s\\S]*?(?:;|(?=\\s*\\{))/,\n inside: {\n rule: /^@[\\w-]+/,\n \"selector-function-argument\": {\n pattern: /(\\bselector\\s*\\((?!\\s*\\))\\s*)(?:[^()]|\\((?:[^()]|\\([^()]*\\))*\\))+?(?=\\s*\\))/,\n lookbehind: !0,\n alias: \"selector\"\n }\n }\n },\n url: {\n pattern: RegExp(\"url\\\\((?:\" + e.source + \"|[^\\n\\r()]*)\\\\)\", \"i\"),\n greedy: !0,\n inside: {\n \"function\": /^url/i,\n punctuation: /^\\(|\\)$/\n }\n },\n selector: RegExp(\"[^{}\\\\s](?:[^{};\\\"']|\" + e.source + \")*?(?=\\\\s*\\\\{)\"),\n string: {\n pattern: e,\n greedy: !0\n },\n property: /[-_a-z\\xA0-\\uFFFF][-\\w\\xA0-\\uFFFF]*(?=\\s*:)/i,\n important: /!important\\b/i,\n \"function\": /[-a-z0-9]+(?=\\()/i,\n punctuation: /[(){};:,]/\n }, s.languages.css.atrule.inside.rest = s.languages.css;\n var t = s.languages.markup;\n t && (t.tag.addInlined(\"style\", \"css\"), s.languages.insertBefore(\"inside\", \"attr-value\", {\n \"style-attr\": {\n pattern: /\\s*style=(\"|')(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1/i,\n inside: {\n \"attr-name\": {\n pattern: /^\\s*style/i,\n inside: t.tag.inside\n },\n punctuation: /^\\s*=\\s*['\"]|['\"]\\s*$/,\n \"attr-value\": {\n pattern: /.+/i,\n inside: s.languages.css\n }\n },\n alias: \"language-css\"\n }\n }, t.tag));\n}(Prism);\nPrism.languages.clike = {\n comment: [{\n pattern: /(^|[^\\\\])\\/\\*[\\s\\S]*?(?:\\*\\/|$)/,\n lookbehind: !0\n }, {\n pattern: /(^|[^\\\\:])\\/\\/.*/,\n lookbehind: !0,\n greedy: !0\n }],\n string: {\n pattern: /([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n greedy: !0\n },\n \"class-name\": {\n pattern: /(\\b(?:class|interface|extends|implements|trait|instanceof|new)\\s+|\\bcatch\\s+\\()[\\w.\\\\]+/i,\n lookbehind: !0,\n inside: {\n punctuation: /[.\\\\]/\n }\n },\n keyword: /\\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\\b/,\n \"boolean\": /\\b(?:true|false)\\b/,\n \"function\": /\\w+(?=\\()/,\n number: /\\b0x[\\da-f]+\\b|(?:\\b\\d+\\.?\\d*|\\B\\.\\d+)(?:e[+-]?\\d+)?/i,\n operator: /[<>]=?|[!=]=?=?|--?|\\+\\+?|&&?|\\|\\|?|[?*/~^%]/,\n punctuation: /[{}[\\];(),.:]/\n};\nPrism.languages.javascript = Prism.languages.extend(\"clike\", {\n \"class-name\": [Prism.languages.clike[\"class-name\"], {\n pattern: /(^|[^$\\w\\xA0-\\uFFFF])[_$A-Z\\xA0-\\uFFFF][$\\w\\xA0-\\uFFFF]*(?=\\.(?:prototype|constructor))/,\n lookbehind: !0\n }],\n keyword: [{\n pattern: /((?:^|})\\s*)(?:catch|finally)\\b/,\n lookbehind: !0\n }, {\n pattern: /(^|[^.]|\\.\\.\\.\\s*)\\b(?:as|async(?=\\s*(?:function\\b|\\(|[$\\w\\xA0-\\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\\b/,\n lookbehind: !0\n }],\n number: /\\b(?:(?:0[xX](?:[\\dA-Fa-f](?:_[\\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\\d(?:_\\d)?)+n|NaN|Infinity)\\b|(?:\\b(?:\\d(?:_\\d)?)+\\.?(?:\\d(?:_\\d)?)*|\\B\\.(?:\\d(?:_\\d)?)+)(?:[Ee][+-]?(?:\\d(?:_\\d)?)+)?/,\n \"function\": /#?[_$a-zA-Z\\xA0-\\uFFFF][$\\w\\xA0-\\uFFFF]*(?=\\s*(?:\\.\\s*(?:apply|bind|call)\\s*)?\\()/,\n operator: /--|\\+\\+|\\*\\*=?|=>|&&|\\|\\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\\.{3}|\\?[.?]?|[~:]/\n}), Prism.languages.javascript[\"class-name\"][0].pattern = /(\\b(?:class|interface|extends|implements|instanceof|new)\\s+)[\\w.\\\\]+/, Prism.languages.insertBefore(\"javascript\", \"keyword\", {\n regex: {\n pattern: /((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s])\\s*)\\/(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[gimyus]{0,6}(?=(?:\\s|\\/\\*[\\s\\S]*?\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))/,\n lookbehind: !0,\n greedy: !0\n },\n \"function-variable\": {\n pattern: /#?[_$a-zA-Z\\xA0-\\uFFFF][$\\w\\xA0-\\uFFFF]*(?=\\s*[=:]\\s*(?:async\\s*)?(?:\\bfunction\\b|(?:\\((?:[^()]|\\([^()]*\\))*\\)|[_$a-zA-Z\\xA0-\\uFFFF][$\\w\\xA0-\\uFFFF]*)\\s*=>))/,\n alias: \"function\"\n },\n parameter: [{\n pattern: /(function(?:\\s+[_$A-Za-z\\xA0-\\uFFFF][$\\w\\xA0-\\uFFFF]*)?\\s*\\(\\s*)(?!\\s)(?:[^()]|\\([^()]*\\))+?(?=\\s*\\))/,\n lookbehind: !0,\n inside: Prism.languages.javascript\n }, {\n pattern: /[_$a-z\\xA0-\\uFFFF][$\\w\\xA0-\\uFFFF]*(?=\\s*=>)/i,\n inside: Prism.languages.javascript\n }, {\n pattern: /(\\(\\s*)(?!\\s)(?:[^()]|\\([^()]*\\))+?(?=\\s*\\)\\s*=>)/,\n lookbehind: !0,\n inside: Prism.languages.javascript\n }, {\n pattern: /((?:\\b|\\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\\w\\xA0-\\uFFFF]))(?:[_$A-Za-z\\xA0-\\uFFFF][$\\w\\xA0-\\uFFFF]*\\s*)\\(\\s*)(?!\\s)(?:[^()]|\\([^()]*\\))+?(?=\\s*\\)\\s*\\{)/,\n lookbehind: !0,\n inside: Prism.languages.javascript\n }],\n constant: /\\b[A-Z](?:[A-Z_]|\\dx?)*\\b/\n}), Prism.languages.insertBefore(\"javascript\", \"string\", {\n \"template-string\": {\n pattern: /`(?:\\\\[\\s\\S]|\\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\\${)[^\\\\`])*`/,\n greedy: !0,\n inside: {\n \"template-punctuation\": {\n pattern: /^`|`$/,\n alias: \"string\"\n },\n interpolation: {\n pattern: /((?:^|[^\\\\])(?:\\\\{2})*)\\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,\n lookbehind: !0,\n inside: {\n \"interpolation-punctuation\": {\n pattern: /^\\${|}$/,\n alias: \"punctuation\"\n },\n rest: Prism.languages.javascript\n }\n },\n string: /[\\s\\S]+/\n }\n }\n}), Prism.languages.markup && Prism.languages.markup.tag.addInlined(\"script\", \"javascript\"), Prism.languages.js = Prism.languages.javascript;\n!function (e) {\n var t = \"\\\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\\\b\",\n n = {\n environment: {\n pattern: RegExp(\"\\\\$\" + t),\n alias: \"constant\"\n },\n variable: [{\n pattern: /\\$?\\(\\([\\s\\S]+?\\)\\)/,\n greedy: !0,\n inside: {\n variable: [{\n pattern: /(^\\$\\(\\([\\s\\S]+)\\)\\)/,\n lookbehind: !0\n }, /^\\$\\(\\(/],\n number: /\\b0x[\\dA-Fa-f]+\\b|(?:\\b\\d+\\.?\\d*|\\B\\.\\d+)(?:[Ee]-?\\d+)?/,\n operator: /--?|-=|\\+\\+?|\\+=|!=?|~|\\*\\*?|\\*=|\\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\\^=?|\\|\\|?|\\|=|\\?|:/,\n punctuation: /\\(\\(?|\\)\\)?|,|;/\n }\n }, {\n pattern: /\\$\\((?:\\([^)]+\\)|[^()])+\\)|`[^`]+`/,\n greedy: !0,\n inside: {\n variable: /^\\$\\(|^`|\\)$|`$/\n }\n }, {\n pattern: /\\$\\{[^}]+\\}/,\n greedy: !0,\n inside: {\n operator: /:[-=?+]?|[!\\/]|##?|%%?|\\^\\^?|,,?/,\n punctuation: /[\\[\\]]/,\n environment: {\n pattern: RegExp(\"(\\\\{)\" + t),\n lookbehind: !0,\n alias: \"constant\"\n }\n }\n }, /\\$(?:\\w+|[#?*!@$])/],\n entity: /\\\\(?:[abceEfnrtv\\\\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/\n };\n e.languages.bash = {\n shebang: {\n pattern: /^#!\\s*\\/.*/,\n alias: \"important\"\n },\n comment: {\n pattern: /(^|[^\"{\\\\$])#.*/,\n lookbehind: !0\n },\n \"function-name\": [{\n pattern: /(\\bfunction\\s+)\\w+(?=(?:\\s*\\(?:\\s*\\))?\\s*\\{)/,\n lookbehind: !0,\n alias: \"function\"\n }, {\n pattern: /\\b\\w+(?=\\s*\\(\\s*\\)\\s*\\{)/,\n alias: \"function\"\n }],\n \"for-or-select\": {\n pattern: /(\\b(?:for|select)\\s+)\\w+(?=\\s+in\\s)/,\n alias: \"variable\",\n lookbehind: !0\n },\n \"assign-left\": {\n pattern: /(^|[\\s;|&]|[<>]\\()\\w+(?=\\+?=)/,\n inside: {\n environment: {\n pattern: RegExp(\"(^|[\\\\s;|&]|[<>]\\\\()\" + t),\n lookbehind: !0,\n alias: \"constant\"\n }\n },\n alias: \"variable\",\n lookbehind: !0\n },\n string: [{\n pattern: /((?:^|[^<])<<-?\\s*)(\\w+?)\\s*(?:\\r?\\n|\\r)[\\s\\S]*?(?:\\r?\\n|\\r)\\2/,\n lookbehind: !0,\n greedy: !0,\n inside: n\n }, {\n pattern: /((?:^|[^<])<<-?\\s*)([\"'])(\\w+)\\2\\s*(?:\\r?\\n|\\r)[\\s\\S]*?(?:\\r?\\n|\\r)\\3/,\n lookbehind: !0,\n greedy: !0\n }, {\n pattern: /(^|[^\\\\](?:\\\\\\\\)*)([\"'])(?:\\\\[\\s\\S]|\\$\\([^)]+\\)|`[^`]+`|(?!\\2)[^\\\\])*\\2/,\n lookbehind: !0,\n greedy: !0,\n inside: n\n }],\n environment: {\n pattern: RegExp(\"\\\\$?\" + t),\n alias: \"constant\"\n },\n variable: n.variable,\n \"function\": {\n pattern: /(^|[\\s;|&]|[<>]\\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\\s;|&])/,\n lookbehind: !0\n },\n keyword: {\n pattern: /(^|[\\s;|&]|[<>]\\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\\s;|&])/,\n lookbehind: !0\n },\n builtin: {\n pattern: /(^|[\\s;|&]|[<>]\\()(?:\\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\\s;|&])/,\n lookbehind: !0,\n alias: \"class-name\"\n },\n \"boolean\": {\n pattern: /(^|[\\s;|&]|[<>]\\()(?:true|false)(?=$|[)\\s;|&])/,\n lookbehind: !0\n },\n \"file-descriptor\": {\n pattern: /\\B&\\d\\b/,\n alias: \"important\"\n },\n operator: {\n pattern: /\\d?<>|>\\||\\+=|==?|!=?|=~|<<[<-]?|[&\\d]?>>|\\d?[<>]&?|&[>&]?|\\|[&|]?|<=?|>=?/,\n inside: {\n \"file-descriptor\": {\n pattern: /^\\d/,\n alias: \"important\"\n }\n }\n },\n punctuation: /\\$?\\(\\(?|\\)\\)?|\\.\\.|[{}[\\];\\\\]/,\n number: {\n pattern: /(^|\\s)(?:[1-9]\\d*|0)(?:[.,]\\d+)?\\b/,\n lookbehind: !0\n }\n };\n\n for (var a = [\"comment\", \"function-name\", \"for-or-select\", \"assign-left\", \"string\", \"environment\", \"function\", \"keyword\", \"builtin\", \"boolean\", \"file-descriptor\", \"operator\", \"punctuation\", \"number\"], r = n.variable[1].inside, s = 0; s < a.length; s++) {\n r[a[s]] = e.languages.bash[a[s]];\n }\n\n e.languages.shell = e.languages.bash;\n}(Prism);\nPrism.languages.c = Prism.languages.extend(\"clike\", {\n comment: {\n pattern: /\\/\\/(?:[^\\r\\n\\\\]|\\\\(?:\\r\\n?|\\n|(?![\\r\\n])))*|\\/\\*[\\s\\S]*?(?:\\*\\/|$)/,\n greedy: !0\n },\n \"class-name\": {\n pattern: /(\\b(?:enum|struct)\\s+(?:__attribute__\\s*\\(\\([\\s\\S]*?\\)\\)\\s*)?)\\w+/,\n lookbehind: !0\n },\n keyword: /\\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\\b/,\n \"function\": /[a-z_]\\w*(?=\\s*\\()/i,\n operator: />>=?|<<=?|->|([-+&|:])\\1|[?:~]|[-+*/%&|^!=<>]=?/,\n number: /(?:\\b0x(?:[\\da-f]+\\.?[\\da-f]*|\\.[\\da-f]+)(?:p[+-]?\\d+)?|(?:\\b\\d+\\.?\\d*|\\B\\.\\d+)(?:e[+-]?\\d+)?)[ful]*/i\n}), Prism.languages.insertBefore(\"c\", \"string\", {\n macro: {\n pattern: /(^\\s*)#\\s*[a-z]+(?:[^\\r\\n\\\\]|\\\\(?:\\r\\n|[\\s\\S]))*/im,\n lookbehind: !0,\n alias: \"property\",\n inside: {\n string: {\n pattern: /(#\\s*include\\s*)(?:<.+?>|(\"|')(?:\\\\?.)+?\\2)/,\n lookbehind: !0\n },\n directive: {\n pattern: /(#\\s*)\\b(?:define|defined|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\\b/,\n lookbehind: !0,\n alias: \"keyword\"\n }\n }\n },\n constant: /\\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\\b/\n}), delete Prism.languages.c[\"boolean\"];\n!function (s) {\n function a(e, s) {\n return e.replace(/<<(\\d+)>>/g, function (e, n) {\n return \"(?:\" + s[+n] + \")\";\n });\n }\n\n function t(e, n, s) {\n return RegExp(a(e, n), s || \"\");\n }\n\n function e(e, n) {\n for (var s = 0; s < n; s++) {\n e = e.replace(/<>/g, function () {\n return \"(?:\" + e + \")\";\n });\n }\n\n return e.replace(/<>/g, \"[^\\\\s\\\\S]\");\n }\n\n var n = \"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void\",\n i = \"class enum interface struct\",\n r = \"add alias ascending async await by descending from get global group into join let nameof notnull on orderby partial remove select set unmanaged value when where where\",\n o = \"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield\";\n\n function l(e) {\n return \"\\\\b(?:\" + e.trim().replace(/ /g, \"|\") + \")\\\\b\";\n }\n\n var d = l(i),\n p = RegExp(l(n + \" \" + i + \" \" + r + \" \" + o)),\n c = l(i + \" \" + r + \" \" + o),\n u = l(n + \" \" + i + \" \" + o),\n g = e(\"<(?:[^<>;=+\\\\-*/%&|^]|<>)*>\", 2),\n b = e(\"\\\\((?:[^()]|<>)*\\\\)\", 2),\n h = \"@?\\\\b[A-Za-z_]\\\\w*\\\\b\",\n f = a(\"<<0>>(?:\\\\s*<<1>>)?\", [h, g]),\n m = a(\"(?!<<0>>)<<1>>(?:\\\\s*\\\\.\\\\s*<<1>>)*\", [c, f]),\n k = \"\\\\[\\\\s*(?:,\\\\s*)*\\\\]\",\n y = a(\"(?:<<0>>|<<1>>)(?:\\\\s*(?:\\\\?\\\\s*)?<<2>>)*(?:\\\\s*\\\\?)?\", [a(\"\\\\(<<0>>+(?:,<<0>>+)+\\\\)\", [a(\"[^,()<>[\\\\];=+\\\\-*/%&|^]|<<0>>|<<1>>|<<2>>\", [g, b, k])]), m, k]),\n w = {\n keyword: p,\n punctuation: /[<>()?,.:[\\]]/\n },\n v = \"'(?:[^\\r\\n'\\\\\\\\]|\\\\\\\\.|\\\\\\\\[Uux][\\\\da-fA-F]{1,8})'\",\n x = '\"(?:\\\\\\\\.|[^\\\\\\\\\"\\r\\n])*\"';\n s.languages.csharp = s.languages.extend(\"clike\", {\n string: [{\n pattern: t(\"(^|[^$\\\\\\\\])<<0>>\", ['@\"(?:\"\"|\\\\\\\\[\\\\s\\\\S]|[^\\\\\\\\\"])*\"(?!\")']),\n lookbehind: !0,\n greedy: !0\n }, {\n pattern: t(\"(^|[^@$\\\\\\\\])<<0>>\", [x]),\n lookbehind: !0,\n greedy: !0\n }, {\n pattern: RegExp(v),\n greedy: !0,\n alias: \"character\"\n }],\n \"class-name\": [{\n pattern: t(\"(\\\\busing\\\\s+static\\\\s+)<<0>>(?=\\\\s*;)\", [m]),\n lookbehind: !0,\n inside: w\n }, {\n pattern: t(\"(\\\\busing\\\\s+<<0>>\\\\s*=\\\\s*)<<1>>(?=\\\\s*;)\", [h, y]),\n lookbehind: !0,\n inside: w\n }, {\n pattern: t(\"(\\\\busing\\\\s+)<<0>>(?=\\\\s*=)\", [h]),\n lookbehind: !0\n }, {\n pattern: t(\"(\\\\b<<0>>\\\\s+)<<1>>\", [d, f]),\n lookbehind: !0,\n inside: w\n }, {\n pattern: t(\"(\\\\bcatch\\\\s*\\\\(\\\\s*)<<0>>\", [m]),\n lookbehind: !0,\n inside: w\n }, {\n pattern: t(\"(\\\\bwhere\\\\s+)<<0>>\", [h]),\n lookbehind: !0\n }, {\n pattern: t(\"(\\\\b(?:is|as)\\\\s+)<<0>>\", [y]),\n lookbehind: !0,\n inside: w\n }, {\n pattern: t(\"\\\\b<<0>>(?=\\\\s+(?!<<1>>)<<2>>(?:\\\\s*[=,;:{)\\\\]]|\\\\s+in))\", [y, u, h]),\n inside: w\n }],\n keyword: p,\n number: /(?:\\b0(?:x[\\da-f_]*[\\da-f]|b[01_]*[01])|(?:\\B\\.\\d+(?:_+\\d+)*|\\b\\d+(?:_+\\d+)*(?:\\.\\d+(?:_+\\d+)*)?)(?:e[-+]?\\d+(?:_+\\d+)*)?)(?:ul|lu|[dflmu])?\\b/i,\n operator: />>=?|<<=?|[-=]>|([-+&|])\\1|~|\\?\\?=?|[-+*/%&|^!=<>]=?/,\n punctuation: /\\?\\.?|::|[{}[\\];(),.:]/\n }), s.languages.insertBefore(\"csharp\", \"number\", {\n range: {\n pattern: /\\.\\./,\n alias: \"operator\"\n }\n }), s.languages.insertBefore(\"csharp\", \"punctuation\", {\n \"named-parameter\": {\n pattern: t(\"([(,]\\\\s*)<<0>>(?=\\\\s*:)\", [h]),\n lookbehind: !0,\n alias: \"punctuation\"\n }\n }), s.languages.insertBefore(\"csharp\", \"class-name\", {\n namespace: {\n pattern: t(\"(\\\\b(?:namespace|using)\\\\s+)<<0>>(?:\\\\s*\\\\.\\\\s*<<0>>)*(?=\\\\s*[;{])\", [h]),\n lookbehind: !0,\n inside: {\n punctuation: /\\./\n }\n },\n \"type-expression\": {\n pattern: t(\"(\\\\b(?:default|typeof|sizeof)\\\\s*\\\\(\\\\s*)(?:[^()\\\\s]|\\\\s(?!\\\\s*\\\\))|<<0>>)*(?=\\\\s*\\\\))\", [b]),\n lookbehind: !0,\n alias: \"class-name\",\n inside: w\n },\n \"return-type\": {\n pattern: t(\"<<0>>(?=\\\\s+(?:<<1>>\\\\s*(?:=>|[({]|\\\\.\\\\s*this\\\\s*\\\\[)|this\\\\s*\\\\[))\", [y, m]),\n inside: w,\n alias: \"class-name\"\n },\n \"constructor-invocation\": {\n pattern: t(\"(\\\\bnew\\\\s+)<<0>>(?=\\\\s*[[({])\", [y]),\n lookbehind: !0,\n inside: w,\n alias: \"class-name\"\n },\n \"generic-method\": {\n pattern: t(\"<<0>>\\\\s*<<1>>(?=\\\\s*\\\\()\", [h, g]),\n inside: {\n \"function\": t(\"^<<0>>\", [h]),\n generic: {\n pattern: RegExp(g),\n alias: \"class-name\",\n inside: w\n }\n }\n },\n \"type-list\": {\n pattern: t(\"\\\\b((?:<<0>>\\\\s+<<1>>|where\\\\s+<<2>>)\\\\s*:\\\\s*)(?:<<3>>|<<4>>)(?:\\\\s*,\\\\s*(?:<<3>>|<<4>>))*(?=\\\\s*(?:where|[{;]|=>|$))\", [d, f, h, y, p.source]),\n lookbehind: !0,\n inside: {\n keyword: p,\n \"class-name\": {\n pattern: RegExp(y),\n greedy: !0,\n inside: w\n },\n punctuation: /,/\n }\n },\n preprocessor: {\n pattern: /(^\\s*)#.*/m,\n lookbehind: !0,\n alias: \"property\",\n inside: {\n directive: {\n pattern: /(\\s*#)\\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\\b/,\n lookbehind: !0,\n alias: \"keyword\"\n }\n }\n }\n });\n\n var $ = x + \"|\" + v,\n _ = a(\"\\\\/(?![*/])|\\\\/\\\\/[^\\r\\n]*[\\r\\n]|\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/|<<0>>\", [$]),\n B = e(a(\"[^\\\"'/()]|<<0>>|\\\\(<>*\\\\)\", [_]), 2),\n E = \"\\\\b(?:assembly|event|field|method|module|param|property|return|type)\\\\b\",\n R = a(\"<<0>>(?:\\\\s*\\\\(<<1>>*\\\\))?\", [m, B]);\n\n s.languages.insertBefore(\"csharp\", \"class-name\", {\n attribute: {\n pattern: t(\"((?:^|[^\\\\s\\\\w>)?])\\\\s*\\\\[\\\\s*)(?:<<0>>\\\\s*:\\\\s*)?<<1>>(?:\\\\s*,\\\\s*<<1>>)*(?=\\\\s*\\\\])\", [E, R]),\n lookbehind: !0,\n greedy: !0,\n inside: {\n target: {\n pattern: t(\"^<<0>>(?=\\\\s*:)\", [E]),\n alias: \"keyword\"\n },\n \"attribute-arguments\": {\n pattern: t(\"\\\\(<<0>>*\\\\)\", [B]),\n inside: s.languages.csharp\n },\n \"class-name\": {\n pattern: RegExp(m),\n inside: {\n punctuation: /\\./\n }\n },\n punctuation: /[:,]/\n }\n }\n });\n var S = \":[^}\\r\\n]+\",\n P = e(a(\"[^\\\"'/()]|<<0>>|\\\\(<>*\\\\)\", [_]), 2),\n z = a(\"\\\\{(?!\\\\{)(?:(?![}:])<<0>>)*<<1>>?\\\\}\", [P, S]),\n j = e(a(\"[^\\\"'/()]|\\\\/(?!\\\\*)|\\\\/\\\\*.*?\\\\*\\\\/|<<0>>|\\\\(<>*\\\\)\", [$]), 2),\n A = a(\"\\\\{(?!\\\\{)(?:(?![}:])<<0>>)*<<1>>?\\\\}\", [j, S]);\n\n function F(e, n) {\n return {\n interpolation: {\n pattern: t(\"([^{](?:\\\\{\\\\{)*)<<0>>\", [e]),\n lookbehind: !0,\n inside: {\n \"format-string\": {\n pattern: t(\"(^\\\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\\\}$)\", [n, S]),\n lookbehind: !0,\n inside: {\n punctuation: /^:/\n }\n },\n punctuation: /^\\{|\\}$/,\n expression: {\n pattern: /[\\s\\S]+/,\n alias: \"language-csharp\",\n inside: s.languages.csharp\n }\n }\n },\n string: /[\\s\\S]+/\n };\n }\n\n s.languages.insertBefore(\"csharp\", \"string\", {\n \"interpolation-string\": [{\n pattern: t('(^|[^\\\\\\\\])(?:\\\\$@|@\\\\$)\"(?:\"\"|\\\\\\\\[\\\\s\\\\S]|\\\\{\\\\{|<<0>>|[^\\\\\\\\{\"])*\"', [z]),\n lookbehind: !0,\n greedy: !0,\n inside: F(z, P)\n }, {\n pattern: t('(^|[^@\\\\\\\\])\\\\$\"(?:\\\\\\\\.|\\\\{\\\\{|<<0>>|[^\\\\\\\\\"{])*\"', [A]),\n lookbehind: !0,\n greedy: !0,\n inside: F(A, j)\n }]\n });\n}(Prism), Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;\nPrism.languages.git = {\n comment: /^#.*/m,\n deleted: /^[-–].*/m,\n inserted: /^\\+.*/m,\n string: /(\"|')(?:\\\\.|(?!\\1)[^\\\\\\r\\n])*\\1/m,\n command: {\n pattern: /^.*\\$ git .*$/m,\n inside: {\n parameter: /\\s--?\\w+/m\n }\n },\n coord: /^@@.*@@$/m,\n commit_sha1: /^commit \\w{40}$/m\n};\nPrism.languages.groovy = Prism.languages.extend(\"clike\", {\n string: [{\n pattern: /(\"\"\"|''')(?:[^\\\\]|\\\\[\\s\\S])*?\\1|\\$\\/(?:\\$\\/\\$|[\\s\\S])*?\\/\\$/,\n greedy: !0\n }, {\n pattern: /([\"'/])(?:\\\\.|(?!\\1)[^\\\\\\r\\n])*\\1/,\n greedy: !0\n }],\n keyword: /\\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\\b/,\n number: /\\b(?:0b[01_]+|0x[\\da-f_]+(?:\\.[\\da-f_p\\-]+)?|[\\d_]+(?:\\.[\\d_]+)?(?:e[+-]?[\\d]+)?)[glidf]?\\b/i,\n operator: {\n pattern: /(^|[^.])(?:~|==?~?|\\?[.:]?|\\*(?:[.=]|\\*=?)?|\\.[@&]|\\.\\.<|\\.\\.(?!\\.)|-[-=>]?|\\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\\|[|=]?|\\/=?|\\^=?|%=?)/,\n lookbehind: !0\n },\n punctuation: /\\.+|[{}[\\];(),.:$]/\n}), Prism.languages.insertBefore(\"groovy\", \"string\", {\n shebang: {\n pattern: /#!.+/,\n alias: \"comment\"\n }\n}), Prism.languages.insertBefore(\"groovy\", \"punctuation\", {\n \"spock-block\": /\\b(?:setup|given|when|then|and|cleanup|expect|where):/\n}), Prism.languages.insertBefore(\"groovy\", \"function\", {\n annotation: {\n pattern: /(^|[^.])@\\w+/,\n lookbehind: !0,\n alias: \"punctuation\"\n }\n}), Prism.hooks.add(\"wrap\", function (e) {\n if (\"groovy\" === e.language && \"string\" === e.type) {\n var t = e.content[0];\n\n if (\"'\" != t) {\n var n = /([^\\\\])(?:\\$(?:\\{.*?\\}|[\\w.]+))/;\n \"$\" === t && (n = /([^\\$])(?:\\$(?:\\{.*?\\}|[\\w.]+))/), e.content = e.content.replace(/</g, \"<\").replace(/&/g, \"&\"), e.content = Prism.highlight(e.content, {\n expression: {\n pattern: n,\n lookbehind: !0,\n inside: Prism.languages.groovy\n }\n }), e.classes.push(\"/\" === t ? \"regex\" : \"gstring\");\n }\n }\n});\n!function (e) {\n var t = /\\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|null|open|opens|package|private|protected|provides|public|record|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\\b/,\n a = /\\b[A-Z](?:\\w*[a-z]\\w*)?\\b/;\n e.languages.java = e.languages.extend(\"clike\", {\n \"class-name\": [a, /\\b[A-Z]\\w*(?=\\s+\\w+\\s*[;,=())])/],\n keyword: t,\n \"function\": [e.languages.clike[\"function\"], {\n pattern: /(\\:\\:)[a-z_]\\w*/,\n lookbehind: !0\n }],\n number: /\\b0b[01][01_]*L?\\b|\\b0x[\\da-f_]*\\.?[\\da-f_p+-]+\\b|(?:\\b\\d[\\d_]*\\.?[\\d_]*|\\B\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[dfl]?/i,\n operator: {\n pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\\+\\+|&&|\\|\\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,\n lookbehind: !0\n }\n }), e.languages.insertBefore(\"java\", \"string\", {\n \"triple-quoted-string\": {\n pattern: /\"\"\"[ \\t]*[\\r\\n](?:(?:\"|\"\")?(?:\\\\.|[^\"\\\\]))*\"\"\"/,\n greedy: !0,\n alias: \"string\"\n }\n }), e.languages.insertBefore(\"java\", \"class-name\", {\n annotation: {\n alias: \"punctuation\",\n pattern: /(^|[^.])@\\w+/,\n lookbehind: !0\n },\n namespace: {\n pattern: /(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)[a-z]\\w*(?:\\.[a-z]\\w*)+/,\n lookbehind: !0,\n inside: {\n punctuation: /\\./\n }\n },\n generics: {\n pattern: /<(?:[\\w\\s,.&?]|<(?:[\\w\\s,.&?]|<(?:[\\w\\s,.&?]|<[\\w\\s,.&?]*>)*>)*>)*>/,\n inside: {\n \"class-name\": a,\n keyword: t,\n punctuation: /[<>(),.:]/,\n operator: /[?&|]/\n }\n }\n });\n}(Prism);\nPrism.languages.json = {\n property: {\n pattern: /\"(?:\\\\.|[^\\\\\"\\r\\n])*\"(?=\\s*:)/,\n greedy: !0\n },\n string: {\n pattern: /\"(?:\\\\.|[^\\\\\"\\r\\n])*\"(?!\\s*:)/,\n greedy: !0\n },\n comment: /\\/\\/.*|\\/\\*[\\s\\S]*?(?:\\*\\/|$)/,\n number: /-?\\d+\\.?\\d*(?:e[+-]?\\d+)?/i,\n punctuation: /[{}[\\],]/,\n operator: /:/,\n \"boolean\": /\\b(?:true|false)\\b/,\n \"null\": {\n pattern: /\\bnull\\b/,\n alias: \"keyword\"\n }\n};\n!function (e) {\n e.languages.kotlin = e.languages.extend(\"clike\", {\n keyword: {\n pattern: /(^|[^.])\\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\\b/,\n lookbehind: !0\n },\n \"function\": [/\\w+(?=\\s*\\()/, {\n pattern: /(\\.)\\w+(?=\\s*\\{)/,\n lookbehind: !0\n }],\n number: /\\b(?:0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\\d+(?:_\\d+)*(?:\\.\\d+(?:_\\d+)*)?(?:[eE][+-]?\\d+(?:_\\d+)*)?[fFL]?)\\b/,\n operator: /\\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\\/*%<>]=?|[?:]:?|\\.\\.|&&|\\|\\||\\b(?:and|inv|or|shl|shr|ushr|xor)\\b/\n }), delete e.languages.kotlin[\"class-name\"], e.languages.insertBefore(\"kotlin\", \"string\", {\n \"raw-string\": {\n pattern: /(\"\"\"|''')[\\s\\S]*?\\1/,\n alias: \"string\"\n }\n }), e.languages.insertBefore(\"kotlin\", \"keyword\", {\n annotation: {\n pattern: /\\B@(?:\\w+:)?(?:[A-Z]\\w*|\\[[^\\]]+\\])/,\n alias: \"builtin\"\n }\n }), e.languages.insertBefore(\"kotlin\", \"function\", {\n label: {\n pattern: /\\w+@|@\\w+/,\n alias: \"symbol\"\n }\n });\n var n = [{\n pattern: /\\$\\{[^}]+\\}/,\n inside: {\n delimiter: {\n pattern: /^\\$\\{|\\}$/,\n alias: \"variable\"\n },\n rest: e.languages.kotlin\n }\n }, {\n pattern: /\\$\\w+/,\n alias: \"variable\"\n }];\n e.languages.kotlin.string.inside = e.languages.kotlin[\"raw-string\"].inside = {\n interpolation: n\n };\n}(Prism);\n!function (h) {\n function v(e, n) {\n return \"___\" + e.toUpperCase() + n + \"___\";\n }\n\n Object.defineProperties(h.languages[\"markup-templating\"] = {}, {\n buildPlaceholders: {\n value: function value(a, r, e, o) {\n if (a.language === r) {\n var c = a.tokenStack = [];\n a.code = a.code.replace(e, function (e) {\n if (\"function\" == typeof o && !o(e)) return e;\n\n for (var n, t = c.length; -1 !== a.code.indexOf(n = v(r, t));) {\n ++t;\n }\n\n return c[t] = e, n;\n }), a.grammar = h.languages.markup;\n }\n }\n },\n tokenizePlaceholders: {\n value: function value(p, k) {\n if (p.language === k && p.tokenStack) {\n p.grammar = h.languages[k];\n var m = 0,\n d = Object.keys(p.tokenStack);\n !function e(n) {\n for (var t = 0; t < n.length && !(m >= d.length); t++) {\n var a = n[t];\n\n if (\"string\" == typeof a || a.content && \"string\" == typeof a.content) {\n var r = d[m],\n o = p.tokenStack[r],\n c = \"string\" == typeof a ? a : a.content,\n i = v(k, r),\n u = c.indexOf(i);\n\n if (-1 < u) {\n ++m;\n var g = c.substring(0, u),\n l = new h.Token(k, h.tokenize(o, p.grammar), \"language-\" + k, o),\n s = c.substring(u + i.length),\n f = [];\n g && f.push.apply(f, e([g])), f.push(l), s && f.push.apply(f, e([s])), \"string\" == typeof a ? n.splice.apply(n, [t, 1].concat(f)) : a.content = f;\n }\n } else a.content && e(a.content);\n }\n\n return n;\n }(p.tokens);\n }\n }\n }\n });\n}(Prism);\nPrism.languages.objectivec = Prism.languages.extend(\"c\", {\n keyword: /\\b(?:asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\\b/,\n string: /(\"|')(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1|@\"(?:\\\\(?:\\r\\n|[\\s\\S])|[^\"\\\\\\r\\n])*\"/,\n operator: /-[->]?|\\+\\+?|!=?|<=?|>>?=?|==?|&&?|\\|\\|?|[~^%?*\\/@]/\n}), delete Prism.languages.objectivec[\"class-name\"];\n!function (n) {\n n.languages.php = n.languages.extend(\"clike\", {\n keyword: /\\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|final|finally|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|new|or|parent|print|private|protected|public|require|require_once|return|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\\b/i,\n \"boolean\": {\n pattern: /\\b(?:false|true)\\b/i,\n alias: \"constant\"\n },\n constant: [/\\b[A-Z_][A-Z0-9_]*\\b/, /\\b(?:null)\\b/i],\n comment: {\n pattern: /(^|[^\\\\])(?:\\/\\*[\\s\\S]*?\\*\\/|\\/\\/.*)/,\n lookbehind: !0\n }\n }), n.languages.insertBefore(\"php\", \"string\", {\n \"shell-comment\": {\n pattern: /(^|[^\\\\])#.*/,\n lookbehind: !0,\n alias: \"comment\"\n }\n }), n.languages.insertBefore(\"php\", \"comment\", {\n delimiter: {\n pattern: /\\?>$|^<\\?(?:php(?=\\s)|=)?/i,\n alias: \"important\"\n }\n }), n.languages.insertBefore(\"php\", \"keyword\", {\n variable: /\\$+(?:\\w+\\b|(?={))/i,\n \"package\": {\n pattern: /(\\\\|namespace\\s+|use\\s+)[\\w\\\\]+/,\n lookbehind: !0,\n inside: {\n punctuation: /\\\\/\n }\n }\n }), n.languages.insertBefore(\"php\", \"operator\", {\n property: {\n pattern: /(->)[\\w]+/,\n lookbehind: !0\n }\n });\n var e = {\n pattern: /{\\$(?:{(?:{[^{}]+}|[^{}]+)}|[^{}])+}|(^|[^\\\\{])\\$+(?:\\w+(?:\\[.+?]|->\\w+)*)/,\n lookbehind: !0,\n inside: n.languages.php\n };\n n.languages.insertBefore(\"php\", \"string\", {\n \"nowdoc-string\": {\n pattern: /<<<'([^']+)'(?:\\r\\n?|\\n)(?:.*(?:\\r\\n?|\\n))*?\\1;/,\n greedy: !0,\n alias: \"string\",\n inside: {\n delimiter: {\n pattern: /^<<<'[^']+'|[a-z_]\\w*;$/i,\n alias: \"symbol\",\n inside: {\n punctuation: /^<<<'?|[';]$/\n }\n }\n }\n },\n \"heredoc-string\": {\n pattern: /<<<(?:\"([^\"]+)\"(?:\\r\\n?|\\n)(?:.*(?:\\r\\n?|\\n))*?\\1;|([a-z_]\\w*)(?:\\r\\n?|\\n)(?:.*(?:\\r\\n?|\\n))*?\\2;)/i,\n greedy: !0,\n alias: \"string\",\n inside: {\n delimiter: {\n pattern: /^<<<(?:\"[^\"]+\"|[a-z_]\\w*)|[a-z_]\\w*;$/i,\n alias: \"symbol\",\n inside: {\n punctuation: /^<<<\"?|[\";]$/\n }\n },\n interpolation: e\n }\n },\n \"single-quoted-string\": {\n pattern: /'(?:\\\\[\\s\\S]|[^\\\\'])*'/,\n greedy: !0,\n alias: \"string\"\n },\n \"double-quoted-string\": {\n pattern: /\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"/,\n greedy: !0,\n alias: \"string\",\n inside: {\n interpolation: e\n }\n }\n }), delete n.languages.php.string, n.hooks.add(\"before-tokenize\", function (e) {\n if (/<\\?/.test(e.code)) {\n n.languages[\"markup-templating\"].buildPlaceholders(e, \"php\", /<\\?(?:[^\"'/#]|\\/(?![*/])|(\"|')(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|(?:\\/\\/|#)(?:[^?\\n\\r]|\\?(?!>))*(?=$|\\?>|[\\r\\n])|\\/\\*[\\s\\S]*?(?:\\*\\/|$))*?(?:\\?>|$)/gi);\n }\n }), n.hooks.add(\"after-tokenize\", function (e) {\n n.languages[\"markup-templating\"].tokenizePlaceholders(e, \"php\");\n });\n}(Prism);\nPrism.languages.python = {\n comment: {\n pattern: /(^|[^\\\\])#.*/,\n lookbehind: !0\n },\n \"string-interpolation\": {\n pattern: /(?:f|rf|fr)(?:(\"\"\"|''')[\\s\\S]+?\\1|(\"|')(?:\\\\.|(?!\\2)[^\\\\\\r\\n])*\\2)/i,\n greedy: !0,\n inside: {\n interpolation: {\n pattern: /((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,\n lookbehind: !0,\n inside: {\n \"format-spec\": {\n pattern: /(:)[^:(){}]+(?=}$)/,\n lookbehind: !0\n },\n \"conversion-option\": {\n pattern: /![sra](?=[:}]$)/,\n alias: \"punctuation\"\n },\n rest: null\n }\n },\n string: /[\\s\\S]+/\n }\n },\n \"triple-quoted-string\": {\n pattern: /(?:[rub]|rb|br)?(\"\"\"|''')[\\s\\S]+?\\1/i,\n greedy: !0,\n alias: \"string\"\n },\n string: {\n pattern: /(?:[rub]|rb|br)?(\"|')(?:\\\\.|(?!\\1)[^\\\\\\r\\n])*\\1/i,\n greedy: !0\n },\n \"function\": {\n pattern: /((?:^|\\s)def[ \\t]+)[a-zA-Z_]\\w*(?=\\s*\\()/g,\n lookbehind: !0\n },\n \"class-name\": {\n pattern: /(\\bclass\\s+)\\w+/i,\n lookbehind: !0\n },\n decorator: {\n pattern: /(^\\s*)@\\w+(?:\\.\\w+)*/im,\n lookbehind: !0,\n alias: [\"annotation\", \"punctuation\"],\n inside: {\n punctuation: /\\./\n }\n },\n keyword: /\\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\\b/,\n builtin: /\\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\\b/,\n \"boolean\": /\\b(?:True|False|None)\\b/,\n number: /(?:\\b(?=\\d)|\\B(?=\\.))(?:0[bo])?(?:(?:\\d|0x[\\da-f])[\\da-f]*\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?j?\\b/i,\n operator: /[-+%=]=?|!=|\\*\\*?=?|\\/\\/?=?|<[<=>]?|>[=>]?|[&|^~]/,\n punctuation: /[{}[\\];(),.:]/\n}, Prism.languages.python[\"string-interpolation\"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python;\n!function (e) {\n e.languages.ruby = e.languages.extend(\"clike\", {\n comment: [/#.*/, {\n pattern: /^=begin\\s[\\s\\S]*?^=end/m,\n greedy: !0\n }],\n \"class-name\": {\n pattern: /(\\b(?:class)\\s+|\\bcatch\\s+\\()[\\w.\\\\]+/i,\n lookbehind: !0,\n inside: {\n punctuation: /[.\\\\]/\n }\n },\n keyword: /\\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\\b/\n });\n var n = {\n pattern: /#\\{[^}]+\\}/,\n inside: {\n delimiter: {\n pattern: /^#\\{|\\}$/,\n alias: \"tag\"\n },\n rest: e.languages.ruby\n }\n };\n delete e.languages.ruby[\"function\"], e.languages.insertBefore(\"ruby\", \"keyword\", {\n regex: [{\n pattern: /%r([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1[gim]{0,3}/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /%r\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)[gim]{0,3}/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /%r\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}[gim]{0,3}/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /%r\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\][gim]{0,3}/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /%r<(?:[^<>\\\\]|\\\\[\\s\\S])*>[gim]{0,3}/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /(^|[^/])\\/(?!\\/)(?:\\[[^\\r\\n\\]]+\\]|\\\\.|[^[/\\\\\\r\\n])+\\/[gim]{0,3}(?=\\s*(?:$|[\\r\\n,.;})]))/,\n lookbehind: !0,\n greedy: !0\n }],\n variable: /[@$]+[a-zA-Z_]\\w*(?:[?!]|\\b)/,\n symbol: {\n pattern: /(^|[^:]):[a-zA-Z_]\\w*(?:[?!]|\\b)/,\n lookbehind: !0\n },\n \"method-definition\": {\n pattern: /(\\bdef\\s+)[\\w.]+/,\n lookbehind: !0,\n inside: {\n \"function\": /\\w+$/,\n rest: e.languages.ruby\n }\n }\n }), e.languages.insertBefore(\"ruby\", \"number\", {\n builtin: /\\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\\b/,\n constant: /\\b[A-Z]\\w*(?:[?!]|\\b)/\n }), e.languages.ruby.string = [{\n pattern: /%[qQiIwWxs]?([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /%[qQiIwWxs]?\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /%[qQiIwWxs]?\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /%[qQiIwWxs]?\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /%[qQiIwWxs]?<(?:[^<>\\\\]|\\\\[\\s\\S])*>/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }, {\n pattern: /(\"|')(?:#\\{[^}]+\\}|\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n greedy: !0,\n inside: {\n interpolation: n\n }\n }], e.languages.rb = e.languages.ruby;\n}(Prism);\nPrism.languages.swift = Prism.languages.extend(\"clike\", {\n string: {\n pattern: /(\"|')(?:\\\\(?:\\((?:[^()]|\\([^)]+\\))+\\)|\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n greedy: !0,\n inside: {\n interpolation: {\n pattern: /\\\\\\((?:[^()]|\\([^)]+\\))+\\)/,\n inside: {\n delimiter: {\n pattern: /^\\\\\\(|\\)$/,\n alias: \"variable\"\n }\n }\n }\n }\n },\n keyword: /\\b(?:as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\\b/,\n number: /\\b(?:[\\d_]+(?:\\.[\\de_]+)?|0x[a-f0-9_]+(?:\\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b/i,\n constant: /\\b(?:nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\\b/,\n atrule: /@\\b(?:IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\\b/,\n builtin: /\\b(?:[A-Z]\\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\\b/\n}), Prism.languages.swift.string.inside.interpolation.inside.rest = Prism.languages.swift;\n!function () {\n if (\"undefined\" != typeof self && self.Prism && self.document && document.querySelector) {\n var t,\n n = function n() {\n if (void 0 === t) {\n var e = document.createElement(\"div\");\n e.style.fontSize = \"13px\", e.style.lineHeight = \"1.5\", e.style.padding = 0, e.style.border = 0, e.innerHTML = \"
\", document.body.appendChild(e), t = 38 === e.offsetHeight, document.body.removeChild(e);\n }\n\n return t;\n },\n a = 0;\n\n Prism.hooks.add(\"before-sanity-check\", function (e) {\n var t = e.element.parentNode,\n n = t && t.getAttribute(\"data-line\");\n\n if (t && n && /pre/i.test(t.nodeName)) {\n var i = 0;\n r(\".line-highlight\", t).forEach(function (e) {\n i += e.textContent.length, e.parentNode.removeChild(e);\n }), i && /^( \\n)+$/.test(e.code.slice(-i)) && (e.code = e.code.slice(0, -i));\n }\n }), Prism.hooks.add(\"complete\", function e(t) {\n var n = t.element.parentNode,\n i = n && n.getAttribute(\"data-line\");\n\n if (n && i && /pre/i.test(n.nodeName)) {\n clearTimeout(a);\n var r = Prism.plugins.lineNumbers,\n o = t.plugins && t.plugins.lineNumbers;\n if (l(n, \"line-numbers\") && r && !o) Prism.hooks.add(\"line-numbers\", e);else s(n, i)(), a = setTimeout(u, 1);\n }\n }), window.addEventListener(\"hashchange\", u), window.addEventListener(\"resize\", function () {\n var t = [];\n r(\"pre[data-line]\").forEach(function (e) {\n t.push(s(e));\n }), t.forEach(i);\n });\n }\n\n function r(e, t) {\n return Array.prototype.slice.call((t || document).querySelectorAll(e));\n }\n\n function l(e, t) {\n return t = \" \" + t + \" \", -1 < (\" \" + e.className + \" \").replace(/[\\n\\t]/g, \" \").indexOf(t);\n }\n\n function i(e) {\n e();\n }\n\n function s(u, e, d) {\n var t = (e = \"string\" == typeof e ? e : u.getAttribute(\"data-line\")).replace(/\\s+/g, \"\").split(\",\"),\n c = +u.getAttribute(\"data-line-offset\") || 0,\n f = (n() ? parseInt : parseFloat)(getComputedStyle(u).lineHeight),\n h = l(u, \"line-numbers\"),\n p = h ? u : u.querySelector(\"code\") || u,\n m = [];\n return t.forEach(function (e) {\n var t = e.split(\"-\"),\n n = +t[0],\n i = +t[1] || n,\n r = u.querySelector('.line-highlight[data-range=\"' + e + '\"]') || document.createElement(\"div\");\n\n if (m.push(function () {\n r.setAttribute(\"aria-hidden\", \"true\"), r.setAttribute(\"data-range\", e), r.className = (d || \"\") + \" line-highlight\";\n }), h && Prism.plugins.lineNumbers) {\n var o = Prism.plugins.lineNumbers.getLine(u, n),\n a = Prism.plugins.lineNumbers.getLine(u, i);\n\n if (o) {\n var l = o.offsetTop + \"px\";\n m.push(function () {\n r.style.top = l;\n });\n }\n\n if (a) {\n var s = a.offsetTop - o.offsetTop + a.offsetHeight + \"px\";\n m.push(function () {\n r.style.height = s;\n });\n }\n } else m.push(function () {\n r.setAttribute(\"data-start\", n), n < i && r.setAttribute(\"data-end\", i), r.style.top = (n - c - 1) * f + \"px\", r.textContent = new Array(i - n + 2).join(\" \\n\");\n });\n\n m.push(function () {\n p.appendChild(r);\n });\n }), function () {\n m.forEach(i);\n };\n }\n\n function u() {\n var e = location.hash.slice(1);\n r(\".temporary.line-highlight\").forEach(function (e) {\n e.parentNode.removeChild(e);\n });\n var t = (e.match(/\\.([\\d,-]+)$/) || [, \"\"])[1];\n\n if (t && !document.getElementById(e)) {\n var n = e.slice(0, e.lastIndexOf(\".\")),\n i = document.getElementById(n);\n if (i) i.hasAttribute(\"data-line\") || i.setAttribute(\"data-line\", \"\"), s(i, t, \"temporary \")(), document.querySelector(\".temporary.line-highlight\").scrollIntoView();\n }\n }\n}();\n!function () {\n if (\"undefined\" != typeof self && self.Prism && self.document) {\n var l = \"line-numbers\",\n c = /\\n(?!$)/g,\n m = function m(e) {\n var t = a(e)[\"white-space\"];\n\n if (\"pre-wrap\" === t || \"pre-line\" === t) {\n var n = e.querySelector(\"code\"),\n r = e.querySelector(\".line-numbers-rows\"),\n s = e.querySelector(\".line-numbers-sizer\"),\n i = n.textContent.split(c);\n s || ((s = document.createElement(\"span\")).className = \"line-numbers-sizer\", n.appendChild(s)), s.style.display = \"block\", i.forEach(function (e, t) {\n s.textContent = e || \"\\n\";\n var n = s.getBoundingClientRect().height;\n r.children[t].style.height = n + \"px\";\n }), s.textContent = \"\", s.style.display = \"none\";\n }\n },\n a = function a(e) {\n return e ? window.getComputedStyle ? getComputedStyle(e) : e.currentStyle || null : null;\n };\n\n window.addEventListener(\"resize\", function () {\n Array.prototype.forEach.call(document.querySelectorAll(\"pre.\" + l), m);\n }), Prism.hooks.add(\"complete\", function (e) {\n if (e.code) {\n var t = e.element,\n n = t.parentNode;\n\n if (n && /pre/i.test(n.nodeName) && !t.querySelector(\".line-numbers-rows\")) {\n for (var r = !1, s = /(?:^|\\s)line-numbers(?:\\s|$)/, i = t; i; i = i.parentNode) {\n if (s.test(i.className)) {\n r = !0;\n break;\n }\n }\n\n if (r) {\n t.className = t.className.replace(s, \" \"), s.test(n.className) || (n.className += \" line-numbers\");\n var l,\n a = e.code.match(c),\n o = a ? a.length + 1 : 1,\n u = new Array(o + 1).join(\"\");\n (l = document.createElement(\"span\")).setAttribute(\"aria-hidden\", \"true\"), l.className = \"line-numbers-rows\", l.innerHTML = u, n.hasAttribute(\"data-start\") && (n.style.counterReset = \"linenumber \" + (parseInt(n.getAttribute(\"data-start\"), 10) - 1)), e.element.appendChild(l), m(n), Prism.hooks.run(\"line-numbers\", e);\n }\n }\n }\n }), Prism.hooks.add(\"line-numbers\", function (e) {\n e.plugins = e.plugins || {}, e.plugins.lineNumbers = !0;\n }), Prism.plugins.lineNumbers = {\n getLine: function getLine(e, t) {\n if (\"PRE\" === e.tagName && e.classList.contains(l)) {\n var n = e.querySelector(\".line-numbers-rows\"),\n r = parseInt(e.getAttribute(\"data-start\"), 10) || 1,\n s = r + (n.children.length - 1);\n t < r && (t = r), s < t && (t = s);\n var i = t - r;\n return n.children[i];\n }\n },\n resize: function resize(e) {\n m(e);\n }\n };\n }\n}();\n\"undefined\" != typeof self && self.Prism && self.document && document.createRange && (Prism.plugins.KeepMarkup = !0, Prism.hooks.add(\"before-highlight\", function (e) {\n if (e.element.children.length) {\n var a = 0,\n s = [],\n l = function l(e, n) {\n var o = {};\n n || (o.clone = e.cloneNode(!1), o.posOpen = a, s.push(o));\n\n for (var t = 0, d = e.childNodes.length; t < d; t++) {\n var r = e.childNodes[t];\n 1 === r.nodeType ? l(r) : 3 === r.nodeType && (a += r.data.length);\n }\n\n n || (o.posClose = a);\n };\n\n l(e.element, !0), s && s.length && (e.keepMarkup = s);\n }\n}), Prism.hooks.add(\"after-highlight\", function (n) {\n if (n.keepMarkup && n.keepMarkup.length) {\n var a = function a(e, n) {\n for (var o = 0, t = e.childNodes.length; o < t; o++) {\n var d = e.childNodes[o];\n\n if (1 === d.nodeType) {\n if (!a(d, n)) return !1;\n } else 3 === d.nodeType && (!n.nodeStart && n.pos + d.data.length > n.node.posOpen && (n.nodeStart = d, n.nodeStartPos = n.node.posOpen - n.pos), n.nodeStart && n.pos + d.data.length >= n.node.posClose && (n.nodeEnd = d, n.nodeEndPos = n.node.posClose - n.pos), n.pos += d.data.length);\n\n if (n.nodeStart && n.nodeEnd) {\n var r = document.createRange();\n return r.setStart(n.nodeStart, n.nodeStartPos), r.setEnd(n.nodeEnd, n.nodeEndPos), n.node.clone.appendChild(r.extractContents()), r.insertNode(n.node.clone), r.detach(), !1;\n }\n }\n\n return !0;\n };\n\n n.keepMarkup.forEach(function (e) {\n a(n.element, {\n node: e,\n pos: 0\n });\n }), n.highlightedCode = n.element.innerHTML;\n }\n}));\n!function () {\n if (\"undefined\" != typeof self && self.Prism && self.document) {\n var f = /(?:^|\\s)command-line(?:\\s|$)/;\n Prism.hooks.add(\"before-highlight\", function (e) {\n var t = e.vars = e.vars || {},\n a = t[\"command-line\"] = t[\"command-line\"] || {};\n\n if (!a.complete && e.code) {\n var n = e.element.parentNode;\n\n if (n && /pre/i.test(n.nodeName) && (f.test(n.className) || f.test(e.element.className))) {\n var r = e.element.querySelector(\".command-line-prompt\");\n r && r.remove();\n var s = e.code.split(\"\\n\");\n a.numberOfLines = s.length;\n var o = a.outputLines = [],\n i = n.getAttribute(\"data-output\"),\n l = n.getAttribute(\"data-filter-output\");\n\n if (i || \"\" === i) {\n i = i.split(\",\");\n\n for (var m = 0; m < i.length; m++) {\n var d = i[m].split(\"-\"),\n p = parseInt(d[0], 10),\n c = 2 === d.length ? parseInt(d[1], 10) : p;\n\n if (!isNaN(p) && !isNaN(c)) {\n p < 1 && (p = 1), c > s.length && (c = s.length), c--;\n\n for (var u = --p; u <= c; u++) {\n o[u] = s[u], s[u] = \"\";\n }\n }\n }\n } else if (l) for (m = 0; m < s.length; m++) {\n 0 === s[m].indexOf(l) && (o[m] = s[m].slice(l.length), s[m] = \"\");\n }\n\n e.code = s.join(\"\\n\");\n } else a.complete = !0;\n } else a.complete = !0;\n }), Prism.hooks.add(\"before-insert\", function (e) {\n var t = e.vars = e.vars || {},\n a = t[\"command-line\"] = t[\"command-line\"] || {};\n\n if (!a.complete) {\n for (var n = e.highlightedCode.split(\"\\n\"), r = 0, s = (a.outputLines || []).length; r < s; r++) {\n a.outputLines.hasOwnProperty(r) && (n[r] = a.outputLines[r]);\n }\n\n e.highlightedCode = n.join(\"\\n\");\n }\n }), Prism.hooks.add(\"complete\", function (e) {\n var t = e.vars = e.vars || {},\n a = t[\"command-line\"] = t[\"command-line\"] || {};\n\n if (!a.complete) {\n var n = e.element.parentNode;\n f.test(e.element.className) && (e.element.className = e.element.className.replace(f, \" \")), f.test(n.className) || (n.className += \" command-line\");\n\n var r = function r(e, t) {\n return (n.getAttribute(e) || t).replace(/\"/g, \""\");\n },\n s = new Array((a.numberOfLines || 0) + 1),\n o = r(\"data-prompt\", \"\");\n\n if (\"\" !== o) s = s.join('');else {\n var i = r(\"data-user\", \"user\"),\n l = r(\"data-host\", \"localhost\");\n s = s.join('');\n }\n var m = document.createElement(\"span\");\n m.className = \"command-line-prompt\", m.innerHTML = s;\n\n for (var d = 0, p = (a.outputLines || []).length; d < p; d++) {\n if (a.outputLines.hasOwnProperty(d)) {\n var c = m.children[d];\n c.removeAttribute(\"data-user\"), c.removeAttribute(\"data-host\"), c.removeAttribute(\"data-prompt\");\n }\n }\n\n e.element.insertBefore(m, e.element.firstChild), a.complete = !0;\n }\n });\n }\n}();\n!function () {\n if (\"undefined\" != typeof self && self.Prism && self.document) {\n var i = [],\n l = {},\n c = function c() {};\n\n Prism.plugins.toolbar = {};\n\n var e = Prism.plugins.toolbar.registerButton = function (e, n) {\n var t;\n t = \"function\" == typeof n ? n : function (e) {\n var t;\n return \"function\" == typeof n.onClick ? ((t = document.createElement(\"button\")).type = \"button\", t.addEventListener(\"click\", function () {\n n.onClick.call(this, e);\n })) : \"string\" == typeof n.url ? (t = document.createElement(\"a\")).href = n.url : t = document.createElement(\"span\"), n.className && t.classList.add(n.className), t.textContent = n.text, t;\n }, e in l ? console.warn('There is a button with the key \"' + e + '\" registered already.') : i.push(l[e] = t);\n },\n t = Prism.plugins.toolbar.hook = function (a) {\n var e = a.element.parentNode;\n\n if (e && /pre/i.test(e.nodeName) && !e.parentNode.classList.contains(\"code-toolbar\")) {\n var t = document.createElement(\"div\");\n t.classList.add(\"code-toolbar\"), e.parentNode.insertBefore(t, e), t.appendChild(e);\n var r = document.createElement(\"div\");\n r.classList.add(\"toolbar\");\n\n var n = i,\n o = function (e) {\n for (; e;) {\n var t = e.getAttribute(\"data-toolbar-order\");\n if (null != t) return (t = t.trim()).length ? t.split(/\\s*,\\s*/g) : [];\n e = e.parentElement;\n }\n }(a.element);\n\n o && (n = o.map(function (e) {\n return l[e] || c;\n })), n.forEach(function (e) {\n var t = e(a);\n\n if (t) {\n var n = document.createElement(\"div\");\n n.classList.add(\"toolbar-item\"), n.appendChild(t), r.appendChild(n);\n }\n }), t.appendChild(r);\n }\n };\n\n e(\"label\", function (e) {\n var t = e.element.parentNode;\n\n if (t && /pre/i.test(t.nodeName) && t.hasAttribute(\"data-label\")) {\n var n,\n a,\n r = t.getAttribute(\"data-label\");\n\n try {\n a = document.querySelector(\"template#\" + r);\n } catch (e) {}\n\n return a ? n = a.content : (t.hasAttribute(\"data-url\") ? (n = document.createElement(\"a\")).href = t.getAttribute(\"data-url\") : n = document.createElement(\"span\"), n.textContent = r), n;\n }\n }), Prism.hooks.add(\"complete\", t);\n }\n}();\n!function () {\n if (\"undefined\" != typeof self && self.Prism && self.document) if (Prism.plugins.toolbar) {\n var r = window.ClipboardJS || void 0;\n r || \"function\" != typeof require || (r = require(\"clipboard\"));\n var i = [];\n\n if (!r) {\n var o = document.createElement(\"script\"),\n e = document.querySelector(\"head\");\n o.onload = function () {\n if (r = window.ClipboardJS) for (; i.length;) {\n i.pop()();\n }\n }, o.src = \"https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js\", e.appendChild(o);\n }\n\n Prism.plugins.toolbar.registerButton(\"copy-to-clipboard\", function (e) {\n var t = document.createElement(\"button\");\n return t.textContent = \"Copy\", r ? o() : i.push(o), t;\n\n function o() {\n var o = new r(t, {\n text: function text() {\n return e.code;\n }\n });\n o.on(\"success\", function () {\n t.textContent = \"Copied!\", n();\n }), o.on(\"error\", function () {\n t.textContent = \"Press Ctrl+C to copy\", n();\n });\n }\n\n function n() {\n setTimeout(function () {\n t.textContent = \"Copy\";\n }, 5e3);\n }\n });\n } else console.warn(\"Copy to Clipboard plugin loaded before Toolbar plugin.\");\n}();","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*! algoliasearch.umd.js | 4.4.0 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */\n!function (e, t) {\n \"object\" == (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) && \"undefined\" != typeof module ? module.exports = t() : \"function\" == typeof define && define.amd ? define(t) : (e = e || self).algoliasearch = t();\n}(this, function () {\n \"use strict\";\n\n function e(e, t, r) {\n return t in e ? Object.defineProperty(e, t, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[t] = r, e;\n }\n\n function t(e, t) {\n var r = Object.keys(e);\n\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n t && (n = n.filter(function (t) {\n return Object.getOwnPropertyDescriptor(e, t).enumerable;\n })), r.push.apply(r, n);\n }\n\n return r;\n }\n\n function r(r) {\n for (var n = 1; n < arguments.length; n++) {\n var a = null != arguments[n] ? arguments[n] : {};\n n % 2 ? t(Object(a), !0).forEach(function (t) {\n e(r, t, a[t]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(a)) : t(Object(a)).forEach(function (e) {\n Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(a, e));\n });\n }\n\n return r;\n }\n\n function n(e, t) {\n if (null == e) return {};\n\n var r,\n n,\n a = function (e, t) {\n if (null == e) return {};\n var r,\n n,\n a = {},\n o = Object.keys(e);\n\n for (n = 0; n < o.length; n++) {\n r = o[n], t.indexOf(r) >= 0 || (a[r] = e[r]);\n }\n\n return a;\n }(e, t);\n\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n\n for (n = 0; n < o.length; n++) {\n r = o[n], t.indexOf(r) >= 0 || Object.prototype.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);\n }\n }\n\n return a;\n }\n\n function a(e, t) {\n return function (e) {\n if (Array.isArray(e)) return e;\n }(e) || function (e, t) {\n if (!(Symbol.iterator in Object(e) || \"[object Arguments]\" === Object.prototype.toString.call(e))) return;\n var r = [],\n n = !0,\n a = !1,\n o = void 0;\n\n try {\n for (var u, i = e[Symbol.iterator](); !(n = (u = i.next()).done) && (r.push(u.value), !t || r.length !== t); n = !0) {\n ;\n }\n } catch (e) {\n a = !0, o = e;\n } finally {\n try {\n n || null == i[\"return\"] || i[\"return\"]();\n } finally {\n if (a) throw o;\n }\n }\n\n return r;\n }(e, t) || function () {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }();\n }\n\n function o(e) {\n return function (e) {\n if (Array.isArray(e)) {\n for (var t = 0, r = new Array(e.length); t < e.length; t++) {\n r[t] = e[t];\n }\n\n return r;\n }\n }(e) || function (e) {\n if (Symbol.iterator in Object(e) || \"[object Arguments]\" === Object.prototype.toString.call(e)) return Array.from(e);\n }(e) || function () {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n }();\n }\n\n function u(e) {\n var t,\n r = \"algoliasearch-client-js-\".concat(e.key),\n n = function n() {\n return void 0 === t && (t = e.localStorage || window.localStorage), t;\n },\n o = function o() {\n return JSON.parse(n().getItem(r) || \"{}\");\n };\n\n return {\n get: function get(e, t) {\n var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {\n miss: function miss() {\n return Promise.resolve();\n }\n };\n return Promise.resolve().then(function () {\n var r = JSON.stringify(e),\n n = o()[r];\n return Promise.all([n || t(), void 0 !== n]);\n }).then(function (e) {\n var t = a(e, 2),\n n = t[0],\n o = t[1];\n return Promise.all([n, o || r.miss(n)]);\n }).then(function (e) {\n return a(e, 1)[0];\n });\n },\n set: function set(e, t) {\n return Promise.resolve().then(function () {\n var a = o();\n return a[JSON.stringify(e)] = t, n().setItem(r, JSON.stringify(a)), t;\n });\n },\n \"delete\": function _delete(e) {\n return Promise.resolve().then(function () {\n var t = o();\n delete t[JSON.stringify(e)], n().setItem(r, JSON.stringify(t));\n });\n },\n clear: function clear() {\n return Promise.resolve().then(function () {\n n().removeItem(r);\n });\n }\n };\n }\n\n function i(e) {\n var t = o(e.caches),\n r = t.shift();\n return void 0 === r ? {\n get: function get(e, t) {\n var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {\n miss: function miss() {\n return Promise.resolve();\n }\n },\n n = t();\n return n.then(function (e) {\n return Promise.all([e, r.miss(e)]);\n }).then(function (e) {\n return a(e, 1)[0];\n });\n },\n set: function set(e, t) {\n return Promise.resolve(t);\n },\n \"delete\": function _delete(e) {\n return Promise.resolve();\n },\n clear: function clear() {\n return Promise.resolve();\n }\n } : {\n get: function get(e, n) {\n var a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {\n miss: function miss() {\n return Promise.resolve();\n }\n };\n return r.get(e, n, a)[\"catch\"](function () {\n return i({\n caches: t\n }).get(e, n, a);\n });\n },\n set: function set(e, n) {\n return r.set(e, n)[\"catch\"](function () {\n return i({\n caches: t\n }).set(e, n);\n });\n },\n \"delete\": function _delete(e) {\n return r[\"delete\"](e)[\"catch\"](function () {\n return i({\n caches: t\n })[\"delete\"](e);\n });\n },\n clear: function clear() {\n return r.clear()[\"catch\"](function () {\n return i({\n caches: t\n }).clear();\n });\n }\n };\n }\n\n function s() {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {\n serializable: !0\n },\n t = {};\n return {\n get: function get(r, n) {\n var a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {\n miss: function miss() {\n return Promise.resolve();\n }\n },\n o = JSON.stringify(r);\n if (o in t) return Promise.resolve(e.serializable ? JSON.parse(t[o]) : t[o]);\n\n var u = n(),\n i = a && a.miss || function () {\n return Promise.resolve();\n };\n\n return u.then(function (e) {\n return i(e);\n }).then(function () {\n return u;\n });\n },\n set: function set(r, n) {\n return t[JSON.stringify(r)] = e.serializable ? JSON.stringify(n) : n, Promise.resolve(n);\n },\n \"delete\": function _delete(e) {\n return delete t[JSON.stringify(e)], Promise.resolve();\n },\n clear: function clear() {\n return t = {}, Promise.resolve();\n }\n };\n }\n\n function c(e, t, r) {\n var n = {\n \"x-algolia-api-key\": r,\n \"x-algolia-application-id\": t\n };\n return {\n headers: function headers() {\n return e === m.WithinHeaders ? n : {};\n },\n queryParameters: function queryParameters() {\n return e === m.WithinQueryParameters ? n : {};\n }\n };\n }\n\n function f(e) {\n var t = 0;\n return e(function r() {\n return t++, new Promise(function (n) {\n setTimeout(function () {\n n(e(r));\n }, Math.min(100 * t, 1e3));\n });\n });\n }\n\n function d(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : function (e, t) {\n return Promise.resolve();\n };\n return Object.assign(e, {\n wait: function wait(r) {\n return d(e.then(function (e) {\n return Promise.all([t(e, r), e]);\n }).then(function (e) {\n return e[1];\n }));\n }\n });\n }\n\n function l(e) {\n for (var t = e.length - 1; t > 0; t--) {\n var r = Math.floor(Math.random() * (t + 1)),\n n = e[t];\n e[t] = e[r], e[r] = n;\n }\n\n return e;\n }\n\n function p(e, t) {\n return Object.keys(void 0 !== t ? t : {}).forEach(function (r) {\n e[r] = t[r](e);\n }), e;\n }\n\n function h(e) {\n for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++) {\n r[n - 1] = arguments[n];\n }\n\n var a = 0;\n return e.replace(/%s/g, function () {\n return encodeURIComponent(r[a++]);\n });\n }\n\n var m = {\n WithinQueryParameters: 0,\n WithinHeaders: 1\n };\n\n function y(e, t) {\n var r = e || {},\n n = r.data || {};\n return Object.keys(r).forEach(function (e) {\n -1 === [\"timeout\", \"headers\", \"queryParameters\", \"data\", \"cacheable\"].indexOf(e) && (n[e] = r[e]);\n }), {\n data: Object.entries(n).length > 0 ? n : void 0,\n timeout: r.timeout || t,\n headers: r.headers || {},\n queryParameters: r.queryParameters || {},\n cacheable: r.cacheable\n };\n }\n\n var g = {\n Read: 1,\n Write: 2,\n Any: 3\n },\n v = 1,\n b = 2,\n P = 3;\n\n function O(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : v;\n return r({}, e, {\n status: t,\n lastUpdate: Date.now()\n });\n }\n\n function j(e) {\n return {\n protocol: e.protocol || \"https\",\n url: e.url,\n accept: e.accept || g.Any\n };\n }\n\n var w = \"DELETE\",\n I = \"GET\",\n x = \"POST\",\n q = \"PUT\";\n\n function D(e, t) {\n return Promise.all(t.map(function (t) {\n return e.get(t, function () {\n return Promise.resolve(O(t));\n });\n })).then(function (e) {\n var r = e.filter(function (e) {\n return function (e) {\n return e.status === v || Date.now() - e.lastUpdate > 12e4;\n }(e);\n }),\n n = e.filter(function (e) {\n return function (e) {\n return e.status === P && Date.now() - e.lastUpdate <= 12e4;\n }(e);\n }),\n a = [].concat(o(r), o(n));\n return {\n getTimeout: function getTimeout(e, t) {\n return (0 === n.length && 0 === e ? 1 : n.length + 3 + e) * t;\n },\n statelessHosts: a.length > 0 ? a.map(function (e) {\n return j(e);\n }) : t\n };\n });\n }\n\n function S(e, t, n, a) {\n var u = [],\n i = function (e, t) {\n if (e.method === I || void 0 === e.data && void 0 === t.data) return;\n var n = Array.isArray(e.data) ? e.data : r({}, e.data, {}, t.data);\n return JSON.stringify(n);\n }(n, a),\n s = function (e, t) {\n var n = r({}, e.headers, {}, t.headers),\n a = {};\n return Object.keys(n).forEach(function (e) {\n var t = n[e];\n a[e.toLowerCase()] = t;\n }), a;\n }(e, a),\n c = n.method,\n f = n.method !== I ? {} : r({}, n.data, {}, a.data),\n d = r({\n \"x-algolia-agent\": e.userAgent.value\n }, e.queryParameters, {}, f, {}, a.queryParameters),\n l = 0,\n p = function t(r, o) {\n var f = r.pop();\n if (void 0 === f) throw {\n name: \"RetryError\",\n message: \"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.\",\n transporterStackTrace: A(u)\n };\n\n var p = {\n data: i,\n headers: s,\n method: c,\n url: N(f, n.path, d),\n connectTimeout: o(l, e.timeouts.connect),\n responseTimeout: o(l, a.timeout)\n },\n h = function h(e) {\n var t = {\n request: p,\n response: e,\n host: f,\n triesLeft: r.length\n };\n return u.push(t), t;\n },\n m = {\n onSucess: function onSucess(e) {\n return function (e) {\n try {\n return JSON.parse(e.content);\n } catch (t) {\n throw function (e, t) {\n return {\n name: \"DeserializationError\",\n message: e,\n response: t\n };\n }(t.message, e);\n }\n }(e);\n },\n onRetry: function onRetry(n) {\n var a = h(n);\n return n.isTimedOut && l++, Promise.all([e.logger.info(\"Retryable failure\", E(a)), e.hostsCache.set(f, O(f, n.isTimedOut ? P : b))]).then(function () {\n return t(r, o);\n });\n },\n onFail: function onFail(e) {\n throw h(e), function (e, t) {\n var r = e.content,\n n = e.status,\n a = r;\n\n try {\n a = JSON.parse(r).message;\n } catch (e) {}\n\n return function (e, t, r) {\n return {\n name: \"ApiError\",\n message: e,\n status: t,\n transporterStackTrace: r\n };\n }(a, n, t);\n }(e, A(u));\n }\n };\n\n return e.requester.send(p).then(function (e) {\n return function (e, t) {\n return function (e) {\n var t = e.status;\n return e.isTimedOut || function (e) {\n var t = e.isTimedOut,\n r = e.status;\n return !t && 0 == ~~r;\n }(e) || 2 != ~~(t / 100) && 4 != ~~(t / 100);\n }(e) ? t.onRetry(e) : 2 == ~~(e.status / 100) ? t.onSucess(e) : t.onFail(e);\n }(e, m);\n });\n };\n\n return D(e.hostsCache, t).then(function (e) {\n return p(o(e.statelessHosts).reverse(), e.getTimeout);\n });\n }\n\n function k(e) {\n var t = e.hostsCache,\n r = e.logger,\n n = e.requester,\n o = e.requestsCache,\n u = e.responsesCache,\n i = e.timeouts,\n s = e.userAgent,\n c = e.hosts,\n f = e.queryParameters,\n d = {\n hostsCache: t,\n logger: r,\n requester: n,\n requestsCache: o,\n responsesCache: u,\n timeouts: i,\n userAgent: s,\n headers: e.headers,\n queryParameters: f,\n hosts: c.map(function (e) {\n return j(e);\n }),\n read: function read(e, t) {\n var r = y(t, d.timeouts.read),\n n = function n() {\n return S(d, d.hosts.filter(function (e) {\n return 0 != (e.accept & g.Read);\n }), e, r);\n };\n\n if (!0 !== (void 0 !== r.cacheable ? r.cacheable : e.cacheable)) return n();\n var o = {\n request: e,\n mappedRequestOptions: r,\n transporter: {\n queryParameters: d.queryParameters,\n headers: d.headers\n }\n };\n return d.responsesCache.get(o, function () {\n return d.requestsCache.get(o, function () {\n return d.requestsCache.set(o, n()).then(function (e) {\n return Promise.all([d.requestsCache[\"delete\"](o), e]);\n }, function (e) {\n return Promise.all([d.requestsCache[\"delete\"](o), Promise.reject(e)]);\n }).then(function (e) {\n var t = a(e, 2);\n t[0];\n return t[1];\n });\n });\n }, {\n miss: function miss(e) {\n return d.responsesCache.set(o, e);\n }\n });\n },\n write: function write(e, t) {\n return S(d, d.hosts.filter(function (e) {\n return 0 != (e.accept & g.Write);\n }), e, y(t, d.timeouts.write));\n }\n };\n return d;\n }\n\n function T(e) {\n var t = {\n value: \"Algolia for JavaScript (\".concat(e, \")\"),\n add: function add(e) {\n var r = \"; \".concat(e.segment).concat(void 0 !== e.version ? \" (\".concat(e.version, \")\") : \"\");\n return -1 === t.value.indexOf(r) && (t.value = \"\".concat(t.value).concat(r)), t;\n }\n };\n return t;\n }\n\n function N(e, t, r) {\n var n = R(r),\n a = \"\".concat(e.protocol, \"://\").concat(e.url, \"/\").concat(\"/\" === t.charAt(0) ? t.substr(1) : t);\n return n.length && (a += \"?\".concat(n)), a;\n }\n\n function R(e) {\n return Object.keys(e).map(function (t) {\n return h(\"%s=%s\", t, (r = e[t], \"[object Object]\" === Object.prototype.toString.call(r) || \"[object Array]\" === Object.prototype.toString.call(r) ? JSON.stringify(e[t]) : e[t]));\n var r;\n }).join(\"&\");\n }\n\n function A(e) {\n return e.map(function (e) {\n return E(e);\n });\n }\n\n function E(e) {\n var t = e.request.headers[\"x-algolia-api-key\"] ? {\n \"x-algolia-api-key\": \"*****\"\n } : {};\n return r({}, e, {\n request: r({}, e.request, {\n headers: r({}, e.request.headers, {}, t)\n })\n });\n }\n\n var C = function C(e) {\n return function (t, r) {\n return e.transporter.write({\n method: x,\n path: \"2/abtests\",\n data: t\n }, r);\n };\n },\n U = function U(e) {\n return function (t, r) {\n return e.transporter.write({\n method: w,\n path: h(\"2/abtests/%s\", t)\n }, r);\n };\n },\n J = function J(e) {\n return function (t, r) {\n return e.transporter.read({\n method: I,\n path: h(\"2/abtests/%s\", t)\n }, r);\n };\n },\n z = function z(e) {\n return function (t) {\n return e.transporter.read({\n method: I,\n path: \"2/abtests\"\n }, t);\n };\n },\n F = function F(e) {\n return function (t, r) {\n return e.transporter.write({\n method: x,\n path: h(\"2/abtests/%s/stop\", t)\n }, r);\n };\n },\n H = function H(e) {\n return function (t) {\n return e.transporter.read({\n method: I,\n path: \"1/strategies/personalization\"\n }, t);\n };\n },\n M = function M(e) {\n return function (t, r) {\n return e.transporter.write({\n method: x,\n path: \"1/strategies/personalization\",\n data: t\n }, r);\n };\n };\n\n function K(e) {\n return function t(r) {\n return e.request(r).then(function (n) {\n if (void 0 !== e.batch && e.batch(n.hits), !e.shouldStop(n)) return n.cursor ? t({\n cursor: n.cursor\n }) : t({\n page: (r.page || 0) + 1\n });\n });\n }({});\n }\n\n var W = function W(e) {\n return function (t, a) {\n var o = a || {},\n u = o.queryParameters,\n i = n(o, [\"queryParameters\"]),\n s = r({\n acl: t\n }, void 0 !== u ? {\n queryParameters: u\n } : {});\n return d(e.transporter.write({\n method: x,\n path: \"1/keys\",\n data: s\n }, i), function (t, r) {\n return f(function (n) {\n return Y(e)(t.key, r)[\"catch\"](function (e) {\n if (404 !== e.status) throw e;\n return n();\n });\n });\n });\n };\n },\n B = function B(e) {\n return function (t, r, n) {\n var a = y(n);\n return a.queryParameters[\"X-Algolia-User-ID\"] = t, e.transporter.write({\n method: x,\n path: \"1/clusters/mapping\",\n data: {\n cluster: r\n }\n }, a);\n };\n },\n Q = function Q(e) {\n return function (t, r, n) {\n return e.transporter.write({\n method: x,\n path: \"1/clusters/mapping/batch\",\n data: {\n users: t,\n cluster: r\n }\n }, n);\n };\n },\n G = function G(e) {\n return function (t, r, n) {\n return d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/operation\", t),\n data: {\n operation: \"copy\",\n destination: r\n }\n }, n), function (r, n) {\n return re(e)(t, {\n methods: {\n waitTask: et\n }\n }).waitTask(r.taskID, n);\n });\n };\n },\n V = function V(e) {\n return function (t, n, a) {\n return G(e)(t, n, r({}, a, {\n scope: [rt.Rules]\n }));\n };\n },\n L = function L(e) {\n return function (t, n, a) {\n return G(e)(t, n, r({}, a, {\n scope: [rt.Settings]\n }));\n };\n },\n _ = function _(e) {\n return function (t, n, a) {\n return G(e)(t, n, r({}, a, {\n scope: [rt.Synonyms]\n }));\n };\n },\n X = function X(e) {\n return function (t, r) {\n return d(e.transporter.write({\n method: w,\n path: h(\"1/keys/%s\", t)\n }, r), function (r, n) {\n return f(function (r) {\n return Y(e)(t, n).then(r)[\"catch\"](function (e) {\n if (404 !== e.status) throw e;\n });\n });\n });\n };\n },\n Y = function Y(e) {\n return function (t, r) {\n return e.transporter.read({\n method: I,\n path: h(\"1/keys/%s\", t)\n }, r);\n };\n },\n Z = function Z(e) {\n return function (t) {\n return e.transporter.read({\n method: I,\n path: \"1/logs\"\n }, t);\n };\n },\n $ = function $(e) {\n return function (t) {\n return e.transporter.read({\n method: I,\n path: \"1/clusters/mapping/top\"\n }, t);\n };\n },\n ee = function ee(e) {\n return function (t, r) {\n return e.transporter.read({\n method: I,\n path: h(\"1/clusters/mapping/%s\", t)\n }, r);\n };\n },\n te = function te(e) {\n return function (t) {\n var r = t || {},\n a = r.retrieveMappings,\n o = n(r, [\"retrieveMappings\"]);\n return !0 === a && (o.getClusters = !0), e.transporter.read({\n method: I,\n path: \"1/clusters/mapping/pending\"\n }, o);\n };\n },\n re = function re(e) {\n return function (t) {\n var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n n = {\n transporter: e.transporter,\n appId: e.appId,\n indexName: t\n };\n return p(n, r.methods);\n };\n },\n ne = function ne(e) {\n return function (t) {\n return e.transporter.read({\n method: I,\n path: \"1/keys\"\n }, t);\n };\n },\n ae = function ae(e) {\n return function (t) {\n return e.transporter.read({\n method: I,\n path: \"1/clusters\"\n }, t);\n };\n },\n oe = function oe(e) {\n return function (t) {\n return e.transporter.read({\n method: I,\n path: \"1/indexes\"\n }, t);\n };\n },\n ue = function ue(e) {\n return function (t) {\n return e.transporter.read({\n method: I,\n path: \"1/clusters/mapping\"\n }, t);\n };\n },\n ie = function ie(e) {\n return function (t, r, n) {\n return d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/operation\", t),\n data: {\n operation: \"move\",\n destination: r\n }\n }, n), function (r, n) {\n return re(e)(t, {\n methods: {\n waitTask: et\n }\n }).waitTask(r.taskID, n);\n });\n };\n },\n se = function se(e) {\n return function (t, r) {\n return d(e.transporter.write({\n method: x,\n path: \"1/indexes/*/batch\",\n data: {\n requests: t\n }\n }, r), function (t, r) {\n return Promise.all(Object.keys(t.taskID).map(function (n) {\n return re(e)(n, {\n methods: {\n waitTask: et\n }\n }).waitTask(t.taskID[n], r);\n }));\n });\n };\n },\n ce = function ce(e) {\n return function (t, r) {\n return e.transporter.read({\n method: x,\n path: \"1/indexes/*/objects\",\n data: {\n requests: t\n }\n }, r);\n };\n },\n fe = function fe(e) {\n return function (t, n) {\n var a = t.map(function (e) {\n return r({}, e, {\n params: R(e.params || {})\n });\n });\n return e.transporter.read({\n method: x,\n path: \"1/indexes/*/queries\",\n data: {\n requests: a\n },\n cacheable: !0\n }, n);\n };\n },\n de = function de(e) {\n return function (t, a) {\n return Promise.all(t.map(function (t) {\n var o = t.params,\n u = o.facetName,\n i = o.facetQuery,\n s = n(o, [\"facetName\", \"facetQuery\"]);\n return re(e)(t.indexName, {\n methods: {\n searchForFacetValues: Xe\n }\n }).searchForFacetValues(u, i, r({}, a, {}, s));\n }));\n };\n },\n le = function le(e) {\n return function (t, r) {\n var n = y(r);\n return n.queryParameters[\"X-Algolia-User-ID\"] = t, e.transporter.write({\n method: w,\n path: \"1/clusters/mapping\"\n }, n);\n };\n },\n pe = function pe(e) {\n return function (t, r) {\n return d(e.transporter.write({\n method: x,\n path: h(\"1/keys/%s/restore\", t)\n }, r), function (r, n) {\n return f(function (r) {\n return Y(e)(t, n)[\"catch\"](function (e) {\n if (404 !== e.status) throw e;\n return r();\n });\n });\n });\n };\n },\n he = function he(e) {\n return function (t, r) {\n return e.transporter.read({\n method: x,\n path: \"1/clusters/mapping/search\",\n data: {\n query: t\n }\n }, r);\n };\n },\n me = function me(e) {\n return function (t, r) {\n var a = Object.assign({}, r),\n o = r || {},\n u = o.queryParameters,\n i = n(o, [\"queryParameters\"]),\n s = u ? {\n queryParameters: u\n } : {},\n c = [\"acl\", \"indexes\", \"referers\", \"restrictSources\", \"queryParameters\", \"description\", \"maxQueriesPerIPPerHour\", \"maxHitsPerQuery\"];\n return d(e.transporter.write({\n method: q,\n path: h(\"1/keys/%s\", t),\n data: s\n }, i), function (r, n) {\n return f(function (r) {\n return Y(e)(t, n).then(function (e) {\n return function (e) {\n return Object.keys(a).filter(function (e) {\n return -1 !== c.indexOf(e);\n }).every(function (t) {\n return e[t] === a[t];\n });\n }(e) ? Promise.resolve() : r();\n });\n });\n });\n };\n },\n ye = function ye(e) {\n return function (t, r) {\n return d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/batch\", e.indexName),\n data: {\n requests: t\n }\n }, r), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n ge = function ge(e) {\n return function (t) {\n return K(r({\n shouldStop: function shouldStop(e) {\n return void 0 === e.cursor;\n }\n }, t, {\n request: function request(r) {\n return e.transporter.read({\n method: x,\n path: h(\"1/indexes/%s/browse\", e.indexName),\n data: r\n }, t);\n }\n }));\n };\n },\n ve = function ve(e) {\n return function (t) {\n var n = r({\n hitsPerPage: 1e3\n }, t);\n return K(r({\n shouldStop: function shouldStop(e) {\n return e.hits.length < n.hitsPerPage;\n }\n }, n, {\n request: function request(t) {\n return Ye(e)(\"\", r({}, n, {}, t)).then(function (e) {\n return r({}, e, {\n hits: e.hits.map(function (e) {\n return delete e._highlightResult, e;\n })\n });\n });\n }\n }));\n };\n },\n be = function be(e) {\n return function (t) {\n var n = r({\n hitsPerPage: 1e3\n }, t);\n return K(r({\n shouldStop: function shouldStop(e) {\n return e.hits.length < n.hitsPerPage;\n }\n }, n, {\n request: function request(t) {\n return Ze(e)(\"\", r({}, n, {}, t)).then(function (e) {\n return r({}, e, {\n hits: e.hits.map(function (e) {\n return delete e._highlightResult, e;\n })\n });\n });\n }\n }));\n };\n },\n Pe = function Pe(e) {\n return function (t, r, a) {\n var o = a || {},\n u = o.batchSize,\n i = n(o, [\"batchSize\"]),\n s = {\n taskIDs: [],\n objectIDs: []\n };\n return d(function n() {\n var a,\n o = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0,\n c = [];\n\n for (a = o; a < t.length && (c.push(t[a]), c.length !== (u || 1e3)); a++) {\n ;\n }\n\n return 0 === c.length ? Promise.resolve(s) : ye(e)(c.map(function (e) {\n return {\n action: r,\n body: e\n };\n }), i).then(function (e) {\n return s.objectIDs = s.objectIDs.concat(e.objectIDs), s.taskIDs.push(e.taskID), a++, n(a);\n });\n }(), function (t, r) {\n return Promise.all(t.taskIDs.map(function (t) {\n return et(e)(t, r);\n }));\n });\n };\n },\n Oe = function Oe(e) {\n return function (t) {\n return d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/clear\", e.indexName)\n }, t), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n je = function je(e) {\n return function (t) {\n var r = t || {},\n a = r.forwardToReplicas,\n o = y(n(r, [\"forwardToReplicas\"]));\n return a && (o.queryParameters.forwardToReplicas = 1), d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/rules/clear\", e.indexName)\n }, o), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n we = function we(e) {\n return function (t) {\n var r = t || {},\n a = r.forwardToReplicas,\n o = y(n(r, [\"forwardToReplicas\"]));\n return a && (o.queryParameters.forwardToReplicas = 1), d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/synonyms/clear\", e.indexName)\n }, o), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n Ie = function Ie(e) {\n return function (t, r) {\n return d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/deleteByQuery\", e.indexName),\n data: t\n }, r), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n xe = function xe(e) {\n return function (t) {\n return d(e.transporter.write({\n method: w,\n path: h(\"1/indexes/%s\", e.indexName)\n }, t), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n qe = function qe(e) {\n return function (t, r) {\n return d(De(e)([t], r).then(function (e) {\n return {\n taskID: e.taskIDs[0]\n };\n }), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n De = function De(e) {\n return function (t, r) {\n var n = t.map(function (e) {\n return {\n objectID: e\n };\n });\n return Pe(e)(n, tt.DeleteObject, r);\n };\n },\n Se = function Se(e) {\n return function (t, r) {\n var a = r || {},\n o = a.forwardToReplicas,\n u = y(n(a, [\"forwardToReplicas\"]));\n return o && (u.queryParameters.forwardToReplicas = 1), d(e.transporter.write({\n method: w,\n path: h(\"1/indexes/%s/rules/%s\", e.indexName, t)\n }, u), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n ke = function ke(e) {\n return function (t, r) {\n var a = r || {},\n o = a.forwardToReplicas,\n u = y(n(a, [\"forwardToReplicas\"]));\n return o && (u.queryParameters.forwardToReplicas = 1), d(e.transporter.write({\n method: w,\n path: h(\"1/indexes/%s/synonyms/%s\", e.indexName, t)\n }, u), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n Te = function Te(e) {\n return function (t) {\n return Ue(e)(t).then(function () {\n return !0;\n })[\"catch\"](function (e) {\n if (404 !== e.status) throw e;\n return !1;\n });\n };\n },\n Ne = function Ne(e) {\n return function (t, o) {\n var u = o || {},\n i = u.query,\n s = u.paginate,\n c = n(u, [\"query\", \"paginate\"]),\n f = 0;\n return function n() {\n return _e(e)(i || \"\", r({}, c, {\n page: f\n })).then(function (e) {\n for (var r = 0, o = Object.entries(e.hits); r < o.length; r++) {\n var u = a(o[r], 2),\n i = u[0],\n c = u[1];\n if (t(c)) return {\n object: c,\n position: parseInt(i, 10),\n page: f\n };\n }\n\n if (f++, !1 === s || f >= e.nbPages) throw {\n name: \"ObjectNotFoundError\",\n message: \"Object not found.\"\n };\n return n();\n });\n }();\n };\n },\n Re = function Re(e) {\n return function (t, r) {\n return e.transporter.read({\n method: I,\n path: h(\"1/indexes/%s/%s\", e.indexName, t)\n }, r);\n };\n },\n Ae = function Ae() {\n return function (e, t) {\n for (var r = 0, n = Object.entries(e.hits); r < n.length; r++) {\n var o = a(n[r], 2),\n u = o[0];\n if (o[1].objectID === t) return parseInt(u, 10);\n }\n\n return -1;\n };\n },\n Ee = function Ee(e) {\n return function (t, a) {\n var o = a || {},\n u = o.attributesToRetrieve,\n i = n(o, [\"attributesToRetrieve\"]),\n s = t.map(function (t) {\n return r({\n indexName: e.indexName,\n objectID: t\n }, u ? {\n attributesToRetrieve: u\n } : {});\n });\n return e.transporter.read({\n method: x,\n path: \"1/indexes/*/objects\",\n data: {\n requests: s\n }\n }, i);\n };\n },\n Ce = function Ce(e) {\n return function (t, r) {\n return e.transporter.read({\n method: I,\n path: h(\"1/indexes/%s/rules/%s\", e.indexName, t)\n }, r);\n };\n },\n Ue = function Ue(e) {\n return function (t) {\n return e.transporter.read({\n method: I,\n path: h(\"1/indexes/%s/settings\", e.indexName),\n data: {\n getVersion: 2\n }\n }, t);\n };\n },\n Je = function Je(e) {\n return function (t, r) {\n return e.transporter.read({\n method: I,\n path: h(\"1/indexes/%s/synonyms/%s\", e.indexName, t)\n }, r);\n };\n },\n ze = function ze(e) {\n return function (t, r) {\n return d(Fe(e)([t], r).then(function (e) {\n return {\n objectID: e.objectIDs[0],\n taskID: e.taskIDs[0]\n };\n }), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n Fe = function Fe(e) {\n return function (t, r) {\n var a = r || {},\n o = a.createIfNotExists,\n u = n(a, [\"createIfNotExists\"]),\n i = o ? tt.PartialUpdateObject : tt.PartialUpdateObjectNoCreate;\n return Pe(e)(t, i, u);\n };\n },\n He = function He(e) {\n return function (t, u) {\n var i = u || {},\n s = i.safe,\n c = i.autoGenerateObjectIDIfNotExist,\n f = i.batchSize,\n l = n(i, [\"safe\", \"autoGenerateObjectIDIfNotExist\", \"batchSize\"]),\n p = function p(t, r, n, a) {\n return d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/operation\", t),\n data: {\n operation: n,\n destination: r\n }\n }, a), function (t, r) {\n return et(e)(t.taskID, r);\n });\n },\n m = Math.random().toString(36).substring(7),\n y = \"\".concat(e.indexName, \"_tmp_\").concat(m),\n g = Be({\n appId: e.appId,\n transporter: e.transporter,\n indexName: y\n }),\n v = [],\n b = p(e.indexName, y, \"copy\", r({}, l, {\n scope: [\"settings\", \"synonyms\", \"rules\"]\n }));\n\n return v.push(b), d((s ? b.wait(l) : b).then(function () {\n var e = g(t, r({}, l, {\n autoGenerateObjectIDIfNotExist: c,\n batchSize: f\n }));\n return v.push(e), s ? e.wait(l) : e;\n }).then(function () {\n var t = p(y, e.indexName, \"move\", l);\n return v.push(t), s ? t.wait(l) : t;\n }).then(function () {\n return Promise.all(v);\n }).then(function (e) {\n var t = a(e, 3),\n r = t[0],\n n = t[1],\n u = t[2];\n return {\n objectIDs: n.objectIDs,\n taskIDs: [r.taskID].concat(o(n.taskIDs), [u.taskID])\n };\n }), function (e, t) {\n return Promise.all(v.map(function (e) {\n return e.wait(t);\n }));\n });\n };\n },\n Me = function Me(e) {\n return function (t, n) {\n return Ge(e)(t, r({}, n, {\n clearExistingRules: !0\n }));\n };\n },\n Ke = function Ke(e) {\n return function (t, n) {\n return Le(e)(t, r({}, n, {\n replaceExistingSynonyms: !0\n }));\n };\n },\n We = function We(e) {\n return function (t, r) {\n return d(Be(e)([t], r).then(function (e) {\n return {\n objectID: e.objectIDs[0],\n taskID: e.taskIDs[0]\n };\n }), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n Be = function Be(e) {\n return function (t, r) {\n var a = r || {},\n o = a.autoGenerateObjectIDIfNotExist,\n u = n(a, [\"autoGenerateObjectIDIfNotExist\"]),\n i = o ? tt.AddObject : tt.UpdateObject;\n\n if (i === tt.UpdateObject) {\n var s = !0,\n c = !1,\n f = void 0;\n\n try {\n for (var l, p = t[Symbol.iterator](); !(s = (l = p.next()).done); s = !0) {\n if (void 0 === l.value.objectID) return d(Promise.reject({\n name: \"MissingObjectIDError\",\n message: \"All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option.\"\n }));\n }\n } catch (e) {\n c = !0, f = e;\n } finally {\n try {\n s || null == p[\"return\"] || p[\"return\"]();\n } finally {\n if (c) throw f;\n }\n }\n }\n\n return Pe(e)(t, i, u);\n };\n },\n Qe = function Qe(e) {\n return function (t, r) {\n return Ge(e)([t], r);\n };\n },\n Ge = function Ge(e) {\n return function (t, r) {\n var a = r || {},\n o = a.forwardToReplicas,\n u = a.clearExistingRules,\n i = y(n(a, [\"forwardToReplicas\", \"clearExistingRules\"]));\n return o && (i.queryParameters.forwardToReplicas = 1), u && (i.queryParameters.clearExistingRules = 1), d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/rules/batch\", e.indexName),\n data: t\n }, i), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n Ve = function Ve(e) {\n return function (t, r) {\n return Le(e)([t], r);\n };\n },\n Le = function Le(e) {\n return function (t, r) {\n var a = r || {},\n o = a.forwardToReplicas,\n u = a.replaceExistingSynonyms,\n i = y(n(a, [\"forwardToReplicas\", \"replaceExistingSynonyms\"]));\n return o && (i.queryParameters.forwardToReplicas = 1), u && (i.queryParameters.replaceExistingSynonyms = 1), d(e.transporter.write({\n method: x,\n path: h(\"1/indexes/%s/synonyms/batch\", e.indexName),\n data: t\n }, i), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n _e = function _e(e) {\n return function (t, r) {\n return e.transporter.read({\n method: x,\n path: h(\"1/indexes/%s/query\", e.indexName),\n data: {\n query: t\n },\n cacheable: !0\n }, r);\n };\n },\n Xe = function Xe(e) {\n return function (t, r, n) {\n return e.transporter.read({\n method: x,\n path: h(\"1/indexes/%s/facets/%s/query\", e.indexName, t),\n data: {\n facetQuery: r\n },\n cacheable: !0\n }, n);\n };\n },\n Ye = function Ye(e) {\n return function (t, r) {\n return e.transporter.read({\n method: x,\n path: h(\"1/indexes/%s/rules/search\", e.indexName),\n data: {\n query: t\n }\n }, r);\n };\n },\n Ze = function Ze(e) {\n return function (t, r) {\n return e.transporter.read({\n method: x,\n path: h(\"1/indexes/%s/synonyms/search\", e.indexName),\n data: {\n query: t\n }\n }, r);\n };\n },\n $e = function $e(e) {\n return function (t, r) {\n var a = r || {},\n o = a.forwardToReplicas,\n u = y(n(a, [\"forwardToReplicas\"]));\n return o && (u.queryParameters.forwardToReplicas = 1), d(e.transporter.write({\n method: q,\n path: h(\"1/indexes/%s/settings\", e.indexName),\n data: t\n }, u), function (t, r) {\n return et(e)(t.taskID, r);\n });\n };\n },\n et = function et(e) {\n return function (t, r) {\n return f(function (n) {\n return function (e) {\n return function (t, r) {\n return e.transporter.read({\n method: I,\n path: h(\"1/indexes/%s/task/%s\", e.indexName, t.toString())\n }, r);\n };\n }(e)(t, r).then(function (e) {\n return \"published\" !== e.status ? n() : void 0;\n });\n });\n };\n },\n tt = {\n AddObject: \"addObject\",\n UpdateObject: \"updateObject\",\n PartialUpdateObject: \"partialUpdateObject\",\n PartialUpdateObjectNoCreate: \"partialUpdateObjectNoCreate\",\n DeleteObject: \"deleteObject\",\n DeleteIndex: \"delete\",\n ClearIndex: \"clear\"\n },\n rt = {\n Settings: \"settings\",\n Synonyms: \"synonyms\",\n Rules: \"rules\"\n },\n nt = 1,\n at = 2,\n ot = 3;\n\n function ut(e, t, n) {\n var a,\n o = {\n appId: e,\n apiKey: t,\n timeouts: {\n connect: 1,\n read: 2,\n write: 30\n },\n requester: {\n send: function send(e) {\n return new Promise(function (t) {\n var r = new XMLHttpRequest();\n r.open(e.method, e.url, !0), Object.keys(e.headers).forEach(function (t) {\n return r.setRequestHeader(t, e.headers[t]);\n });\n\n var n,\n a = function a(e, n) {\n return setTimeout(function () {\n r.abort(), t({\n status: 0,\n content: n,\n isTimedOut: !0\n });\n }, 1e3 * e);\n },\n o = a(e.connectTimeout, \"Connection timeout\");\n\n r.onreadystatechange = function () {\n r.readyState > r.OPENED && void 0 === n && (clearTimeout(o), n = a(e.responseTimeout, \"Socket timeout\"));\n }, r.onerror = function () {\n 0 === r.status && (clearTimeout(o), clearTimeout(n), t({\n content: r.responseText || \"Network request failed\",\n status: r.status,\n isTimedOut: !1\n }));\n }, r.onload = function () {\n clearTimeout(o), clearTimeout(n), t({\n content: r.responseText,\n status: r.status,\n isTimedOut: !1\n });\n }, r.send(e.data);\n });\n }\n },\n logger: (a = ot, {\n debug: function debug(e, t) {\n return nt >= a && console.debug(e, t), Promise.resolve();\n },\n info: function info(e, t) {\n return at >= a && console.info(e, t), Promise.resolve();\n },\n error: function error(e, t) {\n return console.error(e, t), Promise.resolve();\n }\n }),\n responsesCache: s(),\n requestsCache: s({\n serializable: !1\n }),\n hostsCache: i({\n caches: [u({\n key: \"\".concat(\"4.4.0\", \"-\").concat(e)\n }), s()]\n }),\n userAgent: T(\"4.4.0\").add({\n segment: \"Browser\"\n })\n };\n return function (e) {\n var t = e.appId,\n n = c(void 0 !== e.authMode ? e.authMode : m.WithinHeaders, t, e.apiKey),\n a = k(r({\n hosts: [{\n url: \"\".concat(t, \"-dsn.algolia.net\"),\n accept: g.Read\n }, {\n url: \"\".concat(t, \".algolia.net\"),\n accept: g.Write\n }].concat(l([{\n url: \"\".concat(t, \"-1.algolianet.com\")\n }, {\n url: \"\".concat(t, \"-2.algolianet.com\")\n }, {\n url: \"\".concat(t, \"-3.algolianet.com\")\n }]))\n }, e, {\n headers: r({}, n.headers(), {}, {\n \"content-type\": \"application/x-www-form-urlencoded\"\n }, {}, e.headers),\n queryParameters: r({}, n.queryParameters(), {}, e.queryParameters)\n }));\n return p({\n transporter: a,\n appId: t,\n addAlgoliaAgent: function addAlgoliaAgent(e, t) {\n a.userAgent.add({\n segment: e,\n version: t\n });\n },\n clearCache: function clearCache() {\n return Promise.all([a.requestsCache.clear(), a.responsesCache.clear()]).then(function () {});\n }\n }, e.methods);\n }(r({}, o, {}, n, {\n methods: {\n search: fe,\n searchForFacetValues: de,\n multipleBatch: se,\n multipleGetObjects: ce,\n multipleQueries: fe,\n copyIndex: G,\n copySettings: L,\n copySynonyms: _,\n copyRules: V,\n moveIndex: ie,\n listIndices: oe,\n getLogs: Z,\n listClusters: ae,\n multipleSearchForFacetValues: de,\n getApiKey: Y,\n addApiKey: W,\n listApiKeys: ne,\n updateApiKey: me,\n deleteApiKey: X,\n restoreApiKey: pe,\n assignUserID: B,\n assignUserIDs: Q,\n getUserID: ee,\n searchUserIDs: he,\n listUserIDs: ue,\n getTopUserIDs: $,\n removeUserID: le,\n hasPendingMappings: te,\n initIndex: function initIndex(e) {\n return function (t) {\n return re(e)(t, {\n methods: {\n batch: ye,\n \"delete\": xe,\n getObject: Re,\n getObjects: Ee,\n saveObject: We,\n saveObjects: Be,\n search: _e,\n searchForFacetValues: Xe,\n waitTask: et,\n setSettings: $e,\n getSettings: Ue,\n partialUpdateObject: ze,\n partialUpdateObjects: Fe,\n deleteObject: qe,\n deleteObjects: De,\n deleteBy: Ie,\n clearObjects: Oe,\n browseObjects: ge,\n getObjectPosition: Ae,\n findObject: Ne,\n exists: Te,\n saveSynonym: Ve,\n saveSynonyms: Le,\n getSynonym: Je,\n searchSynonyms: Ze,\n browseSynonyms: be,\n deleteSynonym: ke,\n clearSynonyms: we,\n replaceAllObjects: He,\n replaceAllSynonyms: Ke,\n searchRules: Ye,\n getRule: Ce,\n deleteRule: Se,\n saveRule: Qe,\n saveRules: Ge,\n replaceAllRules: Me,\n browseRules: ve,\n clearRules: je\n }\n });\n };\n },\n initAnalytics: function initAnalytics() {\n return function (e) {\n return function (e) {\n var t = e.region || \"us\",\n n = c(m.WithinHeaders, e.appId, e.apiKey),\n a = k(r({\n hosts: [{\n url: \"analytics.\".concat(t, \".algolia.com\")\n }]\n }, e, {\n headers: r({}, n.headers(), {}, {\n \"content-type\": \"application/json\"\n }, {}, e.headers),\n queryParameters: r({}, n.queryParameters(), {}, e.queryParameters)\n }));\n return p({\n appId: e.appId,\n transporter: a\n }, e.methods);\n }(r({}, o, {}, e, {\n methods: {\n addABTest: C,\n getABTest: J,\n getABTests: z,\n stopABTest: F,\n deleteABTest: U\n }\n }));\n };\n },\n initRecommendation: function initRecommendation() {\n return function (e) {\n return function (e) {\n var t = e.region || \"us\",\n n = c(m.WithinHeaders, e.appId, e.apiKey),\n a = k(r({\n hosts: [{\n url: \"recommendation.\".concat(t, \".algolia.com\")\n }]\n }, e, {\n headers: r({}, n.headers(), {}, {\n \"content-type\": \"application/json\"\n }, {}, e.headers),\n queryParameters: r({}, n.queryParameters(), {}, e.queryParameters)\n }));\n return p({\n appId: e.appId,\n transporter: a\n }, e.methods);\n }(r({}, o, {}, e, {\n methods: {\n getPersonalizationStrategy: H,\n setPersonalizationStrategy: M\n }\n }));\n };\n }\n }\n }));\n }\n\n return ut.version = \"4.4.0\", ut;\n});","'use strict';\n\nexports.byteLength = byteLength;\nexports.toByteArray = toByteArray;\nexports.fromByteArray = fromByteArray;\nvar lookup = [];\nvar revLookup = [];\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array;\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i];\n revLookup[code.charCodeAt(i)] = i;\n} // Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\n\n\nrevLookup['-'.charCodeAt(0)] = 62;\nrevLookup['_'.charCodeAt(0)] = 63;\n\nfunction getLens(b64) {\n var len = b64.length;\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4');\n } // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n\n\n var validLen = b64.indexOf('=');\n if (validLen === -1) validLen = len;\n var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;\n return [validLen, placeHoldersLen];\n} // base64 is 4/3 + up to two characters of the original data\n\n\nfunction byteLength(b64) {\n var lens = getLens(b64);\n var validLen = lens[0];\n var placeHoldersLen = lens[1];\n return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n}\n\nfunction _byteLength(b64, validLen, placeHoldersLen) {\n return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n}\n\nfunction toByteArray(b64) {\n var tmp;\n var lens = getLens(b64);\n var validLen = lens[0];\n var placeHoldersLen = lens[1];\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));\n var curByte = 0; // if there are placeholders, only get up to the last complete 4 chars\n\n var len = placeHoldersLen > 0 ? validLen - 4 : validLen;\n var i;\n\n for (i = 0; i < len; i += 4) {\n tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)];\n arr[curByte++] = tmp >> 16 & 0xFF;\n arr[curByte++] = tmp >> 8 & 0xFF;\n arr[curByte++] = tmp & 0xFF;\n }\n\n if (placeHoldersLen === 2) {\n tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4;\n arr[curByte++] = tmp & 0xFF;\n }\n\n if (placeHoldersLen === 1) {\n tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2;\n arr[curByte++] = tmp >> 8 & 0xFF;\n arr[curByte++] = tmp & 0xFF;\n }\n\n return arr;\n}\n\nfunction tripletToBase64(num) {\n return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F];\n}\n\nfunction encodeChunk(uint8, start, end) {\n var tmp;\n var output = [];\n\n for (var i = start; i < end; i += 3) {\n tmp = (uint8[i] << 16 & 0xFF0000) + (uint8[i + 1] << 8 & 0xFF00) + (uint8[i + 2] & 0xFF);\n output.push(tripletToBase64(tmp));\n }\n\n return output.join('');\n}\n\nfunction fromByteArray(uint8) {\n var tmp;\n var len = uint8.length;\n var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes\n\n var parts = [];\n var maxChunkLength = 16383; // must be multiple of 3\n // go through the array every three bytes, we'll deal with trailing stuff later\n\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength));\n } // pad the end with zeros, but make sure to not forget the extra bytes\n\n\n if (extraBytes === 1) {\n tmp = uint8[len - 1];\n parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '==');\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1];\n parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 0x3F] + lookup[tmp << 2 & 0x3F] + '=');\n }\n\n return parts.join('');\n}","function _typeof2(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\n/*!\n * clipboard.js v2.0.6\n * https://clipboardjs.com/\n * \n * Licensed MIT © Zeno Rocha\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof2(exports)) === 'object' && (typeof module === \"undefined\" ? \"undefined\" : _typeof2(module)) === 'object') module.exports = factory();else if (typeof define === 'function' && define.amd) define([], factory);else if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof2(exports)) === 'object') exports[\"ClipboardJS\"] = factory();else root[\"ClipboardJS\"] = factory();\n})(this, function () {\n return (\n /******/\n function (modules) {\n // webpackBootstrap\n\n /******/\n // The module cache\n\n /******/\n var installedModules = {};\n /******/\n\n /******/\n // The require function\n\n /******/\n\n function __webpack_require__(moduleId) {\n /******/\n\n /******/\n // Check if module is in cache\n\n /******/\n if (installedModules[moduleId]) {\n /******/\n return installedModules[moduleId].exports;\n /******/\n }\n /******/\n // Create a new module (and put it into the cache)\n\n /******/\n\n\n var module = installedModules[moduleId] = {\n /******/\n i: moduleId,\n\n /******/\n l: false,\n\n /******/\n exports: {}\n /******/\n\n };\n /******/\n\n /******/\n // Execute the module function\n\n /******/\n\n modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n /******/\n\n /******/\n // Flag the module as loaded\n\n /******/\n\n module.l = true;\n /******/\n\n /******/\n // Return the exports of the module\n\n /******/\n\n return module.exports;\n /******/\n }\n /******/\n\n /******/\n\n /******/\n // expose the modules object (__webpack_modules__)\n\n /******/\n\n\n __webpack_require__.m = modules;\n /******/\n\n /******/\n // expose the module cache\n\n /******/\n\n __webpack_require__.c = installedModules;\n /******/\n\n /******/\n // define getter function for harmony exports\n\n /******/\n\n __webpack_require__.d = function (exports, name, getter) {\n /******/\n if (!__webpack_require__.o(exports, name)) {\n /******/\n Object.defineProperty(exports, name, {\n enumerable: true,\n get: getter\n });\n /******/\n }\n /******/\n\n };\n /******/\n\n /******/\n // define __esModule on exports\n\n /******/\n\n\n __webpack_require__.r = function (exports) {\n /******/\n if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n /******/\n Object.defineProperty(exports, Symbol.toStringTag, {\n value: 'Module'\n });\n /******/\n }\n /******/\n\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n /******/\n };\n /******/\n\n /******/\n // create a fake namespace object\n\n /******/\n // mode & 1: value is a module id, require it\n\n /******/\n // mode & 2: merge all properties of value into the ns\n\n /******/\n // mode & 4: return value when already ns object\n\n /******/\n // mode & 8|1: behave like require\n\n /******/\n\n\n __webpack_require__.t = function (value, mode) {\n /******/\n if (mode & 1) value = __webpack_require__(value);\n /******/\n\n if (mode & 8) return value;\n /******/\n\n if (mode & 4 && _typeof2(value) === 'object' && value && value.__esModule) return value;\n /******/\n\n var ns = Object.create(null);\n /******/\n\n __webpack_require__.r(ns);\n /******/\n\n\n Object.defineProperty(ns, 'default', {\n enumerable: true,\n value: value\n });\n /******/\n\n if (mode & 2 && typeof value != 'string') for (var key in value) {\n __webpack_require__.d(ns, key, function (key) {\n return value[key];\n }.bind(null, key));\n }\n /******/\n\n return ns;\n /******/\n };\n /******/\n\n /******/\n // getDefaultExport function for compatibility with non-harmony modules\n\n /******/\n\n\n __webpack_require__.n = function (module) {\n /******/\n var getter = module && module.__esModule ?\n /******/\n function getDefault() {\n return module['default'];\n } :\n /******/\n function getModuleExports() {\n return module;\n };\n /******/\n\n __webpack_require__.d(getter, 'a', getter);\n /******/\n\n\n return getter;\n /******/\n };\n /******/\n\n /******/\n // Object.prototype.hasOwnProperty.call\n\n /******/\n\n\n __webpack_require__.o = function (object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n };\n /******/\n\n /******/\n // __webpack_public_path__\n\n /******/\n\n\n __webpack_require__.p = \"\";\n /******/\n\n /******/\n\n /******/\n // Load entry module and return exports\n\n /******/\n\n return __webpack_require__(__webpack_require__.s = 6);\n /******/\n }(\n /************************************************************************/\n\n /******/\n [\n /* 0 */\n\n /***/\n function (module, exports) {\n function select(element) {\n var selectedText;\n\n if (element.nodeName === 'SELECT') {\n element.focus();\n selectedText = element.value;\n } else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {\n var isReadOnly = element.hasAttribute('readonly');\n\n if (!isReadOnly) {\n element.setAttribute('readonly', '');\n }\n\n element.select();\n element.setSelectionRange(0, element.value.length);\n\n if (!isReadOnly) {\n element.removeAttribute('readonly');\n }\n\n selectedText = element.value;\n } else {\n if (element.hasAttribute('contenteditable')) {\n element.focus();\n }\n\n var selection = window.getSelection();\n var range = document.createRange();\n range.selectNodeContents(element);\n selection.removeAllRanges();\n selection.addRange(range);\n selectedText = selection.toString();\n }\n\n return selectedText;\n }\n\n module.exports = select;\n /***/\n },\n /* 1 */\n\n /***/\n function (module, exports) {\n function E() {// Keep this empty so it's easier to inherit from\n // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n }\n\n E.prototype = {\n on: function on(name, callback, ctx) {\n var e = this.e || (this.e = {});\n (e[name] || (e[name] = [])).push({\n fn: callback,\n ctx: ctx\n });\n return this;\n },\n once: function once(name, callback, ctx) {\n var self = this;\n\n function listener() {\n self.off(name, listener);\n callback.apply(ctx, arguments);\n }\n\n ;\n listener._ = callback;\n return this.on(name, listener, ctx);\n },\n emit: function emit(name) {\n var data = [].slice.call(arguments, 1);\n var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n var i = 0;\n var len = evtArr.length;\n\n for (i; i < len; i++) {\n evtArr[i].fn.apply(evtArr[i].ctx, data);\n }\n\n return this;\n },\n off: function off(name, callback) {\n var e = this.e || (this.e = {});\n var evts = e[name];\n var liveEvents = [];\n\n if (evts && callback) {\n for (var i = 0, len = evts.length; i < len; i++) {\n if (evts[i].fn !== callback && evts[i].fn._ !== callback) liveEvents.push(evts[i]);\n }\n } // Remove event from queue to prevent memory leak\n // Suggested by https://github.com/lazd\n // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n\n liveEvents.length ? e[name] = liveEvents : delete e[name];\n return this;\n }\n };\n module.exports = E;\n module.exports.TinyEmitter = E;\n /***/\n },\n /* 2 */\n\n /***/\n function (module, exports, __webpack_require__) {\n var is = __webpack_require__(3);\n\n var delegate = __webpack_require__(4);\n /**\n * Validates all params and calls the right\n * listener function based on its target type.\n *\n * @param {String|HTMLElement|HTMLCollection|NodeList} target\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\n\n\n function listen(target, type, callback) {\n if (!target && !type && !callback) {\n throw new Error('Missing required arguments');\n }\n\n if (!is.string(type)) {\n throw new TypeError('Second argument must be a String');\n }\n\n if (!is.fn(callback)) {\n throw new TypeError('Third argument must be a Function');\n }\n\n if (is.node(target)) {\n return listenNode(target, type, callback);\n } else if (is.nodeList(target)) {\n return listenNodeList(target, type, callback);\n } else if (is.string(target)) {\n return listenSelector(target, type, callback);\n } else {\n throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');\n }\n }\n /**\n * Adds an event listener to a HTML element\n * and returns a remove listener function.\n *\n * @param {HTMLElement} node\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\n\n\n function listenNode(node, type, callback) {\n node.addEventListener(type, callback);\n return {\n destroy: function destroy() {\n node.removeEventListener(type, callback);\n }\n };\n }\n /**\n * Add an event listener to a list of HTML elements\n * and returns a remove listener function.\n *\n * @param {NodeList|HTMLCollection} nodeList\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\n\n\n function listenNodeList(nodeList, type, callback) {\n Array.prototype.forEach.call(nodeList, function (node) {\n node.addEventListener(type, callback);\n });\n return {\n destroy: function destroy() {\n Array.prototype.forEach.call(nodeList, function (node) {\n node.removeEventListener(type, callback);\n });\n }\n };\n }\n /**\n * Add an event listener to a selector\n * and returns a remove listener function.\n *\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\n\n\n function listenSelector(selector, type, callback) {\n return delegate(document.body, selector, type, callback);\n }\n\n module.exports = listen;\n /***/\n },\n /* 3 */\n\n /***/\n function (module, exports) {\n /**\n * Check if argument is a HTML element.\n *\n * @param {Object} value\n * @return {Boolean}\n */\n exports.node = function (value) {\n return value !== undefined && value instanceof HTMLElement && value.nodeType === 1;\n };\n /**\n * Check if argument is a list of HTML elements.\n *\n * @param {Object} value\n * @return {Boolean}\n */\n\n\n exports.nodeList = function (value) {\n var type = Object.prototype.toString.call(value);\n return value !== undefined && (type === '[object NodeList]' || type === '[object HTMLCollection]') && 'length' in value && (value.length === 0 || exports.node(value[0]));\n };\n /**\n * Check if argument is a string.\n *\n * @param {Object} value\n * @return {Boolean}\n */\n\n\n exports.string = function (value) {\n return typeof value === 'string' || value instanceof String;\n };\n /**\n * Check if argument is a function.\n *\n * @param {Object} value\n * @return {Boolean}\n */\n\n\n exports.fn = function (value) {\n var type = Object.prototype.toString.call(value);\n return type === '[object Function]';\n };\n /***/\n\n },\n /* 4 */\n\n /***/\n function (module, exports, __webpack_require__) {\n var closest = __webpack_require__(5);\n /**\n * Delegates event to a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\n\n\n function _delegate(element, selector, type, callback, useCapture) {\n var listenerFn = listener.apply(this, arguments);\n element.addEventListener(type, listenerFn, useCapture);\n return {\n destroy: function destroy() {\n element.removeEventListener(type, listenerFn, useCapture);\n }\n };\n }\n /**\n * Delegates event to a selector.\n *\n * @param {Element|String|Array} [elements]\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\n\n\n function delegate(elements, selector, type, callback, useCapture) {\n // Handle the regular Element usage\n if (typeof elements.addEventListener === 'function') {\n return _delegate.apply(null, arguments);\n } // Handle Element-less usage, it defaults to global delegation\n\n\n if (typeof type === 'function') {\n // Use `document` as the first parameter, then apply arguments\n // This is a short way to .unshift `arguments` without running into deoptimizations\n return _delegate.bind(null, document).apply(null, arguments);\n } // Handle Selector-based usage\n\n\n if (typeof elements === 'string') {\n elements = document.querySelectorAll(elements);\n } // Handle Array-like based usage\n\n\n return Array.prototype.map.call(elements, function (element) {\n return _delegate(element, selector, type, callback, useCapture);\n });\n }\n /**\n * Finds closest match and invokes callback.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Function}\n */\n\n\n function listener(element, selector, type, callback) {\n return function (e) {\n e.delegateTarget = closest(e.target, selector);\n\n if (e.delegateTarget) {\n callback.call(element, e);\n }\n };\n }\n\n module.exports = delegate;\n /***/\n },\n /* 5 */\n\n /***/\n function (module, exports) {\n var DOCUMENT_NODE_TYPE = 9;\n /**\n * A polyfill for Element.matches()\n */\n\n if (typeof Element !== 'undefined' && !Element.prototype.matches) {\n var proto = Element.prototype;\n proto.matches = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector;\n }\n /**\n * Finds the closest parent that matches a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @return {Function}\n */\n\n\n function closest(element, selector) {\n while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {\n if (typeof element.matches === 'function' && element.matches(selector)) {\n return element;\n }\n\n element = element.parentNode;\n }\n }\n\n module.exports = closest;\n /***/\n },\n /* 6 */\n\n /***/\n function (module, __webpack_exports__, __webpack_require__) {\n \"use strict\";\n\n __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: ./node_modules/select/src/select.js\n\n\n var src_select = __webpack_require__(0);\n\n var select_default = /*#__PURE__*/__webpack_require__.n(src_select); // CONCATENATED MODULE: ./src/clipboard-action.js\n\n\n var _typeof = typeof Symbol === \"function\" && _typeof2(Symbol.iterator) === \"symbol\" ? function (obj) {\n return _typeof2(obj);\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : _typeof2(obj);\n };\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n /**\n * Inner class which performs selection from either `text` or `target`\n * properties and then executes copy or cut operations.\n */\n\n\n var clipboard_action_ClipboardAction = function () {\n /**\n * @param {Object} options\n */\n function ClipboardAction(options) {\n _classCallCheck(this, ClipboardAction);\n\n this.resolveOptions(options);\n this.initSelection();\n }\n /**\n * Defines base properties passed from constructor.\n * @param {Object} options\n */\n\n\n _createClass(ClipboardAction, [{\n key: 'resolveOptions',\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.action = options.action;\n this.container = options.container;\n this.emitter = options.emitter;\n this.target = options.target;\n this.text = options.text;\n this.trigger = options.trigger;\n this.selectedText = '';\n }\n /**\n * Decides which selection strategy is going to be applied based\n * on the existence of `text` and `target` properties.\n */\n\n }, {\n key: 'initSelection',\n value: function initSelection() {\n if (this.text) {\n this.selectFake();\n } else if (this.target) {\n this.selectTarget();\n }\n }\n /**\n * Creates a fake textarea element, sets its value from `text` property,\n * and makes a selection on it.\n */\n\n }, {\n key: 'selectFake',\n value: function selectFake() {\n var _this = this;\n\n var isRTL = document.documentElement.getAttribute('dir') == 'rtl';\n this.removeFake();\n\n this.fakeHandlerCallback = function () {\n return _this.removeFake();\n };\n\n this.fakeHandler = this.container.addEventListener('click', this.fakeHandlerCallback) || true;\n this.fakeElem = document.createElement('textarea'); // Prevent zooming on iOS\n\n this.fakeElem.style.fontSize = '12pt'; // Reset box model\n\n this.fakeElem.style.border = '0';\n this.fakeElem.style.padding = '0';\n this.fakeElem.style.margin = '0'; // Move element out of screen horizontally\n\n this.fakeElem.style.position = 'absolute';\n this.fakeElem.style[isRTL ? 'right' : 'left'] = '-9999px'; // Move element to the same position vertically\n\n var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n this.fakeElem.style.top = yPosition + 'px';\n this.fakeElem.setAttribute('readonly', '');\n this.fakeElem.value = this.text;\n this.container.appendChild(this.fakeElem);\n this.selectedText = select_default()(this.fakeElem);\n this.copyText();\n }\n /**\n * Only removes the fake element after another click event, that way\n * a user can hit `Ctrl+C` to copy because selection still exists.\n */\n\n }, {\n key: 'removeFake',\n value: function removeFake() {\n if (this.fakeHandler) {\n this.container.removeEventListener('click', this.fakeHandlerCallback);\n this.fakeHandler = null;\n this.fakeHandlerCallback = null;\n }\n\n if (this.fakeElem) {\n this.container.removeChild(this.fakeElem);\n this.fakeElem = null;\n }\n }\n /**\n * Selects the content from element passed on `target` property.\n */\n\n }, {\n key: 'selectTarget',\n value: function selectTarget() {\n this.selectedText = select_default()(this.target);\n this.copyText();\n }\n /**\n * Executes the copy operation based on the current selection.\n */\n\n }, {\n key: 'copyText',\n value: function copyText() {\n var succeeded = void 0;\n\n try {\n succeeded = document.execCommand(this.action);\n } catch (err) {\n succeeded = false;\n }\n\n this.handleResult(succeeded);\n }\n /**\n * Fires an event based on the copy operation result.\n * @param {Boolean} succeeded\n */\n\n }, {\n key: 'handleResult',\n value: function handleResult(succeeded) {\n this.emitter.emit(succeeded ? 'success' : 'error', {\n action: this.action,\n text: this.selectedText,\n trigger: this.trigger,\n clearSelection: this.clearSelection.bind(this)\n });\n }\n /**\n * Moves focus away from `target` and back to the trigger, removes current selection.\n */\n\n }, {\n key: 'clearSelection',\n value: function clearSelection() {\n if (this.trigger) {\n this.trigger.focus();\n }\n\n document.activeElement.blur();\n window.getSelection().removeAllRanges();\n }\n /**\n * Sets the `action` to be performed which can be either 'copy' or 'cut'.\n * @param {String} action\n */\n\n }, {\n key: 'destroy',\n\n /**\n * Destroy lifecycle.\n */\n value: function destroy() {\n this.removeFake();\n }\n }, {\n key: 'action',\n set: function set() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'copy';\n this._action = action;\n\n if (this._action !== 'copy' && this._action !== 'cut') {\n throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n }\n }\n /**\n * Gets the `action` property.\n * @return {String}\n */\n ,\n get: function get() {\n return this._action;\n }\n /**\n * Sets the `target` property using an element\n * that will be have its content copied.\n * @param {Element} target\n */\n\n }, {\n key: 'target',\n set: function set(target) {\n if (target !== undefined) {\n if (target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && target.nodeType === 1) {\n if (this.action === 'copy' && target.hasAttribute('disabled')) {\n throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n }\n\n if (this.action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n }\n\n this._target = target;\n } else {\n throw new Error('Invalid \"target\" value, use a valid Element');\n }\n }\n }\n /**\n * Gets the `target` property.\n * @return {String|HTMLElement}\n */\n ,\n get: function get() {\n return this._target;\n }\n }]);\n\n return ClipboardAction;\n }();\n /* harmony default export */\n\n\n var clipboard_action = clipboard_action_ClipboardAction; // EXTERNAL MODULE: ./node_modules/tiny-emitter/index.js\n\n var tiny_emitter = __webpack_require__(1);\n\n var tiny_emitter_default = /*#__PURE__*/__webpack_require__.n(tiny_emitter); // EXTERNAL MODULE: ./node_modules/good-listener/src/listen.js\n\n\n var listen = __webpack_require__(2);\n\n var listen_default = /*#__PURE__*/__webpack_require__.n(listen); // CONCATENATED MODULE: ./src/clipboard.js\n\n\n var clipboard_typeof = typeof Symbol === \"function\" && _typeof2(Symbol.iterator) === \"symbol\" ? function (obj) {\n return _typeof2(obj);\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : _typeof2(obj);\n };\n\n var clipboard_createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function clipboard_classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (_typeof2(call) === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + _typeof2(superClass));\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n /**\n * Base class which takes one or more elements, adds event listeners to them,\n * and instantiates a new `ClipboardAction` on each click.\n */\n\n\n var clipboard_Clipboard = function (_Emitter) {\n _inherits(Clipboard, _Emitter);\n /**\n * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n * @param {Object} options\n */\n\n\n function Clipboard(trigger, options) {\n clipboard_classCallCheck(this, Clipboard);\n\n var _this = _possibleConstructorReturn(this, (Clipboard.__proto__ || Object.getPrototypeOf(Clipboard)).call(this));\n\n _this.resolveOptions(options);\n\n _this.listenClick(trigger);\n\n return _this;\n }\n /**\n * Defines if attributes would be resolved using internal setter functions\n * or custom functions that were passed in the constructor.\n * @param {Object} options\n */\n\n\n clipboard_createClass(Clipboard, [{\n key: 'resolveOptions',\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n this.container = clipboard_typeof(options.container) === 'object' ? options.container : document.body;\n }\n /**\n * Adds a click event listener to the passed trigger.\n * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n */\n\n }, {\n key: 'listenClick',\n value: function listenClick(trigger) {\n var _this2 = this;\n\n this.listener = listen_default()(trigger, 'click', function (e) {\n return _this2.onClick(e);\n });\n }\n /**\n * Defines a new `ClipboardAction` on each click event.\n * @param {Event} e\n */\n\n }, {\n key: 'onClick',\n value: function onClick(e) {\n var trigger = e.delegateTarget || e.currentTarget;\n\n if (this.clipboardAction) {\n this.clipboardAction = null;\n }\n\n this.clipboardAction = new clipboard_action({\n action: this.action(trigger),\n target: this.target(trigger),\n text: this.text(trigger),\n container: this.container,\n trigger: trigger,\n emitter: this\n });\n }\n /**\n * Default `action` lookup function.\n * @param {Element} trigger\n */\n\n }, {\n key: 'defaultAction',\n value: function defaultAction(trigger) {\n return getAttributeValue('action', trigger);\n }\n /**\n * Default `target` lookup function.\n * @param {Element} trigger\n */\n\n }, {\n key: 'defaultTarget',\n value: function defaultTarget(trigger) {\n var selector = getAttributeValue('target', trigger);\n\n if (selector) {\n return document.querySelector(selector);\n }\n }\n /**\n * Returns the support of the given action, or all actions if no action is\n * given.\n * @param {String} [action]\n */\n\n }, {\n key: 'defaultText',\n\n /**\n * Default `text` lookup function.\n * @param {Element} trigger\n */\n value: function defaultText(trigger) {\n return getAttributeValue('text', trigger);\n }\n /**\n * Destroy lifecycle.\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n this.listener.destroy();\n\n if (this.clipboardAction) {\n this.clipboardAction.destroy();\n this.clipboardAction = null;\n }\n }\n }], [{\n key: 'isSupported',\n value: function isSupported() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n var actions = typeof action === 'string' ? [action] : action;\n var support = !!document.queryCommandSupported;\n actions.forEach(function (action) {\n support = support && !!document.queryCommandSupported(action);\n });\n return support;\n }\n }]);\n return Clipboard;\n }(tiny_emitter_default.a);\n /**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n\n\n function getAttributeValue(suffix, element) {\n var attribute = 'data-clipboard-' + suffix;\n\n if (!element.hasAttribute(attribute)) {\n return;\n }\n\n return element.getAttribute(attribute);\n }\n /* harmony default export */\n\n\n var clipboard = __webpack_exports__[\"default\"] = clipboard_Clipboard;\n /***/\n }\n /******/\n ])[\"default\"]\n );\n});","require('../modules/es6.symbol');\nrequire('../modules/es6.object.create');\nrequire('../modules/es6.object.define-property');\nrequire('../modules/es6.object.define-properties');\nrequire('../modules/es6.object.get-own-property-descriptor');\nrequire('../modules/es6.object.get-prototype-of');\nrequire('../modules/es6.object.keys');\nrequire('../modules/es6.object.get-own-property-names');\nrequire('../modules/es6.object.freeze');\nrequire('../modules/es6.object.seal');\nrequire('../modules/es6.object.prevent-extensions');\nrequire('../modules/es6.object.is-frozen');\nrequire('../modules/es6.object.is-sealed');\nrequire('../modules/es6.object.is-extensible');\nrequire('../modules/es6.object.assign');\nrequire('../modules/es6.object.is');\nrequire('../modules/es6.object.set-prototype-of');\nrequire('../modules/es6.object.to-string');\nrequire('../modules/es6.function.bind');\nrequire('../modules/es6.function.name');\nrequire('../modules/es6.function.has-instance');\nrequire('../modules/es6.parse-int');\nrequire('../modules/es6.parse-float');\nrequire('../modules/es6.number.constructor');\nrequire('../modules/es6.number.to-fixed');\nrequire('../modules/es6.number.to-precision');\nrequire('../modules/es6.number.epsilon');\nrequire('../modules/es6.number.is-finite');\nrequire('../modules/es6.number.is-integer');\nrequire('../modules/es6.number.is-nan');\nrequire('../modules/es6.number.is-safe-integer');\nrequire('../modules/es6.number.max-safe-integer');\nrequire('../modules/es6.number.min-safe-integer');\nrequire('../modules/es6.number.parse-float');\nrequire('../modules/es6.number.parse-int');\nrequire('../modules/es6.math.acosh');\nrequire('../modules/es6.math.asinh');\nrequire('../modules/es6.math.atanh');\nrequire('../modules/es6.math.cbrt');\nrequire('../modules/es6.math.clz32');\nrequire('../modules/es6.math.cosh');\nrequire('../modules/es6.math.expm1');\nrequire('../modules/es6.math.fround');\nrequire('../modules/es6.math.hypot');\nrequire('../modules/es6.math.imul');\nrequire('../modules/es6.math.log10');\nrequire('../modules/es6.math.log1p');\nrequire('../modules/es6.math.log2');\nrequire('../modules/es6.math.sign');\nrequire('../modules/es6.math.sinh');\nrequire('../modules/es6.math.tanh');\nrequire('../modules/es6.math.trunc');\nrequire('../modules/es6.string.from-code-point');\nrequire('../modules/es6.string.raw');\nrequire('../modules/es6.string.trim');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/es6.string.code-point-at');\nrequire('../modules/es6.string.ends-with');\nrequire('../modules/es6.string.includes');\nrequire('../modules/es6.string.repeat');\nrequire('../modules/es6.string.starts-with');\nrequire('../modules/es6.string.anchor');\nrequire('../modules/es6.string.big');\nrequire('../modules/es6.string.blink');\nrequire('../modules/es6.string.bold');\nrequire('../modules/es6.string.fixed');\nrequire('../modules/es6.string.fontcolor');\nrequire('../modules/es6.string.fontsize');\nrequire('../modules/es6.string.italics');\nrequire('../modules/es6.string.link');\nrequire('../modules/es6.string.small');\nrequire('../modules/es6.string.strike');\nrequire('../modules/es6.string.sub');\nrequire('../modules/es6.string.sup');\nrequire('../modules/es6.date.now');\nrequire('../modules/es6.date.to-json');\nrequire('../modules/es6.date.to-iso-string');\nrequire('../modules/es6.date.to-string');\nrequire('../modules/es6.date.to-primitive');\nrequire('../modules/es6.array.is-array');\nrequire('../modules/es6.array.from');\nrequire('../modules/es6.array.of');\nrequire('../modules/es6.array.join');\nrequire('../modules/es6.array.slice');\nrequire('../modules/es6.array.sort');\nrequire('../modules/es6.array.for-each');\nrequire('../modules/es6.array.map');\nrequire('../modules/es6.array.filter');\nrequire('../modules/es6.array.some');\nrequire('../modules/es6.array.every');\nrequire('../modules/es6.array.reduce');\nrequire('../modules/es6.array.reduce-right');\nrequire('../modules/es6.array.index-of');\nrequire('../modules/es6.array.last-index-of');\nrequire('../modules/es6.array.copy-within');\nrequire('../modules/es6.array.fill');\nrequire('../modules/es6.array.find');\nrequire('../modules/es6.array.find-index');\nrequire('../modules/es6.array.species');\nrequire('../modules/es6.array.iterator');\nrequire('../modules/es6.regexp.constructor');\nrequire('../modules/es6.regexp.exec');\nrequire('../modules/es6.regexp.to-string');\nrequire('../modules/es6.regexp.flags');\nrequire('../modules/es6.regexp.match');\nrequire('../modules/es6.regexp.replace');\nrequire('../modules/es6.regexp.search');\nrequire('../modules/es6.regexp.split');\nrequire('../modules/es6.promise');\nrequire('../modules/es6.map');\nrequire('../modules/es6.set');\nrequire('../modules/es6.weak-map');\nrequire('../modules/es6.weak-set');\nrequire('../modules/es6.typed.array-buffer');\nrequire('../modules/es6.typed.data-view');\nrequire('../modules/es6.typed.int8-array');\nrequire('../modules/es6.typed.uint8-array');\nrequire('../modules/es6.typed.uint8-clamped-array');\nrequire('../modules/es6.typed.int16-array');\nrequire('../modules/es6.typed.uint16-array');\nrequire('../modules/es6.typed.int32-array');\nrequire('../modules/es6.typed.uint32-array');\nrequire('../modules/es6.typed.float32-array');\nrequire('../modules/es6.typed.float64-array');\nrequire('../modules/es6.reflect.apply');\nrequire('../modules/es6.reflect.construct');\nrequire('../modules/es6.reflect.define-property');\nrequire('../modules/es6.reflect.delete-property');\nrequire('../modules/es6.reflect.enumerate');\nrequire('../modules/es6.reflect.get');\nrequire('../modules/es6.reflect.get-own-property-descriptor');\nrequire('../modules/es6.reflect.get-prototype-of');\nrequire('../modules/es6.reflect.has');\nrequire('../modules/es6.reflect.is-extensible');\nrequire('../modules/es6.reflect.own-keys');\nrequire('../modules/es6.reflect.prevent-extensions');\nrequire('../modules/es6.reflect.set');\nrequire('../modules/es6.reflect.set-prototype-of');\nmodule.exports = require('../modules/_core');\n","require('../../modules/es7.array.flat-map');\nmodule.exports = require('../../modules/_core').Array.flatMap;\n","require('../../modules/es7.array.includes');\nmodule.exports = require('../../modules/_core').Array.includes;\n","require('../../modules/es7.object.entries');\nmodule.exports = require('../../modules/_core').Object.entries;\n","require('../../modules/es7.object.get-own-property-descriptors');\nmodule.exports = require('../../modules/_core').Object.getOwnPropertyDescriptors;\n","require('../../modules/es7.object.values');\nmodule.exports = require('../../modules/_core').Object.values;\n","'use strict';\nrequire('../../modules/es6.promise');\nrequire('../../modules/es7.promise.finally');\nmodule.exports = require('../../modules/_core').Promise['finally'];\n","require('../../modules/es7.string.pad-end');\nmodule.exports = require('../../modules/_core').String.padEnd;\n","require('../../modules/es7.string.pad-start');\nmodule.exports = require('../../modules/_core').String.padStart;\n","require('../../modules/es7.string.trim-right');\nmodule.exports = require('../../modules/_core').String.trimRight;\n","require('../../modules/es7.string.trim-left');\nmodule.exports = require('../../modules/_core').String.trimLeft;\n","require('../../modules/es7.symbol.async-iterator');\nmodule.exports = require('../../modules/_wks-ext').f('asyncIterator');\n","require('../modules/es7.global');\nmodule.exports = require('../modules/_core').global;\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var core = module.exports = { version: '2.6.11' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","// https://github.com/tc39/proposal-global\nvar $export = require('./_export');\n\n$export($export.G, { global: require('./_global') });\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","var cof = require('./_cof');\nmodule.exports = function (it, msg) {\n if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg);\n return +it;\n};\n","// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = require('./_wks')('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) require('./_hide')(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n","'use strict';\nvar at = require('./_string-at')(true);\n\n // `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? at(S, index).length : 1);\n};\n","module.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\n'use strict';\nvar toObject = require('./_to-object');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nvar toLength = require('./_to-length');\n\nmodule.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var to = toAbsoluteIndex(target, len);\n var from = toAbsoluteIndex(start, len);\n var end = arguments.length > 2 ? arguments[2] : undefined;\n var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);\n var inc = 1;\n if (from < to && to < from + count) {\n inc = -1;\n from += count - 1;\n to += count - 1;\n }\n while (count-- > 0) {\n if (from in O) O[to] = O[from];\n else delete O[to];\n to += inc;\n from += inc;\n } return O;\n};\n","// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\n'use strict';\nvar toObject = require('./_to-object');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nvar toLength = require('./_to-length');\nmodule.exports = function fill(value /* , start = 0, end = @length */) {\n var O = toObject(this);\n var length = toLength(O.length);\n var aLen = arguments.length;\n var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);\n var end = aLen > 2 ? arguments[2] : undefined;\n var endPos = end === undefined ? length : toAbsoluteIndex(end, length);\n while (endPos > index) O[index++] = value;\n return O;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","var aFunction = require('./_a-function');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar toLength = require('./_to-length');\n\nmodule.exports = function (that, callbackfn, aLen, memo, isRight) {\n aFunction(callbackfn);\n var O = toObject(that);\n var self = IObject(O);\n var length = toLength(O.length);\n var index = isRight ? length - 1 : 0;\n var i = isRight ? -1 : 1;\n if (aLen < 2) for (;;) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (isRight ? index < 0 : length <= index) {\n throw TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;isRight ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","'use strict';\nvar dP = require('./_object-dp').f;\nvar create = require('./_object-create');\nvar redefineAll = require('./_redefine-all');\nvar ctx = require('./_ctx');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar $iterDefine = require('./_iter-define');\nvar step = require('./_iter-step');\nvar setSpecies = require('./_set-species');\nvar DESCRIPTORS = require('./_descriptors');\nvar fastKey = require('./_meta').fastKey;\nvar validate = require('./_validate-collection');\nvar SIZE = DESCRIPTORS ? '_s' : 'size';\n\nvar getEntry = function (that, key) {\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return that._i[index];\n // frozen object case\n for (entry = that._f; entry; entry = entry.n) {\n if (entry.k == key) return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, NAME, '_i');\n that._t = NAME; // collection type\n that._i = create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear() {\n for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {\n entry.r = true;\n if (entry.p) entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function (key) {\n var that = validate(this, NAME);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.n;\n var prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if (prev) prev.n = next;\n if (next) next.p = prev;\n if (that._f == entry) that._f = next;\n if (that._l == entry) that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /* , that = undefined */) {\n validate(this, NAME);\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var entry;\n while (entry = entry ? entry.n : this._f) {\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key) {\n return !!getEntry(validate(this, NAME), key);\n }\n });\n if (DESCRIPTORS) dP(C.prototype, 'size', {\n get: function () {\n return validate(this, NAME)[SIZE];\n }\n });\n return C;\n },\n def: function (that, key, value) {\n var entry = getEntry(that, key);\n var prev, index;\n // change existing entry\n if (entry) {\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if (!that._f) that._f = entry;\n if (prev) prev.n = entry;\n that[SIZE]++;\n // add to index\n if (index !== 'F') that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function (C, NAME, IS_MAP) {\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function (iterated, kind) {\n this._t = validate(iterated, NAME); // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function () {\n var that = this;\n var kind = that._k;\n var entry = that._l;\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n // get next entry\n if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if (kind == 'keys') return step(0, entry.k);\n if (kind == 'values') return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n","'use strict';\nvar redefineAll = require('./_redefine-all');\nvar getWeak = require('./_meta').getWeak;\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar createArrayMethod = require('./_array-methods');\nvar $has = require('./_has');\nvar validate = require('./_validate-collection');\nvar arrayFind = createArrayMethod(5);\nvar arrayFindIndex = createArrayMethod(6);\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (that) {\n return that._l || (that._l = new UncaughtFrozenStore());\n};\nvar UncaughtFrozenStore = function () {\n this.a = [];\n};\nvar findUncaughtFrozen = function (store, key) {\n return arrayFind(store.a, function (it) {\n return it[0] === key;\n });\n};\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.a.push([key, value]);\n },\n 'delete': function (key) {\n var index = arrayFindIndex(this.a, function (it) {\n return it[0] === key;\n });\n if (~index) this.a.splice(index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, NAME, '_i');\n that._t = NAME; // collection type\n that._i = id++; // collection id\n that._l = undefined; // leak store for uncaught frozen objects\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.3.3.2 WeakMap.prototype.delete(key)\n // 23.4.3.3 WeakSet.prototype.delete(value)\n 'delete': function (key) {\n if (!isObject(key)) return false;\n var data = getWeak(key);\n if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);\n return data && $has(data, this._i) && delete data[this._i];\n },\n // 23.3.3.4 WeakMap.prototype.has(key)\n // 23.4.3.4 WeakSet.prototype.has(value)\n has: function has(key) {\n if (!isObject(key)) return false;\n var data = getWeak(key);\n if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);\n return data && $has(data, this._i);\n }\n });\n return C;\n },\n def: function (that, key, value) {\n var data = getWeak(anObject(key), true);\n if (data === true) uncaughtFrozenStore(that).set(key, value);\n else data[that._i] = value;\n return that;\n },\n ufstore: uncaughtFrozenStore\n};\n","'use strict';\nvar global = require('./_global');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar redefineAll = require('./_redefine-all');\nvar meta = require('./_meta');\nvar forOf = require('./_for-of');\nvar anInstance = require('./_an-instance');\nvar isObject = require('./_is-object');\nvar fails = require('./_fails');\nvar $iterDetect = require('./_iter-detect');\nvar setToStringTag = require('./_set-to-string-tag');\nvar inheritIfRequired = require('./_inherit-if-required');\n\nmodule.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {\n var Base = global[NAME];\n var C = Base;\n var ADDER = IS_MAP ? 'set' : 'add';\n var proto = C && C.prototype;\n var O = {};\n var fixMethod = function (KEY) {\n var fn = proto[KEY];\n redefine(proto, KEY,\n KEY == 'delete' ? function (a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'has' ? function has(a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'get' ? function get(a) {\n return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }\n : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }\n );\n };\n if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {\n new C().entries().next();\n }))) {\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n meta.NEED = true;\n } else {\n var instance = new C();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new C();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n if (!ACCEPT_ITERABLES) {\n C = wrapper(function (target, iterable) {\n anInstance(target, C, NAME);\n var that = inheritIfRequired(new Base(), target, C);\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n return that;\n });\n C.prototype = proto;\n proto.constructor = C;\n }\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n // weak collections should not contains .clear method\n if (IS_WEAK && proto.clear) delete proto.clear;\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F * (C != Base), O);\n\n if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n","var core = module.exports = { version: '2.6.11' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","'use strict';\n// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()\nvar fails = require('./_fails');\nvar getTime = Date.prototype.getTime;\nvar $toISOString = Date.prototype.toISOString;\n\nvar lz = function (num) {\n return num > 9 ? num : '0' + num;\n};\n\n// PhantomJS / old WebKit has a broken implementations\nmodule.exports = (fails(function () {\n return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z';\n}) || !fails(function () {\n $toISOString.call(new Date(NaN));\n})) ? function toISOString() {\n if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value');\n var d = this;\n var y = d.getUTCFullYear();\n var m = d.getUTCMilliseconds();\n var s = y < 0 ? '-' : y > 9999 ? '+' : '';\n return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +\n '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +\n 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +\n ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';\n} : $toISOString;\n","'use strict';\nvar anObject = require('./_an-object');\nvar toPrimitive = require('./_to-primitive');\nvar NUMBER = 'number';\n\nmodule.exports = function (hint) {\n if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint');\n return toPrimitive(anObject(this), hint != NUMBER);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var MATCH = require('./_wks')('match');\nmodule.exports = function (KEY) {\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch (e) {\n try {\n re[MATCH] = false;\n return !'/./'[KEY](re);\n } catch (f) { /* empty */ }\n } return true;\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","'use strict';\nrequire('./es6.regexp.exec');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\nvar regexpExec = require('./_regexp-exec');\n\nvar SPECIES = wks('species');\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$') !== '7';\n});\n\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {\n // Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length === 2 && result[0] === 'a' && result[1] === 'b';\n})();\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n re.exec = function () { execCalled = true; return null; };\n if (KEY === 'split') {\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n }\n re[SYMBOL]('');\n return !execCalled;\n }) : undefined;\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||\n (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var fns = exec(\n defined,\n SYMBOL,\n ''[KEY],\n function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n }\n );\n var strfn = fns[0];\n var rxfn = fns[1];\n\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = require('./_an-object');\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","'use strict';\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar isArray = require('./_is-array');\nvar isObject = require('./_is-object');\nvar toLength = require('./_to-length');\nvar ctx = require('./_ctx');\nvar IS_CONCAT_SPREADABLE = require('./_wks')('isConcatSpreadable');\n\nfunction flattenIntoArray(target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? ctx(mapper, thisArg, 3) : false;\n var element, spreadable;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n spreadable = false;\n if (isObject(element)) {\n spreadable = element[IS_CONCAT_SPREADABLE];\n spreadable = spreadable !== undefined ? !!spreadable : isArray(element);\n }\n\n if (spreadable && depth > 0) {\n targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;\n } else {\n if (targetIndex >= 0x1fffffffffffff) throw TypeError();\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n}\n\nmodule.exports = flattenIntoArray;\n","var ctx = require('./_ctx');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar getIterFn = require('./core.get-iterator-method');\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","// 20.1.2.3 Number.isInteger(number)\nvar isObject = require('./_is-object');\nvar floor = Math.floor;\nmodule.exports = function isInteger(it) {\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// 7.2.8 IsRegExp(argument)\nvar isObject = require('./_is-object');\nvar cof = require('./_cof');\nvar MATCH = require('./_wks')('match');\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n","// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n","module.exports = {};\n","module.exports = false;\n","// 20.2.2.14 Math.expm1(x)\nvar $expm1 = Math.expm1;\nmodule.exports = (!$expm1\n // Old FF bug\n || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168\n // Tor Browser bug\n || $expm1(-2e-17) != -2e-17\n) ? function expm1(x) {\n return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;\n} : $expm1;\n","// 20.2.2.16 Math.fround(x)\nvar sign = require('./_math-sign');\nvar pow = Math.pow;\nvar EPSILON = pow(2, -52);\nvar EPSILON32 = pow(2, -23);\nvar MAX32 = pow(2, 127) * (2 - EPSILON32);\nvar MIN32 = pow(2, -126);\n\nvar roundTiesToEven = function (n) {\n return n + 1 / EPSILON - 1 / EPSILON;\n};\n\nmodule.exports = Math.fround || function fround(x) {\n var $abs = Math.abs(x);\n var $sign = sign(x);\n var a, result;\n if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;\n a = (1 + EPSILON32 / EPSILON) * $abs;\n result = a - (a - $abs);\n // eslint-disable-next-line no-self-compare\n if (result > MAX32 || result != result) return $sign * Infinity;\n return $sign * result;\n};\n","// 20.2.2.20 Math.log1p(x)\nmodule.exports = Math.log1p || function log1p(x) {\n return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);\n};\n","// 20.2.2.28 Math.sign(x)\nmodule.exports = Math.sign || function sign(x) {\n // eslint-disable-next-line no-self-compare\n return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;\n};\n","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n","var global = require('./_global');\nvar macrotask = require('./_task').set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = require('./_cof')(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339\n } else if (Observer && !(global.navigator && global.navigator.standalone)) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n var promise = Promise.resolve(undefined);\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n","'use strict';\n// 25.4.1.5 NewPromiseCapability(C)\nvar aFunction = require('./_a-function');\n\nfunction PromiseCapability(C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n}\n\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","exports.f = Object.getOwnPropertySymbols;\n","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","exports.f = {}.propertyIsEnumerable;\n","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n","var DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar toIObject = require('./_to-iobject');\nvar isEnum = require('./_object-pie').f;\nmodule.exports = function (isEntries) {\n return function (it) {\n var O = toIObject(it);\n var keys = getKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || isEnum.call(O, key)) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n","// all object keys, includes non-enumerable and symbols\nvar gOPN = require('./_object-gopn');\nvar gOPS = require('./_object-gops');\nvar anObject = require('./_an-object');\nvar Reflect = require('./_global').Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {\n var keys = gOPN.f(anObject(it));\n var getSymbols = gOPS.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n","var $parseFloat = require('./_global').parseFloat;\nvar $trim = require('./_string-trim').trim;\n\nmodule.exports = 1 / $parseFloat(require('./_string-ws') + '-0') !== -Infinity ? function parseFloat(str) {\n var string = $trim(String(str), 3);\n var result = $parseFloat(string);\n return result === 0 && string.charAt(0) == '-' ? -0 : result;\n} : $parseFloat;\n","var $parseInt = require('./_global').parseInt;\nvar $trim = require('./_string-trim').trim;\nvar ws = require('./_string-ws');\nvar hex = /^[-+]?0[xX]/;\n\nmodule.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {\n var string = $trim(String(str), 3);\n return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));\n} : $parseInt;\n","module.exports = function (exec) {\n try {\n return { e: false, v: exec() };\n } catch (e) {\n return { e: true, v: e };\n }\n};\n","var anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar newPromiseCapability = require('./_new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var redefine = require('./_redefine');\nmodule.exports = function (target, src, safe) {\n for (var key in src) redefine(target, key, src[key], safe);\n return target;\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","'use strict';\n\nvar classof = require('./_classof');\nvar builtinExec = RegExp.prototype.exec;\n\n // `RegExpExec` abstract operation\n// https://tc39.github.io/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n if (typeof result !== 'object') {\n throw new TypeError('RegExp exec method returned something other than an Object or null');\n }\n return result;\n }\n if (classof(R) !== 'RegExp') {\n throw new TypeError('RegExp#exec called on incompatible receiver');\n }\n return builtinExec.call(R, S);\n};\n","'use strict';\n\nvar regexpFlags = require('./_flags');\n\nvar nativeExec = RegExp.prototype.exec;\n// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace = String.prototype.replace;\n\nvar patchedExec = nativeExec;\n\nvar LAST_INDEX = 'lastIndex';\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/,\n re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;\n})();\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;\n\nif (PATCH) {\n patchedExec = function exec(str) {\n var re = this;\n var lastIndex, reCopy, match, i;\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + re.source + '$(?!\\\\s)', regexpFlags.call(re));\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];\n\n match = nativeExec.call(re, str);\n\n if (UPDATES_LAST_INDEX_WRONG && match) {\n re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n // eslint-disable-next-line no-loop-func\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","// 7.2.9 SameValue(x, y)\nmodule.exports = Object.is || function is(x, y) {\n // eslint-disable-next-line no-self-compare\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","'use strict';\nvar global = require('./_global');\nvar dP = require('./_object-dp');\nvar DESCRIPTORS = require('./_descriptors');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (KEY) {\n var C = global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n","// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = require('./_an-object');\nvar aFunction = require('./_a-function');\nvar SPECIES = require('./_wks')('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = require('./_is-regexp');\nvar defined = require('./_defined');\n\nmodule.exports = function (that, searchString, NAME) {\n if (isRegExp(searchString)) throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(defined(that));\n};\n","var $export = require('./_export');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar quot = /\"/g;\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML = function (string, tag, attribute, value) {\n var S = String(defined(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '"') + '\"';\n return p1 + '>' + S + '' + tag + '>';\n};\nmodule.exports = function (NAME, exec) {\n var O = {};\n O[NAME] = exec(createHTML);\n $export($export.P + $export.F * fails(function () {\n var test = ''[NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n }), 'String', O);\n};\n","// https://github.com/tc39/proposal-string-pad-start-end\nvar toLength = require('./_to-length');\nvar repeat = require('./_string-repeat');\nvar defined = require('./_defined');\n\nmodule.exports = function (that, maxLength, fillString, left) {\n var S = String(defined(that));\n var stringLength = S.length;\n var fillStr = fillString === undefined ? ' ' : String(fillString);\n var intMaxLength = toLength(maxLength);\n if (intMaxLength <= stringLength || fillStr == '') return S;\n var fillLen = intMaxLength - stringLength;\n var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));\n if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);\n return left ? stringFiller + S : S + stringFiller;\n};\n","'use strict';\nvar toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n\nmodule.exports = function repeat(count) {\n var str = String(defined(this));\n var res = '';\n var n = toInteger(count);\n if (n < 0 || n == Infinity) throw RangeError(\"Count can't be negative\");\n for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str;\n return res;\n};\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var ctx = require('./_ctx');\nvar invoke = require('./_invoke');\nvar html = require('./_html');\nvar cel = require('./_dom-create');\nvar global = require('./_global');\nvar process = global.process;\nvar setTask = global.setImmediate;\nvar clearTask = global.clearImmediate;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function () {\n var id = +this;\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function (event) {\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (require('./_cof')(process) == 'process') {\n defer = function (id) {\n process.nextTick(ctx(run, id, 1));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if (MessageChannel) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function (id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function (id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","// https://tc39.github.io/ecma262/#sec-toindex\nvar toInteger = require('./_to-integer');\nvar toLength = require('./_to-length');\nmodule.exports = function (it) {\n if (it === undefined) return 0;\n var number = toInteger(it);\n var length = toLength(number);\n if (number !== length) throw RangeError('Wrong length!');\n return length;\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nif (require('./_descriptors')) {\n var LIBRARY = require('./_library');\n var global = require('./_global');\n var fails = require('./_fails');\n var $export = require('./_export');\n var $typed = require('./_typed');\n var $buffer = require('./_typed-buffer');\n var ctx = require('./_ctx');\n var anInstance = require('./_an-instance');\n var propertyDesc = require('./_property-desc');\n var hide = require('./_hide');\n var redefineAll = require('./_redefine-all');\n var toInteger = require('./_to-integer');\n var toLength = require('./_to-length');\n var toIndex = require('./_to-index');\n var toAbsoluteIndex = require('./_to-absolute-index');\n var toPrimitive = require('./_to-primitive');\n var has = require('./_has');\n var classof = require('./_classof');\n var isObject = require('./_is-object');\n var toObject = require('./_to-object');\n var isArrayIter = require('./_is-array-iter');\n var create = require('./_object-create');\n var getPrototypeOf = require('./_object-gpo');\n var gOPN = require('./_object-gopn').f;\n var getIterFn = require('./core.get-iterator-method');\n var uid = require('./_uid');\n var wks = require('./_wks');\n var createArrayMethod = require('./_array-methods');\n var createArrayIncludes = require('./_array-includes');\n var speciesConstructor = require('./_species-constructor');\n var ArrayIterators = require('./es6.array.iterator');\n var Iterators = require('./_iterators');\n var $iterDetect = require('./_iter-detect');\n var setSpecies = require('./_set-species');\n var arrayFill = require('./_array-fill');\n var arrayCopyWithin = require('./_array-copy-within');\n var $DP = require('./_object-dp');\n var $GOPD = require('./_object-gopd');\n var dP = $DP.f;\n var gOPD = $GOPD.f;\n var RangeError = global.RangeError;\n var TypeError = global.TypeError;\n var Uint8Array = global.Uint8Array;\n var ARRAY_BUFFER = 'ArrayBuffer';\n var SHARED_BUFFER = 'Shared' + ARRAY_BUFFER;\n var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';\n var PROTOTYPE = 'prototype';\n var ArrayProto = Array[PROTOTYPE];\n var $ArrayBuffer = $buffer.ArrayBuffer;\n var $DataView = $buffer.DataView;\n var arrayForEach = createArrayMethod(0);\n var arrayFilter = createArrayMethod(2);\n var arraySome = createArrayMethod(3);\n var arrayEvery = createArrayMethod(4);\n var arrayFind = createArrayMethod(5);\n var arrayFindIndex = createArrayMethod(6);\n var arrayIncludes = createArrayIncludes(true);\n var arrayIndexOf = createArrayIncludes(false);\n var arrayValues = ArrayIterators.values;\n var arrayKeys = ArrayIterators.keys;\n var arrayEntries = ArrayIterators.entries;\n var arrayLastIndexOf = ArrayProto.lastIndexOf;\n var arrayReduce = ArrayProto.reduce;\n var arrayReduceRight = ArrayProto.reduceRight;\n var arrayJoin = ArrayProto.join;\n var arraySort = ArrayProto.sort;\n var arraySlice = ArrayProto.slice;\n var arrayToString = ArrayProto.toString;\n var arrayToLocaleString = ArrayProto.toLocaleString;\n var ITERATOR = wks('iterator');\n var TAG = wks('toStringTag');\n var TYPED_CONSTRUCTOR = uid('typed_constructor');\n var DEF_CONSTRUCTOR = uid('def_constructor');\n var ALL_CONSTRUCTORS = $typed.CONSTR;\n var TYPED_ARRAY = $typed.TYPED;\n var VIEW = $typed.VIEW;\n var WRONG_LENGTH = 'Wrong length!';\n\n var $map = createArrayMethod(1, function (O, length) {\n return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length);\n });\n\n var LITTLE_ENDIAN = fails(function () {\n // eslint-disable-next-line no-undef\n return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;\n });\n\n var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function () {\n new Uint8Array(1).set({});\n });\n\n var toOffset = function (it, BYTES) {\n var offset = toInteger(it);\n if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!');\n return offset;\n };\n\n var validate = function (it) {\n if (isObject(it) && TYPED_ARRAY in it) return it;\n throw TypeError(it + ' is not a typed array!');\n };\n\n var allocate = function (C, length) {\n if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) {\n throw TypeError('It is not a typed array constructor!');\n } return new C(length);\n };\n\n var speciesFromList = function (O, list) {\n return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list);\n };\n\n var fromList = function (C, list) {\n var index = 0;\n var length = list.length;\n var result = allocate(C, length);\n while (length > index) result[index] = list[index++];\n return result;\n };\n\n var addGetter = function (it, key, internal) {\n dP(it, key, { get: function () { return this._d[internal]; } });\n };\n\n var $from = function from(source /* , mapfn, thisArg */) {\n var O = toObject(source);\n var aLen = arguments.length;\n var mapfn = aLen > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iterFn = getIterFn(O);\n var i, length, values, result, step, iterator;\n if (iterFn != undefined && !isArrayIter(iterFn)) {\n for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) {\n values.push(step.value);\n } O = values;\n }\n if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2);\n for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) {\n result[i] = mapping ? mapfn(O[i], i) : O[i];\n }\n return result;\n };\n\n var $of = function of(/* ...items */) {\n var index = 0;\n var length = arguments.length;\n var result = allocate(this, length);\n while (length > index) result[index] = arguments[index++];\n return result;\n };\n\n // iOS Safari 6.x fails here\n var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); });\n\n var $toLocaleString = function toLocaleString() {\n return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments);\n };\n\n var proto = {\n copyWithin: function copyWithin(target, start /* , end */) {\n return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined);\n },\n every: function every(callbackfn /* , thisArg */) {\n return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars\n return arrayFill.apply(validate(this), arguments);\n },\n filter: function filter(callbackfn /* , thisArg */) {\n return speciesFromList(this, arrayFilter(validate(this), callbackfn,\n arguments.length > 1 ? arguments[1] : undefined));\n },\n find: function find(predicate /* , thisArg */) {\n return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n },\n findIndex: function findIndex(predicate /* , thisArg */) {\n return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n },\n forEach: function forEach(callbackfn /* , thisArg */) {\n arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n indexOf: function indexOf(searchElement /* , fromIndex */) {\n return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);\n },\n includes: function includes(searchElement /* , fromIndex */) {\n return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);\n },\n join: function join(separator) { // eslint-disable-line no-unused-vars\n return arrayJoin.apply(validate(this), arguments);\n },\n lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars\n return arrayLastIndexOf.apply(validate(this), arguments);\n },\n map: function map(mapfn /* , thisArg */) {\n return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars\n return arrayReduce.apply(validate(this), arguments);\n },\n reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars\n return arrayReduceRight.apply(validate(this), arguments);\n },\n reverse: function reverse() {\n var that = this;\n var length = validate(that).length;\n var middle = Math.floor(length / 2);\n var index = 0;\n var value;\n while (index < middle) {\n value = that[index];\n that[index++] = that[--length];\n that[length] = value;\n } return that;\n },\n some: function some(callbackfn /* , thisArg */) {\n return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n sort: function sort(comparefn) {\n return arraySort.call(validate(this), comparefn);\n },\n subarray: function subarray(begin, end) {\n var O = validate(this);\n var length = O.length;\n var $begin = toAbsoluteIndex(begin, length);\n return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(\n O.buffer,\n O.byteOffset + $begin * O.BYTES_PER_ELEMENT,\n toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin)\n );\n }\n };\n\n var $slice = function slice(start, end) {\n return speciesFromList(this, arraySlice.call(validate(this), start, end));\n };\n\n var $set = function set(arrayLike /* , offset */) {\n validate(this);\n var offset = toOffset(arguments[1], 1);\n var length = this.length;\n var src = toObject(arrayLike);\n var len = toLength(src.length);\n var index = 0;\n if (len + offset > length) throw RangeError(WRONG_LENGTH);\n while (index < len) this[offset + index] = src[index++];\n };\n\n var $iterators = {\n entries: function entries() {\n return arrayEntries.call(validate(this));\n },\n keys: function keys() {\n return arrayKeys.call(validate(this));\n },\n values: function values() {\n return arrayValues.call(validate(this));\n }\n };\n\n var isTAIndex = function (target, key) {\n return isObject(target)\n && target[TYPED_ARRAY]\n && typeof key != 'symbol'\n && key in target\n && String(+key) == String(key);\n };\n var $getDesc = function getOwnPropertyDescriptor(target, key) {\n return isTAIndex(target, key = toPrimitive(key, true))\n ? propertyDesc(2, target[key])\n : gOPD(target, key);\n };\n var $setDesc = function defineProperty(target, key, desc) {\n if (isTAIndex(target, key = toPrimitive(key, true))\n && isObject(desc)\n && has(desc, 'value')\n && !has(desc, 'get')\n && !has(desc, 'set')\n // TODO: add validation descriptor w/o calling accessors\n && !desc.configurable\n && (!has(desc, 'writable') || desc.writable)\n && (!has(desc, 'enumerable') || desc.enumerable)\n ) {\n target[key] = desc.value;\n return target;\n } return dP(target, key, desc);\n };\n\n if (!ALL_CONSTRUCTORS) {\n $GOPD.f = $getDesc;\n $DP.f = $setDesc;\n }\n\n $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', {\n getOwnPropertyDescriptor: $getDesc,\n defineProperty: $setDesc\n });\n\n if (fails(function () { arrayToString.call({}); })) {\n arrayToString = arrayToLocaleString = function toString() {\n return arrayJoin.call(this);\n };\n }\n\n var $TypedArrayPrototype$ = redefineAll({}, proto);\n redefineAll($TypedArrayPrototype$, $iterators);\n hide($TypedArrayPrototype$, ITERATOR, $iterators.values);\n redefineAll($TypedArrayPrototype$, {\n slice: $slice,\n set: $set,\n constructor: function () { /* noop */ },\n toString: arrayToString,\n toLocaleString: $toLocaleString\n });\n addGetter($TypedArrayPrototype$, 'buffer', 'b');\n addGetter($TypedArrayPrototype$, 'byteOffset', 'o');\n addGetter($TypedArrayPrototype$, 'byteLength', 'l');\n addGetter($TypedArrayPrototype$, 'length', 'e');\n dP($TypedArrayPrototype$, TAG, {\n get: function () { return this[TYPED_ARRAY]; }\n });\n\n // eslint-disable-next-line max-statements\n module.exports = function (KEY, BYTES, wrapper, CLAMPED) {\n CLAMPED = !!CLAMPED;\n var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array';\n var GETTER = 'get' + KEY;\n var SETTER = 'set' + KEY;\n var TypedArray = global[NAME];\n var Base = TypedArray || {};\n var TAC = TypedArray && getPrototypeOf(TypedArray);\n var FORCED = !TypedArray || !$typed.ABV;\n var O = {};\n var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE];\n var getter = function (that, index) {\n var data = that._d;\n return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN);\n };\n var setter = function (that, index, value) {\n var data = that._d;\n if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff;\n data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN);\n };\n var addElement = function (that, index) {\n dP(that, index, {\n get: function () {\n return getter(this, index);\n },\n set: function (value) {\n return setter(this, index, value);\n },\n enumerable: true\n });\n };\n if (FORCED) {\n TypedArray = wrapper(function (that, data, $offset, $length) {\n anInstance(that, TypedArray, NAME, '_d');\n var index = 0;\n var offset = 0;\n var buffer, byteLength, length, klass;\n if (!isObject(data)) {\n length = toIndex(data);\n byteLength = length * BYTES;\n buffer = new $ArrayBuffer(byteLength);\n } else if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {\n buffer = data;\n offset = toOffset($offset, BYTES);\n var $len = data.byteLength;\n if ($length === undefined) {\n if ($len % BYTES) throw RangeError(WRONG_LENGTH);\n byteLength = $len - offset;\n if (byteLength < 0) throw RangeError(WRONG_LENGTH);\n } else {\n byteLength = toLength($length) * BYTES;\n if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH);\n }\n length = byteLength / BYTES;\n } else if (TYPED_ARRAY in data) {\n return fromList(TypedArray, data);\n } else {\n return $from.call(TypedArray, data);\n }\n hide(that, '_d', {\n b: buffer,\n o: offset,\n l: byteLength,\n e: length,\n v: new $DataView(buffer)\n });\n while (index < length) addElement(that, index++);\n });\n TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$);\n hide(TypedArrayPrototype, 'constructor', TypedArray);\n } else if (!fails(function () {\n TypedArray(1);\n }) || !fails(function () {\n new TypedArray(-1); // eslint-disable-line no-new\n }) || !$iterDetect(function (iter) {\n new TypedArray(); // eslint-disable-line no-new\n new TypedArray(null); // eslint-disable-line no-new\n new TypedArray(1.5); // eslint-disable-line no-new\n new TypedArray(iter); // eslint-disable-line no-new\n }, true)) {\n TypedArray = wrapper(function (that, data, $offset, $length) {\n anInstance(that, TypedArray, NAME);\n var klass;\n // `ws` module bug, temporarily remove validation length for Uint8Array\n // https://github.com/websockets/ws/pull/645\n if (!isObject(data)) return new Base(toIndex(data));\n if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {\n return $length !== undefined\n ? new Base(data, toOffset($offset, BYTES), $length)\n : $offset !== undefined\n ? new Base(data, toOffset($offset, BYTES))\n : new Base(data);\n }\n if (TYPED_ARRAY in data) return fromList(TypedArray, data);\n return $from.call(TypedArray, data);\n });\n arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) {\n if (!(key in TypedArray)) hide(TypedArray, key, Base[key]);\n });\n TypedArray[PROTOTYPE] = TypedArrayPrototype;\n if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray;\n }\n var $nativeIterator = TypedArrayPrototype[ITERATOR];\n var CORRECT_ITER_NAME = !!$nativeIterator\n && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined);\n var $iterator = $iterators.values;\n hide(TypedArray, TYPED_CONSTRUCTOR, true);\n hide(TypedArrayPrototype, TYPED_ARRAY, NAME);\n hide(TypedArrayPrototype, VIEW, true);\n hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray);\n\n if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) {\n dP(TypedArrayPrototype, TAG, {\n get: function () { return NAME; }\n });\n }\n\n O[NAME] = TypedArray;\n\n $export($export.G + $export.W + $export.F * (TypedArray != Base), O);\n\n $export($export.S, NAME, {\n BYTES_PER_ELEMENT: BYTES\n });\n\n $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, {\n from: $from,\n of: $of\n });\n\n if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);\n\n $export($export.P, NAME, proto);\n\n setSpecies(NAME);\n\n $export($export.P + $export.F * FORCED_SET, NAME, { set: $set });\n\n $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators);\n\n if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString;\n\n $export($export.P + $export.F * fails(function () {\n new TypedArray(1).slice();\n }), NAME, { slice: $slice });\n\n $export($export.P + $export.F * (fails(function () {\n return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString();\n }) || !fails(function () {\n TypedArrayPrototype.toLocaleString.call([1, 2]);\n })), NAME, { toLocaleString: $toLocaleString });\n\n Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator;\n if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator);\n };\n} else module.exports = function () { /* empty */ };\n","'use strict';\nvar global = require('./_global');\nvar DESCRIPTORS = require('./_descriptors');\nvar LIBRARY = require('./_library');\nvar $typed = require('./_typed');\nvar hide = require('./_hide');\nvar redefineAll = require('./_redefine-all');\nvar fails = require('./_fails');\nvar anInstance = require('./_an-instance');\nvar toInteger = require('./_to-integer');\nvar toLength = require('./_to-length');\nvar toIndex = require('./_to-index');\nvar gOPN = require('./_object-gopn').f;\nvar dP = require('./_object-dp').f;\nvar arrayFill = require('./_array-fill');\nvar setToStringTag = require('./_set-to-string-tag');\nvar ARRAY_BUFFER = 'ArrayBuffer';\nvar DATA_VIEW = 'DataView';\nvar PROTOTYPE = 'prototype';\nvar WRONG_LENGTH = 'Wrong length!';\nvar WRONG_INDEX = 'Wrong index!';\nvar $ArrayBuffer = global[ARRAY_BUFFER];\nvar $DataView = global[DATA_VIEW];\nvar Math = global.Math;\nvar RangeError = global.RangeError;\n// eslint-disable-next-line no-shadow-restricted-names\nvar Infinity = global.Infinity;\nvar BaseBuffer = $ArrayBuffer;\nvar abs = Math.abs;\nvar pow = Math.pow;\nvar floor = Math.floor;\nvar log = Math.log;\nvar LN2 = Math.LN2;\nvar BUFFER = 'buffer';\nvar BYTE_LENGTH = 'byteLength';\nvar BYTE_OFFSET = 'byteOffset';\nvar $BUFFER = DESCRIPTORS ? '_b' : BUFFER;\nvar $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH;\nvar $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET;\n\n// IEEE754 conversions based on https://github.com/feross/ieee754\nfunction packIEEE754(value, mLen, nBytes) {\n var buffer = new Array(nBytes);\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0;\n var i = 0;\n var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;\n var e, m, c;\n value = abs(value);\n // eslint-disable-next-line no-self-compare\n if (value != value || value === Infinity) {\n // eslint-disable-next-line no-self-compare\n m = value != value ? 1 : 0;\n e = eMax;\n } else {\n e = floor(log(value) / LN2);\n if (value * (c = pow(2, -e)) < 1) {\n e--;\n c *= 2;\n }\n if (e + eBias >= 1) {\n value += rt / c;\n } else {\n value += rt * pow(2, 1 - eBias);\n }\n if (value * c >= 2) {\n e++;\n c /= 2;\n }\n if (e + eBias >= eMax) {\n m = 0;\n e = eMax;\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * pow(2, eBias - 1) * pow(2, mLen);\n e = 0;\n }\n }\n for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8);\n e = e << mLen | m;\n eLen += mLen;\n for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8);\n buffer[--i] |= s * 128;\n return buffer;\n}\nfunction unpackIEEE754(buffer, mLen, nBytes) {\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var nBits = eLen - 7;\n var i = nBytes - 1;\n var s = buffer[i--];\n var e = s & 127;\n var m;\n s >>= 7;\n for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8);\n m = e & (1 << -nBits) - 1;\n e >>= -nBits;\n nBits += mLen;\n for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8);\n if (e === 0) {\n e = 1 - eBias;\n } else if (e === eMax) {\n return m ? NaN : s ? -Infinity : Infinity;\n } else {\n m = m + pow(2, mLen);\n e = e - eBias;\n } return (s ? -1 : 1) * m * pow(2, e - mLen);\n}\n\nfunction unpackI32(bytes) {\n return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0];\n}\nfunction packI8(it) {\n return [it & 0xff];\n}\nfunction packI16(it) {\n return [it & 0xff, it >> 8 & 0xff];\n}\nfunction packI32(it) {\n return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff];\n}\nfunction packF64(it) {\n return packIEEE754(it, 52, 8);\n}\nfunction packF32(it) {\n return packIEEE754(it, 23, 4);\n}\n\nfunction addGetter(C, key, internal) {\n dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } });\n}\n\nfunction get(view, bytes, index, isLittleEndian) {\n var numIndex = +index;\n var intIndex = toIndex(numIndex);\n if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);\n var store = view[$BUFFER]._b;\n var start = intIndex + view[$OFFSET];\n var pack = store.slice(start, start + bytes);\n return isLittleEndian ? pack : pack.reverse();\n}\nfunction set(view, bytes, index, conversion, value, isLittleEndian) {\n var numIndex = +index;\n var intIndex = toIndex(numIndex);\n if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);\n var store = view[$BUFFER]._b;\n var start = intIndex + view[$OFFSET];\n var pack = conversion(+value);\n for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1];\n}\n\nif (!$typed.ABV) {\n $ArrayBuffer = function ArrayBuffer(length) {\n anInstance(this, $ArrayBuffer, ARRAY_BUFFER);\n var byteLength = toIndex(length);\n this._b = arrayFill.call(new Array(byteLength), 0);\n this[$LENGTH] = byteLength;\n };\n\n $DataView = function DataView(buffer, byteOffset, byteLength) {\n anInstance(this, $DataView, DATA_VIEW);\n anInstance(buffer, $ArrayBuffer, DATA_VIEW);\n var bufferLength = buffer[$LENGTH];\n var offset = toInteger(byteOffset);\n if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!');\n byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);\n if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);\n this[$BUFFER] = buffer;\n this[$OFFSET] = offset;\n this[$LENGTH] = byteLength;\n };\n\n if (DESCRIPTORS) {\n addGetter($ArrayBuffer, BYTE_LENGTH, '_l');\n addGetter($DataView, BUFFER, '_b');\n addGetter($DataView, BYTE_LENGTH, '_l');\n addGetter($DataView, BYTE_OFFSET, '_o');\n }\n\n redefineAll($DataView[PROTOTYPE], {\n getInt8: function getInt8(byteOffset) {\n return get(this, 1, byteOffset)[0] << 24 >> 24;\n },\n getUint8: function getUint8(byteOffset) {\n return get(this, 1, byteOffset)[0];\n },\n getInt16: function getInt16(byteOffset /* , littleEndian */) {\n var bytes = get(this, 2, byteOffset, arguments[1]);\n return (bytes[1] << 8 | bytes[0]) << 16 >> 16;\n },\n getUint16: function getUint16(byteOffset /* , littleEndian */) {\n var bytes = get(this, 2, byteOffset, arguments[1]);\n return bytes[1] << 8 | bytes[0];\n },\n getInt32: function getInt32(byteOffset /* , littleEndian */) {\n return unpackI32(get(this, 4, byteOffset, arguments[1]));\n },\n getUint32: function getUint32(byteOffset /* , littleEndian */) {\n return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0;\n },\n getFloat32: function getFloat32(byteOffset /* , littleEndian */) {\n return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4);\n },\n getFloat64: function getFloat64(byteOffset /* , littleEndian */) {\n return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8);\n },\n setInt8: function setInt8(byteOffset, value) {\n set(this, 1, byteOffset, packI8, value);\n },\n setUint8: function setUint8(byteOffset, value) {\n set(this, 1, byteOffset, packI8, value);\n },\n setInt16: function setInt16(byteOffset, value /* , littleEndian */) {\n set(this, 2, byteOffset, packI16, value, arguments[2]);\n },\n setUint16: function setUint16(byteOffset, value /* , littleEndian */) {\n set(this, 2, byteOffset, packI16, value, arguments[2]);\n },\n setInt32: function setInt32(byteOffset, value /* , littleEndian */) {\n set(this, 4, byteOffset, packI32, value, arguments[2]);\n },\n setUint32: function setUint32(byteOffset, value /* , littleEndian */) {\n set(this, 4, byteOffset, packI32, value, arguments[2]);\n },\n setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {\n set(this, 4, byteOffset, packF32, value, arguments[2]);\n },\n setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {\n set(this, 8, byteOffset, packF64, value, arguments[2]);\n }\n });\n} else {\n if (!fails(function () {\n $ArrayBuffer(1);\n }) || !fails(function () {\n new $ArrayBuffer(-1); // eslint-disable-line no-new\n }) || fails(function () {\n new $ArrayBuffer(); // eslint-disable-line no-new\n new $ArrayBuffer(1.5); // eslint-disable-line no-new\n new $ArrayBuffer(NaN); // eslint-disable-line no-new\n return $ArrayBuffer.name != ARRAY_BUFFER;\n })) {\n $ArrayBuffer = function ArrayBuffer(length) {\n anInstance(this, $ArrayBuffer);\n return new BaseBuffer(toIndex(length));\n };\n var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE];\n for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) {\n if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key, BaseBuffer[key]);\n }\n if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer;\n }\n // iOS Safari 7.x bug\n var view = new $DataView(new $ArrayBuffer(2));\n var $setInt8 = $DataView[PROTOTYPE].setInt8;\n view.setInt8(0, 2147483648);\n view.setInt8(1, 2147483649);\n if (view.getInt8(0) || !view.getInt8(1)) redefineAll($DataView[PROTOTYPE], {\n setInt8: function setInt8(byteOffset, value) {\n $setInt8.call(this, byteOffset, value << 24 >> 24);\n },\n setUint8: function setUint8(byteOffset, value) {\n $setInt8.call(this, byteOffset, value << 24 >> 24);\n }\n }, true);\n}\nsetToStringTag($ArrayBuffer, ARRAY_BUFFER);\nsetToStringTag($DataView, DATA_VIEW);\nhide($DataView[PROTOTYPE], $typed.VIEW, true);\nexports[ARRAY_BUFFER] = $ArrayBuffer;\nexports[DATA_VIEW] = $DataView;\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar uid = require('./_uid');\nvar TYPED = uid('typed_array');\nvar VIEW = uid('view');\nvar ABV = !!(global.ArrayBuffer && global.DataView);\nvar CONSTR = ABV;\nvar i = 0;\nvar l = 9;\nvar Typed;\n\nvar TypedArrayConstructors = (\n 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'\n).split(',');\n\nwhile (i < l) {\n if (Typed = global[TypedArrayConstructors[i++]]) {\n hide(Typed.prototype, TYPED, true);\n hide(Typed.prototype, VIEW, true);\n } else CONSTR = false;\n}\n\nmodule.exports = {\n ABV: ABV,\n CONSTR: CONSTR,\n TYPED: TYPED,\n VIEW: VIEW\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var global = require('./_global');\nvar navigator = global.navigator;\n\nmodule.exports = navigator && navigator.userAgent || '';\n","var isObject = require('./_is-object');\nmodule.exports = function (it, TYPE) {\n if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');\n return it;\n};\n","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n","exports.f = require('./_wks');\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\nvar $export = require('./_export');\n\n$export($export.P, 'Array', { copyWithin: require('./_array-copy-within') });\n\nrequire('./_add-to-unscopables')('copyWithin');\n","'use strict';\nvar $export = require('./_export');\nvar $every = require('./_array-methods')(4);\n\n$export($export.P + $export.F * !require('./_strict-method')([].every, true), 'Array', {\n // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])\n every: function every(callbackfn /* , thisArg */) {\n return $every(this, callbackfn, arguments[1]);\n }\n});\n","// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\nvar $export = require('./_export');\n\n$export($export.P, 'Array', { fill: require('./_array-fill') });\n\nrequire('./_add-to-unscopables')('fill');\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","'use strict';\n// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(6);\nvar KEY = 'findIndex';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n findIndex: function findIndex(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n","'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n","'use strict';\nvar $export = require('./_export');\nvar $forEach = require('./_array-methods')(0);\nvar STRICT = require('./_strict-method')([].forEach, true);\n\n$export($export.P + $export.F * !STRICT, 'Array', {\n // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])\n forEach: function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments[1]);\n }\n});\n","'use strict';\nvar ctx = require('./_ctx');\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar toLength = require('./_to-length');\nvar createProperty = require('./_create-property');\nvar getIterFn = require('./core.get-iterator-method');\n\n$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var aLen = arguments.length;\n var mapfn = aLen > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var index = 0;\n var iterFn = getIterFn(O);\n var length, result, step, iterator;\n if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {\n createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);\n }\n } else {\n length = toLength(O.length);\n for (result = new C(length); length > index; index++) {\n createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);\n }\n }\n result.length = index;\n return result;\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)\nvar $export = require('./_export');\n\n$export($export.S, 'Array', { isArray: require('./_is-array') });\n","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","'use strict';\n// 22.1.3.13 Array.prototype.join(separator)\nvar $export = require('./_export');\nvar toIObject = require('./_to-iobject');\nvar arrayJoin = [].join;\n\n// fallback for not array-like strings\n$export($export.P + $export.F * (require('./_iobject') != Object || !require('./_strict-method')(arrayJoin)), 'Array', {\n join: function join(separator) {\n return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar toIObject = require('./_to-iobject');\nvar toInteger = require('./_to-integer');\nvar toLength = require('./_to-length');\nvar $native = [].lastIndexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])\n lastIndexOf: function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {\n // convert -0 to +0\n if (NEGATIVE_ZERO) return $native.apply(this, arguments) || 0;\n var O = toIObject(this);\n var length = toLength(O.length);\n var index = length - 1;\n if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1]));\n if (index < 0) index = length + index;\n for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0;\n return -1;\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar createProperty = require('./_create-property');\n\n// WebKit Array.of isn't generic\n$export($export.S + $export.F * require('./_fails')(function () {\n function F() { /* empty */ }\n return !(Array.of.call(F) instanceof F);\n}), 'Array', {\n // 22.1.2.3 Array.of( ...items)\n of: function of(/* ...args */) {\n var index = 0;\n var aLen = arguments.length;\n var result = new (typeof this == 'function' ? this : Array)(aLen);\n while (aLen > index) createProperty(result, index, arguments[index++]);\n result.length = aLen;\n return result;\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $reduce = require('./_array-reduce');\n\n$export($export.P + $export.F * !require('./_strict-method')([].reduceRight, true), 'Array', {\n // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])\n reduceRight: function reduceRight(callbackfn /* , initialValue */) {\n return $reduce(this, callbackfn, arguments.length, arguments[1], true);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $reduce = require('./_array-reduce');\n\n$export($export.P + $export.F * !require('./_strict-method')([].reduce, true), 'Array', {\n // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])\n reduce: function reduce(callbackfn /* , initialValue */) {\n return $reduce(this, callbackfn, arguments.length, arguments[1], false);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar html = require('./_html');\nvar cof = require('./_cof');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nvar toLength = require('./_to-length');\nvar arraySlice = [].slice;\n\n// fallback for not array-like ES3 strings and DOM objects\n$export($export.P + $export.F * require('./_fails')(function () {\n if (html) arraySlice.call(html);\n}), 'Array', {\n slice: function slice(begin, end) {\n var len = toLength(this.length);\n var klass = cof(this);\n end = end === undefined ? len : end;\n if (klass == 'Array') return arraySlice.call(this, begin, end);\n var start = toAbsoluteIndex(begin, len);\n var upTo = toAbsoluteIndex(end, len);\n var size = toLength(upTo - start);\n var cloned = new Array(size);\n var i = 0;\n for (; i < size; i++) cloned[i] = klass == 'String'\n ? this.charAt(start + i)\n : this[start + i];\n return cloned;\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $some = require('./_array-methods')(3);\n\n$export($export.P + $export.F * !require('./_strict-method')([].some, true), 'Array', {\n // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])\n some: function some(callbackfn /* , thisArg */) {\n return $some(this, callbackfn, arguments[1]);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar aFunction = require('./_a-function');\nvar toObject = require('./_to-object');\nvar fails = require('./_fails');\nvar $sort = [].sort;\nvar test = [1, 2, 3];\n\n$export($export.P + $export.F * (fails(function () {\n // IE8-\n test.sort(undefined);\n}) || !fails(function () {\n // V8 bug\n test.sort(null);\n // Old WebKit\n}) || !require('./_strict-method')($sort)), 'Array', {\n // 22.1.3.25 Array.prototype.sort(comparefn)\n sort: function sort(comparefn) {\n return comparefn === undefined\n ? $sort.call(toObject(this))\n : $sort.call(toObject(this), aFunction(comparefn));\n }\n});\n","require('./_set-species')('Array');\n","// 20.3.3.1 / 15.9.4.4 Date.now()\nvar $export = require('./_export');\n\n$export($export.S, 'Date', { now: function () { return new Date().getTime(); } });\n","// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()\nvar $export = require('./_export');\nvar toISOString = require('./_date-to-iso-string');\n\n// PhantomJS / old WebKit has a broken implementations\n$export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'Date', {\n toISOString: toISOString\n});\n","'use strict';\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar toPrimitive = require('./_to-primitive');\n\n$export($export.P + $export.F * require('./_fails')(function () {\n return new Date(NaN).toJSON() !== null\n || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;\n}), 'Date', {\n // eslint-disable-next-line no-unused-vars\n toJSON: function toJSON(key) {\n var O = toObject(this);\n var pv = toPrimitive(O);\n return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();\n }\n});\n","var TO_PRIMITIVE = require('./_wks')('toPrimitive');\nvar proto = Date.prototype;\n\nif (!(TO_PRIMITIVE in proto)) require('./_hide')(proto, TO_PRIMITIVE, require('./_date-to-primitive'));\n","var DateProto = Date.prototype;\nvar INVALID_DATE = 'Invalid Date';\nvar TO_STRING = 'toString';\nvar $toString = DateProto[TO_STRING];\nvar getTime = DateProto.getTime;\nif (new Date(NaN) + '' != INVALID_DATE) {\n require('./_redefine')(DateProto, TO_STRING, function toString() {\n var value = getTime.call(this);\n // eslint-disable-next-line no-self-compare\n return value === value ? $toString.call(this) : INVALID_DATE;\n });\n}\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar isObject = require('./_is-object');\nvar getPrototypeOf = require('./_object-gpo');\nvar HAS_INSTANCE = require('./_wks')('hasInstance');\nvar FunctionProto = Function.prototype;\n// 19.2.3.6 Function.prototype[@@hasInstance](V)\nif (!(HAS_INSTANCE in FunctionProto)) require('./_object-dp').f(FunctionProto, HAS_INSTANCE, { value: function (O) {\n if (typeof this != 'function' || !isObject(O)) return false;\n if (!isObject(this.prototype)) return O instanceof this;\n // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:\n while (O = getPrototypeOf(O)) if (this.prototype === O) return true;\n return false;\n} });\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar strong = require('./_collection-strong');\nvar validate = require('./_validate-collection');\nvar MAP = 'Map';\n\n// 23.1 Map Objects\nmodule.exports = require('./_collection')(MAP, function (get) {\n return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.1.3.6 Map.prototype.get(key)\n get: function get(key) {\n var entry = strong.getEntry(validate(this, MAP), key);\n return entry && entry.v;\n },\n // 23.1.3.9 Map.prototype.set(key, value)\n set: function set(key, value) {\n return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);\n }\n}, strong, true);\n","// 20.2.2.3 Math.acosh(x)\nvar $export = require('./_export');\nvar log1p = require('./_math-log1p');\nvar sqrt = Math.sqrt;\nvar $acosh = Math.acosh;\n\n$export($export.S + $export.F * !($acosh\n // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509\n && Math.floor($acosh(Number.MAX_VALUE)) == 710\n // Tor Browser bug: Math.acosh(Infinity) -> NaN\n && $acosh(Infinity) == Infinity\n), 'Math', {\n acosh: function acosh(x) {\n return (x = +x) < 1 ? NaN : x > 94906265.62425156\n ? Math.log(x) + Math.LN2\n : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));\n }\n});\n","// 20.2.2.5 Math.asinh(x)\nvar $export = require('./_export');\nvar $asinh = Math.asinh;\n\nfunction asinh(x) {\n return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));\n}\n\n// Tor Browser bug: Math.asinh(0) -> -0\n$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh });\n","// 20.2.2.7 Math.atanh(x)\nvar $export = require('./_export');\nvar $atanh = Math.atanh;\n\n// Tor Browser bug: Math.atanh(-0) -> 0\n$export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {\n atanh: function atanh(x) {\n return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;\n }\n});\n","// 20.2.2.9 Math.cbrt(x)\nvar $export = require('./_export');\nvar sign = require('./_math-sign');\n\n$export($export.S, 'Math', {\n cbrt: function cbrt(x) {\n return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);\n }\n});\n","// 20.2.2.11 Math.clz32(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n clz32: function clz32(x) {\n return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;\n }\n});\n","// 20.2.2.12 Math.cosh(x)\nvar $export = require('./_export');\nvar exp = Math.exp;\n\n$export($export.S, 'Math', {\n cosh: function cosh(x) {\n return (exp(x = +x) + exp(-x)) / 2;\n }\n});\n","// 20.2.2.14 Math.expm1(x)\nvar $export = require('./_export');\nvar $expm1 = require('./_math-expm1');\n\n$export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 });\n","// 20.2.2.16 Math.fround(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', { fround: require('./_math-fround') });\n","// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])\nvar $export = require('./_export');\nvar abs = Math.abs;\n\n$export($export.S, 'Math', {\n hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars\n var sum = 0;\n var i = 0;\n var aLen = arguments.length;\n var larg = 0;\n var arg, div;\n while (i < aLen) {\n arg = abs(arguments[i++]);\n if (larg < arg) {\n div = larg / arg;\n sum = sum * div * div + 1;\n larg = arg;\n } else if (arg > 0) {\n div = arg / larg;\n sum += div * div;\n } else sum += arg;\n }\n return larg === Infinity ? Infinity : larg * Math.sqrt(sum);\n }\n});\n","// 20.2.2.18 Math.imul(x, y)\nvar $export = require('./_export');\nvar $imul = Math.imul;\n\n// some WebKit versions fails with big numbers, some has wrong arity\n$export($export.S + $export.F * require('./_fails')(function () {\n return $imul(0xffffffff, 5) != -5 || $imul.length != 2;\n}), 'Math', {\n imul: function imul(x, y) {\n var UINT16 = 0xffff;\n var xn = +x;\n var yn = +y;\n var xl = UINT16 & xn;\n var yl = UINT16 & yn;\n return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);\n }\n});\n","// 20.2.2.21 Math.log10(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n log10: function log10(x) {\n return Math.log(x) * Math.LOG10E;\n }\n});\n","// 20.2.2.20 Math.log1p(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', { log1p: require('./_math-log1p') });\n","// 20.2.2.22 Math.log2(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n log2: function log2(x) {\n return Math.log(x) / Math.LN2;\n }\n});\n","// 20.2.2.28 Math.sign(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', { sign: require('./_math-sign') });\n","// 20.2.2.30 Math.sinh(x)\nvar $export = require('./_export');\nvar expm1 = require('./_math-expm1');\nvar exp = Math.exp;\n\n// V8 near Chromium 38 has a problem with very small numbers\n$export($export.S + $export.F * require('./_fails')(function () {\n return !Math.sinh(-2e-17) != -2e-17;\n}), 'Math', {\n sinh: function sinh(x) {\n return Math.abs(x = +x) < 1\n ? (expm1(x) - expm1(-x)) / 2\n : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2);\n }\n});\n","// 20.2.2.33 Math.tanh(x)\nvar $export = require('./_export');\nvar expm1 = require('./_math-expm1');\nvar exp = Math.exp;\n\n$export($export.S, 'Math', {\n tanh: function tanh(x) {\n var a = expm1(x = +x);\n var b = expm1(-x);\n return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));\n }\n});\n","// 20.2.2.34 Math.trunc(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n trunc: function trunc(it) {\n return (it > 0 ? Math.floor : Math.ceil)(it);\n }\n});\n","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","// 20.1.2.1 Number.EPSILON\nvar $export = require('./_export');\n\n$export($export.S, 'Number', { EPSILON: Math.pow(2, -52) });\n","// 20.1.2.2 Number.isFinite(number)\nvar $export = require('./_export');\nvar _isFinite = require('./_global').isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it) {\n return typeof it == 'number' && _isFinite(it);\n }\n});\n","// 20.1.2.3 Number.isInteger(number)\nvar $export = require('./_export');\n\n$export($export.S, 'Number', { isInteger: require('./_is-integer') });\n","// 20.1.2.4 Number.isNaN(number)\nvar $export = require('./_export');\n\n$export($export.S, 'Number', {\n isNaN: function isNaN(number) {\n // eslint-disable-next-line no-self-compare\n return number != number;\n }\n});\n","// 20.1.2.5 Number.isSafeInteger(number)\nvar $export = require('./_export');\nvar isInteger = require('./_is-integer');\nvar abs = Math.abs;\n\n$export($export.S, 'Number', {\n isSafeInteger: function isSafeInteger(number) {\n return isInteger(number) && abs(number) <= 0x1fffffffffffff;\n }\n});\n","// 20.1.2.6 Number.MAX_SAFE_INTEGER\nvar $export = require('./_export');\n\n$export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff });\n","// 20.1.2.10 Number.MIN_SAFE_INTEGER\nvar $export = require('./_export');\n\n$export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff });\n","var $export = require('./_export');\nvar $parseFloat = require('./_parse-float');\n// 20.1.2.12 Number.parseFloat(string)\n$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat });\n","var $export = require('./_export');\nvar $parseInt = require('./_parse-int');\n// 20.1.2.13 Number.parseInt(string, radix)\n$export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt });\n","'use strict';\nvar $export = require('./_export');\nvar toInteger = require('./_to-integer');\nvar aNumberValue = require('./_a-number-value');\nvar repeat = require('./_string-repeat');\nvar $toFixed = 1.0.toFixed;\nvar floor = Math.floor;\nvar data = [0, 0, 0, 0, 0, 0];\nvar ERROR = 'Number.toFixed: incorrect invocation!';\nvar ZERO = '0';\n\nvar multiply = function (n, c) {\n var i = -1;\n var c2 = c;\n while (++i < 6) {\n c2 += n * data[i];\n data[i] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n};\nvar divide = function (n) {\n var i = 6;\n var c = 0;\n while (--i >= 0) {\n c += data[i];\n data[i] = floor(c / n);\n c = (c % n) * 1e7;\n }\n};\nvar numToString = function () {\n var i = 6;\n var s = '';\n while (--i >= 0) {\n if (s !== '' || i === 0 || data[i] !== 0) {\n var t = String(data[i]);\n s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t;\n }\n } return s;\n};\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\n$export($export.P + $export.F * (!!$toFixed && (\n 0.00008.toFixed(3) !== '0.000' ||\n 0.9.toFixed(0) !== '1' ||\n 1.255.toFixed(2) !== '1.25' ||\n 1000000000000000128.0.toFixed(0) !== '1000000000000000128'\n) || !require('./_fails')(function () {\n // V8 ~ Android 4.3-\n $toFixed.call({});\n})), 'Number', {\n toFixed: function toFixed(fractionDigits) {\n var x = aNumberValue(this, ERROR);\n var f = toInteger(fractionDigits);\n var s = '';\n var m = ZERO;\n var e, z, j, k;\n if (f < 0 || f > 20) throw RangeError(ERROR);\n // eslint-disable-next-line no-self-compare\n if (x != x) return 'NaN';\n if (x <= -1e21 || x >= 1e21) return String(x);\n if (x < 0) {\n s = '-';\n x = -x;\n }\n if (x > 1e-21) {\n e = log(x * pow(2, 69, 1)) - 69;\n z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(0, z);\n j = f;\n while (j >= 7) {\n multiply(1e7, 0);\n j -= 7;\n }\n multiply(pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(1 << 23);\n j -= 23;\n }\n divide(1 << j);\n multiply(1, 1);\n divide(2);\n m = numToString();\n } else {\n multiply(0, z);\n multiply(1 << -e, 0);\n m = numToString() + repeat.call(ZERO, f);\n }\n }\n if (f > 0) {\n k = m.length;\n m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f));\n } else {\n m = s + m;\n } return m;\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $fails = require('./_fails');\nvar aNumberValue = require('./_a-number-value');\nvar $toPrecision = 1.0.toPrecision;\n\n$export($export.P + $export.F * ($fails(function () {\n // IE7-\n return $toPrecision.call(1, undefined) !== '1';\n}) || !$fails(function () {\n // V8 ~ Android 4.3-\n $toPrecision.call({});\n})), 'Number', {\n toPrecision: function toPrecision(precision) {\n var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!');\n return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision);\n }\n});\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","var $export = require('./_export');\n// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperties: require('./_object-dps') });\n","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n","// 19.1.2.5 Object.freeze(O)\nvar isObject = require('./_is-object');\nvar meta = require('./_meta').onFreeze;\n\nrequire('./_object-sap')('freeze', function ($freeze) {\n return function freeze(it) {\n return $freeze && isObject(it) ? $freeze(meta(it)) : it;\n };\n});\n","// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = require('./_to-iobject');\nvar $getOwnPropertyDescriptor = require('./_object-gopd').f;\n\nrequire('./_object-sap')('getOwnPropertyDescriptor', function () {\n return function getOwnPropertyDescriptor(it, key) {\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n","// 19.1.2.7 Object.getOwnPropertyNames(O)\nrequire('./_object-sap')('getOwnPropertyNames', function () {\n return require('./_object-gopn-ext').f;\n});\n","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n","// 19.1.2.11 Object.isExtensible(O)\nvar isObject = require('./_is-object');\n\nrequire('./_object-sap')('isExtensible', function ($isExtensible) {\n return function isExtensible(it) {\n return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;\n };\n});\n","// 19.1.2.12 Object.isFrozen(O)\nvar isObject = require('./_is-object');\n\nrequire('./_object-sap')('isFrozen', function ($isFrozen) {\n return function isFrozen(it) {\n return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;\n };\n});\n","// 19.1.2.13 Object.isSealed(O)\nvar isObject = require('./_is-object');\n\nrequire('./_object-sap')('isSealed', function ($isSealed) {\n return function isSealed(it) {\n return isObject(it) ? $isSealed ? $isSealed(it) : false : true;\n };\n});\n","// 19.1.3.10 Object.is(value1, value2)\nvar $export = require('./_export');\n$export($export.S, 'Object', { is: require('./_same-value') });\n","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n","// 19.1.2.15 Object.preventExtensions(O)\nvar isObject = require('./_is-object');\nvar meta = require('./_meta').onFreeze;\n\nrequire('./_object-sap')('preventExtensions', function ($preventExtensions) {\n return function preventExtensions(it) {\n return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it;\n };\n});\n","// 19.1.2.17 Object.seal(O)\nvar isObject = require('./_is-object');\nvar meta = require('./_meta').onFreeze;\n\nrequire('./_object-sap')('seal', function ($seal) {\n return function seal(it) {\n return $seal && isObject(it) ? $seal(meta(it)) : it;\n };\n});\n","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n","'use strict';\n// 19.1.3.6 Object.prototype.toString()\nvar classof = require('./_classof');\nvar test = {};\ntest[require('./_wks')('toStringTag')] = 'z';\nif (test + '' != '[object z]') {\n require('./_redefine')(Object.prototype, 'toString', function toString() {\n return '[object ' + classof(this) + ']';\n }, true);\n}\n","var $export = require('./_export');\nvar $parseFloat = require('./_parse-float');\n// 18.2.4 parseFloat(string)\n$export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat });\n","var $export = require('./_export');\nvar $parseInt = require('./_parse-int');\n// 18.2.5 parseInt(string, radix)\n$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt });\n","'use strict';\nvar LIBRARY = require('./_library');\nvar global = require('./_global');\nvar ctx = require('./_ctx');\nvar classof = require('./_classof');\nvar $export = require('./_export');\nvar isObject = require('./_is-object');\nvar aFunction = require('./_a-function');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar speciesConstructor = require('./_species-constructor');\nvar task = require('./_task').set;\nvar microtask = require('./_microtask')();\nvar newPromiseCapabilityModule = require('./_new-promise-capability');\nvar perform = require('./_perform');\nvar userAgent = require('./_user-agent');\nvar promiseResolve = require('./_promise-resolve');\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8 || '';\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function')\n && promise.then(empty) instanceof FakePromise\n // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // we can't detect it synchronously, so just check versions\n && v8.indexOf('6.6') !== 0\n && userAgent.indexOf('Chrome/66') === -1;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // may throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n if (domain && !exited) domain.exit();\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n return promise._h !== 1 && (promise._a || promise._c).length === 0;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = require('./_redefine-all')($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\nrequire('./_set-to-string-tag')($Promise, PROMISE);\nrequire('./_set-species')(PROMISE);\nWrapper = require('./_core')[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n","// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)\nvar $export = require('./_export');\nvar aFunction = require('./_a-function');\nvar anObject = require('./_an-object');\nvar rApply = (require('./_global').Reflect || {}).apply;\nvar fApply = Function.apply;\n// MS Edge argumentsList argument is optional\n$export($export.S + $export.F * !require('./_fails')(function () {\n rApply(function () { /* empty */ });\n}), 'Reflect', {\n apply: function apply(target, thisArgument, argumentsList) {\n var T = aFunction(target);\n var L = anObject(argumentsList);\n return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L);\n }\n});\n","// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])\nvar $export = require('./_export');\nvar create = require('./_object-create');\nvar aFunction = require('./_a-function');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar fails = require('./_fails');\nvar bind = require('./_bind');\nvar rConstruct = (require('./_global').Reflect || {}).construct;\n\n// MS Edge supports only 2 arguments and argumentsList argument is optional\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\nvar NEW_TARGET_BUG = fails(function () {\n function F() { /* empty */ }\n return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);\n});\nvar ARGS_BUG = !fails(function () {\n rConstruct(function () { /* empty */ });\n});\n\n$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {\n construct: function construct(Target, args /* , newTarget */) {\n aFunction(Target);\n anObject(args);\n var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);\n if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);\n if (Target == newTarget) {\n // w/o altered newTarget, optimization for 0-4 arguments\n switch (args.length) {\n case 0: return new Target();\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n $args.push.apply($args, args);\n return new (bind.apply(Target, $args))();\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype;\n var instance = create(isObject(proto) ? proto : Object.prototype);\n var result = Function.apply.call(Target, instance, args);\n return isObject(result) ? result : instance;\n }\n});\n","// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)\nvar dP = require('./_object-dp');\nvar $export = require('./_export');\nvar anObject = require('./_an-object');\nvar toPrimitive = require('./_to-primitive');\n\n// MS Edge has broken Reflect.defineProperty - throwing instead of returning false\n$export($export.S + $export.F * require('./_fails')(function () {\n // eslint-disable-next-line no-undef\n Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 });\n}), 'Reflect', {\n defineProperty: function defineProperty(target, propertyKey, attributes) {\n anObject(target);\n propertyKey = toPrimitive(propertyKey, true);\n anObject(attributes);\n try {\n dP.f(target, propertyKey, attributes);\n return true;\n } catch (e) {\n return false;\n }\n }\n});\n","// 26.1.4 Reflect.deleteProperty(target, propertyKey)\nvar $export = require('./_export');\nvar gOPD = require('./_object-gopd').f;\nvar anObject = require('./_an-object');\n\n$export($export.S, 'Reflect', {\n deleteProperty: function deleteProperty(target, propertyKey) {\n var desc = gOPD(anObject(target), propertyKey);\n return desc && !desc.configurable ? false : delete target[propertyKey];\n }\n});\n","'use strict';\n// 26.1.5 Reflect.enumerate(target)\nvar $export = require('./_export');\nvar anObject = require('./_an-object');\nvar Enumerate = function (iterated) {\n this._t = anObject(iterated); // target\n this._i = 0; // next index\n var keys = this._k = []; // keys\n var key;\n for (key in iterated) keys.push(key);\n};\nrequire('./_iter-create')(Enumerate, 'Object', function () {\n var that = this;\n var keys = that._k;\n var key;\n do {\n if (that._i >= keys.length) return { value: undefined, done: true };\n } while (!((key = keys[that._i++]) in that._t));\n return { value: key, done: false };\n});\n\n$export($export.S, 'Reflect', {\n enumerate: function enumerate(target) {\n return new Enumerate(target);\n }\n});\n","// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)\nvar gOPD = require('./_object-gopd');\nvar $export = require('./_export');\nvar anObject = require('./_an-object');\n\n$export($export.S, 'Reflect', {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {\n return gOPD.f(anObject(target), propertyKey);\n }\n});\n","// 26.1.8 Reflect.getPrototypeOf(target)\nvar $export = require('./_export');\nvar getProto = require('./_object-gpo');\nvar anObject = require('./_an-object');\n\n$export($export.S, 'Reflect', {\n getPrototypeOf: function getPrototypeOf(target) {\n return getProto(anObject(target));\n }\n});\n","// 26.1.6 Reflect.get(target, propertyKey [, receiver])\nvar gOPD = require('./_object-gopd');\nvar getPrototypeOf = require('./_object-gpo');\nvar has = require('./_has');\nvar $export = require('./_export');\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\n\nfunction get(target, propertyKey /* , receiver */) {\n var receiver = arguments.length < 3 ? target : arguments[2];\n var desc, proto;\n if (anObject(target) === receiver) return target[propertyKey];\n if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')\n ? desc.value\n : desc.get !== undefined\n ? desc.get.call(receiver)\n : undefined;\n if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);\n}\n\n$export($export.S, 'Reflect', { get: get });\n","// 26.1.9 Reflect.has(target, propertyKey)\nvar $export = require('./_export');\n\n$export($export.S, 'Reflect', {\n has: function has(target, propertyKey) {\n return propertyKey in target;\n }\n});\n","// 26.1.10 Reflect.isExtensible(target)\nvar $export = require('./_export');\nvar anObject = require('./_an-object');\nvar $isExtensible = Object.isExtensible;\n\n$export($export.S, 'Reflect', {\n isExtensible: function isExtensible(target) {\n anObject(target);\n return $isExtensible ? $isExtensible(target) : true;\n }\n});\n","// 26.1.11 Reflect.ownKeys(target)\nvar $export = require('./_export');\n\n$export($export.S, 'Reflect', { ownKeys: require('./_own-keys') });\n","// 26.1.12 Reflect.preventExtensions(target)\nvar $export = require('./_export');\nvar anObject = require('./_an-object');\nvar $preventExtensions = Object.preventExtensions;\n\n$export($export.S, 'Reflect', {\n preventExtensions: function preventExtensions(target) {\n anObject(target);\n try {\n if ($preventExtensions) $preventExtensions(target);\n return true;\n } catch (e) {\n return false;\n }\n }\n});\n","// 26.1.14 Reflect.setPrototypeOf(target, proto)\nvar $export = require('./_export');\nvar setProto = require('./_set-proto');\n\nif (setProto) $export($export.S, 'Reflect', {\n setPrototypeOf: function setPrototypeOf(target, proto) {\n setProto.check(target, proto);\n try {\n setProto.set(target, proto);\n return true;\n } catch (e) {\n return false;\n }\n }\n});\n","// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])\nvar dP = require('./_object-dp');\nvar gOPD = require('./_object-gopd');\nvar getPrototypeOf = require('./_object-gpo');\nvar has = require('./_has');\nvar $export = require('./_export');\nvar createDesc = require('./_property-desc');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\n\nfunction set(target, propertyKey, V /* , receiver */) {\n var receiver = arguments.length < 4 ? target : arguments[3];\n var ownDesc = gOPD.f(anObject(target), propertyKey);\n var existingDescriptor, proto;\n if (!ownDesc) {\n if (isObject(proto = getPrototypeOf(target))) {\n return set(proto, propertyKey, V, receiver);\n }\n ownDesc = createDesc(0);\n }\n if (has(ownDesc, 'value')) {\n if (ownDesc.writable === false || !isObject(receiver)) return false;\n if (existingDescriptor = gOPD.f(receiver, propertyKey)) {\n if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;\n existingDescriptor.value = V;\n dP.f(receiver, propertyKey, existingDescriptor);\n } else dP.f(receiver, propertyKey, createDesc(0, V));\n return true;\n }\n return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);\n}\n\n$export($export.S, 'Reflect', { set: set });\n","var global = require('./_global');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar dP = require('./_object-dp').f;\nvar gOPN = require('./_object-gopn').f;\nvar isRegExp = require('./_is-regexp');\nvar $flags = require('./_flags');\nvar $RegExp = global.RegExp;\nvar Base = $RegExp;\nvar proto = $RegExp.prototype;\nvar re1 = /a/g;\nvar re2 = /a/g;\n// \"new\" creates a new object, old webkit buggy here\nvar CORRECT_NEW = new $RegExp(re1) !== re1;\n\nif (require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function () {\n re2[require('./_wks')('match')] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';\n}))) {\n $RegExp = function RegExp(p, f) {\n var tiRE = this instanceof $RegExp;\n var piRE = isRegExp(p);\n var fiU = f === undefined;\n return !tiRE && piRE && p.constructor === $RegExp && fiU ? p\n : inheritIfRequired(CORRECT_NEW\n ? new Base(piRE && !fiU ? p.source : p, f)\n : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)\n , tiRE ? this : proto, $RegExp);\n };\n var proxy = function (key) {\n key in $RegExp || dP($RegExp, key, {\n configurable: true,\n get: function () { return Base[key]; },\n set: function (it) { Base[key] = it; }\n });\n };\n for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);\n proto.constructor = $RegExp;\n $RegExp.prototype = proto;\n require('./_redefine')(global, 'RegExp', $RegExp);\n}\n\nrequire('./_set-species')('RegExp');\n","'use strict';\nvar regexpExec = require('./_regexp-exec');\nrequire('./_export')({\n target: 'RegExp',\n proto: true,\n forced: regexpExec !== /./.exec\n}, {\n exec: regexpExec\n});\n","// 21.2.5.3 get RegExp.prototype.flags()\nif (require('./_descriptors') && /./g.flags != 'g') require('./_object-dp').f(RegExp.prototype, 'flags', {\n configurable: true,\n get: require('./_flags')\n});\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\n\n// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match\n function (regexp) {\n var res = maybeCallNative($match, regexp, this);\n if (res.done) return res.value;\n var rx = anObject(regexp);\n var S = String(this);\n if (!rx.global) return regExpExec(rx, S);\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = String(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }\n ];\n});\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar toInteger = require('./_to-integer');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\nvar max = Math.max;\nvar min = Math.min;\nvar floor = Math.floor;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&`']|\\d\\d?|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&`']|\\d\\d?)/g;\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// @@replace logic\nrequire('./_fix-re-wks')('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {\n return [\n // `String.prototype.replace` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = defined(this);\n var fn = searchValue == undefined ? undefined : searchValue[REPLACE];\n return fn !== undefined\n ? fn.call(searchValue, O, replaceValue)\n : $replace.call(String(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\n function (regexp, replaceValue) {\n var res = maybeCallNative($replace, regexp, this, replaceValue);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n results.push(result);\n if (!global) break;\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }\n ];\n\n // https://tc39.github.io/ecma262/#sec-getsubstitution\n function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return $replace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return str.slice(0, position);\n case \"'\": return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n }\n});\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar sameValue = require('./_same-value');\nvar regExpExec = require('./_regexp-exec-abstract');\n\n// @@search logic\nrequire('./_fix-re-wks')('search', 1, function (defined, SEARCH, $search, maybeCallNative) {\n return [\n // `String.prototype.search` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.search\n function search(regexp) {\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[SEARCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));\n },\n // `RegExp.prototype[@@search]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search\n function (regexp) {\n var res = maybeCallNative($search, regexp, this);\n if (res.done) return res.value;\n var rx = anObject(regexp);\n var S = String(this);\n var previousLastIndex = rx.lastIndex;\n if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;\n var result = regExpExec(rx, S);\n if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;\n return result === null ? -1 : result.index;\n }\n ];\n});\n","'use strict';\n\nvar isRegExp = require('./_is-regexp');\nvar anObject = require('./_an-object');\nvar speciesConstructor = require('./_species-constructor');\nvar advanceStringIndex = require('./_advance-string-index');\nvar toLength = require('./_to-length');\nvar callRegExpExec = require('./_regexp-exec-abstract');\nvar regexpExec = require('./_regexp-exec');\nvar fails = require('./_fails');\nvar $min = Math.min;\nvar $push = [].push;\nvar $SPLIT = 'split';\nvar LENGTH = 'length';\nvar LAST_INDEX = 'lastIndex';\nvar MAX_UINT32 = 0xffffffff;\n\n// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError\nvar SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });\n\n// @@split logic\nrequire('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split, maybeCallNative) {\n var internalSplit;\n if (\n 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||\n 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||\n 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||\n '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||\n '.'[$SPLIT](/()()/)[LENGTH] > 1 ||\n ''[$SPLIT](/.?/)[LENGTH]\n ) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = String(this);\n if (separator === undefined && limit === 0) return [];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) return $split.call(string, separator, limit);\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = regexpExec.call(separatorCopy, string)) {\n lastIndex = separatorCopy[LAST_INDEX];\n if (lastIndex > lastLastIndex) {\n output.push(string.slice(lastLastIndex, match.index));\n if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));\n lastLength = match[0][LENGTH];\n lastLastIndex = lastIndex;\n if (output[LENGTH] >= splitLimit) break;\n }\n if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop\n }\n if (lastLastIndex === string[LENGTH]) {\n if (lastLength || !separatorCopy.test('')) output.push('');\n } else output.push(string.slice(lastLastIndex));\n return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;\n };\n // Chakra, V8\n } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);\n };\n } else {\n internalSplit = $split;\n }\n\n return [\n // `String.prototype.split` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = defined(this);\n var splitter = separator == undefined ? undefined : separator[SPLIT];\n return splitter !== undefined\n ? splitter.call(separator, O, limit)\n : internalSplit.call(String(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (regexp, limit) {\n var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n var C = speciesConstructor(rx, RegExp);\n\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (SUPPORTS_Y ? 'y' : 'g');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = SUPPORTS_Y ? q : 0;\n var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));\n var e;\n if (\n z === null ||\n (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n A.push(S.slice(p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n A.push(z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n A.push(S.slice(p));\n return A;\n }\n ];\n});\n","'use strict';\nrequire('./es6.regexp.flags');\nvar anObject = require('./_an-object');\nvar $flags = require('./_flags');\nvar DESCRIPTORS = require('./_descriptors');\nvar TO_STRING = 'toString';\nvar $toString = /./[TO_STRING];\n\nvar define = function (fn) {\n require('./_redefine')(RegExp.prototype, TO_STRING, fn, true);\n};\n\n// 21.2.5.14 RegExp.prototype.toString()\nif (require('./_fails')(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {\n define(function toString() {\n var R = anObject(this);\n return '/'.concat(R.source, '/',\n 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);\n });\n// FF44- RegExp#toString has a wrong name\n} else if ($toString.name != TO_STRING) {\n define(function toString() {\n return $toString.call(this);\n });\n}\n","'use strict';\nvar strong = require('./_collection-strong');\nvar validate = require('./_validate-collection');\nvar SET = 'Set';\n\n// 23.2 Set Objects\nmodule.exports = require('./_collection')(SET, function (get) {\n return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value) {\n return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);\n }\n}, strong);\n","'use strict';\n// B.2.3.2 String.prototype.anchor(name)\nrequire('./_string-html')('anchor', function (createHTML) {\n return function anchor(name) {\n return createHTML(this, 'a', 'name', name);\n };\n});\n","'use strict';\n// B.2.3.3 String.prototype.big()\nrequire('./_string-html')('big', function (createHTML) {\n return function big() {\n return createHTML(this, 'big', '', '');\n };\n});\n","'use strict';\n// B.2.3.4 String.prototype.blink()\nrequire('./_string-html')('blink', function (createHTML) {\n return function blink() {\n return createHTML(this, 'blink', '', '');\n };\n});\n","'use strict';\n// B.2.3.5 String.prototype.bold()\nrequire('./_string-html')('bold', function (createHTML) {\n return function bold() {\n return createHTML(this, 'b', '', '');\n };\n});\n","'use strict';\nvar $export = require('./_export');\nvar $at = require('./_string-at')(false);\n$export($export.P, 'String', {\n // 21.1.3.3 String.prototype.codePointAt(pos)\n codePointAt: function codePointAt(pos) {\n return $at(this, pos);\n }\n});\n","// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])\n'use strict';\nvar $export = require('./_export');\nvar toLength = require('./_to-length');\nvar context = require('./_string-context');\nvar ENDS_WITH = 'endsWith';\nvar $endsWith = ''[ENDS_WITH];\n\n$export($export.P + $export.F * require('./_fails-is-regexp')(ENDS_WITH), 'String', {\n endsWith: function endsWith(searchString /* , endPosition = @length */) {\n var that = context(this, searchString, ENDS_WITH);\n var endPosition = arguments.length > 1 ? arguments[1] : undefined;\n var len = toLength(that.length);\n var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len);\n var search = String(searchString);\n return $endsWith\n ? $endsWith.call(that, search, end)\n : that.slice(end - search.length, end) === search;\n }\n});\n","'use strict';\n// B.2.3.6 String.prototype.fixed()\nrequire('./_string-html')('fixed', function (createHTML) {\n return function fixed() {\n return createHTML(this, 'tt', '', '');\n };\n});\n","'use strict';\n// B.2.3.7 String.prototype.fontcolor(color)\nrequire('./_string-html')('fontcolor', function (createHTML) {\n return function fontcolor(color) {\n return createHTML(this, 'font', 'color', color);\n };\n});\n","'use strict';\n// B.2.3.8 String.prototype.fontsize(size)\nrequire('./_string-html')('fontsize', function (createHTML) {\n return function fontsize(size) {\n return createHTML(this, 'font', 'size', size);\n };\n});\n","var $export = require('./_export');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nvar fromCharCode = String.fromCharCode;\nvar $fromCodePoint = String.fromCodePoint;\n\n// length should be 1, old FF problem\n$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {\n // 21.1.2.2 String.fromCodePoint(...codePoints)\n fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars\n var res = [];\n var aLen = arguments.length;\n var i = 0;\n var code;\n while (aLen > i) {\n code = +arguments[i++];\n if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point');\n res.push(code < 0x10000\n ? fromCharCode(code)\n : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)\n );\n } return res.join('');\n }\n});\n","// 21.1.3.7 String.prototype.includes(searchString, position = 0)\n'use strict';\nvar $export = require('./_export');\nvar context = require('./_string-context');\nvar INCLUDES = 'includes';\n\n$export($export.P + $export.F * require('./_fails-is-regexp')(INCLUDES), 'String', {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~context(this, searchString, INCLUDES)\n .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\n// B.2.3.9 String.prototype.italics()\nrequire('./_string-html')('italics', function (createHTML) {\n return function italics() {\n return createHTML(this, 'i', '', '');\n };\n});\n","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n","'use strict';\n// B.2.3.10 String.prototype.link(url)\nrequire('./_string-html')('link', function (createHTML) {\n return function link(url) {\n return createHTML(this, 'a', 'href', url);\n };\n});\n","var $export = require('./_export');\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\n\n$export($export.S, 'String', {\n // 21.1.2.4 String.raw(callSite, ...substitutions)\n raw: function raw(callSite) {\n var tpl = toIObject(callSite.raw);\n var len = toLength(tpl.length);\n var aLen = arguments.length;\n var res = [];\n var i = 0;\n while (len > i) {\n res.push(String(tpl[i++]));\n if (i < aLen) res.push(String(arguments[i]));\n } return res.join('');\n }\n});\n","var $export = require('./_export');\n\n$export($export.P, 'String', {\n // 21.1.3.13 String.prototype.repeat(count)\n repeat: require('./_string-repeat')\n});\n","'use strict';\n// B.2.3.11 String.prototype.small()\nrequire('./_string-html')('small', function (createHTML) {\n return function small() {\n return createHTML(this, 'small', '', '');\n };\n});\n","// 21.1.3.18 String.prototype.startsWith(searchString [, position ])\n'use strict';\nvar $export = require('./_export');\nvar toLength = require('./_to-length');\nvar context = require('./_string-context');\nvar STARTS_WITH = 'startsWith';\nvar $startsWith = ''[STARTS_WITH];\n\n$export($export.P + $export.F * require('./_fails-is-regexp')(STARTS_WITH), 'String', {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = context(this, searchString, STARTS_WITH);\n var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = String(searchString);\n return $startsWith\n ? $startsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n","'use strict';\n// B.2.3.12 String.prototype.strike()\nrequire('./_string-html')('strike', function (createHTML) {\n return function strike() {\n return createHTML(this, 'strike', '', '');\n };\n});\n","'use strict';\n// B.2.3.13 String.prototype.sub()\nrequire('./_string-html')('sub', function (createHTML) {\n return function sub() {\n return createHTML(this, 'sub', '', '');\n };\n});\n","'use strict';\n// B.2.3.14 String.prototype.sup()\nrequire('./_string-html')('sup', function (createHTML) {\n return function sup() {\n return createHTML(this, 'sup', '', '');\n };\n});\n","'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toObject = require('./_to-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $GOPS = require('./_object-gops');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n $GOPS.f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });\n\n$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return $GOPS.f(toObject(it));\n }\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n","'use strict';\nvar $export = require('./_export');\nvar $typed = require('./_typed');\nvar buffer = require('./_typed-buffer');\nvar anObject = require('./_an-object');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nvar toLength = require('./_to-length');\nvar isObject = require('./_is-object');\nvar ArrayBuffer = require('./_global').ArrayBuffer;\nvar speciesConstructor = require('./_species-constructor');\nvar $ArrayBuffer = buffer.ArrayBuffer;\nvar $DataView = buffer.DataView;\nvar $isView = $typed.ABV && ArrayBuffer.isView;\nvar $slice = $ArrayBuffer.prototype.slice;\nvar VIEW = $typed.VIEW;\nvar ARRAY_BUFFER = 'ArrayBuffer';\n\n$export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer });\n\n$export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, {\n // 24.1.3.1 ArrayBuffer.isView(arg)\n isView: function isView(it) {\n return $isView && $isView(it) || isObject(it) && VIEW in it;\n }\n});\n\n$export($export.P + $export.U + $export.F * require('./_fails')(function () {\n return !new $ArrayBuffer(2).slice(1, undefined).byteLength;\n}), ARRAY_BUFFER, {\n // 24.1.4.3 ArrayBuffer.prototype.slice(start, end)\n slice: function slice(start, end) {\n if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix\n var len = anObject(this).byteLength;\n var first = toAbsoluteIndex(start, len);\n var fin = toAbsoluteIndex(end === undefined ? len : end, len);\n var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(fin - first));\n var viewS = new $DataView(this);\n var viewT = new $DataView(result);\n var index = 0;\n while (first < fin) {\n viewT.setUint8(index++, viewS.getUint8(first++));\n } return result;\n }\n});\n\nrequire('./_set-species')(ARRAY_BUFFER);\n","var $export = require('./_export');\n$export($export.G + $export.W + $export.F * !require('./_typed').ABV, {\n DataView: require('./_typed-buffer').DataView\n});\n","require('./_typed-array')('Float32', 4, function (init) {\n return function Float32Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","require('./_typed-array')('Float64', 8, function (init) {\n return function Float64Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","require('./_typed-array')('Int16', 2, function (init) {\n return function Int16Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","require('./_typed-array')('Int32', 4, function (init) {\n return function Int32Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","require('./_typed-array')('Int8', 1, function (init) {\n return function Int8Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","require('./_typed-array')('Uint16', 2, function (init) {\n return function Uint16Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","require('./_typed-array')('Uint32', 4, function (init) {\n return function Uint32Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","require('./_typed-array')('Uint8', 1, function (init) {\n return function Uint8Array(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n});\n","require('./_typed-array')('Uint8', 1, function (init) {\n return function Uint8ClampedArray(data, byteOffset, length) {\n return init(this, data, byteOffset, length);\n };\n}, true);\n","'use strict';\nvar global = require('./_global');\nvar each = require('./_array-methods')(0);\nvar redefine = require('./_redefine');\nvar meta = require('./_meta');\nvar assign = require('./_object-assign');\nvar weak = require('./_collection-weak');\nvar isObject = require('./_is-object');\nvar validate = require('./_validate-collection');\nvar NATIVE_WEAK_MAP = require('./_validate-collection');\nvar IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;\nvar WEAK_MAP = 'WeakMap';\nvar getWeak = meta.getWeak;\nvar isExtensible = Object.isExtensible;\nvar uncaughtFrozenStore = weak.ufstore;\nvar InternalMap;\n\nvar wrapper = function (get) {\n return function WeakMap() {\n return get(this, arguments.length > 0 ? arguments[0] : undefined);\n };\n};\n\nvar methods = {\n // 23.3.3.3 WeakMap.prototype.get(key)\n get: function get(key) {\n if (isObject(key)) {\n var data = getWeak(key);\n if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);\n return data ? data[this._i] : undefined;\n }\n },\n // 23.3.3.5 WeakMap.prototype.set(key, value)\n set: function set(key, value) {\n return weak.def(validate(this, WEAK_MAP), key, value);\n }\n};\n\n// 23.3 WeakMap Objects\nvar $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, methods, weak, true, true);\n\n// IE11 WeakMap frozen keys fix\nif (NATIVE_WEAK_MAP && IS_IE11) {\n InternalMap = weak.getConstructor(wrapper, WEAK_MAP);\n assign(InternalMap.prototype, methods);\n meta.NEED = true;\n each(['delete', 'has', 'get', 'set'], function (key) {\n var proto = $WeakMap.prototype;\n var method = proto[key];\n redefine(proto, key, function (a, b) {\n // store frozen objects on internal weakmap shim\n if (isObject(a) && !isExtensible(a)) {\n if (!this._f) this._f = new InternalMap();\n var result = this._f[key](a, b);\n return key == 'set' ? this : result;\n // store all the rest on native weakmap\n } return method.call(this, a, b);\n });\n });\n}\n","'use strict';\nvar weak = require('./_collection-weak');\nvar validate = require('./_validate-collection');\nvar WEAK_SET = 'WeakSet';\n\n// 23.4 WeakSet Objects\nrequire('./_collection')(WEAK_SET, function (get) {\n return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.4.3.1 WeakSet.prototype.add(value)\n add: function add(value) {\n return weak.def(validate(this, WEAK_SET), value, true);\n }\n}, weak, false, true);\n","'use strict';\n// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap\nvar $export = require('./_export');\nvar flattenIntoArray = require('./_flatten-into-array');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar aFunction = require('./_a-function');\nvar arraySpeciesCreate = require('./_array-species-create');\n\n$export($export.P, 'Array', {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen, A;\n aFunction(callbackfn);\n sourceLen = toLength(O.length);\n A = arraySpeciesCreate(O, 0);\n flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments[1]);\n return A;\n }\n});\n\nrequire('./_add-to-unscopables')('flatMap');\n","'use strict';\n// https://github.com/tc39/Array.prototype.includes\nvar $export = require('./_export');\nvar $includes = require('./_array-includes')(true);\n\n$export($export.P, 'Array', {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nrequire('./_add-to-unscopables')('includes');\n","// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $entries = require('./_object-to-array')(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it) {\n return $entries(it);\n }\n});\n","// https://github.com/tc39/proposal-object-getownpropertydescriptors\nvar $export = require('./_export');\nvar ownKeys = require('./_own-keys');\nvar toIObject = require('./_to-iobject');\nvar gOPD = require('./_object-gopd');\nvar createProperty = require('./_create-property');\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIObject(object);\n var getDesc = gOPD.f;\n var keys = ownKeys(O);\n var result = {};\n var i = 0;\n var key, desc;\n while (keys.length > i) {\n desc = getDesc(O, key = keys[i++]);\n if (desc !== undefined) createProperty(result, key, desc);\n }\n return result;\n }\n});\n","// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $values = require('./_object-to-array')(false);\n\n$export($export.S, 'Object', {\n values: function values(it) {\n return $values(it);\n }\n});\n","// https://github.com/tc39/proposal-promise-finally\n'use strict';\nvar $export = require('./_export');\nvar core = require('./_core');\nvar global = require('./_global');\nvar speciesConstructor = require('./_species-constructor');\nvar promiseResolve = require('./_promise-resolve');\n\n$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {\n var C = speciesConstructor(this, core.Promise || global.Promise);\n var isFunction = typeof onFinally == 'function';\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n} });\n","'use strict';\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = require('./_export');\nvar $pad = require('./_string-pad');\nvar userAgent = require('./_user-agent');\n\n// https://github.com/zloirock/core-js/issues/280\nvar WEBKIT_BUG = /Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(userAgent);\n\n$export($export.P + $export.F * WEBKIT_BUG, 'String', {\n padEnd: function padEnd(maxLength /* , fillString = ' ' */) {\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);\n }\n});\n","'use strict';\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = require('./_export');\nvar $pad = require('./_string-pad');\nvar userAgent = require('./_user-agent');\n\n// https://github.com/zloirock/core-js/issues/280\nvar WEBKIT_BUG = /Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//.test(userAgent);\n\n$export($export.P + $export.F * WEBKIT_BUG, 'String', {\n padStart: function padStart(maxLength /* , fillString = ' ' */) {\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);\n }\n});\n","'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\nrequire('./_string-trim')('trimLeft', function ($trim) {\n return function trimLeft() {\n return $trim(this, 1);\n };\n}, 'trimStart');\n","'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\nrequire('./_string-trim')('trimRight', function ($trim) {\n return function trimRight() {\n return $trim(this, 2);\n };\n}, 'trimEnd');\n","require('./_wks-define')('asyncIterator');\n","var $iterators = require('./es6.array.iterator');\nvar getKeys = require('./_object-keys');\nvar redefine = require('./_redefine');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar wks = require('./_wks');\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n","var $export = require('./_export');\nvar $task = require('./_task');\n$export($export.G + $export.B, {\n setImmediate: $task.set,\n clearImmediate: $task.clear\n});\n","// ie9- setTimeout & setInterval additional parameters fix\nvar global = require('./_global');\nvar $export = require('./_export');\nvar userAgent = require('./_user-agent');\nvar slice = [].slice;\nvar MSIE = /MSIE .\\./.test(userAgent); // <- dirty ie9- check\nvar wrap = function (set) {\n return function (fn, time /* , ...args */) {\n var boundArgs = arguments.length > 2;\n var args = boundArgs ? slice.call(arguments, 2) : false;\n return set(boundArgs ? function () {\n // eslint-disable-next-line no-new-func\n (typeof fn == 'function' ? fn : Function(fn)).apply(this, args);\n } : fn, time);\n };\n};\n$export($export.G + $export.B + $export.F * MSIE, {\n setTimeout: wrap(global.setTimeout),\n setInterval: wrap(global.setInterval)\n});\n","require('../modules/web.timers');\nrequire('../modules/web.immediate');\nrequire('../modules/web.dom.iterable');\nmodule.exports = require('../modules/_core');\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*!\n * CSSPlugin 3.5.1\n * https://greensock.com\n *\n * Copyright 2008-2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nimport { gsap, _getProperty, _numExp, _numWithUnitExp, getUnit, _isString, _isUndefined, _renderComplexString, _relExp, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _checkPlugin, _replaceRandom, _plugins, GSCache, PropTween, _config, _ticker, _round, _missingPlugin, _getSetter, _getCache, _setDefaults, _removeLinkedListItem //for the commented-out className feature.\n} from \"./gsap-core.js\";\n\nvar _win,\n _doc,\n _docElement,\n _pluginInitted,\n _tempDiv,\n _tempDivStyler,\n _recentSetterPlugin,\n _windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n},\n _transformProps = {},\n _RAD2DEG = 180 / Math.PI,\n _DEG2RAD = Math.PI / 180,\n _atan2 = Math.atan2,\n _bigNum = 1e8,\n _capsExp = /([A-Z])/g,\n _horizontalExp = /(?:left|right|width|margin|padding|x)/i,\n _complexExp = /[\\s,\\(]\\S/,\n _propertyAliases = {\n autoAlpha: \"opacity,visibility\",\n scale: \"scaleX,scaleY\",\n alpha: \"opacity\"\n},\n _renderCSSProp = function _renderCSSProp(ratio, data) {\n return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);\n},\n _renderPropWithEnd = function _renderPropWithEnd(ratio, data) {\n return data.set(data.t, data.p, ratio === 1 ? data.e : Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u, data);\n},\n _renderCSSPropWithBeginning = function _renderCSSPropWithBeginning(ratio, data) {\n return data.set(data.t, data.p, ratio ? Math.round((data.s + data.c * ratio) * 10000) / 10000 + data.u : data.b, data);\n},\n //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)\n_renderRoundedCSSProp = function _renderRoundedCSSProp(ratio, data) {\n var value = data.s + data.c * ratio;\n data.set(data.t, data.p, ~~(value + (value < 0 ? -.5 : .5)) + data.u, data);\n},\n _renderNonTweeningValue = function _renderNonTweeningValue(ratio, data) {\n return data.set(data.t, data.p, ratio ? data.e : data.b, data);\n},\n _renderNonTweeningValueOnlyAtEnd = function _renderNonTweeningValueOnlyAtEnd(ratio, data) {\n return data.set(data.t, data.p, ratio !== 1 ? data.b : data.e, data);\n},\n _setterCSSStyle = function _setterCSSStyle(target, property, value) {\n return target.style[property] = value;\n},\n _setterCSSProp = function _setterCSSProp(target, property, value) {\n return target.style.setProperty(property, value);\n},\n _setterTransform = function _setterTransform(target, property, value) {\n return target._gsap[property] = value;\n},\n _setterScale = function _setterScale(target, property, value) {\n return target._gsap.scaleX = target._gsap.scaleY = value;\n},\n _setterScaleWithRender = function _setterScaleWithRender(target, property, value, data, ratio) {\n var cache = target._gsap;\n cache.scaleX = cache.scaleY = value;\n cache.renderTransform(ratio, cache);\n},\n _setterTransformWithRender = function _setterTransformWithRender(target, property, value, data, ratio) {\n var cache = target._gsap;\n cache[property] = value;\n cache.renderTransform(ratio, cache);\n},\n _transformProp = \"transform\",\n _transformOriginProp = _transformProp + \"Origin\",\n _supports3D,\n _createElement = function _createElement(type, ns) {\n var e = _doc.createElementNS ? _doc.createElementNS((ns || \"http://www.w3.org/1999/xhtml\").replace(/^https/, \"http\"), type) : _doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making \"style\" inaccessible.\n\n return e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://greensock.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).\n},\n _getComputedProperty = function _getComputedProperty(target, property, skipPrefixFallback) {\n var cs = getComputedStyle(target);\n return cs[property] || cs.getPropertyValue(property.replace(_capsExp, \"-$1\").toLowerCase()) || cs.getPropertyValue(property) || !skipPrefixFallback && _getComputedProperty(target, _checkPropPrefix(property) || property, 1) || \"\"; //css variables may not need caps swapped out for dashes and lowercase.\n},\n _prefixes = \"O,Moz,ms,Ms,Webkit\".split(\",\"),\n _checkPropPrefix = function _checkPropPrefix(property, element, preferPrefix) {\n var e = element || _tempDiv,\n s = e.style,\n i = 5;\n\n if (property in s && !preferPrefix) {\n return property;\n }\n\n property = property.charAt(0).toUpperCase() + property.substr(1);\n\n while (i-- && !(_prefixes[i] + property in s)) {}\n\n return i < 0 ? null : (i === 3 ? \"ms\" : i >= 0 ? _prefixes[i] : \"\") + property;\n},\n _initCore = function _initCore() {\n if (_windowExists() && window.document) {\n _win = window;\n _doc = _win.document;\n _docElement = _doc.documentElement;\n _tempDiv = _createElement(\"div\") || {\n style: {}\n };\n _tempDivStyler = _createElement(\"div\");\n _transformProp = _checkPropPrefix(_transformProp);\n _transformOriginProp = _transformProp + \"Origin\";\n _tempDiv.style.cssText = \"border-width:0;line-height:0;position:absolute;padding:0\"; //make sure to override certain properties that may contaminate measurements, in case the user has overreaching style sheets.\n\n _supports3D = !!_checkPropPrefix(\"perspective\");\n _pluginInitted = 1;\n }\n},\n _getBBoxHack = function _getBBoxHack(swapIfPossible) {\n //works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a element and/or . We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).\n var svg = _createElement(\"svg\", this.ownerSVGElement && this.ownerSVGElement.getAttribute(\"xmlns\") || \"http://www.w3.org/2000/svg\"),\n oldParent = this.parentNode,\n oldSibling = this.nextSibling,\n oldCSS = this.style.cssText,\n bbox;\n\n _docElement.appendChild(svg);\n\n svg.appendChild(this);\n this.style.display = \"block\";\n\n if (swapIfPossible) {\n try {\n bbox = this.getBBox();\n this._gsapBBox = this.getBBox; //store the original\n\n this.getBBox = _getBBoxHack;\n } catch (e) {}\n } else if (this._gsapBBox) {\n bbox = this._gsapBBox();\n }\n\n if (oldParent) {\n if (oldSibling) {\n oldParent.insertBefore(this, oldSibling);\n } else {\n oldParent.appendChild(this);\n }\n }\n\n _docElement.removeChild(svg);\n\n this.style.cssText = oldCSS;\n return bbox;\n},\n _getAttributeFallbacks = function _getAttributeFallbacks(target, attributesArray) {\n var i = attributesArray.length;\n\n while (i--) {\n if (target.hasAttribute(attributesArray[i])) {\n return target.getAttribute(attributesArray[i]);\n }\n }\n},\n _getBBox = function _getBBox(target) {\n var bounds;\n\n try {\n bounds = target.getBBox(); //Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a or ). https://bugzilla.mozilla.org/show_bug.cgi?id=612118\n } catch (error) {\n bounds = _getBBoxHack.call(target, true);\n }\n\n bounds && (bounds.width || bounds.height) || target.getBBox === _getBBoxHack || (bounds = _getBBoxHack.call(target, true)); //some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.\n\n return bounds && !bounds.width && !bounds.x && !bounds.y ? {\n x: +_getAttributeFallbacks(target, [\"x\", \"cx\", \"x1\"]) || 0,\n y: +_getAttributeFallbacks(target, [\"y\", \"cy\", \"y1\"]) || 0,\n width: 0,\n height: 0\n } : bounds;\n},\n _isSVG = function _isSVG(e) {\n return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && _getBBox(e));\n},\n //reports if the element is an SVG on which getBBox() actually works\n_removeProperty = function _removeProperty(target, property) {\n if (property) {\n var style = target.style;\n\n if (property in _transformProps && property !== _transformOriginProp) {\n property = _transformProp;\n }\n\n if (style.removeProperty) {\n if (property.substr(0, 2) === \"ms\" || property.substr(0, 6) === \"webkit\") {\n //Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be \"ms-transform\" instead of \"-ms-transform\" for IE9, for example)\n property = \"-\" + property;\n }\n\n style.removeProperty(property.replace(_capsExp, \"-$1\").toLowerCase());\n } else {\n //note: old versions of IE use \"removeAttribute()\" instead of \"removeProperty()\"\n style.removeAttribute(property);\n }\n }\n},\n _addNonTweeningPT = function _addNonTweeningPT(plugin, target, property, beginning, end, onlySetAtEnd) {\n var pt = new PropTween(plugin._pt, target, property, 0, 1, onlySetAtEnd ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue);\n plugin._pt = pt;\n pt.b = beginning;\n pt.e = end;\n\n plugin._props.push(property);\n\n return pt;\n},\n _nonConvertibleUnits = {\n deg: 1,\n rad: 1,\n turn: 1\n},\n //takes a single value like 20px and converts it to the unit specified, like \"%\", returning only the numeric amount.\n_convertToUnit = function _convertToUnit(target, property, value, unit) {\n var curValue = parseFloat(value) || 0,\n curUnit = (value + \"\").trim().substr((curValue + \"\").length) || \"px\",\n // some browsers leave extra whitespace at the beginning of CSS variables, hence the need to trim()\n style = _tempDiv.style,\n horizontal = _horizontalExp.test(property),\n isRootSVG = target.tagName.toLowerCase() === \"svg\",\n measureProperty = (isRootSVG ? \"client\" : \"offset\") + (horizontal ? \"Width\" : \"Height\"),\n amount = 100,\n toPixels = unit === \"px\",\n toPercent = unit === \"%\",\n px,\n parent,\n cache,\n isSVG;\n\n if (unit === curUnit || !curValue || _nonConvertibleUnits[unit] || _nonConvertibleUnits[curUnit]) {\n return curValue;\n }\n\n curUnit !== \"px\" && !toPixels && (curValue = _convertToUnit(target, property, value, \"px\"));\n isSVG = target.getCTM && _isSVG(target);\n\n if (toPercent && (_transformProps[property] || ~property.indexOf(\"adius\"))) {\n //transforms and borderRadius are relative to the size of the element itself!\n return _round(curValue / (isSVG ? target.getBBox()[horizontal ? \"width\" : \"height\"] : target[measureProperty]) * amount);\n }\n\n style[horizontal ? \"width\" : \"height\"] = amount + (toPixels ? curUnit : unit);\n parent = ~property.indexOf(\"adius\") || unit === \"em\" && target.appendChild && !isRootSVG ? target : target.parentNode;\n\n if (isSVG) {\n parent = (target.ownerSVGElement || {}).parentNode;\n }\n\n if (!parent || parent === _doc || !parent.appendChild) {\n parent = _doc.body;\n }\n\n cache = parent._gsap;\n\n if (cache && toPercent && cache.width && horizontal && cache.time === _ticker.time) {\n return _round(curValue / cache.width * amount);\n } else {\n (toPercent || curUnit === \"%\") && (style.position = _getComputedProperty(target, \"position\"));\n parent === target && (style.position = \"static\"); // like for borderRadius, if it's a % we must have it relative to the target itself but that may not have position: relative or position: absolute in which case it'd go up the chain until it finds its offsetParent (bad). position: static protects against that.\n\n parent.appendChild(_tempDiv);\n px = _tempDiv[measureProperty];\n parent.removeChild(_tempDiv);\n style.position = \"absolute\";\n\n if (horizontal && toPercent) {\n cache = _getCache(parent);\n cache.time = _ticker.time;\n cache.width = parent[measureProperty];\n }\n }\n\n return _round(toPixels ? px * curValue / amount : px && curValue ? amount / px * curValue : 0);\n},\n _get = function _get(target, property, unit, uncache) {\n var value;\n _pluginInitted || _initCore();\n\n if (property in _propertyAliases && property !== \"transform\") {\n property = _propertyAliases[property];\n\n if (~property.indexOf(\",\")) {\n property = property.split(\",\")[0];\n }\n }\n\n if (_transformProps[property] && property !== \"transform\") {\n value = _parseTransform(target, uncache);\n value = property !== \"transformOrigin\" ? value[property] : _firstTwoOnly(_getComputedProperty(target, _transformOriginProp)) + \" \" + value.zOrigin + \"px\";\n } else {\n value = target.style[property];\n\n if (!value || value === \"auto\" || uncache || ~(value + \"\").indexOf(\"calc(\")) {\n value = _specialProps[property] && _specialProps[property](target, property, unit) || _getComputedProperty(target, property) || _getProperty(target, property) || (property === \"opacity\" ? 1 : 0); // note: some browsers, like Firefox, don't report borderRadius correctly! Instead, it only reports every corner like borderTopLeftRadius\n }\n }\n\n return unit && !~(value + \"\").indexOf(\" \") ? _convertToUnit(target, property, value, unit) + unit : value;\n},\n _tweenComplexCSSString = function _tweenComplexCSSString(target, prop, start, end) {\n //note: we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n if (!start || start === \"none\") {\n // some browsers like Safari actually PREFER the prefixed property and mis-report the unprefixed value like clipPath (BUG). In other words, even though clipPath exists in the style (\"clipPath\" in target.style) and it's set in the CSS properly (along with -webkit-clip-path), Safari reports clipPath as \"none\" whereas WebkitClipPath reports accurately like \"ellipse(100% 0% at 50% 0%)\", so in this case we must SWITCH to using the prefixed property instead. See https://greensock.com/forums/topic/18310-clippath-doesnt-work-on-ios/\n var p = _checkPropPrefix(prop, target, 1),\n s = p && _getComputedProperty(target, p, 1);\n\n if (s && s !== start) {\n prop = p;\n start = s;\n } else if (prop === \"borderColor\") {\n start = _getComputedProperty(target, \"borderTopColor\"); // Firefox bug: always reports \"borderColor\" as \"\", so we must fall back to borderTopColor. See https://greensock.com/forums/topic/24583-how-to-return-colors-that-i-had-after-reverse/\n }\n }\n\n var pt = new PropTween(this._pt, target.style, prop, 0, 1, _renderComplexString),\n index = 0,\n matchIndex = 0,\n a,\n result,\n startValues,\n startNum,\n color,\n startValue,\n endValue,\n endNum,\n chunk,\n endUnit,\n startUnit,\n relative,\n endValues;\n pt.b = start;\n pt.e = end;\n start += \"\"; //ensure values are strings\n\n end += \"\";\n\n if (end === \"auto\") {\n target.style[prop] = end;\n end = _getComputedProperty(target, prop) || end;\n target.style[prop] = start;\n }\n\n a = [start, end];\n\n _colorStringFilter(a); //pass an array with the starting and ending values and let the filter do whatever it needs to the values. If colors are found, it returns true and then we must match where the color shows up order-wise because for things like boxShadow, sometimes the browser provides the computed values with the color FIRST, but the user provides it with the color LAST, so flip them if necessary. Same for drop-shadow().\n\n\n start = a[0];\n end = a[1];\n startValues = start.match(_numWithUnitExp) || [];\n endValues = end.match(_numWithUnitExp) || [];\n\n if (endValues.length) {\n while (result = _numWithUnitExp.exec(end)) {\n endValue = result[0];\n chunk = end.substring(index, result.index);\n\n if (color) {\n color = (color + 1) % 5;\n } else if (chunk.substr(-5) === \"rgba(\" || chunk.substr(-5) === \"hsla(\") {\n color = 1;\n }\n\n if (endValue !== (startValue = startValues[matchIndex++] || \"\")) {\n startNum = parseFloat(startValue) || 0;\n startUnit = startValue.substr((startNum + \"\").length);\n relative = endValue.charAt(1) === \"=\" ? +(endValue.charAt(0) + \"1\") : 0;\n\n if (relative) {\n endValue = endValue.substr(2);\n }\n\n endNum = parseFloat(endValue);\n endUnit = endValue.substr((endNum + \"\").length);\n index = _numWithUnitExp.lastIndex - endUnit.length;\n\n if (!endUnit) {\n //if something like \"perspective:300\" is passed in and we must add a unit to the end\n endUnit = endUnit || _config.units[prop] || startUnit;\n\n if (index === end.length) {\n end += endUnit;\n pt.e += endUnit;\n }\n }\n\n if (startUnit !== endUnit) {\n startNum = _convertToUnit(target, prop, startValue, endUnit) || 0;\n } //these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\n\n pt._pt = {\n _next: pt._pt,\n p: chunk || matchIndex === 1 ? chunk : \",\",\n //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n s: startNum,\n c: relative ? relative * endNum : endNum - startNum,\n m: color && color < 4 ? Math.round : 0\n };\n }\n }\n\n pt.c = index < end.length ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n } else {\n pt.r = prop === \"display\" && end === \"none\" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;\n }\n\n if (_relExp.test(end)) {\n pt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n }\n\n this._pt = pt; //start the linked list with this new PropTween. Remember, we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within another plugin too, thus \"this\" would refer to the plugin.\n\n return pt;\n},\n _keywordToPercent = {\n top: \"0%\",\n bottom: \"100%\",\n left: \"0%\",\n right: \"100%\",\n center: \"50%\"\n},\n _convertKeywordsToPercentages = function _convertKeywordsToPercentages(value) {\n var split = value.split(\" \"),\n x = split[0],\n y = split[1] || \"50%\";\n\n if (x === \"top\" || x === \"bottom\" || y === \"left\" || y === \"right\") {\n //the user provided them in the wrong order, so flip them\n value = x;\n x = y;\n y = value;\n }\n\n split[0] = _keywordToPercent[x] || x;\n split[1] = _keywordToPercent[y] || y;\n return split.join(\" \");\n},\n _renderClearProps = function _renderClearProps(ratio, data) {\n if (data.tween && data.tween._time === data.tween._dur) {\n var target = data.t,\n style = target.style,\n props = data.u,\n cache = target._gsap,\n prop,\n clearTransforms,\n i;\n\n if (props === \"all\" || props === true) {\n style.cssText = \"\";\n clearTransforms = 1;\n } else {\n props = props.split(\",\");\n i = props.length;\n\n while (--i > -1) {\n prop = props[i];\n\n if (_transformProps[prop]) {\n clearTransforms = 1;\n prop = prop === \"transformOrigin\" ? _transformOriginProp : _transformProp;\n }\n\n _removeProperty(target, prop);\n }\n }\n\n if (clearTransforms) {\n _removeProperty(target, _transformProp);\n\n if (cache) {\n cache.svg && target.removeAttribute(\"transform\");\n\n _parseTransform(target, 1); // force all the cached values back to \"normal\"/identity, otherwise if there's another tween that's already set to render transforms on this element, it could display the wrong values.\n\n\n cache.uncache = 1;\n }\n }\n }\n},\n // note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.\n_specialProps = {\n clearProps: function clearProps(plugin, target, property, endValue, tween) {\n if (tween.data !== \"isFromStart\") {\n var pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);\n pt.u = endValue;\n pt.pr = -10;\n pt.tween = tween;\n\n plugin._props.push(property);\n\n return 1;\n }\n }\n /* className feature (about 0.4kb gzipped).\n , className(plugin, target, property, endValue, tween) {\n \tlet _renderClassName = (ratio, data) => {\n \t\t\tdata.css.render(ratio, data.css);\n \t\t\tif (!ratio || ratio === 1) {\n \t\t\t\tlet inline = data.rmv,\n \t\t\t\t\ttarget = data.t,\n \t\t\t\t\tp;\n \t\t\t\ttarget.setAttribute(\"class\", ratio ? data.e : data.b);\n \t\t\t\tfor (p in inline) {\n \t\t\t\t\t_removeProperty(target, p);\n \t\t\t\t}\n \t\t\t}\n \t\t},\n \t\t_getAllStyles = (target) => {\n \t\t\tlet styles = {},\n \t\t\t\tcomputed = getComputedStyle(target),\n \t\t\t\tp;\n \t\t\tfor (p in computed) {\n \t\t\t\tif (isNaN(p) && p !== \"cssText\" && p !== \"length\") {\n \t\t\t\t\tstyles[p] = computed[p];\n \t\t\t\t}\n \t\t\t}\n \t\t\t_setDefaults(styles, _parseTransform(target, 1));\n \t\t\treturn styles;\n \t\t},\n \t\tstartClassList = target.getAttribute(\"class\"),\n \t\tstyle = target.style,\n \t\tcssText = style.cssText,\n \t\tcache = target._gsap,\n \t\tclassPT = cache.classPT,\n \t\tinlineToRemoveAtEnd = {},\n \t\tdata = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== \"=\") ? endValue : startClassList.replace(new RegExp(\"(?:\\\\s|^)\" + endValue.substr(2) + \"(?![\\\\w-])\"), \"\") + ((endValue.charAt(0) === \"+\") ? \" \" + endValue.substr(2) : \"\")},\n \t\tchangingVars = {},\n \t\tstartVars = _getAllStyles(target),\n \t\ttransformRelated = /(transform|perspective)/i,\n \t\tendVars, p;\n \tif (classPT) {\n \t\tclassPT.r(1, classPT.d);\n \t\t_removeLinkedListItem(classPT.d.plugin, classPT, \"_pt\");\n \t}\n \ttarget.setAttribute(\"class\", data.e);\n \tendVars = _getAllStyles(target, true);\n \ttarget.setAttribute(\"class\", startClassList);\n \tfor (p in endVars) {\n \t\tif (endVars[p] !== startVars[p] && !transformRelated.test(p)) {\n \t\t\tchangingVars[p] = endVars[p];\n \t\t\tif (!style[p] && style[p] !== \"0\") {\n \t\t\t\tinlineToRemoveAtEnd[p] = 1;\n \t\t\t}\n \t\t}\n \t}\n \tcache.classPT = plugin._pt = new PropTween(plugin._pt, target, \"className\", 0, 0, _renderClassName, data, 0, -11);\n \tif (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://greensock.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.\n \t\tstyle.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).\n \t}\n \t_parseTransform(target, true); //to clear the caching of transforms\n \tdata.css = new gsap.plugins.css();\n \tdata.css.init(target, changingVars, tween);\n \tplugin._props.push(...data.css._props);\n \treturn 1;\n }\n */\n\n},\n\n/*\n * --------------------------------------------------------------------------------------\n * TRANSFORMS\n * --------------------------------------------------------------------------------------\n */\n_identity2DMatrix = [1, 0, 0, 1, 0, 0],\n _rotationalProperties = {},\n _isNullTransform = function _isNullTransform(value) {\n return value === \"matrix(1, 0, 0, 1, 0, 0)\" || value === \"none\" || !value;\n},\n _getComputedTransformMatrixAsArray = function _getComputedTransformMatrixAsArray(target) {\n var matrixString = _getComputedProperty(target, _transformProp);\n\n return _isNullTransform(matrixString) ? _identity2DMatrix : matrixString.substr(7).match(_numExp).map(_round);\n},\n _getMatrix = function _getMatrix(target, force2D) {\n var cache = target._gsap || _getCache(target),\n style = target.style,\n matrix = _getComputedTransformMatrixAsArray(target),\n parent,\n nextSibling,\n temp,\n addedToDOM;\n\n if (cache.svg && target.getAttribute(\"transform\")) {\n temp = target.transform.baseVal.consolidate().matrix; //ensures that even complex values like \"translate(50,60) rotate(135,0,0)\" are parsed because it mashes it into a matrix.\n\n matrix = [temp.a, temp.b, temp.c, temp.d, temp.e, temp.f];\n return matrix.join(\",\") === \"1,0,0,1,0,0\" ? _identity2DMatrix : matrix;\n } else if (matrix === _identity2DMatrix && !target.offsetParent && target !== _docElement && !cache.svg) {\n //note: if offsetParent is null, that means the element isn't in the normal document flow, like if it has display:none or one of its ancestors has display:none). Firefox returns null for getComputedStyle() if the element is in an iframe that has display:none. https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n //browsers don't report transforms accurately unless the element is in the DOM and has a display value that's not \"none\". Firefox and Microsoft browsers have a partial bug where they'll report transforms even if display:none BUT not any percentage-based values like translate(-50%, 8px) will be reported as if it's translate(0, 8px).\n temp = style.display;\n style.display = \"block\";\n parent = target.parentNode;\n\n if (!parent || !target.offsetParent) {\n // note: in 3.3.0 we switched target.offsetParent to _doc.body.contains(target) to avoid [sometimes unnecessary] MutationObserver calls but that wasn't adequate because there are edge cases where nested position: fixed elements need to get reparented to accurately sense transforms. See https://github.com/greensock/GSAP/issues/388 and https://github.com/greensock/GSAP/issues/375\n addedToDOM = 1; //flag\n\n nextSibling = target.nextSibling;\n\n _docElement.appendChild(target); //we must add it to the DOM in order to get values properly\n\n }\n\n matrix = _getComputedTransformMatrixAsArray(target);\n temp ? style.display = temp : _removeProperty(target, \"display\");\n\n if (addedToDOM) {\n nextSibling ? parent.insertBefore(target, nextSibling) : parent ? parent.appendChild(target) : _docElement.removeChild(target);\n }\n }\n\n return force2D && matrix.length > 6 ? [matrix[0], matrix[1], matrix[4], matrix[5], matrix[12], matrix[13]] : matrix;\n},\n _applySVGOrigin = function _applySVGOrigin(target, origin, originIsAbsolute, smooth, matrixArray, pluginToAddPropTweensTo) {\n var cache = target._gsap,\n matrix = matrixArray || _getMatrix(target, true),\n xOriginOld = cache.xOrigin || 0,\n yOriginOld = cache.yOrigin || 0,\n xOffsetOld = cache.xOffset || 0,\n yOffsetOld = cache.yOffset || 0,\n a = matrix[0],\n b = matrix[1],\n c = matrix[2],\n d = matrix[3],\n tx = matrix[4],\n ty = matrix[5],\n originSplit = origin.split(\" \"),\n xOrigin = parseFloat(originSplit[0]) || 0,\n yOrigin = parseFloat(originSplit[1]) || 0,\n bounds,\n determinant,\n x,\n y;\n\n if (!originIsAbsolute) {\n bounds = _getBBox(target);\n xOrigin = bounds.x + (~originSplit[0].indexOf(\"%\") ? xOrigin / 100 * bounds.width : xOrigin);\n yOrigin = bounds.y + (~(originSplit[1] || originSplit[0]).indexOf(\"%\") ? yOrigin / 100 * bounds.height : yOrigin);\n } else if (matrix !== _identity2DMatrix && (determinant = a * d - b * c)) {\n //if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.\n x = xOrigin * (d / determinant) + yOrigin * (-c / determinant) + (c * ty - d * tx) / determinant;\n y = xOrigin * (-b / determinant) + yOrigin * (a / determinant) - (a * ty - b * tx) / determinant;\n xOrigin = x;\n yOrigin = y;\n }\n\n if (smooth || smooth !== false && cache.smooth) {\n tx = xOrigin - xOriginOld;\n ty = yOrigin - yOriginOld;\n cache.xOffset = xOffsetOld + (tx * a + ty * c) - tx;\n cache.yOffset = yOffsetOld + (tx * b + ty * d) - ty;\n } else {\n cache.xOffset = cache.yOffset = 0;\n }\n\n cache.xOrigin = xOrigin;\n cache.yOrigin = yOrigin;\n cache.smooth = !!smooth;\n cache.origin = origin;\n cache.originIsAbsolute = !!originIsAbsolute;\n target.style[_transformOriginProp] = \"0px 0px\"; //otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).\n\n if (pluginToAddPropTweensTo) {\n _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOrigin\", xOriginOld, xOrigin);\n\n _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOrigin\", yOriginOld, yOrigin);\n\n _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOffset\", xOffsetOld, cache.xOffset);\n\n _addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOffset\", yOffsetOld, cache.yOffset);\n }\n\n target.setAttribute(\"data-svg-origin\", xOrigin + \" \" + yOrigin);\n},\n _parseTransform = function _parseTransform(target, uncache) {\n var cache = target._gsap || new GSCache(target);\n\n if (\"x\" in cache && !uncache && !cache.uncache) {\n return cache;\n }\n\n var style = target.style,\n invertedScaleX = cache.scaleX < 0,\n px = \"px\",\n deg = \"deg\",\n origin = _getComputedProperty(target, _transformOriginProp) || \"0\",\n x,\n y,\n z,\n scaleX,\n scaleY,\n rotation,\n rotationX,\n rotationY,\n skewX,\n skewY,\n perspective,\n xOrigin,\n yOrigin,\n matrix,\n angle,\n cos,\n sin,\n a,\n b,\n c,\n d,\n a12,\n a22,\n t1,\n t2,\n t3,\n a13,\n a23,\n a33,\n a42,\n a43,\n a32;\n x = y = z = rotation = rotationX = rotationY = skewX = skewY = perspective = 0;\n scaleX = scaleY = 1;\n cache.svg = !!(target.getCTM && _isSVG(target));\n matrix = _getMatrix(target, cache.svg);\n\n if (cache.svg) {\n t1 = !cache.uncache && target.getAttribute(\"data-svg-origin\");\n\n _applySVGOrigin(target, t1 || origin, !!t1 || cache.originIsAbsolute, cache.smooth !== false, matrix);\n }\n\n xOrigin = cache.xOrigin || 0;\n yOrigin = cache.yOrigin || 0;\n\n if (matrix !== _identity2DMatrix) {\n a = matrix[0]; //a11\n\n b = matrix[1]; //a21\n\n c = matrix[2]; //a31\n\n d = matrix[3]; //a41\n\n x = a12 = matrix[4];\n y = a22 = matrix[5]; //2D matrix\n\n if (matrix.length === 6) {\n scaleX = Math.sqrt(a * a + b * b);\n scaleY = Math.sqrt(d * d + c * c);\n rotation = a || b ? _atan2(b, a) * _RAD2DEG : 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).\n\n skewX = c || d ? _atan2(c, d) * _RAD2DEG + rotation : 0;\n skewX && (scaleY *= Math.cos(skewX * _DEG2RAD));\n\n if (cache.svg) {\n x -= xOrigin - (xOrigin * a + yOrigin * c);\n y -= yOrigin - (xOrigin * b + yOrigin * d);\n } //3D matrix\n\n } else {\n a32 = matrix[6];\n a42 = matrix[7];\n a13 = matrix[8];\n a23 = matrix[9];\n a33 = matrix[10];\n a43 = matrix[11];\n x = matrix[12];\n y = matrix[13];\n z = matrix[14];\n angle = _atan2(a32, a33);\n rotationX = angle * _RAD2DEG; //rotationX\n\n if (angle) {\n cos = Math.cos(-angle);\n sin = Math.sin(-angle);\n t1 = a12 * cos + a13 * sin;\n t2 = a22 * cos + a23 * sin;\n t3 = a32 * cos + a33 * sin;\n a13 = a12 * -sin + a13 * cos;\n a23 = a22 * -sin + a23 * cos;\n a33 = a32 * -sin + a33 * cos;\n a43 = a42 * -sin + a43 * cos;\n a12 = t1;\n a22 = t2;\n a32 = t3;\n } //rotationY\n\n\n angle = _atan2(-c, a33);\n rotationY = angle * _RAD2DEG;\n\n if (angle) {\n cos = Math.cos(-angle);\n sin = Math.sin(-angle);\n t1 = a * cos - a13 * sin;\n t2 = b * cos - a23 * sin;\n t3 = c * cos - a33 * sin;\n a43 = d * sin + a43 * cos;\n a = t1;\n b = t2;\n c = t3;\n } //rotationZ\n\n\n angle = _atan2(b, a);\n rotation = angle * _RAD2DEG;\n\n if (angle) {\n cos = Math.cos(angle);\n sin = Math.sin(angle);\n t1 = a * cos + b * sin;\n t2 = a12 * cos + a22 * sin;\n b = b * cos - a * sin;\n a22 = a22 * cos - a12 * sin;\n a = t1;\n a12 = t2;\n }\n\n if (rotationX && Math.abs(rotationX) + Math.abs(rotation) > 359.9) {\n //when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.\n rotationX = rotation = 0;\n rotationY = 180 - rotationY;\n }\n\n scaleX = _round(Math.sqrt(a * a + b * b + c * c));\n scaleY = _round(Math.sqrt(a22 * a22 + a32 * a32));\n angle = _atan2(a12, a22);\n skewX = Math.abs(angle) > 0.0002 ? angle * _RAD2DEG : 0;\n perspective = a43 ? 1 / (a43 < 0 ? -a43 : a43) : 0;\n }\n\n if (cache.svg) {\n //sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).\n t1 = target.getAttribute(\"transform\");\n cache.forceCSS = target.setAttribute(\"transform\", \"\") || !_isNullTransform(_getComputedProperty(target, _transformProp));\n t1 && target.setAttribute(\"transform\", t1);\n }\n }\n\n if (Math.abs(skewX) > 90 && Math.abs(skewX) < 270) {\n if (invertedScaleX) {\n scaleX *= -1;\n skewX += rotation <= 0 ? 180 : -180;\n rotation += rotation <= 0 ? 180 : -180;\n } else {\n scaleY *= -1;\n skewX += skewX <= 0 ? 180 : -180;\n }\n }\n\n cache.x = ((cache.xPercent = x && Math.round(target.offsetWidth / 2) === Math.round(-x) ? -50 : 0) ? 0 : x) + px;\n cache.y = ((cache.yPercent = y && Math.round(target.offsetHeight / 2) === Math.round(-y) ? -50 : 0) ? 0 : y) + px;\n cache.z = z + px;\n cache.scaleX = _round(scaleX);\n cache.scaleY = _round(scaleY);\n cache.rotation = _round(rotation) + deg;\n cache.rotationX = _round(rotationX) + deg;\n cache.rotationY = _round(rotationY) + deg;\n cache.skewX = skewX + deg;\n cache.skewY = skewY + deg;\n cache.transformPerspective = perspective + px;\n\n if (cache.zOrigin = parseFloat(origin.split(\" \")[2]) || 0) {\n style[_transformOriginProp] = _firstTwoOnly(origin);\n }\n\n cache.xOffset = cache.yOffset = 0;\n cache.force3D = _config.force3D;\n cache.renderTransform = cache.svg ? _renderSVGTransforms : _supports3D ? _renderCSSTransforms : _renderNon3DTransforms;\n cache.uncache = 0;\n return cache;\n},\n _firstTwoOnly = function _firstTwoOnly(value) {\n return (value = value.split(\" \"))[0] + \" \" + value[1];\n},\n //for handling transformOrigin values, stripping out the 3rd dimension\n_addPxTranslate = function _addPxTranslate(target, start, value) {\n var unit = getUnit(start);\n return _round(parseFloat(start) + parseFloat(_convertToUnit(target, \"x\", value + \"px\", unit))) + unit;\n},\n _renderNon3DTransforms = function _renderNon3DTransforms(ratio, cache) {\n cache.z = \"0px\";\n cache.rotationY = cache.rotationX = \"0deg\";\n cache.force3D = 0;\n\n _renderCSSTransforms(ratio, cache);\n},\n _zeroDeg = \"0deg\",\n _zeroPx = \"0px\",\n _endParenthesis = \") \",\n _renderCSSTransforms = function _renderCSSTransforms(ratio, cache) {\n var _ref = cache || this,\n xPercent = _ref.xPercent,\n yPercent = _ref.yPercent,\n x = _ref.x,\n y = _ref.y,\n z = _ref.z,\n rotation = _ref.rotation,\n rotationY = _ref.rotationY,\n rotationX = _ref.rotationX,\n skewX = _ref.skewX,\n skewY = _ref.skewY,\n scaleX = _ref.scaleX,\n scaleY = _ref.scaleY,\n transformPerspective = _ref.transformPerspective,\n force3D = _ref.force3D,\n target = _ref.target,\n zOrigin = _ref.zOrigin,\n transforms = \"\",\n use3D = force3D === \"auto\" && ratio && ratio !== 1 || force3D === true; // Safari has a bug that causes it not to render 3D transform-origin values properly, so we force the z origin to 0, record it in the cache, and then do the math here to offset the translate values accordingly (basically do the 3D transform-origin part manually)\n\n\n if (zOrigin && (rotationX !== _zeroDeg || rotationY !== _zeroDeg)) {\n var angle = parseFloat(rotationY) * _DEG2RAD,\n a13 = Math.sin(angle),\n a33 = Math.cos(angle),\n cos;\n\n angle = parseFloat(rotationX) * _DEG2RAD;\n cos = Math.cos(angle);\n x = _addPxTranslate(target, x, a13 * cos * -zOrigin);\n y = _addPxTranslate(target, y, -Math.sin(angle) * -zOrigin);\n z = _addPxTranslate(target, z, a33 * cos * -zOrigin + zOrigin);\n }\n\n if (transformPerspective !== _zeroPx) {\n transforms += \"perspective(\" + transformPerspective + _endParenthesis;\n }\n\n if (xPercent || yPercent) {\n transforms += \"translate(\" + xPercent + \"%, \" + yPercent + \"%) \";\n }\n\n if (use3D || x !== _zeroPx || y !== _zeroPx || z !== _zeroPx) {\n transforms += z !== _zeroPx || use3D ? \"translate3d(\" + x + \", \" + y + \", \" + z + \") \" : \"translate(\" + x + \", \" + y + _endParenthesis;\n }\n\n if (rotation !== _zeroDeg) {\n transforms += \"rotate(\" + rotation + _endParenthesis;\n }\n\n if (rotationY !== _zeroDeg) {\n transforms += \"rotateY(\" + rotationY + _endParenthesis;\n }\n\n if (rotationX !== _zeroDeg) {\n transforms += \"rotateX(\" + rotationX + _endParenthesis;\n }\n\n if (skewX !== _zeroDeg || skewY !== _zeroDeg) {\n transforms += \"skew(\" + skewX + \", \" + skewY + _endParenthesis;\n }\n\n if (scaleX !== 1 || scaleY !== 1) {\n transforms += \"scale(\" + scaleX + \", \" + scaleY + _endParenthesis;\n }\n\n target.style[_transformProp] = transforms || \"translate(0, 0)\";\n},\n _renderSVGTransforms = function _renderSVGTransforms(ratio, cache) {\n var _ref2 = cache || this,\n xPercent = _ref2.xPercent,\n yPercent = _ref2.yPercent,\n x = _ref2.x,\n y = _ref2.y,\n rotation = _ref2.rotation,\n skewX = _ref2.skewX,\n skewY = _ref2.skewY,\n scaleX = _ref2.scaleX,\n scaleY = _ref2.scaleY,\n target = _ref2.target,\n xOrigin = _ref2.xOrigin,\n yOrigin = _ref2.yOrigin,\n xOffset = _ref2.xOffset,\n yOffset = _ref2.yOffset,\n forceCSS = _ref2.forceCSS,\n tx = parseFloat(x),\n ty = parseFloat(y),\n a11,\n a21,\n a12,\n a22,\n temp;\n\n rotation = parseFloat(rotation);\n skewX = parseFloat(skewX);\n skewY = parseFloat(skewY);\n\n if (skewY) {\n //for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.\n skewY = parseFloat(skewY);\n skewX += skewY;\n rotation += skewY;\n }\n\n if (rotation || skewX) {\n rotation *= _DEG2RAD;\n skewX *= _DEG2RAD;\n a11 = Math.cos(rotation) * scaleX;\n a21 = Math.sin(rotation) * scaleX;\n a12 = Math.sin(rotation - skewX) * -scaleY;\n a22 = Math.cos(rotation - skewX) * scaleY;\n\n if (skewX) {\n skewY *= _DEG2RAD;\n temp = Math.tan(skewX - skewY);\n temp = Math.sqrt(1 + temp * temp);\n a12 *= temp;\n a22 *= temp;\n\n if (skewY) {\n temp = Math.tan(skewY);\n temp = Math.sqrt(1 + temp * temp);\n a11 *= temp;\n a21 *= temp;\n }\n }\n\n a11 = _round(a11);\n a21 = _round(a21);\n a12 = _round(a12);\n a22 = _round(a22);\n } else {\n a11 = scaleX;\n a22 = scaleY;\n a21 = a12 = 0;\n }\n\n if (tx && !~(x + \"\").indexOf(\"px\") || ty && !~(y + \"\").indexOf(\"px\")) {\n tx = _convertToUnit(target, \"x\", x, \"px\");\n ty = _convertToUnit(target, \"y\", y, \"px\");\n }\n\n if (xOrigin || yOrigin || xOffset || yOffset) {\n tx = _round(tx + xOrigin - (xOrigin * a11 + yOrigin * a12) + xOffset);\n ty = _round(ty + yOrigin - (xOrigin * a21 + yOrigin * a22) + yOffset);\n }\n\n if (xPercent || yPercent) {\n //The SVG spec doesn't support percentage-based translation in the \"transform\" attribute, so we merge it into the translation to simulate it.\n temp = target.getBBox();\n tx = _round(tx + xPercent / 100 * temp.width);\n ty = _round(ty + yPercent / 100 * temp.height);\n }\n\n temp = \"matrix(\" + a11 + \",\" + a21 + \",\" + a12 + \",\" + a22 + \",\" + tx + \",\" + ty + \")\";\n target.setAttribute(\"transform\", temp);\n\n if (forceCSS) {\n //some browsers prioritize CSS transforms over the transform attribute. When we sense that the user has CSS transforms applied, we must overwrite them this way (otherwise some browser simply won't render the transform attribute changes!)\n target.style[_transformProp] = temp;\n }\n},\n _addRotationalPropTween = function _addRotationalPropTween(plugin, target, property, startNum, endValue, relative) {\n var cap = 360,\n isString = _isString(endValue),\n endNum = parseFloat(endValue) * (isString && ~endValue.indexOf(\"rad\") ? _RAD2DEG : 1),\n change = relative ? endNum * relative : endNum - startNum,\n finalValue = startNum + change + \"deg\",\n direction,\n pt;\n\n if (isString) {\n direction = endValue.split(\"_\")[1];\n\n if (direction === \"short\") {\n change %= cap;\n\n if (change !== change % (cap / 2)) {\n change += change < 0 ? cap : -cap;\n }\n }\n\n if (direction === \"cw\" && change < 0) {\n change = (change + cap * _bigNum) % cap - ~~(change / cap) * cap;\n } else if (direction === \"ccw\" && change > 0) {\n change = (change - cap * _bigNum) % cap - ~~(change / cap) * cap;\n }\n }\n\n plugin._pt = pt = new PropTween(plugin._pt, target, property, startNum, change, _renderPropWithEnd);\n pt.e = finalValue;\n pt.u = \"deg\";\n\n plugin._props.push(property);\n\n return pt;\n},\n _addRawTransformPTs = function _addRawTransformPTs(plugin, transforms, target) {\n //for handling cases where someone passes in a whole transform string, like transform: \"scale(2, 3) rotate(20deg) translateY(30em)\"\n var style = _tempDivStyler.style,\n startCache = target._gsap,\n exclude = \"perspective,force3D,transformOrigin,svgOrigin\",\n endCache,\n p,\n startValue,\n endValue,\n startNum,\n endNum,\n startUnit,\n endUnit;\n style.cssText = getComputedStyle(target).cssText + \";position:absolute;display:block;\"; //%-based translations will fail unless we set the width/height to match the original target (and padding/borders can affect it)\n\n style[_transformProp] = transforms;\n\n _doc.body.appendChild(_tempDivStyler);\n\n endCache = _parseTransform(_tempDivStyler, 1);\n\n for (p in _transformProps) {\n startValue = startCache[p];\n endValue = endCache[p];\n\n if (startValue !== endValue && exclude.indexOf(p) < 0) {\n //tweening to no perspective gives very unintuitive results - just keep the same perspective in that case.\n startUnit = getUnit(startValue);\n endUnit = getUnit(endValue);\n startNum = startUnit !== endUnit ? _convertToUnit(target, p, startValue, endUnit) : parseFloat(startValue);\n endNum = parseFloat(endValue);\n plugin._pt = new PropTween(plugin._pt, startCache, p, startNum, endNum - startNum, _renderCSSProp);\n plugin._pt.u = endUnit || 0;\n\n plugin._props.push(p);\n }\n }\n\n _doc.body.removeChild(_tempDivStyler);\n}; // handle splitting apart padding, margin, borderWidth, and borderRadius into their 4 components. Firefox, for example, won't report borderRadius correctly - it will only do borderTopLeftRadius and the other corners. We also want to handle paddingTop, marginLeft, borderRightWidth, etc.\n\n\n_forEachName(\"padding,margin,Width,Radius\", function (name, index) {\n var t = \"Top\",\n r = \"Right\",\n b = \"Bottom\",\n l = \"Left\",\n props = (index < 3 ? [t, r, b, l] : [t + l, t + r, b + r, b + l]).map(function (side) {\n return index < 2 ? name + side : \"border\" + side + name;\n });\n\n _specialProps[index > 1 ? \"border\" + name : name] = function (plugin, target, property, endValue, tween) {\n var a, vars;\n\n if (arguments.length < 4) {\n // getter, passed target, property, and unit (from _get())\n a = props.map(function (prop) {\n return _get(plugin, prop, property);\n });\n vars = a.join(\" \");\n return vars.split(a[0]).length === 5 ? a[0] : vars;\n }\n\n a = (endValue + \"\").split(\" \");\n vars = {};\n props.forEach(function (prop, i) {\n return vars[prop] = a[i] = a[i] || a[(i - 1) / 2 | 0];\n });\n plugin.init(target, vars, tween);\n };\n});\n\nexport var CSSPlugin = {\n name: \"css\",\n register: _initCore,\n targetTest: function targetTest(target) {\n return target.style && target.nodeType;\n },\n init: function init(target, vars, tween, index, targets) {\n var props = this._props,\n style = target.style,\n startValue,\n endValue,\n endNum,\n startNum,\n type,\n specialProp,\n p,\n startUnit,\n endUnit,\n relative,\n isTransformRelated,\n transformPropTween,\n cache,\n smooth,\n hasPriority;\n _pluginInitted || _initCore();\n\n for (p in vars) {\n if (p === \"autoRound\") {\n continue;\n }\n\n endValue = vars[p];\n\n if (_plugins[p] && _checkPlugin(p, vars, tween, index, target, targets)) {\n //plugins\n continue;\n }\n\n type = _typeof(endValue);\n specialProp = _specialProps[p];\n\n if (type === \"function\") {\n endValue = endValue.call(tween, index, target, targets);\n type = _typeof(endValue);\n }\n\n if (type === \"string\" && ~endValue.indexOf(\"random(\")) {\n endValue = _replaceRandom(endValue);\n }\n\n if (specialProp) {\n if (specialProp(this, target, p, endValue, tween)) {\n hasPriority = 1;\n }\n } else if (p.substr(0, 2) === \"--\") {\n //CSS variable\n this.add(style, \"setProperty\", getComputedStyle(target).getPropertyValue(p) + \"\", endValue + \"\", index, targets, 0, 0, p);\n } else if (type !== \"undefined\") {\n startValue = _get(target, p);\n startNum = parseFloat(startValue);\n relative = type === \"string\" && endValue.charAt(1) === \"=\" ? +(endValue.charAt(0) + \"1\") : 0;\n\n if (relative) {\n endValue = endValue.substr(2);\n }\n\n endNum = parseFloat(endValue);\n\n if (p in _propertyAliases) {\n if (p === \"autoAlpha\") {\n //special case where we control the visibility along with opacity. We still allow the opacity value to pass through and get tweened.\n if (startNum === 1 && _get(target, \"visibility\") === \"hidden\" && endNum) {\n //if visibility is initially set to \"hidden\", we should interpret that as intent to make opacity 0 (a convenience)\n startNum = 0;\n }\n\n _addNonTweeningPT(this, style, \"visibility\", startNum ? \"inherit\" : \"hidden\", endNum ? \"inherit\" : \"hidden\", !endNum);\n }\n\n if (p !== \"scale\" && p !== \"transform\") {\n p = _propertyAliases[p];\n ~p.indexOf(\",\") && (p = p.split(\",\")[0]);\n }\n }\n\n isTransformRelated = p in _transformProps; //--- TRANSFORM-RELATED ---\n\n if (isTransformRelated) {\n if (!transformPropTween) {\n cache = target._gsap;\n cache.renderTransform || _parseTransform(target); // if, for example, gsap.set(... {transform:\"translateX(50vw)\"}), the _get() call doesn't parse the transform, thus cache.renderTransform won't be set yet so force the parsing of the transform here.\n\n smooth = vars.smoothOrigin !== false && cache.smooth;\n transformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache, 0, -1); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)\n\n transformPropTween.dep = 1; //flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.\n }\n\n if (p === \"scale\") {\n this._pt = new PropTween(this._pt, cache, \"scaleY\", cache.scaleY, relative ? relative * endNum : endNum - cache.scaleY);\n props.push(\"scaleY\", p);\n p += \"X\";\n } else if (p === \"transformOrigin\") {\n endValue = _convertKeywordsToPercentages(endValue); //in case something like \"left top\" or \"bottom right\" is passed in. Convert to percentages.\n\n if (cache.svg) {\n _applySVGOrigin(target, endValue, 0, smooth, 0, this);\n } else {\n endUnit = parseFloat(endValue.split(\" \")[2]) || 0; //handle the zOrigin separately!\n\n endUnit !== cache.zOrigin && _addNonTweeningPT(this, cache, \"zOrigin\", cache.zOrigin, endUnit);\n\n _addNonTweeningPT(this, style, p, _firstTwoOnly(startValue), _firstTwoOnly(endValue));\n }\n\n continue;\n } else if (p === \"svgOrigin\") {\n _applySVGOrigin(target, endValue, 1, smooth, 0, this);\n\n continue;\n } else if (p in _rotationalProperties) {\n _addRotationalPropTween(this, cache, p, startNum, endValue, relative);\n\n continue;\n } else if (p === \"smoothOrigin\") {\n _addNonTweeningPT(this, cache, \"smooth\", cache.smooth, endValue);\n\n continue;\n } else if (p === \"force3D\") {\n cache[p] = endValue;\n continue;\n } else if (p === \"transform\") {\n _addRawTransformPTs(this, endValue, target);\n\n continue;\n }\n } else if (!(p in style)) {\n p = _checkPropPrefix(p) || p;\n }\n\n if (isTransformRelated || (endNum || endNum === 0) && (startNum || startNum === 0) && !_complexExp.test(endValue) && p in style) {\n startUnit = (startValue + \"\").substr((startNum + \"\").length);\n endNum || (endNum = 0); // protect against NaN\n\n endUnit = getUnit(endValue) || (p in _config.units ? _config.units[p] : startUnit);\n startUnit !== endUnit && (startNum = _convertToUnit(target, p, startValue, endUnit));\n this._pt = new PropTween(this._pt, isTransformRelated ? cache : style, p, startNum, relative ? relative * endNum : endNum - startNum, endUnit === \"px\" && vars.autoRound !== false && !isTransformRelated ? _renderRoundedCSSProp : _renderCSSProp);\n this._pt.u = endUnit || 0;\n\n if (startUnit !== endUnit) {\n //when the tween goes all the way back to the beginning, we need to revert it to the OLD/ORIGINAL value (with those units). We record that as a \"b\" (beginning) property and point to a render method that handles that. (performance optimization)\n this._pt.b = startValue;\n this._pt.r = _renderCSSPropWithBeginning;\n }\n } else if (!(p in style)) {\n if (p in target) {\n //maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.\n this.add(target, p, target[p], endValue, index, targets);\n } else {\n _missingPlugin(p, endValue);\n\n continue;\n }\n } else {\n _tweenComplexCSSString.call(this, target, p, startValue, endValue);\n }\n\n props.push(p);\n }\n }\n\n hasPriority && _sortPropTweensByPriority(this);\n },\n get: _get,\n aliases: _propertyAliases,\n getSetter: function getSetter(target, property, plugin) {\n //returns a setter function that accepts target, property, value and applies it accordingly. Remember, properties like \"x\" aren't as simple as target.style.property = value because they've got to be applied to a proxy object and then merged into a transform string in a renderer.\n var p = _propertyAliases[property];\n p && p.indexOf(\",\") < 0 && (property = p);\n return property in _transformProps && property !== _transformOriginProp && (target._gsap.x || _get(target, \"x\")) ? plugin && _recentSetterPlugin === plugin ? property === \"scale\" ? _setterScale : _setterTransform : (_recentSetterPlugin = plugin || {}) && (property === \"scale\" ? _setterScaleWithRender : _setterTransformWithRender) : target.style && !_isUndefined(target.style[property]) ? _setterCSSStyle : ~property.indexOf(\"-\") ? _setterCSSProp : _getSetter(target, property);\n },\n core: {\n _removeProperty: _removeProperty,\n _getMatrix: _getMatrix\n }\n};\ngsap.utils.checkPrefix = _checkPropPrefix;\n\n(function (positionAndScale, rotation, others, aliases) {\n var all = _forEachName(positionAndScale + \",\" + rotation + \",\" + others, function (name) {\n _transformProps[name] = 1;\n });\n\n _forEachName(rotation, function (name) {\n _config.units[name] = \"deg\";\n _rotationalProperties[name] = 1;\n });\n\n _propertyAliases[all[13]] = positionAndScale + \",\" + rotation;\n\n _forEachName(aliases, function (name) {\n var split = name.split(\":\");\n _propertyAliases[split[1]] = all[split[0]];\n });\n})(\"x,y,z,scale,scaleX,scaleY,xPercent,yPercent\", \"rotation,rotationX,rotationY,skewX,skewY\", \"transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective\", \"0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY\");\n\n_forEachName(\"x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective\", function (name) {\n _config.units[name] = \"px\";\n});\n\ngsap.registerPlugin(CSSPlugin);\nexport { CSSPlugin as default, _getBBox, _createElement, _checkPropPrefix as checkPrefix };","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n/*!\n * GSAP 3.5.1\n * https://greensock.com\n *\n * @license Copyright 2008-2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\n\n\nvar _config = {\n autoSleep: 120,\n force3D: \"auto\",\n nullTargetWarn: 1,\n units: {\n lineHeight: \"\"\n }\n},\n _defaults = {\n duration: .5,\n overwrite: false,\n delay: 0\n},\n _bigNum = 1e8,\n _tinyNum = 1 / _bigNum,\n _2PI = Math.PI * 2,\n _HALF_PI = _2PI / 4,\n _gsID = 0,\n _sqrt = Math.sqrt,\n _cos = Math.cos,\n _sin = Math.sin,\n _isString = function _isString(value) {\n return typeof value === \"string\";\n},\n _isFunction = function _isFunction(value) {\n return typeof value === \"function\";\n},\n _isNumber = function _isNumber(value) {\n return typeof value === \"number\";\n},\n _isUndefined = function _isUndefined(value) {\n return typeof value === \"undefined\";\n},\n _isObject = function _isObject(value) {\n return _typeof(value) === \"object\";\n},\n _isNotFalse = function _isNotFalse(value) {\n return value !== false;\n},\n _windowExists = function _windowExists() {\n return typeof window !== \"undefined\";\n},\n _isFuncOrString = function _isFuncOrString(value) {\n return _isFunction(value) || _isString(value);\n},\n _isTypedArray = typeof ArrayBuffer === \"function\" && ArrayBuffer.isView || function () {},\n // note: IE10 has ArrayBuffer, but NOT ArrayBuffer.isView().\n_isArray = Array.isArray,\n _strictNumExp = /(?:-?\\.?\\d|\\.)+/gi,\n //only numbers (including negatives and decimals) but NOT relative values.\n_numExp = /[-+=.]*\\d+[.e\\-+]*\\d*[e\\-\\+]*\\d*/g,\n //finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.\n_numWithUnitExp = /[-+=.]*\\d+[.e-]*\\d*[a-z%]*/g,\n _complexStringNumExp = /[-+=.]*\\d+(?:\\.|e-|e)*\\d*/gi,\n //duplicate so that while we're looping through matches from exec(), it doesn't contaminate the lastIndex of _numExp which we use to search for colors too.\n_relExp = /[+-]=-?[\\.\\d]+/,\n _delimitedValueExp = /[#\\-+.]*\\b[a-z\\d-=+%.]+/gi,\n _globalTimeline,\n _win,\n _coreInitted,\n _doc,\n _globals = {},\n _installScope = {},\n _coreReady,\n _install = function _install(scope) {\n return (_installScope = _merge(scope, _globals)) && gsap;\n},\n _missingPlugin = function _missingPlugin(property, value) {\n return console.warn(\"Invalid property\", property, \"set to\", value, \"Missing plugin? gsap.registerPlugin()\");\n},\n _warn = function _warn(message, suppress) {\n return !suppress && console.warn(message);\n},\n _addGlobal = function _addGlobal(name, obj) {\n return name && (_globals[name] = obj) && _installScope && (_installScope[name] = obj) || _globals;\n},\n _emptyFunc = function _emptyFunc() {\n return 0;\n},\n _reservedProps = {},\n _lazyTweens = [],\n _lazyLookup = {},\n _lastRenderedFrame,\n _plugins = {},\n _effects = {},\n _nextGCFrame = 30,\n _harnessPlugins = [],\n _callbackNames = \"\",\n _harness = function _harness(targets) {\n var target = targets[0],\n harnessPlugin,\n i;\n _isObject(target) || _isFunction(target) || (targets = [targets]);\n\n if (!(harnessPlugin = (target._gsap || {}).harness)) {\n i = _harnessPlugins.length;\n\n while (i-- && !_harnessPlugins[i].targetTest(target)) {}\n\n harnessPlugin = _harnessPlugins[i];\n }\n\n i = targets.length;\n\n while (i--) {\n targets[i] && (targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin))) || targets.splice(i, 1);\n }\n\n return targets;\n},\n _getCache = function _getCache(target) {\n return target._gsap || _harness(toArray(target))[0]._gsap;\n},\n _getProperty = function _getProperty(target, property, v) {\n return (v = target[property]) && _isFunction(v) ? target[property]() : _isUndefined(v) && target.getAttribute && target.getAttribute(property) || v;\n},\n _forEachName = function _forEachName(names, func) {\n return (names = names.split(\",\")).forEach(func) || names;\n},\n //split a comma-delimited list of names into an array, then run a forEach() function and return the split array (this is just a way to consolidate/shorten some code).\n_round = function _round(value) {\n return Math.round(value * 100000) / 100000 || 0;\n},\n _arrayContainsAny = function _arrayContainsAny(toSearch, toFind) {\n //searches one array to find matches for any of the items in the toFind array. As soon as one is found, it returns true. It does NOT return all the matches; it's simply a boolean search.\n var l = toFind.length,\n i = 0;\n\n for (; toSearch.indexOf(toFind[i]) < 0 && ++i < l;) {}\n\n return i < l;\n},\n _parseVars = function _parseVars(params, type, parent) {\n //reads the arguments passed to one of the key methods and figures out if the user is defining things with the OLD/legacy syntax where the duration is the 2nd parameter, and then it adjusts things accordingly and spits back the corrected vars object (with the duration added if necessary, as well as runBackwards or startAt or immediateRender). type 0 = to()/staggerTo(), 1 = from()/staggerFrom(), 2 = fromTo()/staggerFromTo()\n var isLegacy = _isNumber(params[1]),\n varsIndex = (isLegacy ? 2 : 1) + (type < 2 ? 0 : 1),\n vars = params[varsIndex],\n irVars;\n\n isLegacy && (vars.duration = params[1]);\n vars.parent = parent;\n\n if (type) {\n irVars = vars;\n\n while (parent && !(\"immediateRender\" in irVars)) {\n // inheritance hasn't happened yet, but someone may have set a default in an ancestor timeline. We could do vars.immediateRender = _isNotFalse(_inheritDefaults(vars).immediateRender) but that'd exact a slight performance penalty because _inheritDefaults() also runs in the Tween constructor. We're paying a small kb price here to gain speed.\n irVars = parent.vars.defaults || {};\n parent = _isNotFalse(parent.vars.inherit) && parent.parent;\n }\n\n vars.immediateRender = _isNotFalse(irVars.immediateRender);\n type < 2 ? vars.runBackwards = 1 : vars.startAt = params[varsIndex - 1]; // \"from\" vars\n }\n\n return vars;\n},\n _lazyRender = function _lazyRender() {\n var l = _lazyTweens.length,\n a = _lazyTweens.slice(0),\n i,\n tween;\n\n _lazyLookup = {};\n _lazyTweens.length = 0;\n\n for (i = 0; i < l; i++) {\n tween = a[i];\n tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);\n }\n},\n _lazySafeRender = function _lazySafeRender(animation, time, suppressEvents, force) {\n _lazyTweens.length && _lazyRender();\n animation.render(time, suppressEvents, force);\n _lazyTweens.length && _lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.\n},\n _numericIfPossible = function _numericIfPossible(value) {\n var n = parseFloat(value);\n return (n || n === 0) && (value + \"\").match(_delimitedValueExp).length < 2 ? n : _isString(value) ? value.trim() : value;\n},\n _passThrough = function _passThrough(p) {\n return p;\n},\n _setDefaults = function _setDefaults(obj, defaults) {\n for (var p in defaults) {\n p in obj || (obj[p] = defaults[p]);\n }\n\n return obj;\n},\n _setKeyframeDefaults = function _setKeyframeDefaults(obj, defaults) {\n for (var p in defaults) {\n p in obj || p === \"duration\" || p === \"ease\" || (obj[p] = defaults[p]);\n }\n},\n _merge = function _merge(base, toMerge) {\n for (var p in toMerge) {\n base[p] = toMerge[p];\n }\n\n return base;\n},\n _mergeDeep = function _mergeDeep(base, toMerge) {\n for (var p in toMerge) {\n base[p] = _isObject(toMerge[p]) ? _mergeDeep(base[p] || (base[p] = {}), toMerge[p]) : toMerge[p];\n }\n\n return base;\n},\n _copyExcluding = function _copyExcluding(obj, excluding) {\n var copy = {},\n p;\n\n for (p in obj) {\n p in excluding || (copy[p] = obj[p]);\n }\n\n return copy;\n},\n _inheritDefaults = function _inheritDefaults(vars) {\n var parent = vars.parent || _globalTimeline,\n func = vars.keyframes ? _setKeyframeDefaults : _setDefaults;\n\n if (_isNotFalse(vars.inherit)) {\n while (parent) {\n func(vars, parent.vars.defaults);\n parent = parent.parent || parent._dp;\n }\n }\n\n return vars;\n},\n _arraysMatch = function _arraysMatch(a1, a2) {\n var i = a1.length,\n match = i === a2.length;\n\n while (match && i-- && a1[i] === a2[i]) {}\n\n return i < 0;\n},\n _addLinkedListItem = function _addLinkedListItem(parent, child, firstProp, lastProp, sortBy) {\n if (firstProp === void 0) {\n firstProp = \"_first\";\n }\n\n if (lastProp === void 0) {\n lastProp = \"_last\";\n }\n\n var prev = parent[lastProp],\n t;\n\n if (sortBy) {\n t = child[sortBy];\n\n while (prev && prev[sortBy] > t) {\n prev = prev._prev;\n }\n }\n\n if (prev) {\n child._next = prev._next;\n prev._next = child;\n } else {\n child._next = parent[firstProp];\n parent[firstProp] = child;\n }\n\n if (child._next) {\n child._next._prev = child;\n } else {\n parent[lastProp] = child;\n }\n\n child._prev = prev;\n child.parent = child._dp = parent;\n return child;\n},\n _removeLinkedListItem = function _removeLinkedListItem(parent, child, firstProp, lastProp) {\n if (firstProp === void 0) {\n firstProp = \"_first\";\n }\n\n if (lastProp === void 0) {\n lastProp = \"_last\";\n }\n\n var prev = child._prev,\n next = child._next;\n\n if (prev) {\n prev._next = next;\n } else if (parent[firstProp] === child) {\n parent[firstProp] = next;\n }\n\n if (next) {\n next._prev = prev;\n } else if (parent[lastProp] === child) {\n parent[lastProp] = prev;\n }\n\n child._next = child._prev = child.parent = null; // don't delete the _dp just so we can revert if necessary. But parent should be null to indicate the item isn't in a linked list.\n},\n _removeFromParent = function _removeFromParent(child, onlyIfParentHasAutoRemove) {\n child.parent && (!onlyIfParentHasAutoRemove || child.parent.autoRemoveChildren) && child.parent.remove(child);\n child._act = 0;\n},\n _uncache = function _uncache(animation, child) {\n if (animation && (!child || child._end > animation._dur || child._start < 0)) {\n // performance optimization: if a child animation is passed in we should only uncache if that child EXTENDS the animation (its end time is beyond the end)\n var a = animation;\n\n while (a) {\n a._dirty = 1;\n a = a.parent;\n }\n }\n\n return animation;\n},\n _recacheAncestors = function _recacheAncestors(animation) {\n var parent = animation.parent;\n\n while (parent && parent.parent) {\n //sometimes we must force a re-sort of all children and update the duration/totalDuration of all ancestor timelines immediately in case, for example, in the middle of a render loop, one tween alters another tween's timeScale which shoves its startTime before 0, forcing the parent timeline to shift around and shiftChildren() which could affect that next tween's render (startTime). Doesn't matter for the root timeline though.\n parent._dirty = 1;\n parent.totalDuration();\n parent = parent.parent;\n }\n\n return animation;\n},\n _hasNoPausedAncestors = function _hasNoPausedAncestors(animation) {\n return !animation || animation._ts && _hasNoPausedAncestors(animation.parent);\n},\n _elapsedCycleDuration = function _elapsedCycleDuration(animation) {\n return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;\n},\n // feed in the totalTime and cycleDuration and it'll return the cycle (iteration minus 1) and if the playhead is exactly at the very END, it will NOT bump up to the next cycle.\n_animationCycle = function _animationCycle(tTime, cycleDuration) {\n return (tTime /= cycleDuration) && ~~tTime === tTime ? ~~tTime - 1 : ~~tTime;\n},\n _parentToChildTotalTime = function _parentToChildTotalTime(parentTime, child) {\n return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);\n},\n _setEnd = function _setEnd(animation) {\n return animation._end = _round(animation._start + (animation._tDur / Math.abs(animation._ts || animation._rts || _tinyNum) || 0));\n},\n _alignPlayhead = function _alignPlayhead(animation, totalTime) {\n // adjusts the animation's _start and _end according to the provided totalTime (only if the parent's smoothChildTiming is true and the animation isn't paused). It doesn't do any rendering or forcing things back into parent timelines, etc. - that's what totalTime() is for.\n var parent = animation._dp;\n\n if (parent && parent.smoothChildTiming && animation._ts) {\n animation._start = _round(animation._dp._time - (animation._ts > 0 ? totalTime / animation._ts : ((animation._dirty ? animation.totalDuration() : animation._tDur) - totalTime) / -animation._ts));\n\n _setEnd(animation);\n\n parent._dirty || _uncache(parent, animation); //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.\n }\n\n return animation;\n},\n\n/*\n_totalTimeToTime = (clampedTotalTime, duration, repeat, repeatDelay, yoyo) => {\n\tlet cycleDuration = duration + repeatDelay,\n\t\ttime = _round(clampedTotalTime % cycleDuration);\n\tif (time > duration) {\n\t\ttime = duration;\n\t}\n\treturn (yoyo && (~~(clampedTotalTime / cycleDuration) & 1)) ? duration - time : time;\n},\n*/\n_postAddChecks = function _postAddChecks(timeline, child) {\n var t;\n\n if (child._time || child._initted && !child._dur) {\n //in case, for example, the _start is moved on a tween that has already rendered. Imagine it's at its end state, then the startTime is moved WAY later (after the end of this timeline), it should render at its beginning.\n t = _parentToChildTotalTime(timeline.rawTime(), child);\n\n if (!child._dur || _clamp(0, child.totalDuration(), t) - child._tTime > _tinyNum) {\n child.render(t, true);\n }\n } //if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.\n\n\n if (_uncache(timeline, child)._dp && timeline._initted && timeline._time >= timeline._dur && timeline._ts) {\n //in case any of the ancestors had completed but should now be enabled...\n if (timeline._dur < timeline.duration()) {\n t = timeline;\n\n while (t._dp) {\n t.rawTime() >= 0 && t.totalTime(t._tTime); //moves the timeline (shifts its startTime) if necessary, and also enables it. If it's currently zero, though, it may not be scheduled to render until later so there's no need to force it to align with the current playhead position. Only move to catch up with the playhead.\n\n t = t._dp;\n }\n }\n\n timeline._zTime = -_tinyNum; // helps ensure that the next render() will be forced (crossingStart = true in render()), even if the duration hasn't changed (we're adding a child which would need to get rendered). Definitely an edge case. Note: we MUST do this AFTER the loop above where the totalTime() might trigger a render() because this _addToTimeline() method gets called from the Animation constructor, BEFORE tweens even record their targets, etc. so we wouldn't want things to get triggered in the wrong order.\n }\n},\n _addToTimeline = function _addToTimeline(timeline, child, position, skipChecks) {\n child.parent && _removeFromParent(child);\n child._start = _round(position + child._delay);\n child._end = _round(child._start + (child.totalDuration() / Math.abs(child.timeScale()) || 0));\n\n _addLinkedListItem(timeline, child, \"_first\", \"_last\", timeline._sort ? \"_start\" : 0);\n\n timeline._recent = child;\n skipChecks || _postAddChecks(timeline, child);\n return timeline;\n},\n _scrollTrigger = function _scrollTrigger(animation, trigger) {\n return (_globals.ScrollTrigger || _missingPlugin(\"scrollTrigger\", trigger)) && _globals.ScrollTrigger.create(trigger, animation);\n},\n _attemptInitTween = function _attemptInitTween(tween, totalTime, force, suppressEvents) {\n _initTween(tween, totalTime);\n\n if (!tween._initted) {\n return 1;\n }\n\n if (!force && tween._pt && (tween._dur && tween.vars.lazy !== false || !tween._dur && tween.vars.lazy) && _lastRenderedFrame !== _ticker.frame) {\n _lazyTweens.push(tween);\n\n tween._lazy = [totalTime, suppressEvents];\n return 1;\n }\n},\n _renderZeroDurationTween = function _renderZeroDurationTween(tween, totalTime, suppressEvents, force) {\n var prevRatio = tween.ratio,\n ratio = totalTime < 0 || !totalTime && prevRatio && !tween._start && tween._zTime > _tinyNum && !tween._dp._lock || (tween._ts < 0 || tween._dp._ts < 0) && tween.data !== \"isFromStart\" && tween.data !== \"isStart\" ? 0 : 1,\n // check parent's _lock because when a timeline repeats/yoyos and does its artificial wrapping, we shouldn't force the ratio back to 0. Also, if the tween or its parent is reversed and the totalTime is 0, we should go to a ratio of 0.\n repeatDelay = tween._rDelay,\n tTime = 0,\n pt,\n iteration,\n prevIteration;\n\n if (repeatDelay && tween._repeat) {\n // in case there's a zero-duration tween that has a repeat with a repeatDelay\n tTime = _clamp(0, tween._tDur, totalTime);\n iteration = _animationCycle(tTime, repeatDelay);\n prevIteration = _animationCycle(tween._tTime, repeatDelay);\n\n if (iteration !== prevIteration) {\n prevRatio = 1 - ratio;\n tween.vars.repeatRefresh && tween._initted && tween.invalidate();\n }\n }\n\n if (ratio !== prevRatio || force || tween._zTime === _tinyNum || !totalTime && tween._zTime) {\n if (!tween._initted && _attemptInitTween(tween, totalTime, force, suppressEvents)) {\n // if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.\n return;\n }\n\n prevIteration = tween._zTime;\n tween._zTime = totalTime || (suppressEvents ? _tinyNum : 0); // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\n suppressEvents || (suppressEvents = totalTime && !prevIteration); // if it was rendered previously at exactly 0 (_zTime) and now the playhead is moving away, DON'T fire callbacks otherwise they'll seem like duplicates.\n\n tween.ratio = ratio;\n tween._from && (ratio = 1 - ratio);\n tween._time = 0;\n tween._tTime = tTime;\n suppressEvents || _callback(tween, \"onStart\");\n pt = tween._pt;\n\n while (pt) {\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n\n tween._startAt && totalTime < 0 && tween._startAt.render(totalTime, true, true);\n tween._onUpdate && !suppressEvents && _callback(tween, \"onUpdate\");\n tTime && tween._repeat && !suppressEvents && tween.parent && _callback(tween, \"onRepeat\");\n\n if ((totalTime >= tween._tDur || totalTime < 0) && tween.ratio === ratio) {\n ratio && _removeFromParent(tween, 1);\n\n if (!suppressEvents) {\n _callback(tween, ratio ? \"onComplete\" : \"onReverseComplete\", true);\n\n tween._prom && tween._prom();\n }\n }\n } else if (!tween._zTime) {\n tween._zTime = totalTime;\n }\n},\n _findNextPauseTween = function _findNextPauseTween(animation, prevTime, time) {\n var child;\n\n if (time > prevTime) {\n child = animation._first;\n\n while (child && child._start <= time) {\n if (!child._dur && child.data === \"isPause\" && child._start > prevTime) {\n return child;\n }\n\n child = child._next;\n }\n } else {\n child = animation._last;\n\n while (child && child._start >= time) {\n if (!child._dur && child.data === \"isPause\" && child._start < prevTime) {\n return child;\n }\n\n child = child._prev;\n }\n }\n},\n _setDuration = function _setDuration(animation, duration, skipUncache, leavePlayhead) {\n var repeat = animation._repeat,\n dur = _round(duration) || 0,\n totalProgress = animation._tTime / animation._tDur;\n totalProgress && !leavePlayhead && (animation._time *= dur / animation._dur);\n animation._dur = dur;\n animation._tDur = !repeat ? dur : repeat < 0 ? 1e10 : _round(dur * (repeat + 1) + animation._rDelay * repeat);\n totalProgress && !leavePlayhead ? _alignPlayhead(animation, animation._tTime = animation._tDur * totalProgress) : animation.parent && _setEnd(animation);\n skipUncache || _uncache(animation.parent, animation);\n return animation;\n},\n _onUpdateTotalDuration = function _onUpdateTotalDuration(animation) {\n return animation instanceof Timeline ? _uncache(animation) : _setDuration(animation, animation._dur);\n},\n _zeroPosition = {\n _start: 0,\n endTime: _emptyFunc\n},\n _parsePosition = function _parsePosition(animation, position) {\n var labels = animation.labels,\n recent = animation._recent || _zeroPosition,\n clippedDuration = animation.duration() >= _bigNum ? recent.endTime(false) : animation._dur,\n //in case there's a child that infinitely repeats, users almost never intend for the insertion point of a new child to be based on a SUPER long value like that so we clip it and assume the most recently-added child's endTime should be used instead.\n i,\n offset;\n\n if (_isString(position) && (isNaN(position) || position in labels)) {\n //if the string is a number like \"1\", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).\n i = position.charAt(0);\n\n if (i === \"<\" || i === \">\") {\n return (i === \"<\" ? recent._start : recent.endTime(recent._repeat >= 0)) + (parseFloat(position.substr(1)) || 0);\n }\n\n i = position.indexOf(\"=\");\n\n if (i < 0) {\n position in labels || (labels[position] = clippedDuration);\n return labels[position];\n }\n\n offset = +(position.charAt(i - 1) + position.substr(i + 1));\n return i > 1 ? _parsePosition(animation, position.substr(0, i - 1)) + offset : clippedDuration + offset;\n }\n\n return position == null ? clippedDuration : +position;\n},\n _conditionalReturn = function _conditionalReturn(value, func) {\n return value || value === 0 ? func(value) : func;\n},\n _clamp = function _clamp(min, max, value) {\n return value < min ? min : value > max ? max : value;\n},\n getUnit = function getUnit(value) {\n return (value = (value + \"\").substr((parseFloat(value) + \"\").length)) && isNaN(value) ? value : \"\";\n},\n // note: protect against padded numbers as strings, like \"100.100\". That shouldn't return \"00\" as the unit. If it's numeric, return no unit.\nclamp = function clamp(min, max, value) {\n return _conditionalReturn(value, function (v) {\n return _clamp(min, max, v);\n });\n},\n _slice = [].slice,\n _isArrayLike = function _isArrayLike(value, nonEmpty) {\n return value && _isObject(value) && \"length\" in value && (!nonEmpty && !value.length || value.length - 1 in value && _isObject(value[0])) && !value.nodeType && value !== _win;\n},\n _flatten = function _flatten(ar, leaveStrings, accumulator) {\n if (accumulator === void 0) {\n accumulator = [];\n }\n\n return ar.forEach(function (value) {\n var _accumulator;\n\n return _isString(value) && !leaveStrings || _isArrayLike(value, 1) ? (_accumulator = accumulator).push.apply(_accumulator, toArray(value)) : accumulator.push(value);\n }) || accumulator;\n},\n //takes any value and returns an array. If it's a string (and leaveStrings isn't true), it'll use document.querySelectorAll() and convert that to an array. It'll also accept iterables like jQuery objects.\ntoArray = function toArray(value, leaveStrings) {\n return _isString(value) && !leaveStrings && (_coreInitted || !_wake()) ? _slice.call(_doc.querySelectorAll(value), 0) : _isArray(value) ? _flatten(value, leaveStrings) : _isArrayLike(value) ? _slice.call(value, 0) : value ? [value] : [];\n},\n shuffle = function shuffle(a) {\n return a.sort(function () {\n return .5 - Math.random();\n });\n},\n // alternative that's a bit faster and more reliably diverse but bigger: for (let j, v, i = a.length; i; j = Math.floor(Math.random() * i), v = a[--i], a[i] = a[j], a[j] = v); return a;\n//for distributing values across an array. Can accept a number, a function or (most commonly) a function which can contain the following properties: {base, amount, from, ease, grid, axis, length, each}. Returns a function that expects the following parameters: index, target, array. Recognizes the following\ndistribute = function distribute(v) {\n if (_isFunction(v)) {\n return v;\n }\n\n var vars = _isObject(v) ? v : {\n each: v\n },\n //n:1 is just to indicate v was a number; we leverage that later to set v according to the length we get. If a number is passed in, we treat it like the old stagger value where 0.1, for example, would mean that things would be distributed with 0.1 between each element in the array rather than a total \"amount\" that's chunked out among them all.\n ease = _parseEase(vars.ease),\n from = vars.from || 0,\n base = parseFloat(vars.base) || 0,\n cache = {},\n isDecimal = from > 0 && from < 1,\n ratios = isNaN(from) || isDecimal,\n axis = vars.axis,\n ratioX = from,\n ratioY = from;\n\n if (_isString(from)) {\n ratioX = ratioY = {\n center: .5,\n edges: .5,\n end: 1\n }[from] || 0;\n } else if (!isDecimal && ratios) {\n ratioX = from[0];\n ratioY = from[1];\n }\n\n return function (i, target, a) {\n var l = (a || vars).length,\n distances = cache[l],\n originX,\n originY,\n x,\n y,\n d,\n j,\n max,\n min,\n wrapAt;\n\n if (!distances) {\n wrapAt = vars.grid === \"auto\" ? 0 : (vars.grid || [1, _bigNum])[1];\n\n if (!wrapAt) {\n max = -_bigNum;\n\n while (max < (max = a[wrapAt++].getBoundingClientRect().left) && wrapAt < l) {}\n\n wrapAt--;\n }\n\n distances = cache[l] = [];\n originX = ratios ? Math.min(wrapAt, l) * ratioX - .5 : from % wrapAt;\n originY = ratios ? l * ratioY / wrapAt - .5 : from / wrapAt | 0;\n max = 0;\n min = _bigNum;\n\n for (j = 0; j < l; j++) {\n x = j % wrapAt - originX;\n y = originY - (j / wrapAt | 0);\n distances[j] = d = !axis ? _sqrt(x * x + y * y) : Math.abs(axis === \"y\" ? y : x);\n d > max && (max = d);\n d < min && (min = d);\n }\n\n from === \"random\" && shuffle(distances);\n distances.max = max - min;\n distances.min = min;\n distances.v = l = (parseFloat(vars.amount) || parseFloat(vars.each) * (wrapAt > l ? l - 1 : !axis ? Math.max(wrapAt, l / wrapAt) : axis === \"y\" ? l / wrapAt : wrapAt) || 0) * (from === \"edges\" ? -1 : 1);\n distances.b = l < 0 ? base - l : base;\n distances.u = getUnit(vars.amount || vars.each) || 0; //unit\n\n ease = ease && l < 0 ? _invertEase(ease) : ease;\n }\n\n l = (distances[i] - distances.min) / distances.max || 0;\n return _round(distances.b + (ease ? ease(l) : l) * distances.v) + distances.u; //round in order to work around floating point errors\n };\n},\n _roundModifier = function _roundModifier(v) {\n //pass in 0.1 get a function that'll round to the nearest tenth, or 5 to round to the closest 5, or 0.001 to the closest 1000th, etc.\n var p = v < 1 ? Math.pow(10, (v + \"\").length - 2) : 1; //to avoid floating point math errors (like 24 * 0.1 == 2.4000000000000004), we chop off at a specific number of decimal places (much faster than toFixed()\n\n return function (raw) {\n return Math.floor(Math.round(parseFloat(raw) / v) * v * p) / p + (_isNumber(raw) ? 0 : getUnit(raw));\n };\n},\n snap = function snap(snapTo, value) {\n var isArray = _isArray(snapTo),\n radius,\n is2D;\n\n if (!isArray && _isObject(snapTo)) {\n radius = isArray = snapTo.radius || _bigNum;\n\n if (snapTo.values) {\n snapTo = toArray(snapTo.values);\n\n if (is2D = !_isNumber(snapTo[0])) {\n radius *= radius; //performance optimization so we don't have to Math.sqrt() in the loop.\n }\n } else {\n snapTo = _roundModifier(snapTo.increment);\n }\n }\n\n return _conditionalReturn(value, !isArray ? _roundModifier(snapTo) : _isFunction(snapTo) ? function (raw) {\n is2D = snapTo(raw);\n return Math.abs(is2D - raw) <= radius ? is2D : raw;\n } : function (raw) {\n var x = parseFloat(is2D ? raw.x : raw),\n y = parseFloat(is2D ? raw.y : 0),\n min = _bigNum,\n closest = 0,\n i = snapTo.length,\n dx,\n dy;\n\n while (i--) {\n if (is2D) {\n dx = snapTo[i].x - x;\n dy = snapTo[i].y - y;\n dx = dx * dx + dy * dy;\n } else {\n dx = Math.abs(snapTo[i] - x);\n }\n\n if (dx < min) {\n min = dx;\n closest = i;\n }\n }\n\n closest = !radius || min <= radius ? snapTo[closest] : raw;\n return is2D || closest === raw || _isNumber(raw) ? closest : closest + getUnit(raw);\n });\n},\n random = function random(min, max, roundingIncrement, returnFunction) {\n return _conditionalReturn(_isArray(min) ? !max : roundingIncrement === true ? !!(roundingIncrement = 0) : !returnFunction, function () {\n return _isArray(min) ? min[~~(Math.random() * min.length)] : (roundingIncrement = roundingIncrement || 1e-5) && (returnFunction = roundingIncrement < 1 ? Math.pow(10, (roundingIncrement + \"\").length - 2) : 1) && Math.floor(Math.round((min + Math.random() * (max - min)) / roundingIncrement) * roundingIncrement * returnFunction) / returnFunction;\n });\n},\n pipe = function pipe() {\n for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {\n functions[_key] = arguments[_key];\n }\n\n return function (value) {\n return functions.reduce(function (v, f) {\n return f(v);\n }, value);\n };\n},\n unitize = function unitize(func, unit) {\n return function (value) {\n return func(parseFloat(value)) + (unit || getUnit(value));\n };\n},\n normalize = function normalize(min, max, value) {\n return mapRange(min, max, 0, 1, value);\n},\n _wrapArray = function _wrapArray(a, wrapper, value) {\n return _conditionalReturn(value, function (index) {\n return a[~~wrapper(index)];\n });\n},\n wrap = function wrap(min, max, value) {\n // NOTE: wrap() CANNOT be an arrow function! A very odd compiling bug causes problems (unrelated to GSAP).\n var range = max - min;\n return _isArray(min) ? _wrapArray(min, wrap(0, min.length), max) : _conditionalReturn(value, function (value) {\n return (range + (value - min) % range) % range + min;\n });\n},\n wrapYoyo = function wrapYoyo(min, max, value) {\n var range = max - min,\n total = range * 2;\n return _isArray(min) ? _wrapArray(min, wrapYoyo(0, min.length - 1), max) : _conditionalReturn(value, function (value) {\n value = (total + (value - min) % total) % total || 0;\n return min + (value > range ? total - value : value);\n });\n},\n _replaceRandom = function _replaceRandom(value) {\n //replaces all occurrences of random(...) in a string with the calculated random value. can be a range like random(-100, 100, 5) or an array like random([0, 100, 500])\n var prev = 0,\n s = \"\",\n i,\n nums,\n end,\n isArray;\n\n while (~(i = value.indexOf(\"random(\", prev))) {\n end = value.indexOf(\")\", i);\n isArray = value.charAt(i + 7) === \"[\";\n nums = value.substr(i + 7, end - i - 7).match(isArray ? _delimitedValueExp : _strictNumExp);\n s += value.substr(prev, i - prev) + random(isArray ? nums : +nums[0], isArray ? 0 : +nums[1], +nums[2] || 1e-5);\n prev = end + 1;\n }\n\n return s + value.substr(prev, value.length - prev);\n},\n mapRange = function mapRange(inMin, inMax, outMin, outMax, value) {\n var inRange = inMax - inMin,\n outRange = outMax - outMin;\n return _conditionalReturn(value, function (value) {\n return outMin + ((value - inMin) / inRange * outRange || 0);\n });\n},\n interpolate = function interpolate(start, end, progress, mutate) {\n var func = isNaN(start + end) ? 0 : function (p) {\n return (1 - p) * start + p * end;\n };\n\n if (!func) {\n var isString = _isString(start),\n master = {},\n p,\n i,\n interpolators,\n l,\n il;\n\n progress === true && (mutate = 1) && (progress = null);\n\n if (isString) {\n start = {\n p: start\n };\n end = {\n p: end\n };\n } else if (_isArray(start) && !_isArray(end)) {\n interpolators = [];\n l = start.length;\n il = l - 2;\n\n for (i = 1; i < l; i++) {\n interpolators.push(interpolate(start[i - 1], start[i])); //build the interpolators up front as a performance optimization so that when the function is called many times, it can just reuse them.\n }\n\n l--;\n\n func = function func(p) {\n p *= l;\n var i = Math.min(il, ~~p);\n return interpolators[i](p - i);\n };\n\n progress = end;\n } else if (!mutate) {\n start = _merge(_isArray(start) ? [] : {}, start);\n }\n\n if (!interpolators) {\n for (p in end) {\n _addPropTween.call(master, start, p, \"get\", end[p]);\n }\n\n func = function func(p) {\n return _renderPropTweens(p, master) || (isString ? start.p : start);\n };\n }\n }\n\n return _conditionalReturn(progress, func);\n},\n _getLabelInDirection = function _getLabelInDirection(timeline, fromTime, backward) {\n //used for nextLabel() and previousLabel()\n var labels = timeline.labels,\n min = _bigNum,\n p,\n distance,\n label;\n\n for (p in labels) {\n distance = labels[p] - fromTime;\n\n if (distance < 0 === !!backward && distance && min > (distance = Math.abs(distance))) {\n label = p;\n min = distance;\n }\n }\n\n return label;\n},\n _callback = function _callback(animation, type, executeLazyFirst) {\n var v = animation.vars,\n callback = v[type],\n params,\n scope;\n\n if (!callback) {\n return;\n }\n\n params = v[type + \"Params\"];\n scope = v.callbackScope || animation;\n executeLazyFirst && _lazyTweens.length && _lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.\n\n return params ? callback.apply(scope, params) : callback.call(scope);\n},\n _interrupt = function _interrupt(animation) {\n _removeFromParent(animation);\n\n animation.progress() < 1 && _callback(animation, \"onInterrupt\");\n return animation;\n},\n _quickTween,\n _createPlugin = function _createPlugin(config) {\n config = !config.name && config[\"default\"] || config; //UMD packaging wraps things oddly, so for example MotionPathHelper becomes {MotionPathHelper:MotionPathHelper, default:MotionPathHelper}.\n\n var name = config.name,\n isFunc = _isFunction(config),\n Plugin = name && !isFunc && config.init ? function () {\n this._props = [];\n } : config,\n //in case someone passes in an object that's not a plugin, like CustomEase\n instanceDefaults = {\n init: _emptyFunc,\n render: _renderPropTweens,\n add: _addPropTween,\n kill: _killPropTweensOf,\n modifier: _addPluginModifier,\n rawVars: 0\n },\n statics = {\n targetTest: 0,\n get: 0,\n getSetter: _getSetter,\n aliases: {},\n register: 0\n };\n\n _wake();\n\n if (config !== Plugin) {\n if (_plugins[name]) {\n return;\n }\n\n _setDefaults(Plugin, _setDefaults(_copyExcluding(config, instanceDefaults), statics)); //static methods\n\n\n _merge(Plugin.prototype, _merge(instanceDefaults, _copyExcluding(config, statics))); //instance methods\n\n\n _plugins[Plugin.prop = name] = Plugin;\n\n if (config.targetTest) {\n _harnessPlugins.push(Plugin);\n\n _reservedProps[name] = 1;\n }\n\n name = (name === \"css\" ? \"CSS\" : name.charAt(0).toUpperCase() + name.substr(1)) + \"Plugin\"; //for the global name. \"motionPath\" should become MotionPathPlugin\n }\n\n _addGlobal(name, Plugin);\n\n config.register && config.register(gsap, Plugin, PropTween);\n},\n\n/*\n * --------------------------------------------------------------------------------------\n * COLORS\n * --------------------------------------------------------------------------------------\n */\n_255 = 255,\n _colorLookup = {\n aqua: [0, _255, _255],\n lime: [0, _255, 0],\n silver: [192, 192, 192],\n black: [0, 0, 0],\n maroon: [128, 0, 0],\n teal: [0, 128, 128],\n blue: [0, 0, _255],\n navy: [0, 0, 128],\n white: [_255, _255, _255],\n olive: [128, 128, 0],\n yellow: [_255, _255, 0],\n orange: [_255, 165, 0],\n gray: [128, 128, 128],\n purple: [128, 0, 128],\n green: [0, 128, 0],\n red: [_255, 0, 0],\n pink: [_255, 192, 203],\n cyan: [0, _255, _255],\n transparent: [_255, _255, _255, 0]\n},\n _hue = function _hue(h, m1, m2) {\n h = h < 0 ? h + 1 : h > 1 ? h - 1 : h;\n return (h * 6 < 1 ? m1 + (m2 - m1) * h * 6 : h < .5 ? m2 : h * 3 < 2 ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1) * _255 + .5 | 0;\n},\n splitColor = function splitColor(v, toHSL, forceAlpha) {\n var a = !v ? _colorLookup.black : _isNumber(v) ? [v >> 16, v >> 8 & _255, v & _255] : 0,\n r,\n g,\n b,\n h,\n s,\n l,\n max,\n min,\n d,\n wasHSL;\n\n if (!a) {\n if (v.substr(-1) === \",\") {\n //sometimes a trailing comma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:\"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)\" - in this example \"blue,\" has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.\n v = v.substr(0, v.length - 1);\n }\n\n if (_colorLookup[v]) {\n a = _colorLookup[v];\n } else if (v.charAt(0) === \"#\") {\n if (v.length === 4) {\n //for shorthand like #9F0\n r = v.charAt(1);\n g = v.charAt(2);\n b = v.charAt(3);\n v = \"#\" + r + r + g + g + b + b;\n }\n\n v = parseInt(v.substr(1), 16);\n a = [v >> 16, v >> 8 & _255, v & _255];\n } else if (v.substr(0, 3) === \"hsl\") {\n a = wasHSL = v.match(_strictNumExp);\n\n if (!toHSL) {\n h = +a[0] % 360 / 360;\n s = +a[1] / 100;\n l = +a[2] / 100;\n g = l <= .5 ? l * (s + 1) : l + s - l * s;\n r = l * 2 - g;\n a.length > 3 && (a[3] *= 1); //cast as number\n\n a[0] = _hue(h + 1 / 3, r, g);\n a[1] = _hue(h, r, g);\n a[2] = _hue(h - 1 / 3, r, g);\n } else if (~v.indexOf(\"=\")) {\n //if relative values are found, just return the raw strings with the relative prefixes in place.\n a = v.match(_numExp);\n forceAlpha && a.length < 4 && (a[3] = 1);\n return a;\n }\n } else {\n a = v.match(_strictNumExp) || _colorLookup.transparent;\n }\n\n a = a.map(Number);\n }\n\n if (toHSL && !wasHSL) {\n r = a[0] / _255;\n g = a[1] / _255;\n b = a[2] / _255;\n max = Math.max(r, g, b);\n min = Math.min(r, g, b);\n l = (max + min) / 2;\n\n if (max === min) {\n h = s = 0;\n } else {\n d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n h = max === r ? (g - b) / d + (g < b ? 6 : 0) : max === g ? (b - r) / d + 2 : (r - g) / d + 4;\n h *= 60;\n }\n\n a[0] = ~~(h + .5);\n a[1] = ~~(s * 100 + .5);\n a[2] = ~~(l * 100 + .5);\n }\n\n forceAlpha && a.length < 4 && (a[3] = 1);\n return a;\n},\n _colorOrderData = function _colorOrderData(v) {\n // strips out the colors from the string, finds all the numeric slots (with units) and returns an array of those. The Array also has a \"c\" property which is an Array of the index values where the colors belong. This is to help work around issues where there's a mis-matched order of color/numeric data like drop-shadow(#f00 0px 1px 2px) and drop-shadow(0x 1px 2px #f00). This is basically a helper function used in _formatColors()\n var values = [],\n c = [],\n i = -1;\n v.split(_colorExp).forEach(function (v) {\n var a = v.match(_numWithUnitExp) || [];\n values.push.apply(values, a);\n c.push(i += a.length + 1);\n });\n values.c = c;\n return values;\n},\n _formatColors = function _formatColors(s, toHSL, orderMatchData) {\n var result = \"\",\n colors = (s + result).match(_colorExp),\n type = toHSL ? \"hsla(\" : \"rgba(\",\n i = 0,\n c,\n shell,\n d,\n l;\n\n if (!colors) {\n return s;\n }\n\n colors = colors.map(function (color) {\n return (color = splitColor(color, toHSL, 1)) && type + (toHSL ? color[0] + \",\" + color[1] + \"%,\" + color[2] + \"%,\" + color[3] : color.join(\",\")) + \")\";\n });\n\n if (orderMatchData) {\n d = _colorOrderData(s);\n c = orderMatchData.c;\n\n if (c.join(result) !== d.c.join(result)) {\n shell = s.replace(_colorExp, \"1\").split(_numWithUnitExp);\n l = shell.length - 1;\n\n for (; i < l; i++) {\n result += shell[i] + (~c.indexOf(i) ? colors.shift() || type + \"0,0,0,0)\" : (d.length ? d : colors.length ? colors : orderMatchData).shift());\n }\n }\n }\n\n if (!shell) {\n shell = s.split(_colorExp);\n l = shell.length - 1;\n\n for (; i < l; i++) {\n result += shell[i] + colors[i];\n }\n }\n\n return result + shell[l];\n},\n _colorExp = function () {\n var s = \"(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3}){1,2}\\\\b\",\n //we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.,\n p;\n\n for (p in _colorLookup) {\n s += \"|\" + p + \"\\\\b\";\n }\n\n return new RegExp(s + \")\", \"gi\");\n}(),\n _hslExp = /hsl[a]?\\(/,\n _colorStringFilter = function _colorStringFilter(a) {\n var combined = a.join(\" \"),\n toHSL;\n _colorExp.lastIndex = 0;\n\n if (_colorExp.test(combined)) {\n toHSL = _hslExp.test(combined);\n a[1] = _formatColors(a[1], toHSL);\n a[0] = _formatColors(a[0], toHSL, _colorOrderData(a[1])); // make sure the order of numbers/colors match with the END value.\n\n return true;\n }\n},\n\n/*\n * --------------------------------------------------------------------------------------\n * TICKER\n * --------------------------------------------------------------------------------------\n */\n_tickerActive,\n _ticker = function () {\n var _getTime = Date.now,\n _lagThreshold = 500,\n _adjustedLag = 33,\n _startTime = _getTime(),\n _lastUpdate = _startTime,\n _gap = 1000 / 240,\n _nextTime = _gap,\n _listeners = [],\n _id,\n _req,\n _raf,\n _self,\n _delta,\n _i,\n _tick = function _tick(v) {\n var elapsed = _getTime() - _lastUpdate,\n manual = v === true,\n overlap,\n dispatch,\n time,\n frame;\n\n elapsed > _lagThreshold && (_startTime += elapsed - _adjustedLag);\n _lastUpdate += elapsed;\n time = _lastUpdate - _startTime;\n overlap = time - _nextTime;\n\n if (overlap > 0 || manual) {\n frame = ++_self.frame;\n _delta = time - _self.time * 1000;\n _self.time = time = time / 1000;\n _nextTime += overlap + (overlap >= _gap ? 4 : _gap - overlap);\n dispatch = 1;\n }\n\n manual || (_id = _req(_tick)); //make sure the request is made before we dispatch the \"tick\" event so that timing is maintained. Otherwise, if processing the \"tick\" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.\n\n if (dispatch) {\n for (_i = 0; _i < _listeners.length; _i++) {\n // use _i and check _listeners.length instead of a variable because a listener could get removed during the loop, and if that happens to an element less than the current index, it'd throw things off in the loop.\n _listeners[_i](time, _delta, frame, v);\n }\n }\n };\n\n _self = {\n time: 0,\n frame: 0,\n tick: function tick() {\n _tick(true);\n },\n deltaRatio: function deltaRatio(fps) {\n return _delta / (1000 / (fps || 60));\n },\n wake: function wake() {\n if (_coreReady) {\n if (!_coreInitted && _windowExists()) {\n _win = _coreInitted = window;\n _doc = _win.document || {};\n _globals.gsap = gsap;\n (_win.gsapVersions || (_win.gsapVersions = [])).push(gsap.version);\n\n _install(_installScope || _win.GreenSockGlobals || !_win.gsap && _win || {});\n\n _raf = _win.requestAnimationFrame;\n }\n\n _id && _self.sleep();\n\n _req = _raf || function (f) {\n return setTimeout(f, _nextTime - _self.time * 1000 + 1 | 0);\n };\n\n _tickerActive = 1;\n\n _tick(2);\n }\n },\n sleep: function sleep() {\n (_raf ? _win.cancelAnimationFrame : clearTimeout)(_id);\n _tickerActive = 0;\n _req = _emptyFunc;\n },\n lagSmoothing: function lagSmoothing(threshold, adjustedLag) {\n _lagThreshold = threshold || 1 / _tinyNum; //zero should be interpreted as basically unlimited\n\n _adjustedLag = Math.min(adjustedLag, _lagThreshold, 0);\n },\n fps: function fps(_fps) {\n _gap = 1000 / (_fps || 240);\n _nextTime = _self.time * 1000 + _gap;\n },\n add: function add(callback) {\n _listeners.indexOf(callback) < 0 && _listeners.push(callback);\n\n _wake();\n },\n remove: function remove(callback) {\n var i;\n ~(i = _listeners.indexOf(callback)) && _listeners.splice(i, 1) && _i >= i && _i--;\n },\n _listeners: _listeners\n };\n return _self;\n}(),\n _wake = function _wake() {\n return !_tickerActive && _ticker.wake();\n},\n //also ensures the core classes are initialized.\n\n/*\n* -------------------------------------------------\n* EASING\n* -------------------------------------------------\n*/\n_easeMap = {},\n _customEaseExp = /^[\\d.\\-M][\\d.\\-,\\s]/,\n _quotesExp = /[\"']/g,\n _parseObjectInString = function _parseObjectInString(value) {\n //takes a string like \"{wiggles:10, type:anticipate})\" and turns it into a real object. Notice it ends in \")\" and includes the {} wrappers. This is because we only use this function for parsing ease configs and prioritized optimization rather than reusability.\n var obj = {},\n split = value.substr(1, value.length - 3).split(\":\"),\n key = split[0],\n i = 1,\n l = split.length,\n index,\n val,\n parsedVal;\n\n for (; i < l; i++) {\n val = split[i];\n index = i !== l - 1 ? val.lastIndexOf(\",\") : val.length;\n parsedVal = val.substr(0, index);\n obj[key] = isNaN(parsedVal) ? parsedVal.replace(_quotesExp, \"\").trim() : +parsedVal;\n key = val.substr(index + 1).trim();\n }\n\n return obj;\n},\n _valueInParentheses = function _valueInParentheses(value) {\n var open = value.indexOf(\"(\") + 1,\n close = value.indexOf(\")\"),\n nested = value.indexOf(\"(\", open);\n return value.substring(open, ~nested && nested < close ? value.indexOf(\")\", close + 1) : close);\n},\n _configEaseFromString = function _configEaseFromString(name) {\n //name can be a string like \"elastic.out(1,0.5)\", and pass in _easeMap as obj and it'll parse it out and call the actual function like _easeMap.Elastic.easeOut.config(1,0.5). It will also parse custom ease strings as long as CustomEase is loaded and registered (internally as _easeMap._CE).\n var split = (name + \"\").split(\"(\"),\n ease = _easeMap[split[0]];\n return ease && split.length > 1 && ease.config ? ease.config.apply(null, ~name.indexOf(\"{\") ? [_parseObjectInString(split[1])] : _valueInParentheses(name).split(\",\").map(_numericIfPossible)) : _easeMap._CE && _customEaseExp.test(name) ? _easeMap._CE(\"\", name) : ease;\n},\n _invertEase = function _invertEase(ease) {\n return function (p) {\n return 1 - ease(1 - p);\n };\n},\n // allow yoyoEase to be set in children and have those affected when the parent/ancestor timeline yoyos.\n_propagateYoyoEase = function _propagateYoyoEase(timeline, isYoyo) {\n var child = timeline._first,\n ease;\n\n while (child) {\n if (child instanceof Timeline) {\n _propagateYoyoEase(child, isYoyo);\n } else if (child.vars.yoyoEase && (!child._yoyo || !child._repeat) && child._yoyo !== isYoyo) {\n if (child.timeline) {\n _propagateYoyoEase(child.timeline, isYoyo);\n } else {\n ease = child._ease;\n child._ease = child._yEase;\n child._yEase = ease;\n child._yoyo = isYoyo;\n }\n }\n\n child = child._next;\n }\n},\n _parseEase = function _parseEase(ease, defaultEase) {\n return !ease ? defaultEase : (_isFunction(ease) ? ease : _easeMap[ease] || _configEaseFromString(ease)) || defaultEase;\n},\n _insertEase = function _insertEase(names, easeIn, easeOut, easeInOut) {\n if (easeOut === void 0) {\n easeOut = function easeOut(p) {\n return 1 - easeIn(1 - p);\n };\n }\n\n if (easeInOut === void 0) {\n easeInOut = function easeInOut(p) {\n return p < .5 ? easeIn(p * 2) / 2 : 1 - easeIn((1 - p) * 2) / 2;\n };\n }\n\n var ease = {\n easeIn: easeIn,\n easeOut: easeOut,\n easeInOut: easeInOut\n },\n lowercaseName;\n\n _forEachName(names, function (name) {\n _easeMap[name] = _globals[name] = ease;\n _easeMap[lowercaseName = name.toLowerCase()] = easeOut;\n\n for (var p in ease) {\n _easeMap[lowercaseName + (p === \"easeIn\" ? \".in\" : p === \"easeOut\" ? \".out\" : \".inOut\")] = _easeMap[name + \".\" + p] = ease[p];\n }\n });\n\n return ease;\n},\n _easeInOutFromOut = function _easeInOutFromOut(easeOut) {\n return function (p) {\n return p < .5 ? (1 - easeOut(1 - p * 2)) / 2 : .5 + easeOut((p - .5) * 2) / 2;\n };\n},\n _configElastic = function _configElastic(type, amplitude, period) {\n var p1 = amplitude >= 1 ? amplitude : 1,\n //note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1.\n p2 = (period || (type ? .3 : .45)) / (amplitude < 1 ? amplitude : 1),\n p3 = p2 / _2PI * (Math.asin(1 / p1) || 0),\n easeOut = function easeOut(p) {\n return p === 1 ? 1 : p1 * Math.pow(2, -10 * p) * _sin((p - p3) * p2) + 1;\n },\n ease = type === \"out\" ? easeOut : type === \"in\" ? function (p) {\n return 1 - easeOut(1 - p);\n } : _easeInOutFromOut(easeOut);\n\n p2 = _2PI / p2; //precalculate to optimize\n\n ease.config = function (amplitude, period) {\n return _configElastic(type, amplitude, period);\n };\n\n return ease;\n},\n _configBack = function _configBack(type, overshoot) {\n if (overshoot === void 0) {\n overshoot = 1.70158;\n }\n\n var easeOut = function easeOut(p) {\n return p ? --p * p * ((overshoot + 1) * p + overshoot) + 1 : 0;\n },\n ease = type === \"out\" ? easeOut : type === \"in\" ? function (p) {\n return 1 - easeOut(1 - p);\n } : _easeInOutFromOut(easeOut);\n\n ease.config = function (overshoot) {\n return _configBack(type, overshoot);\n };\n\n return ease;\n}; // a cheaper (kb and cpu) but more mild way to get a parameterized weighted ease by feeding in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n// _weightedEase = ratio => {\n// \tlet y = 0.5 + ratio / 2;\n// \treturn p => (2 * (1 - p) * p * y + p * p);\n// },\n// a stronger (but more expensive kb/cpu) parameterized weighted ease that lets you feed in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n// _weightedEaseStrong = ratio => {\n// \tratio = .5 + ratio / 2;\n// \tlet o = 1 / 3 * (ratio < .5 ? ratio : 1 - ratio),\n// \t\tb = ratio - o,\n// \t\tc = ratio + o;\n// \treturn p => p === 1 ? p : 3 * b * (1 - p) * (1 - p) * p + 3 * c * (1 - p) * p * p + p * p * p;\n// };\n\n\n_forEachName(\"Linear,Quad,Cubic,Quart,Quint,Strong\", function (name, i) {\n var power = i < 5 ? i + 1 : i;\n\n _insertEase(name + \",Power\" + (power - 1), i ? function (p) {\n return Math.pow(p, power);\n } : function (p) {\n return p;\n }, function (p) {\n return 1 - Math.pow(1 - p, power);\n }, function (p) {\n return p < .5 ? Math.pow(p * 2, power) / 2 : 1 - Math.pow((1 - p) * 2, power) / 2;\n });\n});\n\n_easeMap.Linear.easeNone = _easeMap.none = _easeMap.Linear.easeIn;\n\n_insertEase(\"Elastic\", _configElastic(\"in\"), _configElastic(\"out\"), _configElastic());\n\n(function (n, c) {\n var n1 = 1 / c,\n n2 = 2 * n1,\n n3 = 2.5 * n1,\n easeOut = function easeOut(p) {\n return p < n1 ? n * p * p : p < n2 ? n * Math.pow(p - 1.5 / c, 2) + .75 : p < n3 ? n * (p -= 2.25 / c) * p + .9375 : n * Math.pow(p - 2.625 / c, 2) + .984375;\n };\n\n _insertEase(\"Bounce\", function (p) {\n return 1 - easeOut(1 - p);\n }, easeOut);\n})(7.5625, 2.75);\n\n_insertEase(\"Expo\", function (p) {\n return p ? Math.pow(2, 10 * (p - 1)) : 0;\n});\n\n_insertEase(\"Circ\", function (p) {\n return -(_sqrt(1 - p * p) - 1);\n});\n\n_insertEase(\"Sine\", function (p) {\n return p === 1 ? 1 : -_cos(p * _HALF_PI) + 1;\n});\n\n_insertEase(\"Back\", _configBack(\"in\"), _configBack(\"out\"), _configBack());\n\n_easeMap.SteppedEase = _easeMap.steps = _globals.SteppedEase = {\n config: function config(steps, immediateStart) {\n if (steps === void 0) {\n steps = 1;\n }\n\n var p1 = 1 / steps,\n p2 = steps + (immediateStart ? 0 : 1),\n p3 = immediateStart ? 1 : 0,\n max = 1 - _tinyNum;\n return function (p) {\n return ((p2 * _clamp(0, max, p) | 0) + p3) * p1;\n };\n }\n};\n_defaults.ease = _easeMap[\"quad.out\"];\n\n_forEachName(\"onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt\", function (name) {\n return _callbackNames += name + \",\" + name + \"Params,\";\n});\n/*\n * --------------------------------------------------------------------------------------\n * CACHE\n * --------------------------------------------------------------------------------------\n */\n\n\nexport var GSCache = function GSCache(target, harness) {\n this.id = _gsID++;\n target._gsap = this;\n this.target = target;\n this.harness = harness;\n this.get = harness ? harness.get : _getProperty;\n this.set = harness ? harness.getSetter : _getSetter;\n};\n/*\n * --------------------------------------------------------------------------------------\n * ANIMATION\n * --------------------------------------------------------------------------------------\n */\n\nexport var Animation = /*#__PURE__*/function () {\n function Animation(vars, time) {\n var parent = vars.parent || _globalTimeline;\n this.vars = vars;\n this._delay = +vars.delay || 0;\n\n if (this._repeat = vars.repeat || 0) {\n this._rDelay = vars.repeatDelay || 0;\n this._yoyo = !!vars.yoyo || !!vars.yoyoEase;\n }\n\n this._ts = 1;\n\n _setDuration(this, +vars.duration, 1, 1);\n\n this.data = vars.data;\n _tickerActive || _ticker.wake();\n parent && _addToTimeline(parent, this, time || time === 0 ? time : parent._time, 1);\n vars.reversed && this.reverse();\n vars.paused && this.paused(true);\n }\n\n var _proto = Animation.prototype;\n\n _proto.delay = function delay(value) {\n if (value || value === 0) {\n this.parent && this.parent.smoothChildTiming && this.startTime(this._start + value - this._delay);\n this._delay = value;\n return this;\n }\n\n return this._delay;\n };\n\n _proto.duration = function duration(value) {\n return arguments.length ? this.totalDuration(this._repeat > 0 ? value + (value + this._rDelay) * this._repeat : value) : this.totalDuration() && this._dur;\n };\n\n _proto.totalDuration = function totalDuration(value) {\n if (!arguments.length) {\n return this._tDur;\n }\n\n this._dirty = 0;\n return _setDuration(this, this._repeat < 0 ? value : (value - this._repeat * this._rDelay) / (this._repeat + 1));\n };\n\n _proto.totalTime = function totalTime(_totalTime, suppressEvents) {\n _wake();\n\n if (!arguments.length) {\n return this._tTime;\n }\n\n var parent = this._dp;\n\n if (parent && parent.smoothChildTiming && this._ts) {\n _alignPlayhead(this, _totalTime); //in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The start of that child would get pushed out, but one of the ancestors may have completed.\n\n\n while (parent.parent) {\n if (parent.parent._time !== parent._start + (parent._ts >= 0 ? parent._tTime / parent._ts : (parent.totalDuration() - parent._tTime) / -parent._ts)) {\n parent.totalTime(parent._tTime, true);\n }\n\n parent = parent.parent;\n }\n\n if (!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && _totalTime < this._tDur || this._ts < 0 && _totalTime > 0 || !this._tDur && !_totalTime)) {\n //if the animation doesn't have a parent, put it back into its last parent (recorded as _dp for exactly cases like this). Limit to parents with autoRemoveChildren (like globalTimeline) so that if the user manually removes an animation from a timeline and then alters its playhead, it doesn't get added back in.\n _addToTimeline(this._dp, this, this._start - this._delay);\n }\n }\n\n if (this._tTime !== _totalTime || !this._dur && !suppressEvents || this._initted && Math.abs(this._zTime) === _tinyNum || !_totalTime && !this._initted && (this.add || this._ptLookup)) {\n // check for _ptLookup on a Tween instance to ensure it has actually finished being instantiated, otherwise if this.reverse() gets called in the Animation constructor, it could trigger a render() here even though the _targets weren't populated, thus when _init() is called there won't be any PropTweens (it'll act like the tween is non-functional)\n this._ts || (this._pTime = _totalTime); // otherwise, if an animation is paused, then the playhead is moved back to zero, then resumed, it'd revert back to the original time at the pause\n\n _lazySafeRender(this, _totalTime, suppressEvents);\n }\n\n return this;\n };\n\n _proto.time = function time(value, suppressEvents) {\n return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % this._dur || (value ? this._dur : 0), suppressEvents) : this._time; // note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!\n };\n\n _proto.totalProgress = function totalProgress(value, suppressEvents) {\n return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.ratio;\n };\n\n _proto.progress = function progress(value, suppressEvents) {\n return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? Math.min(1, this._time / this._dur) : this.ratio;\n };\n\n _proto.iteration = function iteration(value, suppressEvents) {\n var cycleDuration = this.duration() + this._rDelay;\n\n return arguments.length ? this.totalTime(this._time + (value - 1) * cycleDuration, suppressEvents) : this._repeat ? _animationCycle(this._tTime, cycleDuration) + 1 : 1;\n } // potential future addition:\n // isPlayingBackwards() {\n // \tlet animation = this,\n // \t\torientation = 1; // 1 = forward, -1 = backward\n // \twhile (animation) {\n // \t\torientation *= animation.reversed() || (animation.repeat() && !(animation.iteration() & 1)) ? -1 : 1;\n // \t\tanimation = animation.parent;\n // \t}\n // \treturn orientation < 0;\n // }\n ;\n\n _proto.timeScale = function timeScale(value) {\n if (!arguments.length) {\n return this._rts === -_tinyNum ? 0 : this._rts; // recorded timeScale. Special case: if someone calls reverse() on an animation with timeScale of 0, we assign it -_tinyNum to remember it's reversed.\n }\n\n if (this._rts === value) {\n return this;\n }\n\n var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime; // make sure to do the parentToChildTotalTime() BEFORE setting the new _ts because the old one must be used in that calculation.\n // prioritize rendering where the parent's playhead lines up instead of this._tTime because there could be a tween that's animating another tween's timeScale in the same rendering loop (same parent), thus if the timeScale tween renders first, it would alter _start BEFORE _tTime was set on that tick (in the rendering loop), effectively freezing it until the timeScale tween finishes.\n\n this._rts = +value || 0;\n this._ts = this._ps || value === -_tinyNum ? 0 : this._rts; // _ts is the functional timeScale which would be 0 if the animation is paused.\n\n return _recacheAncestors(this.totalTime(_clamp(-this._delay, this._tDur, tTime), true));\n };\n\n _proto.paused = function paused(value) {\n if (!arguments.length) {\n return this._ps;\n }\n\n if (this._ps !== value) {\n this._ps = value;\n\n if (value) {\n this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()); // if the pause occurs during the delay phase, make sure that's factored in when resuming.\n\n this._ts = this._act = 0; // _ts is the functional timeScale, so a paused tween would effectively have a timeScale of 0. We record the \"real\" timeScale as _rts (recorded time scale)\n } else {\n _wake();\n\n this._ts = this._rts; //only defer to _pTime (pauseTime) if tTime is zero. Remember, someone could pause() an animation, then scrub the playhead and resume(). If the parent doesn't have smoothChildTiming, we render at the rawTime() because the startTime won't get updated.\n\n this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && (this._tTime -= _tinyNum) && Math.abs(this._zTime) !== _tinyNum); // edge case: animation.progress(1).pause().play() wouldn't render again because the playhead is already at the end, but the call to totalTime() below will add it back to its parent...and not remove it again (since removing only happens upon rendering at a new time). Offsetting the _tTime slightly is done simply to cause the final render in totalTime() that'll pop it off its timeline (if autoRemoveChildren is true, of course). Check to make sure _zTime isn't -_tinyNum to avoid an edge case where the playhead is pushed to the end but INSIDE a tween/callback, the timeline itself is paused thus halting rendering and leaving a few unrendered. When resuming, it wouldn't render those otherwise.\n }\n }\n\n return this;\n };\n\n _proto.startTime = function startTime(value) {\n if (arguments.length) {\n this._start = value;\n var parent = this.parent || this._dp;\n parent && (parent._sort || !this.parent) && _addToTimeline(parent, this, value - this._delay);\n return this;\n }\n\n return this._start;\n };\n\n _proto.endTime = function endTime(includeRepeats) {\n return this._start + (_isNotFalse(includeRepeats) ? this.totalDuration() : this.duration()) / Math.abs(this._ts);\n };\n\n _proto.rawTime = function rawTime(wrapRepeats) {\n var parent = this.parent || this._dp; // _dp = detatched parent\n\n return !parent ? this._tTime : wrapRepeats && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : !this._ts ? this._tTime : _parentToChildTotalTime(parent.rawTime(wrapRepeats), this);\n };\n\n _proto.globalTime = function globalTime(rawTime) {\n var animation = this,\n time = arguments.length ? rawTime : animation.rawTime();\n\n while (animation) {\n time = animation._start + time / (animation._ts || 1);\n animation = animation._dp;\n }\n\n return time;\n };\n\n _proto.repeat = function repeat(value) {\n if (arguments.length) {\n this._repeat = value;\n return _onUpdateTotalDuration(this);\n }\n\n return this._repeat;\n };\n\n _proto.repeatDelay = function repeatDelay(value) {\n if (arguments.length) {\n this._rDelay = value;\n return _onUpdateTotalDuration(this);\n }\n\n return this._rDelay;\n };\n\n _proto.yoyo = function yoyo(value) {\n if (arguments.length) {\n this._yoyo = value;\n return this;\n }\n\n return this._yoyo;\n };\n\n _proto.seek = function seek(position, suppressEvents) {\n return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));\n };\n\n _proto.restart = function restart(includeDelay, suppressEvents) {\n return this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));\n };\n\n _proto.play = function play(from, suppressEvents) {\n from != null && this.seek(from, suppressEvents);\n return this.reversed(false).paused(false);\n };\n\n _proto.reverse = function reverse(from, suppressEvents) {\n from != null && this.seek(from || this.totalDuration(), suppressEvents);\n return this.reversed(true).paused(false);\n };\n\n _proto.pause = function pause(atTime, suppressEvents) {\n atTime != null && this.seek(atTime, suppressEvents);\n return this.paused(true);\n };\n\n _proto.resume = function resume() {\n return this.paused(false);\n };\n\n _proto.reversed = function reversed(value) {\n if (arguments.length) {\n !!value !== this.reversed() && this.timeScale(-this._rts || (value ? -_tinyNum : 0)); // in case timeScale is zero, reversing would have no effect so we use _tinyNum.\n\n return this;\n }\n\n return this._rts < 0;\n };\n\n _proto.invalidate = function invalidate() {\n this._initted = 0;\n this._zTime = -_tinyNum;\n return this;\n };\n\n _proto.isActive = function isActive() {\n var parent = this.parent || this._dp,\n start = this._start,\n rawTime;\n return !!(!parent || this._ts && this._initted && parent.isActive() && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum);\n };\n\n _proto.eventCallback = function eventCallback(type, callback, params) {\n var vars = this.vars;\n\n if (arguments.length > 1) {\n if (!callback) {\n delete vars[type];\n } else {\n vars[type] = callback;\n params && (vars[type + \"Params\"] = params);\n type === \"onUpdate\" && (this._onUpdate = callback);\n }\n\n return this;\n }\n\n return vars[type];\n };\n\n _proto.then = function then(onFulfilled) {\n var self = this;\n return new Promise(function (resolve) {\n var f = _isFunction(onFulfilled) ? onFulfilled : _passThrough,\n _resolve = function _resolve() {\n var _then = self.then;\n self.then = null; // temporarily null the then() method to avoid an infinite loop (see https://github.com/greensock/GSAP/issues/322)\n\n _isFunction(f) && (f = f(self)) && (f.then || f === self) && (self.then = _then);\n resolve(f);\n self.then = _then;\n };\n\n if (self._initted && self.totalProgress() === 1 && self._ts >= 0 || !self._tTime && self._ts < 0) {\n _resolve();\n } else {\n self._prom = _resolve;\n }\n });\n };\n\n _proto.kill = function kill() {\n _interrupt(this);\n };\n\n return Animation;\n}();\n\n_setDefaults(Animation.prototype, {\n _time: 0,\n _start: 0,\n _end: 0,\n _tTime: 0,\n _tDur: 0,\n _dirty: 0,\n _repeat: 0,\n _yoyo: false,\n parent: null,\n _initted: false,\n _rDelay: 0,\n _ts: 1,\n _dp: 0,\n ratio: 0,\n _zTime: -_tinyNum,\n _prom: 0,\n _ps: false,\n _rts: 1\n});\n/*\n * -------------------------------------------------\n * TIMELINE\n * -------------------------------------------------\n */\n\n\nexport var Timeline = /*#__PURE__*/function (_Animation) {\n _inheritsLoose(Timeline, _Animation);\n\n function Timeline(vars, time) {\n var _this;\n\n if (vars === void 0) {\n vars = {};\n }\n\n _this = _Animation.call(this, vars, time) || this;\n _this.labels = {};\n _this.smoothChildTiming = !!vars.smoothChildTiming;\n _this.autoRemoveChildren = !!vars.autoRemoveChildren;\n _this._sort = _isNotFalse(vars.sortChildren);\n _this.parent && _postAddChecks(_this.parent, _assertThisInitialized(_this));\n vars.scrollTrigger && _scrollTrigger(_assertThisInitialized(_this), vars.scrollTrigger);\n return _this;\n }\n\n var _proto2 = Timeline.prototype;\n\n _proto2.to = function to(targets, vars, position) {\n new Tween(targets, _parseVars(arguments, 0, this), _parsePosition(this, _isNumber(vars) ? arguments[3] : position));\n return this;\n };\n\n _proto2.from = function from(targets, vars, position) {\n new Tween(targets, _parseVars(arguments, 1, this), _parsePosition(this, _isNumber(vars) ? arguments[3] : position));\n return this;\n };\n\n _proto2.fromTo = function fromTo(targets, fromVars, toVars, position) {\n new Tween(targets, _parseVars(arguments, 2, this), _parsePosition(this, _isNumber(fromVars) ? arguments[4] : position));\n return this;\n };\n\n _proto2.set = function set(targets, vars, position) {\n vars.duration = 0;\n vars.parent = this;\n _inheritDefaults(vars).repeatDelay || (vars.repeat = 0);\n vars.immediateRender = !!vars.immediateRender;\n new Tween(targets, vars, _parsePosition(this, position), 1);\n return this;\n };\n\n _proto2.call = function call(callback, params, position) {\n return _addToTimeline(this, Tween.delayedCall(0, callback, params), _parsePosition(this, position));\n } //ONLY for backward compatibility! Maybe delete?\n ;\n\n _proto2.staggerTo = function staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n vars.duration = duration;\n vars.stagger = vars.stagger || stagger;\n vars.onComplete = onCompleteAll;\n vars.onCompleteParams = onCompleteAllParams;\n vars.parent = this;\n new Tween(targets, vars, _parsePosition(this, position));\n return this;\n };\n\n _proto2.staggerFrom = function staggerFrom(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n vars.runBackwards = 1;\n _inheritDefaults(vars).immediateRender = _isNotFalse(vars.immediateRender);\n return this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams);\n };\n\n _proto2.staggerFromTo = function staggerFromTo(targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams) {\n toVars.startAt = fromVars;\n _inheritDefaults(toVars).immediateRender = _isNotFalse(toVars.immediateRender);\n return this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams);\n };\n\n _proto2.render = function render(totalTime, suppressEvents, force) {\n var prevTime = this._time,\n tDur = this._dirty ? this.totalDuration() : this._tDur,\n dur = this._dur,\n tTime = this !== _globalTimeline && totalTime > tDur - _tinyNum && totalTime >= 0 ? tDur : totalTime < _tinyNum ? 0 : totalTime,\n crossingStart = this._zTime < 0 !== totalTime < 0 && (this._initted || !dur),\n time,\n child,\n next,\n iteration,\n cycleDuration,\n prevPaused,\n pauseTween,\n timeScale,\n prevStart,\n prevIteration,\n yoyo,\n isYoyo;\n\n if (tTime !== this._tTime || force || crossingStart) {\n if (prevTime !== this._time && dur) {\n //if totalDuration() finds a child with a negative startTime and smoothChildTiming is true, things get shifted around internally so we need to adjust the time accordingly. For example, if a tween starts at -30 we must shift EVERYTHING forward 30 seconds and move this timeline's startTime backward by 30 seconds so that things align with the playhead (no jump).\n tTime += this._time - prevTime;\n totalTime += this._time - prevTime;\n }\n\n time = tTime;\n prevStart = this._start;\n timeScale = this._ts;\n prevPaused = !timeScale;\n\n if (crossingStart) {\n dur || (prevTime = this._zTime); //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\n (totalTime || !suppressEvents) && (this._zTime = totalTime);\n }\n\n if (this._repeat) {\n //adjust the time for repeats and yoyos\n yoyo = this._yoyo;\n cycleDuration = dur + this._rDelay;\n time = _round(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\n if (tTime === tDur) {\n // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n iteration = this._repeat;\n time = dur;\n } else {\n iteration = ~~(tTime / cycleDuration);\n\n if (iteration && iteration === tTime / cycleDuration) {\n time = dur;\n iteration--;\n }\n\n time > dur && (time = dur);\n }\n\n prevIteration = _animationCycle(this._tTime, cycleDuration);\n !prevTime && this._tTime && prevIteration !== iteration && (prevIteration = iteration); // edge case - if someone does addPause() at the very beginning of a repeating timeline, that pause is technically at the same spot as the end which causes this._time to get set to 0 when the totalTime would normally place the playhead at the end. See https://greensock.com/forums/topic/23823-closing-nav-animation-not-working-on-ie-and-iphone-6-maybe-other-older-browser/?tab=comments#comment-113005\n\n if (yoyo && iteration & 1) {\n time = dur - time;\n isYoyo = 1;\n }\n /*\n make sure children at the end/beginning of the timeline are rendered properly. If, for example,\n a 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which\n would get translated to 2.8 seconds if the timeline yoyos or 0.2 seconds if it just repeats), there\n could be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So\n we need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must\n ensure that zero-duration tweens at the very beginning or end of the Timeline work.\n */\n\n\n if (iteration !== prevIteration && !this._lock) {\n var rewinding = yoyo && prevIteration & 1,\n doesWrap = rewinding === (yoyo && iteration & 1);\n iteration < prevIteration && (rewinding = !rewinding);\n prevTime = rewinding ? 0 : dur;\n this._lock = 1;\n this.render(prevTime || (isYoyo ? 0 : _round(iteration * cycleDuration)), suppressEvents, !dur)._lock = 0;\n !suppressEvents && this.parent && _callback(this, \"onRepeat\");\n this.vars.repeatRefresh && !isYoyo && (this.invalidate()._lock = 1);\n\n if (prevTime !== this._time || prevPaused !== !this._ts) {\n return this;\n }\n\n dur = this._dur; // in case the duration changed in the onRepeat\n\n tDur = this._tDur;\n\n if (doesWrap) {\n this._lock = 2;\n prevTime = rewinding ? dur : -0.0001;\n this.render(prevTime, true);\n this.vars.repeatRefresh && !isYoyo && this.invalidate();\n }\n\n this._lock = 0;\n\n if (!this._ts && !prevPaused) {\n return this;\n } //in order for yoyoEase to work properly when there's a stagger, we must swap out the ease in each sub-tween.\n\n\n _propagateYoyoEase(this, isYoyo);\n }\n }\n\n if (this._hasPause && !this._forcing && this._lock < 2) {\n pauseTween = _findNextPauseTween(this, _round(prevTime), _round(time));\n\n if (pauseTween) {\n tTime -= time - (time = pauseTween._start);\n }\n }\n\n this._tTime = tTime;\n this._time = time;\n this._act = !timeScale; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\n if (!this._initted) {\n this._onUpdate = this.vars.onUpdate;\n this._initted = 1;\n this._zTime = totalTime;\n }\n\n !prevTime && time && !suppressEvents && _callback(this, \"onStart\");\n\n if (time >= prevTime && totalTime >= 0) {\n child = this._first;\n\n while (child) {\n next = child._next;\n\n if ((child._act || time >= child._start) && child._ts && pauseTween !== child) {\n if (child.parent !== this) {\n // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n return this.render(totalTime, suppressEvents, force);\n }\n\n child.render(child._ts > 0 ? (time - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (time - child._start) * child._ts, suppressEvents, force);\n\n if (time !== this._time || !this._ts && !prevPaused) {\n //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n pauseTween = 0;\n next && (tTime += this._zTime = -_tinyNum); // it didn't finish rendering, so flag zTime as negative so that so that the next time render() is called it'll be forced (to render any remaining children)\n\n break;\n }\n }\n\n child = next;\n }\n } else {\n child = this._last;\n var adjustedTime = totalTime < 0 ? totalTime : time; //when the playhead goes backward beyond the start of this timeline, we must pass that information down to the child animations so that zero-duration tweens know whether to render their starting or ending values.\n\n while (child) {\n next = child._prev;\n\n if ((child._act || adjustedTime <= child._end) && child._ts && pauseTween !== child) {\n if (child.parent !== this) {\n // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n return this.render(totalTime, suppressEvents, force);\n }\n\n child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force);\n\n if (time !== this._time || !this._ts && !prevPaused) {\n //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n pauseTween = 0;\n next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum); // it didn't finish rendering, so adjust zTime so that so that the next time render() is called it'll be forced (to render any remaining children)\n\n break;\n }\n }\n\n child = next;\n }\n }\n\n if (pauseTween && !suppressEvents) {\n this.pause();\n pauseTween.render(time >= prevTime ? 0 : -_tinyNum)._zTime = time >= prevTime ? 1 : -1;\n\n if (this._ts) {\n //the callback resumed playback! So since we may have held back the playhead due to where the pause is positioned, go ahead and jump to where it's SUPPOSED to be (if no pause happened).\n this._start = prevStart; //if the pause was at an earlier time and the user resumed in the callback, it could reposition the timeline (changing its startTime), throwing things off slightly, so we make sure the _start doesn't shift.\n\n _setEnd(this);\n\n return this.render(totalTime, suppressEvents, force);\n }\n }\n\n this._onUpdate && !suppressEvents && _callback(this, \"onUpdate\", true);\n if (tTime === tDur && tDur >= this.totalDuration() || !tTime && prevTime) if (prevStart === this._start || Math.abs(timeScale) !== Math.abs(this._ts)) if (!this._lock) {\n (totalTime || !dur) && (tTime === tDur && this._ts > 0 || !tTime && this._ts < 0) && _removeFromParent(this, 1); // don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n\n if (!suppressEvents && !(totalTime < 0 && !prevTime) && (tTime || prevTime)) {\n _callback(this, tTime === tDur ? \"onComplete\" : \"onReverseComplete\", true);\n\n this._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n }\n }\n }\n\n return this;\n };\n\n _proto2.add = function add(child, position) {\n var _this2 = this;\n\n if (!_isNumber(position)) {\n position = _parsePosition(this, position);\n }\n\n if (!(child instanceof Animation)) {\n if (_isArray(child)) {\n child.forEach(function (obj) {\n return _this2.add(obj, position);\n });\n return this;\n }\n\n if (_isString(child)) {\n return this.addLabel(child, position);\n }\n\n if (_isFunction(child)) {\n child = Tween.delayedCall(0, child);\n } else {\n return this;\n }\n }\n\n return this !== child ? _addToTimeline(this, child, position) : this; //don't allow a timeline to be added to itself as a child!\n };\n\n _proto2.getChildren = function getChildren(nested, tweens, timelines, ignoreBeforeTime) {\n if (nested === void 0) {\n nested = true;\n }\n\n if (tweens === void 0) {\n tweens = true;\n }\n\n if (timelines === void 0) {\n timelines = true;\n }\n\n if (ignoreBeforeTime === void 0) {\n ignoreBeforeTime = -_bigNum;\n }\n\n var a = [],\n child = this._first;\n\n while (child) {\n if (child._start >= ignoreBeforeTime) {\n if (child instanceof Tween) {\n tweens && a.push(child);\n } else {\n timelines && a.push(child);\n nested && a.push.apply(a, child.getChildren(true, tweens, timelines));\n }\n }\n\n child = child._next;\n }\n\n return a;\n };\n\n _proto2.getById = function getById(id) {\n var animations = this.getChildren(1, 1, 1),\n i = animations.length;\n\n while (i--) {\n if (animations[i].vars.id === id) {\n return animations[i];\n }\n }\n };\n\n _proto2.remove = function remove(child) {\n if (_isString(child)) {\n return this.removeLabel(child);\n }\n\n if (_isFunction(child)) {\n return this.killTweensOf(child);\n }\n\n _removeLinkedListItem(this, child);\n\n if (child === this._recent) {\n this._recent = this._last;\n }\n\n return _uncache(this);\n };\n\n _proto2.totalTime = function totalTime(_totalTime2, suppressEvents) {\n if (!arguments.length) {\n return this._tTime;\n }\n\n this._forcing = 1;\n\n if (!this._dp && this._ts) {\n //special case for the global timeline (or any other that has no parent or detached parent).\n this._start = _round(_ticker.time - (this._ts > 0 ? _totalTime2 / this._ts : (this.totalDuration() - _totalTime2) / -this._ts));\n }\n\n _Animation.prototype.totalTime.call(this, _totalTime2, suppressEvents);\n\n this._forcing = 0;\n return this;\n };\n\n _proto2.addLabel = function addLabel(label, position) {\n this.labels[label] = _parsePosition(this, position);\n return this;\n };\n\n _proto2.removeLabel = function removeLabel(label) {\n delete this.labels[label];\n return this;\n };\n\n _proto2.addPause = function addPause(position, callback, params) {\n var t = Tween.delayedCall(0, callback || _emptyFunc, params);\n t.data = \"isPause\";\n this._hasPause = 1;\n return _addToTimeline(this, t, _parsePosition(this, position));\n };\n\n _proto2.removePause = function removePause(position) {\n var child = this._first;\n position = _parsePosition(this, position);\n\n while (child) {\n if (child._start === position && child.data === \"isPause\") {\n _removeFromParent(child);\n }\n\n child = child._next;\n }\n };\n\n _proto2.killTweensOf = function killTweensOf(targets, props, onlyActive) {\n var tweens = this.getTweensOf(targets, onlyActive),\n i = tweens.length;\n\n while (i--) {\n _overwritingTween !== tweens[i] && tweens[i].kill(targets, props);\n }\n\n return this;\n };\n\n _proto2.getTweensOf = function getTweensOf(targets, onlyActive) {\n var a = [],\n parsedTargets = toArray(targets),\n child = this._first,\n isGlobalTime = _isNumber(onlyActive),\n // a number is interpreted as a global time. If the animation spans\n children;\n\n while (child) {\n if (child instanceof Tween) {\n if (_arrayContainsAny(child._targets, parsedTargets) && (isGlobalTime ? (!_overwritingTween || child._initted && child._ts) && child.globalTime(0) <= onlyActive && child.globalTime(child.totalDuration()) > onlyActive : !onlyActive || child.isActive())) {\n // note: if this is for overwriting, it should only be for tweens that aren't paused and are initted.\n a.push(child);\n }\n } else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) {\n a.push.apply(a, children);\n }\n\n child = child._next;\n }\n\n return a;\n };\n\n _proto2.tweenTo = function tweenTo(position, vars) {\n vars = vars || {};\n\n var tl = this,\n endTime = _parsePosition(tl, position),\n _vars = vars,\n startAt = _vars.startAt,\n _onStart = _vars.onStart,\n onStartParams = _vars.onStartParams,\n tween = Tween.to(tl, _setDefaults(vars, {\n ease: \"none\",\n lazy: false,\n time: endTime,\n overwrite: \"auto\",\n duration: vars.duration || Math.abs((endTime - (startAt && \"time\" in startAt ? startAt.time : tl._time)) / tl.timeScale()) || _tinyNum,\n onStart: function onStart() {\n tl.pause();\n var duration = vars.duration || Math.abs((endTime - tl._time) / tl.timeScale());\n tween._dur !== duration && _setDuration(tween, duration, 0, 1).render(tween._time, true, true);\n _onStart && _onStart.apply(tween, onStartParams || []); //in case the user had an onStart in the vars - we don't want to overwrite it.\n }\n }));\n\n return tween;\n };\n\n _proto2.tweenFromTo = function tweenFromTo(fromPosition, toPosition, vars) {\n return this.tweenTo(toPosition, _setDefaults({\n startAt: {\n time: _parsePosition(this, fromPosition)\n }\n }, vars));\n };\n\n _proto2.recent = function recent() {\n return this._recent;\n };\n\n _proto2.nextLabel = function nextLabel(afterTime) {\n if (afterTime === void 0) {\n afterTime = this._time;\n }\n\n return _getLabelInDirection(this, _parsePosition(this, afterTime));\n };\n\n _proto2.previousLabel = function previousLabel(beforeTime) {\n if (beforeTime === void 0) {\n beforeTime = this._time;\n }\n\n return _getLabelInDirection(this, _parsePosition(this, beforeTime), 1);\n };\n\n _proto2.currentLabel = function currentLabel(value) {\n return arguments.length ? this.seek(value, true) : this.previousLabel(this._time + _tinyNum);\n };\n\n _proto2.shiftChildren = function shiftChildren(amount, adjustLabels, ignoreBeforeTime) {\n if (ignoreBeforeTime === void 0) {\n ignoreBeforeTime = 0;\n }\n\n var child = this._first,\n labels = this.labels,\n p;\n\n while (child) {\n if (child._start >= ignoreBeforeTime) {\n child._start += amount;\n child._end += amount;\n }\n\n child = child._next;\n }\n\n if (adjustLabels) {\n for (p in labels) {\n if (labels[p] >= ignoreBeforeTime) {\n labels[p] += amount;\n }\n }\n }\n\n return _uncache(this);\n };\n\n _proto2.invalidate = function invalidate() {\n var child = this._first;\n this._lock = 0;\n\n while (child) {\n child.invalidate();\n child = child._next;\n }\n\n return _Animation.prototype.invalidate.call(this);\n };\n\n _proto2.clear = function clear(includeLabels) {\n if (includeLabels === void 0) {\n includeLabels = true;\n }\n\n var child = this._first,\n next;\n\n while (child) {\n next = child._next;\n this.remove(child);\n child = next;\n }\n\n this._time = this._tTime = this._pTime = 0;\n includeLabels && (this.labels = {});\n return _uncache(this);\n };\n\n _proto2.totalDuration = function totalDuration(value) {\n var max = 0,\n self = this,\n child = self._last,\n prevStart = _bigNum,\n prev,\n start,\n parent;\n\n if (arguments.length) {\n return self.timeScale((self._repeat < 0 ? self.duration() : self.totalDuration()) / (self.reversed() ? -value : value));\n }\n\n if (self._dirty) {\n parent = self.parent;\n\n while (child) {\n prev = child._prev; //record it here in case the tween changes position in the sequence...\n\n child._dirty && child.totalDuration(); //could change the tween._startTime, so make sure the animation's cache is clean before analyzing it.\n\n start = child._start;\n\n if (start > prevStart && self._sort && child._ts && !self._lock) {\n //in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence\n self._lock = 1; //prevent endless recursive calls - there are methods that get triggered that check duration/totalDuration when we add().\n\n _addToTimeline(self, child, start - child._delay, 1)._lock = 0;\n } else {\n prevStart = start;\n }\n\n if (start < 0 && child._ts) {\n //children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.\n max -= start;\n\n if (!parent && !self._dp || parent && parent.smoothChildTiming) {\n self._start += start / self._ts;\n self._time -= start;\n self._tTime -= start;\n }\n\n self.shiftChildren(-start, false, -1e999);\n prevStart = 0;\n }\n\n child._end > max && child._ts && (max = child._end);\n child = prev;\n }\n\n _setDuration(self, self === _globalTimeline && self._time > max ? self._time : max, 1, 1);\n\n self._dirty = 0;\n }\n\n return self._tDur;\n };\n\n Timeline.updateRoot = function updateRoot(time) {\n if (_globalTimeline._ts) {\n _lazySafeRender(_globalTimeline, _parentToChildTotalTime(time, _globalTimeline));\n\n _lastRenderedFrame = _ticker.frame;\n }\n\n if (_ticker.frame >= _nextGCFrame) {\n _nextGCFrame += _config.autoSleep || 120;\n var child = _globalTimeline._first;\n if (!child || !child._ts) if (_config.autoSleep && _ticker._listeners.length < 2) {\n while (child && !child._ts) {\n child = child._next;\n }\n\n child || _ticker.sleep();\n }\n }\n };\n\n return Timeline;\n}(Animation);\n\n_setDefaults(Timeline.prototype, {\n _lock: 0,\n _hasPause: 0,\n _forcing: 0\n});\n\nvar _addComplexStringPropTween = function _addComplexStringPropTween(target, prop, start, end, setter, stringFilter, funcParam) {\n //note: we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n var pt = new PropTween(this._pt, target, prop, 0, 1, _renderComplexString, null, setter),\n index = 0,\n matchIndex = 0,\n result,\n startNums,\n color,\n endNum,\n chunk,\n startNum,\n hasRandom,\n a;\n pt.b = start;\n pt.e = end;\n start += \"\"; //ensure values are strings\n\n end += \"\";\n\n if (hasRandom = ~end.indexOf(\"random(\")) {\n end = _replaceRandom(end);\n }\n\n if (stringFilter) {\n a = [start, end];\n stringFilter(a, target, prop); //pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n\n start = a[0];\n end = a[1];\n }\n\n startNums = start.match(_complexStringNumExp) || [];\n\n while (result = _complexStringNumExp.exec(end)) {\n endNum = result[0];\n chunk = end.substring(index, result.index);\n\n if (color) {\n color = (color + 1) % 5;\n } else if (chunk.substr(-5) === \"rgba(\") {\n color = 1;\n }\n\n if (endNum !== startNums[matchIndex++]) {\n startNum = parseFloat(startNums[matchIndex - 1]) || 0; //these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\n pt._pt = {\n _next: pt._pt,\n p: chunk || matchIndex === 1 ? chunk : \",\",\n //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n s: startNum,\n c: endNum.charAt(1) === \"=\" ? parseFloat(endNum.substr(2)) * (endNum.charAt(0) === \"-\" ? -1 : 1) : parseFloat(endNum) - startNum,\n m: color && color < 4 ? Math.round : 0\n };\n index = _complexStringNumExp.lastIndex;\n }\n }\n\n pt.c = index < end.length ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n\n pt.fp = funcParam;\n\n if (_relExp.test(end) || hasRandom) {\n pt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n }\n\n this._pt = pt; //start the linked list with this new PropTween. Remember, we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\n return pt;\n},\n _addPropTween = function _addPropTween(target, prop, start, end, index, targets, modifier, stringFilter, funcParam) {\n _isFunction(end) && (end = end(index || 0, target, targets));\n var currentValue = target[prop],\n parsedStart = start !== \"get\" ? start : !_isFunction(currentValue) ? currentValue : funcParam ? target[prop.indexOf(\"set\") || !_isFunction(target[\"get\" + prop.substr(3)]) ? prop : \"get\" + prop.substr(3)](funcParam) : target[prop](),\n setter = !_isFunction(currentValue) ? _setterPlain : funcParam ? _setterFuncWithParam : _setterFunc,\n pt;\n\n if (_isString(end)) {\n if (~end.indexOf(\"random(\")) {\n end = _replaceRandom(end);\n }\n\n if (end.charAt(1) === \"=\") {\n end = parseFloat(parsedStart) + parseFloat(end.substr(2)) * (end.charAt(0) === \"-\" ? -1 : 1) + (getUnit(parsedStart) || 0);\n }\n }\n\n if (parsedStart !== end) {\n if (!isNaN(parsedStart * end)) {\n pt = new PropTween(this._pt, target, prop, +parsedStart || 0, end - (parsedStart || 0), typeof currentValue === \"boolean\" ? _renderBoolean : _renderPlain, 0, setter);\n funcParam && (pt.fp = funcParam);\n modifier && pt.modifier(modifier, this, target);\n return this._pt = pt;\n }\n\n !currentValue && !(prop in target) && _missingPlugin(prop, end);\n return _addComplexStringPropTween.call(this, target, prop, parsedStart, end, setter, stringFilter || _config.stringFilter, funcParam);\n }\n},\n //creates a copy of the vars object and processes any function-based values (putting the resulting values directly into the copy) as well as strings with \"random()\" in them. It does NOT process relative values.\n_processVars = function _processVars(vars, index, target, targets, tween) {\n _isFunction(vars) && (vars = _parseFuncOrString(vars, tween, index, target, targets));\n\n if (!_isObject(vars) || vars.style && vars.nodeType || _isArray(vars) || _isTypedArray(vars)) {\n return _isString(vars) ? _parseFuncOrString(vars, tween, index, target, targets) : vars;\n }\n\n var copy = {},\n p;\n\n for (p in vars) {\n copy[p] = _parseFuncOrString(vars[p], tween, index, target, targets);\n }\n\n return copy;\n},\n _checkPlugin = function _checkPlugin(property, vars, tween, index, target, targets) {\n var plugin, pt, ptLookup, i;\n\n if (_plugins[property] && (plugin = new _plugins[property]()).init(target, plugin.rawVars ? vars[property] : _processVars(vars[property], index, target, targets, tween), tween, index, targets) !== false) {\n tween._pt = pt = new PropTween(tween._pt, target, property, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\n if (tween !== _quickTween) {\n ptLookup = tween._ptLookup[tween._targets.indexOf(target)]; //note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.\n\n i = plugin._props.length;\n\n while (i--) {\n ptLookup[plugin._props[i]] = pt;\n }\n }\n }\n\n return plugin;\n},\n _overwritingTween,\n //store a reference temporarily so we can avoid overwriting itself.\n_initTween = function _initTween(tween, time) {\n var vars = tween.vars,\n ease = vars.ease,\n startAt = vars.startAt,\n immediateRender = vars.immediateRender,\n lazy = vars.lazy,\n onUpdate = vars.onUpdate,\n onUpdateParams = vars.onUpdateParams,\n callbackScope = vars.callbackScope,\n runBackwards = vars.runBackwards,\n yoyoEase = vars.yoyoEase,\n keyframes = vars.keyframes,\n autoRevert = vars.autoRevert,\n dur = tween._dur,\n prevStartAt = tween._startAt,\n targets = tween._targets,\n parent = tween.parent,\n fullTargets = parent && parent.data === \"nested\" ? parent.parent._targets : targets,\n autoOverwrite = tween._overwrite === \"auto\",\n tl = tween.timeline,\n cleanVars,\n i,\n p,\n pt,\n target,\n hasPriority,\n gsData,\n harness,\n plugin,\n ptLookup,\n index,\n harnessVars,\n overwritten;\n tl && (!keyframes || !ease) && (ease = \"none\");\n tween._ease = _parseEase(ease, _defaults.ease);\n tween._yEase = yoyoEase ? _invertEase(_parseEase(yoyoEase === true ? ease : yoyoEase, _defaults.ease)) : 0;\n\n if (yoyoEase && tween._yoyo && !tween._repeat) {\n //there must have been a parent timeline with yoyo:true that is currently in its yoyo phase, so flip the eases.\n yoyoEase = tween._yEase;\n tween._yEase = tween._ease;\n tween._ease = yoyoEase;\n }\n\n if (!tl) {\n //if there's an internal timeline, skip all the parsing because we passed that task down the chain.\n harness = targets[0] ? _getCache(targets[0]).harness : 0;\n harnessVars = harness && vars[harness.prop]; //someone may need to specify CSS-specific values AND non-CSS values, like if the element has an \"x\" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.\n\n cleanVars = _copyExcluding(vars, _reservedProps);\n prevStartAt && prevStartAt.render(-1, true).kill();\n\n if (startAt) {\n _removeFromParent(tween._startAt = Tween.set(targets, _setDefaults({\n data: \"isStart\",\n overwrite: false,\n parent: parent,\n immediateRender: true,\n lazy: _isNotFalse(lazy),\n startAt: null,\n delay: 0,\n onUpdate: onUpdate,\n onUpdateParams: onUpdateParams,\n callbackScope: callbackScope,\n stagger: 0\n }, startAt))); //copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, from, to).fromTo(e, to, from);\n\n\n if (immediateRender) {\n if (time > 0) {\n autoRevert || (tween._startAt = 0); //tweens that render immediately (like most from() and fromTo() tweens) shouldn't revert when their parent timeline's playhead goes backward past the startTime because the initial render could have happened anytime and it shouldn't be directly correlated to this tween's startTime. Imagine setting up a complex animation where the beginning states of various objects are rendered immediately but the tween doesn't happen for quite some time - if we revert to the starting values as soon as the playhead goes backward past the tween's startTime, it will throw things off visually. Reversion should only happen in Timeline instances where immediateRender was false or when autoRevert is explicitly set to true.\n } else if (dur && !(time < 0 && prevStartAt)) {\n time && (tween._zTime = time);\n return; //we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a Timeline, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.\n }\n }\n } else if (runBackwards && dur) {\n //from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)\n if (prevStartAt) {\n !autoRevert && (tween._startAt = 0);\n } else {\n time && (immediateRender = false); //in rare cases (like if a from() tween runs and then is invalidate()-ed), immediateRender could be true but the initial forced-render gets skipped, so there's no need to force the render in this context when the _time is greater than 0\n\n p = _setDefaults({\n overwrite: false,\n data: \"isFromStart\",\n //we tag the tween with as \"isFromStart\" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a \"from()\" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:\"height\", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.\n lazy: immediateRender && _isNotFalse(lazy),\n immediateRender: immediateRender,\n //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)\n stagger: 0,\n parent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(\".class\", {y:gsap.utils.wrap([-100,100])})\n\n }, cleanVars);\n harnessVars && (p[harness.prop] = harnessVars); // in case someone does something like .from(..., {css:{}})\n\n _removeFromParent(tween._startAt = Tween.set(targets, p));\n\n if (!immediateRender) {\n _initTween(tween._startAt, _tinyNum); //ensures that the initial values are recorded\n\n } else if (!time) {\n return;\n }\n }\n }\n\n tween._pt = 0;\n lazy = dur && _isNotFalse(lazy) || lazy && !dur;\n\n for (i = 0; i < targets.length; i++) {\n target = targets[i];\n gsData = target._gsap || _harness(targets)[i]._gsap;\n tween._ptLookup[i] = ptLookup = {};\n _lazyLookup[gsData.id] && _lazyTweens.length && _lazyRender(); //if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)\n\n index = fullTargets === targets ? i : fullTargets.indexOf(target);\n\n if (harness && (plugin = new harness()).init(target, harnessVars || cleanVars, tween, index, fullTargets) !== false) {\n tween._pt = pt = new PropTween(tween._pt, target, plugin.name, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\n plugin._props.forEach(function (name) {\n ptLookup[name] = pt;\n });\n\n plugin.priority && (hasPriority = 1);\n }\n\n if (!harness || harnessVars) {\n for (p in cleanVars) {\n if (_plugins[p] && (plugin = _checkPlugin(p, cleanVars, tween, index, target, fullTargets))) {\n plugin.priority && (hasPriority = 1);\n } else {\n ptLookup[p] = pt = _addPropTween.call(tween, target, p, \"get\", cleanVars[p], index, fullTargets, 0, vars.stringFilter);\n }\n }\n }\n\n tween._op && tween._op[i] && tween.kill(target, tween._op[i]);\n\n if (autoOverwrite && tween._pt) {\n _overwritingTween = tween;\n\n _globalTimeline.killTweensOf(target, ptLookup, tween.globalTime(0)); //Also make sure the overwriting doesn't overwrite THIS tween!!!\n\n\n overwritten = !tween.parent;\n _overwritingTween = 0;\n }\n\n tween._pt && lazy && (_lazyLookup[gsData.id] = 1);\n }\n\n hasPriority && _sortPropTweensByPriority(tween);\n tween._onInit && tween._onInit(tween); //plugins like RoundProps must wait until ALL of the PropTweens are instantiated. In the plugin's init() function, it sets the _onInit on the tween instance. May not be pretty/intuitive, but it's fast and keeps file size down.\n }\n\n tween._from = !tl && !!vars.runBackwards; //nested timelines should never run backwards - the backwards-ness is in the child tweens.\n\n tween._onUpdate = onUpdate;\n tween._initted = (!tween._op || tween._pt) && !overwritten; // if overwrittenProps resulted in the entire tween being killed, do NOT flag it as initted or else it may render for one tick.\n},\n _addAliasesToVars = function _addAliasesToVars(targets, vars) {\n var harness = targets[0] ? _getCache(targets[0]).harness : 0,\n propertyAliases = harness && harness.aliases,\n copy,\n p,\n i,\n aliases;\n\n if (!propertyAliases) {\n return vars;\n }\n\n copy = _merge({}, vars);\n\n for (p in propertyAliases) {\n if (p in copy) {\n aliases = propertyAliases[p].split(\",\");\n i = aliases.length;\n\n while (i--) {\n copy[aliases[i]] = copy[p];\n }\n }\n }\n\n return copy;\n},\n _parseFuncOrString = function _parseFuncOrString(value, tween, i, target, targets) {\n return _isFunction(value) ? value.call(tween, i, target, targets) : _isString(value) && ~value.indexOf(\"random(\") ? _replaceRandom(value) : value;\n},\n _staggerTweenProps = _callbackNames + \"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase\",\n _staggerPropsToSkip = (_staggerTweenProps + \",id,stagger,delay,duration,paused,scrollTrigger\").split(\",\");\n/*\n * --------------------------------------------------------------------------------------\n * TWEEN\n * --------------------------------------------------------------------------------------\n */\n\n\nexport var Tween = /*#__PURE__*/function (_Animation2) {\n _inheritsLoose(Tween, _Animation2);\n\n function Tween(targets, vars, time, skipInherit) {\n var _this3;\n\n if (typeof vars === \"number\") {\n time.duration = vars;\n vars = time;\n time = null;\n }\n\n _this3 = _Animation2.call(this, skipInherit ? vars : _inheritDefaults(vars), time) || this;\n var _this3$vars = _this3.vars,\n duration = _this3$vars.duration,\n delay = _this3$vars.delay,\n immediateRender = _this3$vars.immediateRender,\n stagger = _this3$vars.stagger,\n overwrite = _this3$vars.overwrite,\n keyframes = _this3$vars.keyframes,\n defaults = _this3$vars.defaults,\n scrollTrigger = _this3$vars.scrollTrigger,\n yoyoEase = _this3$vars.yoyoEase,\n parent = _this3.parent,\n parsedTargets = (_isArray(targets) || _isTypedArray(targets) ? _isNumber(targets[0]) : \"length\" in vars) ? [targets] : toArray(targets),\n tl,\n i,\n copy,\n l,\n p,\n curTarget,\n staggerFunc,\n staggerVarsToMerge;\n _this3._targets = parsedTargets.length ? _harness(parsedTargets) : _warn(\"GSAP target \" + targets + \" not found. https://greensock.com\", !_config.nullTargetWarn) || [];\n _this3._ptLookup = []; //PropTween lookup. An array containing an object for each target, having keys for each tweening property\n\n _this3._overwrite = overwrite;\n\n if (keyframes || stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {\n vars = _this3.vars;\n tl = _this3.timeline = new Timeline({\n data: \"nested\",\n defaults: defaults || {}\n });\n tl.kill();\n tl.parent = _assertThisInitialized(_this3);\n\n if (keyframes) {\n _setDefaults(tl.vars.defaults, {\n ease: \"none\"\n });\n\n keyframes.forEach(function (frame) {\n return tl.to(parsedTargets, frame, \">\");\n });\n } else {\n l = parsedTargets.length;\n staggerFunc = stagger ? distribute(stagger) : _emptyFunc;\n\n if (_isObject(stagger)) {\n //users can pass in callbacks like onStart/onComplete in the stagger object. These should fire with each individual tween.\n for (p in stagger) {\n if (~_staggerTweenProps.indexOf(p)) {\n staggerVarsToMerge || (staggerVarsToMerge = {});\n staggerVarsToMerge[p] = stagger[p];\n }\n }\n }\n\n for (i = 0; i < l; i++) {\n copy = {};\n\n for (p in vars) {\n if (_staggerPropsToSkip.indexOf(p) < 0) {\n copy[p] = vars[p];\n }\n }\n\n copy.stagger = 0;\n yoyoEase && (copy.yoyoEase = yoyoEase);\n staggerVarsToMerge && _merge(copy, staggerVarsToMerge);\n curTarget = parsedTargets[i]; //don't just copy duration or delay because if they're a string or function, we'd end up in an infinite loop because _isFuncOrString() would evaluate as true in the child tweens, entering this loop, etc. So we parse the value straight from vars and default to 0.\n\n copy.duration = +_parseFuncOrString(duration, _assertThisInitialized(_this3), i, curTarget, parsedTargets);\n copy.delay = (+_parseFuncOrString(delay, _assertThisInitialized(_this3), i, curTarget, parsedTargets) || 0) - _this3._delay;\n\n if (!stagger && l === 1 && copy.delay) {\n // if someone does delay:\"random(1, 5)\", repeat:-1, for example, the delay shouldn't be inside the repeat.\n _this3._delay = delay = copy.delay;\n _this3._start += delay;\n copy.delay = 0;\n }\n\n tl.to(curTarget, copy, staggerFunc(i, curTarget, parsedTargets));\n }\n\n tl.duration() ? duration = delay = 0 : _this3.timeline = 0; // if the timeline's duration is 0, we don't need a timeline internally!\n }\n\n duration || _this3.duration(duration = tl.duration());\n } else {\n _this3.timeline = 0; //speed optimization, faster lookups (no going up the prototype chain)\n }\n\n if (overwrite === true) {\n _overwritingTween = _assertThisInitialized(_this3);\n\n _globalTimeline.killTweensOf(parsedTargets);\n\n _overwritingTween = 0;\n }\n\n parent && _postAddChecks(parent, _assertThisInitialized(_this3));\n\n if (immediateRender || !duration && !keyframes && _this3._start === _round(parent._time) && _isNotFalse(immediateRender) && _hasNoPausedAncestors(_assertThisInitialized(_this3)) && parent.data !== \"nested\") {\n _this3._tTime = -_tinyNum; //forces a render without having to set the render() \"force\" parameter to true because we want to allow lazying by default (using the \"force\" parameter always forces an immediate full render)\n\n _this3.render(Math.max(0, -delay)); //in case delay is negative\n\n }\n\n scrollTrigger && _scrollTrigger(_assertThisInitialized(_this3), scrollTrigger);\n return _this3;\n }\n\n var _proto3 = Tween.prototype;\n\n _proto3.render = function render(totalTime, suppressEvents, force) {\n var prevTime = this._time,\n tDur = this._tDur,\n dur = this._dur,\n tTime = totalTime > tDur - _tinyNum && totalTime >= 0 ? tDur : totalTime < _tinyNum ? 0 : totalTime,\n time,\n pt,\n iteration,\n cycleDuration,\n prevIteration,\n isYoyo,\n ratio,\n timeline,\n yoyoEase;\n\n if (!dur) {\n _renderZeroDurationTween(this, totalTime, suppressEvents, force);\n } else if (tTime !== this._tTime || !totalTime || force || this._startAt && this._zTime < 0 !== totalTime < 0) {\n //this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)\n time = tTime;\n timeline = this.timeline;\n\n if (this._repeat) {\n //adjust the time for repeats and yoyos\n cycleDuration = dur + this._rDelay;\n time = _round(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\n if (tTime === tDur) {\n // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n iteration = this._repeat;\n time = dur;\n } else {\n iteration = ~~(tTime / cycleDuration);\n\n if (iteration && iteration === tTime / cycleDuration) {\n time = dur;\n iteration--;\n }\n\n time > dur && (time = dur);\n }\n\n isYoyo = this._yoyo && iteration & 1;\n\n if (isYoyo) {\n yoyoEase = this._yEase;\n time = dur - time;\n }\n\n prevIteration = _animationCycle(this._tTime, cycleDuration);\n\n if (time === prevTime && !force && this._initted) {\n //could be during the repeatDelay part. No need to render and fire callbacks.\n return this;\n }\n\n if (iteration !== prevIteration) {\n timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo); //repeatRefresh functionality\n\n if (this.vars.repeatRefresh && !isYoyo && !this._lock) {\n this._lock = force = 1; //force, otherwise if lazy is true, the _attemptInitTween() will return and we'll jump out and get caught bouncing on each tick.\n\n this.render(_round(cycleDuration * iteration), true).invalidate()._lock = 0;\n }\n }\n }\n\n if (!this._initted) {\n if (_attemptInitTween(this, totalTime < 0 ? totalTime : time, force, suppressEvents)) {\n this._tTime = 0; // in constructor if immediateRender is true, we set _tTime to -_tinyNum to have the playhead cross the starting point but we can't leave _tTime as a negative number.\n\n return this;\n }\n\n if (dur !== this._dur) {\n // while initting, a plugin like InertiaPlugin might alter the duration, so rerun from the start to ensure everything renders as it should.\n return this.render(totalTime, suppressEvents, force);\n }\n }\n\n this._tTime = tTime;\n this._time = time;\n\n if (!this._act && this._ts) {\n this._act = 1; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\n this._lazy = 0;\n }\n\n this.ratio = ratio = (yoyoEase || this._ease)(time / dur);\n\n if (this._from) {\n this.ratio = ratio = 1 - ratio;\n }\n\n time && !prevTime && !suppressEvents && _callback(this, \"onStart\");\n pt = this._pt;\n\n while (pt) {\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n\n timeline && timeline.render(totalTime < 0 ? totalTime : !time && isYoyo ? -_tinyNum : timeline._dur * ratio, suppressEvents, force) || this._startAt && (this._zTime = totalTime);\n\n if (this._onUpdate && !suppressEvents) {\n totalTime < 0 && this._startAt && this._startAt.render(totalTime, true, force); //note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.\n\n _callback(this, \"onUpdate\");\n }\n\n this._repeat && iteration !== prevIteration && this.vars.onRepeat && !suppressEvents && this.parent && _callback(this, \"onRepeat\");\n\n if ((tTime === this._tDur || !tTime) && this._tTime === tTime) {\n totalTime < 0 && this._startAt && !this._onUpdate && this._startAt.render(totalTime, true, true);\n (totalTime || !dur) && (tTime === this._tDur && this._ts > 0 || !tTime && this._ts < 0) && _removeFromParent(this, 1); // don't remove if we're rendering at exactly a time of 0, as there could be autoRevert values that should get set on the next tick (if the playhead goes backward beyond the startTime, negative totalTime). Don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n\n if (!suppressEvents && !(totalTime < 0 && !prevTime) && (tTime || prevTime)) {\n // if prevTime and tTime are zero, we shouldn't fire the onReverseComplete. This could happen if you gsap.to(... {paused:true}).play();\n _callback(this, tTime === tDur ? \"onComplete\" : \"onReverseComplete\", true);\n\n this._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n }\n }\n }\n\n return this;\n };\n\n _proto3.targets = function targets() {\n return this._targets;\n };\n\n _proto3.invalidate = function invalidate() {\n this._pt = this._op = this._startAt = this._onUpdate = this._act = this._lazy = 0;\n this._ptLookup = [];\n this.timeline && this.timeline.invalidate();\n return _Animation2.prototype.invalidate.call(this);\n };\n\n _proto3.kill = function kill(targets, vars) {\n if (vars === void 0) {\n vars = \"all\";\n }\n\n if (!targets && (!vars || vars === \"all\")) {\n this._lazy = 0;\n\n if (this.parent) {\n return _interrupt(this);\n }\n }\n\n if (this.timeline) {\n var tDur = this.timeline.totalDuration();\n this.timeline.killTweensOf(targets, vars, _overwritingTween && _overwritingTween.vars.overwrite !== true)._first || _interrupt(this); // if nothing is left tweenng, interrupt.\n\n this.parent && tDur !== this.timeline.totalDuration() && _setDuration(this, this._dur * this.timeline._tDur / tDur, 0, 1); // if a nested tween is killed that changes the duration, it should affect this tween's duration. We must use the ratio, though, because sometimes the internal timeline is stretched like for keyframes where they don't all add up to whatever the parent tween's duration was set to.\n\n return this;\n }\n\n var parsedTargets = this._targets,\n killingTargets = targets ? toArray(targets) : parsedTargets,\n propTweenLookup = this._ptLookup,\n firstPT = this._pt,\n overwrittenProps,\n curLookup,\n curOverwriteProps,\n props,\n p,\n pt,\n i;\n\n if ((!vars || vars === \"all\") && _arraysMatch(parsedTargets, killingTargets)) {\n vars === \"all\" && (this._pt = 0);\n return _interrupt(this);\n }\n\n overwrittenProps = this._op = this._op || [];\n\n if (vars !== \"all\") {\n //so people can pass in a comma-delimited list of property names\n if (_isString(vars)) {\n p = {};\n\n _forEachName(vars, function (name) {\n return p[name] = 1;\n });\n\n vars = p;\n }\n\n vars = _addAliasesToVars(parsedTargets, vars);\n }\n\n i = parsedTargets.length;\n\n while (i--) {\n if (~killingTargets.indexOf(parsedTargets[i])) {\n curLookup = propTweenLookup[i];\n\n if (vars === \"all\") {\n overwrittenProps[i] = vars;\n props = curLookup;\n curOverwriteProps = {};\n } else {\n curOverwriteProps = overwrittenProps[i] = overwrittenProps[i] || {};\n props = vars;\n }\n\n for (p in props) {\n pt = curLookup && curLookup[p];\n\n if (pt) {\n if (!(\"kill\" in pt.d) || pt.d.kill(p) === true) {\n _removeLinkedListItem(this, pt, \"_pt\");\n }\n\n delete curLookup[p];\n }\n\n if (curOverwriteProps !== \"all\") {\n curOverwriteProps[p] = 1;\n }\n }\n }\n }\n\n this._initted && !this._pt && firstPT && _interrupt(this); //if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.\n\n return this;\n };\n\n Tween.to = function to(targets, vars) {\n return new Tween(targets, vars, arguments[2]);\n };\n\n Tween.from = function from(targets, vars) {\n return new Tween(targets, _parseVars(arguments, 1));\n };\n\n Tween.delayedCall = function delayedCall(delay, callback, params, scope) {\n return new Tween(callback, 0, {\n immediateRender: false,\n lazy: false,\n overwrite: false,\n delay: delay,\n onComplete: callback,\n onReverseComplete: callback,\n onCompleteParams: params,\n onReverseCompleteParams: params,\n callbackScope: scope\n });\n };\n\n Tween.fromTo = function fromTo(targets, fromVars, toVars) {\n return new Tween(targets, _parseVars(arguments, 2));\n };\n\n Tween.set = function set(targets, vars) {\n vars.duration = 0;\n vars.repeatDelay || (vars.repeat = 0);\n return new Tween(targets, vars);\n };\n\n Tween.killTweensOf = function killTweensOf(targets, props, onlyActive) {\n return _globalTimeline.killTweensOf(targets, props, onlyActive);\n };\n\n return Tween;\n}(Animation);\n\n_setDefaults(Tween.prototype, {\n _targets: [],\n _lazy: 0,\n _startAt: 0,\n _op: 0,\n _onInit: 0\n}); //add the pertinent timeline methods to Tween instances so that users can chain conveniently and create a timeline automatically. (removed due to concerns that it'd ultimately add to more confusion especially for beginners)\n// _forEachName(\"to,from,fromTo,set,call,add,addLabel,addPause\", name => {\n// \tTween.prototype[name] = function() {\n// \t\tlet tl = new Timeline();\n// \t\treturn _addToTimeline(tl, this)[name].apply(tl, toArray(arguments));\n// \t}\n// });\n//for backward compatibility. Leverage the timeline calls.\n\n\n_forEachName(\"staggerTo,staggerFrom,staggerFromTo\", function (name) {\n Tween[name] = function () {\n var tl = new Timeline(),\n params = _slice.call(arguments, 0);\n\n params.splice(name === \"staggerFromTo\" ? 5 : 4, 0, 0);\n return tl[name].apply(tl, params);\n };\n});\n/*\n * --------------------------------------------------------------------------------------\n * PROPTWEEN\n * --------------------------------------------------------------------------------------\n */\n\n\nvar _setterPlain = function _setterPlain(target, property, value) {\n return target[property] = value;\n},\n _setterFunc = function _setterFunc(target, property, value) {\n return target[property](value);\n},\n _setterFuncWithParam = function _setterFuncWithParam(target, property, value, data) {\n return target[property](data.fp, value);\n},\n _setterAttribute = function _setterAttribute(target, property, value) {\n return target.setAttribute(property, value);\n},\n _getSetter = function _getSetter(target, property) {\n return _isFunction(target[property]) ? _setterFunc : _isUndefined(target[property]) && target.setAttribute ? _setterAttribute : _setterPlain;\n},\n _renderPlain = function _renderPlain(ratio, data) {\n return data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 10000) / 10000, data);\n},\n _renderBoolean = function _renderBoolean(ratio, data) {\n return data.set(data.t, data.p, !!(data.s + data.c * ratio), data);\n},\n _renderComplexString = function _renderComplexString(ratio, data) {\n var pt = data._pt,\n s = \"\";\n\n if (!ratio && data.b) {\n //b = beginning string\n s = data.b;\n } else if (ratio === 1 && data.e) {\n //e = ending string\n s = data.e;\n } else {\n while (pt) {\n s = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : Math.round((pt.s + pt.c * ratio) * 10000) / 10000) + s; //we use the \"p\" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.\n\n pt = pt._next;\n }\n\n s += data.c; //we use the \"c\" of the PropTween to store the final chunk of non-numeric text.\n }\n\n data.set(data.t, data.p, s, data);\n},\n _renderPropTweens = function _renderPropTweens(ratio, data) {\n var pt = data._pt;\n\n while (pt) {\n pt.r(ratio, pt.d);\n pt = pt._next;\n }\n},\n _addPluginModifier = function _addPluginModifier(modifier, tween, target, property) {\n var pt = this._pt,\n next;\n\n while (pt) {\n next = pt._next;\n pt.p === property && pt.modifier(modifier, tween, target);\n pt = next;\n }\n},\n _killPropTweensOf = function _killPropTweensOf(property) {\n var pt = this._pt,\n hasNonDependentRemaining,\n next;\n\n while (pt) {\n next = pt._next;\n\n if (pt.p === property && !pt.op || pt.op === property) {\n _removeLinkedListItem(this, pt, \"_pt\");\n } else if (!pt.dep) {\n hasNonDependentRemaining = 1;\n }\n\n pt = next;\n }\n\n return !hasNonDependentRemaining;\n},\n _setterWithModifier = function _setterWithModifier(target, property, value, data) {\n data.mSet(target, property, data.m.call(data.tween, value, data.mt), data);\n},\n _sortPropTweensByPriority = function _sortPropTweensByPriority(parent) {\n var pt = parent._pt,\n next,\n pt2,\n first,\n last; //sorts the PropTween linked list in order of priority because some plugins need to do their work after ALL of the PropTweens were created (like RoundPropsPlugin and ModifiersPlugin)\n\n while (pt) {\n next = pt._next;\n pt2 = first;\n\n while (pt2 && pt2.pr > pt.pr) {\n pt2 = pt2._next;\n }\n\n if (pt._prev = pt2 ? pt2._prev : last) {\n pt._prev._next = pt;\n } else {\n first = pt;\n }\n\n if (pt._next = pt2) {\n pt2._prev = pt;\n } else {\n last = pt;\n }\n\n pt = next;\n }\n\n parent._pt = first;\n}; //PropTween key: t = target, p = prop, r = renderer, d = data, s = start, c = change, op = overwriteProperty (ONLY populated when it's different than p), pr = priority, _next/_prev for the linked list siblings, set = setter, m = modifier, mSet = modifierSetter (the original setter, before a modifier was added)\n\n\nexport var PropTween = /*#__PURE__*/function () {\n function PropTween(next, target, prop, start, change, renderer, data, setter, priority) {\n this.t = target;\n this.s = start;\n this.c = change;\n this.p = prop;\n this.r = renderer || _renderPlain;\n this.d = data || this;\n this.set = setter || _setterPlain;\n this.pr = priority || 0;\n this._next = next;\n\n if (next) {\n next._prev = this;\n }\n }\n\n var _proto4 = PropTween.prototype;\n\n _proto4.modifier = function modifier(func, tween, target) {\n this.mSet = this.mSet || this.set; //in case it was already set (a PropTween can only have one modifier)\n\n this.set = _setterWithModifier;\n this.m = func;\n this.mt = target; //modifier target\n\n this.tween = tween;\n };\n\n return PropTween;\n}(); //Initialization tasks\n\n_forEachName(_callbackNames + \"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger\", function (name) {\n return _reservedProps[name] = 1;\n});\n\n_globals.TweenMax = _globals.TweenLite = Tween;\n_globals.TimelineLite = _globals.TimelineMax = Timeline;\n_globalTimeline = new Timeline({\n sortChildren: false,\n defaults: _defaults,\n autoRemoveChildren: true,\n id: \"root\",\n smoothChildTiming: true\n});\n_config.stringFilter = _colorStringFilter;\n/*\n * --------------------------------------------------------------------------------------\n * GSAP\n * --------------------------------------------------------------------------------------\n */\n\nvar _gsap = {\n registerPlugin: function registerPlugin() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n args.forEach(function (config) {\n return _createPlugin(config);\n });\n },\n timeline: function timeline(vars) {\n return new Timeline(vars);\n },\n getTweensOf: function getTweensOf(targets, onlyActive) {\n return _globalTimeline.getTweensOf(targets, onlyActive);\n },\n getProperty: function getProperty(target, property, unit, uncache) {\n _isString(target) && (target = toArray(target)[0]); //in case selector text or an array is passed in\n\n var getter = _getCache(target || {}).get,\n format = unit ? _passThrough : _numericIfPossible;\n\n unit === \"native\" && (unit = \"\");\n return !target ? target : !property ? function (property, unit, uncache) {\n return format((_plugins[property] && _plugins[property].get || getter)(target, property, unit, uncache));\n } : format((_plugins[property] && _plugins[property].get || getter)(target, property, unit, uncache));\n },\n quickSetter: function quickSetter(target, property, unit) {\n target = toArray(target);\n\n if (target.length > 1) {\n var setters = target.map(function (t) {\n return gsap.quickSetter(t, property, unit);\n }),\n l = setters.length;\n return function (value) {\n var i = l;\n\n while (i--) {\n setters[i](value);\n }\n };\n }\n\n target = target[0] || {};\n\n var Plugin = _plugins[property],\n cache = _getCache(target),\n p = cache.harness && (cache.harness.aliases || {})[property] || property,\n // in case it's an alias, like \"rotate\" for \"rotation\".\n setter = Plugin ? function (value) {\n var p = new Plugin();\n _quickTween._pt = 0;\n p.init(target, unit ? value + unit : value, _quickTween, 0, [target]);\n p.render(1, p);\n _quickTween._pt && _renderPropTweens(1, _quickTween);\n } : cache.set(target, p);\n\n return Plugin ? setter : function (value) {\n return setter(target, p, unit ? value + unit : value, cache, 1);\n };\n },\n isTweening: function isTweening(targets) {\n return _globalTimeline.getTweensOf(targets, true).length > 0;\n },\n defaults: function defaults(value) {\n value && value.ease && (value.ease = _parseEase(value.ease, _defaults.ease));\n return _mergeDeep(_defaults, value || {});\n },\n config: function config(value) {\n return _mergeDeep(_config, value || {});\n },\n registerEffect: function registerEffect(_ref) {\n var name = _ref.name,\n effect = _ref.effect,\n plugins = _ref.plugins,\n defaults = _ref.defaults,\n extendTimeline = _ref.extendTimeline;\n (plugins || \"\").split(\",\").forEach(function (pluginName) {\n return pluginName && !_plugins[pluginName] && !_globals[pluginName] && _warn(name + \" effect requires \" + pluginName + \" plugin.\");\n });\n\n _effects[name] = function (targets, vars, tl) {\n return effect(toArray(targets), _setDefaults(vars || {}, defaults), tl);\n };\n\n if (extendTimeline) {\n Timeline.prototype[name] = function (targets, vars, position) {\n return this.add(_effects[name](targets, _isObject(vars) ? vars : (position = vars) && {}, this), position);\n };\n }\n },\n registerEase: function registerEase(name, ease) {\n _easeMap[name] = _parseEase(ease);\n },\n parseEase: function parseEase(ease, defaultEase) {\n return arguments.length ? _parseEase(ease, defaultEase) : _easeMap;\n },\n getById: function getById(id) {\n return _globalTimeline.getById(id);\n },\n exportRoot: function exportRoot(vars, includeDelayedCalls) {\n if (vars === void 0) {\n vars = {};\n }\n\n var tl = new Timeline(vars),\n child,\n next;\n tl.smoothChildTiming = _isNotFalse(vars.smoothChildTiming);\n\n _globalTimeline.remove(tl);\n\n tl._dp = 0; //otherwise it'll get re-activated when adding children and be re-introduced into _globalTimeline's linked list (then added to itself).\n\n tl._time = tl._tTime = _globalTimeline._time;\n child = _globalTimeline._first;\n\n while (child) {\n next = child._next;\n\n if (includeDelayedCalls || !(!child._dur && child instanceof Tween && child.vars.onComplete === child._targets[0])) {\n _addToTimeline(tl, child, child._start - child._delay);\n }\n\n child = next;\n }\n\n _addToTimeline(_globalTimeline, tl, 0);\n\n return tl;\n },\n utils: {\n wrap: wrap,\n wrapYoyo: wrapYoyo,\n distribute: distribute,\n random: random,\n snap: snap,\n normalize: normalize,\n getUnit: getUnit,\n clamp: clamp,\n splitColor: splitColor,\n toArray: toArray,\n mapRange: mapRange,\n pipe: pipe,\n unitize: unitize,\n interpolate: interpolate,\n shuffle: shuffle\n },\n install: _install,\n effects: _effects,\n ticker: _ticker,\n updateRoot: Timeline.updateRoot,\n plugins: _plugins,\n globalTimeline: _globalTimeline,\n core: {\n PropTween: PropTween,\n globals: _addGlobal,\n Tween: Tween,\n Timeline: Timeline,\n Animation: Animation,\n getCache: _getCache,\n _removeLinkedListItem: _removeLinkedListItem\n }\n};\n\n_forEachName(\"to,from,fromTo,delayedCall,set,killTweensOf\", function (name) {\n return _gsap[name] = Tween[name];\n});\n\n_ticker.add(Timeline.updateRoot);\n\n_quickTween = _gsap.to({}, {\n duration: 0\n}); // ---- EXTRA PLUGINS --------------------------------------------------------\n\nvar _getPluginPropTween = function _getPluginPropTween(plugin, prop) {\n var pt = plugin._pt;\n\n while (pt && pt.p !== prop && pt.op !== prop && pt.fp !== prop) {\n pt = pt._next;\n }\n\n return pt;\n},\n _addModifiers = function _addModifiers(tween, modifiers) {\n var targets = tween._targets,\n p,\n i,\n pt;\n\n for (p in modifiers) {\n i = targets.length;\n\n while (i--) {\n pt = tween._ptLookup[i][p];\n\n if (pt && (pt = pt.d)) {\n if (pt._pt) {\n // is a plugin\n pt = _getPluginPropTween(pt, p);\n }\n\n pt && pt.modifier && pt.modifier(modifiers[p], tween, targets[i], p);\n }\n }\n }\n},\n _buildModifierPlugin = function _buildModifierPlugin(name, modifier) {\n return {\n name: name,\n rawVars: 1,\n //don't pre-process function-based values or \"random()\" strings.\n init: function init(target, vars, tween) {\n tween._onInit = function (tween) {\n var temp, p;\n\n if (_isString(vars)) {\n temp = {};\n\n _forEachName(vars, function (name) {\n return temp[name] = 1;\n }); //if the user passes in a comma-delimited list of property names to roundProps, like \"x,y\", we round to whole numbers.\n\n\n vars = temp;\n }\n\n if (modifier) {\n temp = {};\n\n for (p in vars) {\n temp[p] = modifier(vars[p]);\n }\n\n vars = temp;\n }\n\n _addModifiers(tween, vars);\n };\n }\n };\n}; //register core plugins\n\n\nexport var gsap = _gsap.registerPlugin({\n name: \"attr\",\n init: function init(target, vars, tween, index, targets) {\n var p, pt;\n\n for (p in vars) {\n pt = this.add(target, \"setAttribute\", (target.getAttribute(p) || 0) + \"\", vars[p], index, targets, 0, 0, p);\n pt && (pt.op = p);\n\n this._props.push(p);\n }\n }\n}, {\n name: \"endArray\",\n init: function init(target, value) {\n var i = value.length;\n\n while (i--) {\n this.add(target, i, target[i] || 0, value[i]);\n }\n }\n}, _buildModifierPlugin(\"roundProps\", _roundModifier), _buildModifierPlugin(\"modifiers\"), _buildModifierPlugin(\"snap\", snap)) || _gsap; //to prevent the core plugins from being dropped via aggressive tree shaking, we must include them in the variable declaration in this way.\n\nTween.version = Timeline.version = gsap.version = \"3.5.1\";\n_coreReady = 1;\n\nif (_windowExists()) {\n _wake();\n}\n\nvar Power0 = _easeMap.Power0,\n Power1 = _easeMap.Power1,\n Power2 = _easeMap.Power2,\n Power3 = _easeMap.Power3,\n Power4 = _easeMap.Power4,\n Linear = _easeMap.Linear,\n Quad = _easeMap.Quad,\n Cubic = _easeMap.Cubic,\n Quart = _easeMap.Quart,\n Quint = _easeMap.Quint,\n Strong = _easeMap.Strong,\n Elastic = _easeMap.Elastic,\n Back = _easeMap.Back,\n SteppedEase = _easeMap.SteppedEase,\n Bounce = _easeMap.Bounce,\n Sine = _easeMap.Sine,\n Expo = _easeMap.Expo,\n Circ = _easeMap.Circ;\nexport { Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ };\nexport { Tween as TweenMax, Tween as TweenLite, Timeline as TimelineMax, Timeline as TimelineLite, gsap as default, wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, mapRange, pipe, unitize, interpolate, shuffle }; //export some internal methods/orojects for use in CSSPlugin so that we can externalize that file and allow custom builds that exclude it.\n\nexport { _getProperty, _numExp, _numWithUnitExp, _isString, _isUndefined, _renderComplexString, _relExp, _setDefaults, _removeLinkedListItem, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _replaceRandom, _checkPlugin, _plugins, _ticker, _config, _roundModifier, _round, _missingPlugin, _getSetter, _getCache };","import { gsap, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ, TweenLite, TimelineLite, TimelineMax } from \"./gsap-core.js\";\nimport { CSSPlugin } from \"./CSSPlugin.js\";\nvar gsapWithCSS = gsap.registerPlugin(CSSPlugin) || gsap,\n // to protect from tree shaking\nTweenMaxWithCSS = gsapWithCSS.core.Tween;\nexport { gsapWithCSS as gsap, gsapWithCSS as default, CSSPlugin, TweenMaxWithCSS as TweenMax, TweenLite, TimelineMax, TimelineLite, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ };","exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var nBits = -7;\n var i = isLE ? nBytes - 1 : 0;\n var d = isLE ? -1 : 1;\n var s = buffer[offset + i];\n i += d;\n e = s & (1 << -nBits) - 1;\n s >>= -nBits;\n nBits += eLen;\n\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & (1 << -nBits) - 1;\n e >>= -nBits;\n nBits += mLen;\n\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias;\n } else if (e === eMax) {\n return m ? NaN : (s ? -1 : 1) * Infinity;\n } else {\n m = m + Math.pow(2, mLen);\n e = e - eBias;\n }\n\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen);\n};\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;\n var i = isLE ? 0 : nBytes - 1;\n var d = isLE ? 1 : -1;\n var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;\n value = Math.abs(value);\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0;\n e = eMax;\n } else {\n e = Math.floor(Math.log(value) / Math.LN2);\n\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--;\n c *= 2;\n }\n\n if (e + eBias >= 1) {\n value += rt / c;\n } else {\n value += rt * Math.pow(2, 1 - eBias);\n }\n\n if (value * c >= 2) {\n e++;\n c /= 2;\n }\n\n if (e + eBias >= eMax) {\n m = 0;\n e = eMax;\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);\n e = 0;\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = e << mLen | m;\n eLen += mLen;\n\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128;\n};","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar navigator = {};\nnavigator.userAgent = false;\nvar window = {};\n/*\n * jsrsasign(all) 9.1.6 (2020-09-05) (c) 2010-2020 Kenji Urushima | kjur.github.com/jsrsasign/license\n */\n\n/*!\nCopyright (c) 2011, Yahoo! Inc. All rights reserved.\nCode licensed under the BSD License:\nhttp://developer.yahoo.com/yui/license.html\nversion: 2.9.0\n*/\n\nif (YAHOO === undefined) {\n var YAHOO = {};\n}\n\nYAHOO.lang = {\n extend: function extend(g, h, f) {\n if (!h || !g) {\n throw new Error(\"YAHOO.lang.extend failed, please check that all dependencies are included.\");\n }\n\n var d = function d() {};\n\n d.prototype = h.prototype;\n g.prototype = new d();\n g.prototype.constructor = g;\n g.superclass = h.prototype;\n\n if (h.prototype.constructor == Object.prototype.constructor) {\n h.prototype.constructor = h;\n }\n\n if (f) {\n var b;\n\n for (b in f) {\n g.prototype[b] = f[b];\n }\n\n var e = function e() {},\n c = [\"toString\", \"valueOf\"];\n\n try {\n if (/MSIE/.test(navigator.userAgent)) {\n e = function e(j, i) {\n for (b = 0; b < c.length; b = b + 1) {\n var l = c[b],\n k = i[l];\n\n if (typeof k === \"function\" && k != Object.prototype[l]) {\n j[l] = k;\n }\n }\n };\n }\n } catch (a) {}\n\n e(g.prototype, f);\n }\n }\n};\n/*! CryptoJS v3.1.2 core-fix.js\n * code.google.com/p/crypto-js\n * (c) 2009-2013 by Jeff Mott. All rights reserved.\n * code.google.com/p/crypto-js/wiki/License\n * THIS IS FIX of 'core.js' to fix Hmac issue.\n * https://code.google.com/p/crypto-js/issues/detail?id=84\n * https://crypto-js.googlecode.com/svn-history/r667/branches/3.x/src/core.js\n */\n\nvar CryptoJS = CryptoJS || function (e, g) {\n var a = {};\n var b = a.lib = {};\n\n var j = b.Base = function () {\n function n() {}\n\n return {\n extend: function extend(p) {\n n.prototype = this;\n var o = new n();\n\n if (p) {\n o.mixIn(p);\n }\n\n if (!o.hasOwnProperty(\"init\")) {\n o.init = function () {\n o.$super.init.apply(this, arguments);\n };\n }\n\n o.init.prototype = o;\n o.$super = this;\n return o;\n },\n create: function create() {\n var o = this.extend();\n o.init.apply(o, arguments);\n return o;\n },\n init: function init() {},\n mixIn: function mixIn(p) {\n for (var o in p) {\n if (p.hasOwnProperty(o)) {\n this[o] = p[o];\n }\n }\n\n if (p.hasOwnProperty(\"toString\")) {\n this.toString = p.toString;\n }\n },\n clone: function clone() {\n return this.init.prototype.extend(this);\n }\n };\n }();\n\n var l = b.WordArray = j.extend({\n init: function init(o, n) {\n o = this.words = o || [];\n\n if (n != g) {\n this.sigBytes = n;\n } else {\n this.sigBytes = o.length * 4;\n }\n },\n toString: function toString(n) {\n return (n || h).stringify(this);\n },\n concat: function concat(t) {\n var q = this.words;\n var p = t.words;\n var n = this.sigBytes;\n var s = t.sigBytes;\n this.clamp();\n\n if (n % 4) {\n for (var r = 0; r < s; r++) {\n var o = p[r >>> 2] >>> 24 - r % 4 * 8 & 255;\n q[n + r >>> 2] |= o << 24 - (n + r) % 4 * 8;\n }\n } else {\n for (var r = 0; r < s; r += 4) {\n q[n + r >>> 2] = p[r >>> 2];\n }\n }\n\n this.sigBytes += s;\n return this;\n },\n clamp: function clamp() {\n var o = this.words;\n var n = this.sigBytes;\n o[n >>> 2] &= 4294967295 << 32 - n % 4 * 8;\n o.length = e.ceil(n / 4);\n },\n clone: function clone() {\n var n = j.clone.call(this);\n n.words = this.words.slice(0);\n return n;\n },\n random: function random(p) {\n var o = [];\n\n for (var n = 0; n < p; n += 4) {\n o.push(e.random() * 4294967296 | 0);\n }\n\n return new l.init(o, p);\n }\n });\n var m = a.enc = {};\n var h = m.Hex = {\n stringify: function stringify(p) {\n var r = p.words;\n var o = p.sigBytes;\n var q = [];\n\n for (var n = 0; n < o; n++) {\n var s = r[n >>> 2] >>> 24 - n % 4 * 8 & 255;\n q.push((s >>> 4).toString(16));\n q.push((s & 15).toString(16));\n }\n\n return q.join(\"\");\n },\n parse: function parse(p) {\n var n = p.length;\n var q = [];\n\n for (var o = 0; o < n; o += 2) {\n q[o >>> 3] |= parseInt(p.substr(o, 2), 16) << 24 - o % 8 * 4;\n }\n\n return new l.init(q, n / 2);\n }\n };\n var d = m.Latin1 = {\n stringify: function stringify(q) {\n var r = q.words;\n var p = q.sigBytes;\n var n = [];\n\n for (var o = 0; o < p; o++) {\n var s = r[o >>> 2] >>> 24 - o % 4 * 8 & 255;\n n.push(String.fromCharCode(s));\n }\n\n return n.join(\"\");\n },\n parse: function parse(p) {\n var n = p.length;\n var q = [];\n\n for (var o = 0; o < n; o++) {\n q[o >>> 2] |= (p.charCodeAt(o) & 255) << 24 - o % 4 * 8;\n }\n\n return new l.init(q, n);\n }\n };\n var c = m.Utf8 = {\n stringify: function stringify(n) {\n try {\n return decodeURIComponent(escape(d.stringify(n)));\n } catch (o) {\n throw new Error(\"Malformed UTF-8 data\");\n }\n },\n parse: function parse(n) {\n return d.parse(unescape(encodeURIComponent(n)));\n }\n };\n var i = b.BufferedBlockAlgorithm = j.extend({\n reset: function reset() {\n this._data = new l.init();\n this._nDataBytes = 0;\n },\n _append: function _append(n) {\n if (typeof n == \"string\") {\n n = c.parse(n);\n }\n\n this._data.concat(n);\n\n this._nDataBytes += n.sigBytes;\n },\n _process: function _process(w) {\n var q = this._data;\n var x = q.words;\n var n = q.sigBytes;\n var t = this.blockSize;\n var v = t * 4;\n var u = n / v;\n\n if (w) {\n u = e.ceil(u);\n } else {\n u = e.max((u | 0) - this._minBufferSize, 0);\n }\n\n var s = u * t;\n var r = e.min(s * 4, n);\n\n if (s) {\n for (var p = 0; p < s; p += t) {\n this._doProcessBlock(x, p);\n }\n\n var o = x.splice(0, s);\n q.sigBytes -= r;\n }\n\n return new l.init(o, r);\n },\n clone: function clone() {\n var n = j.clone.call(this);\n n._data = this._data.clone();\n return n;\n },\n _minBufferSize: 0\n });\n var f = b.Hasher = i.extend({\n cfg: j.extend(),\n init: function init(n) {\n this.cfg = this.cfg.extend(n);\n this.reset();\n },\n reset: function reset() {\n i.reset.call(this);\n\n this._doReset();\n },\n update: function update(n) {\n this._append(n);\n\n this._process();\n\n return this;\n },\n finalize: function finalize(n) {\n if (n) {\n this._append(n);\n }\n\n var o = this._doFinalize();\n\n return o;\n },\n blockSize: 512 / 32,\n _createHelper: function _createHelper(n) {\n return function (p, o) {\n return new n.init(o).finalize(p);\n };\n },\n _createHmacHelper: function _createHmacHelper(n) {\n return function (p, o) {\n return new k.HMAC.init(n, o).finalize(p);\n };\n }\n });\n var k = a.algo = {};\n return a;\n}(Math);\n/*\nCryptoJS v3.1.2 x64-core-min.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function (g) {\n var a = CryptoJS,\n f = a.lib,\n e = f.Base,\n h = f.WordArray,\n a = a.x64 = {};\n a.Word = e.extend({\n init: function init(b, c) {\n this.high = b;\n this.low = c;\n }\n });\n a.WordArray = e.extend({\n init: function init(b, c) {\n b = this.words = b || [];\n this.sigBytes = c != g ? c : 8 * b.length;\n },\n toX32: function toX32() {\n for (var b = this.words, c = b.length, a = [], d = 0; d < c; d++) {\n var e = b[d];\n a.push(e.high);\n a.push(e.low);\n }\n\n return h.create(a, this.sigBytes);\n },\n clone: function clone() {\n for (var b = e.clone.call(this), c = b.words = this.words.slice(0), a = c.length, d = 0; d < a; d++) {\n c[d] = c[d].clone();\n }\n\n return b;\n }\n });\n})();\n/*\nCryptoJS v3.1.2 cipher-core.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\nCryptoJS.lib.Cipher || function (u) {\n var g = CryptoJS,\n f = g.lib,\n k = f.Base,\n l = f.WordArray,\n q = f.BufferedBlockAlgorithm,\n r = g.enc.Base64,\n v = g.algo.EvpKDF,\n n = f.Cipher = q.extend({\n cfg: k.extend(),\n createEncryptor: function createEncryptor(a, b) {\n return this.create(this._ENC_XFORM_MODE, a, b);\n },\n createDecryptor: function createDecryptor(a, b) {\n return this.create(this._DEC_XFORM_MODE, a, b);\n },\n init: function init(a, b, c) {\n this.cfg = this.cfg.extend(c);\n this._xformMode = a;\n this._key = b;\n this.reset();\n },\n reset: function reset() {\n q.reset.call(this);\n\n this._doReset();\n },\n process: function process(a) {\n this._append(a);\n\n return this._process();\n },\n finalize: function finalize(a) {\n a && this._append(a);\n return this._doFinalize();\n },\n keySize: 4,\n ivSize: 4,\n _ENC_XFORM_MODE: 1,\n _DEC_XFORM_MODE: 2,\n _createHelper: function _createHelper(a) {\n return {\n encrypt: function encrypt(b, c, d) {\n return (\"string\" == typeof c ? s : j).encrypt(a, b, c, d);\n },\n decrypt: function decrypt(b, c, d) {\n return (\"string\" == typeof c ? s : j).decrypt(a, b, c, d);\n }\n };\n }\n });\n f.StreamCipher = n.extend({\n _doFinalize: function _doFinalize() {\n return this._process(!0);\n },\n blockSize: 1\n });\n\n var m = g.mode = {},\n t = function t(a, b, c) {\n var d = this._iv;\n d ? this._iv = u : d = this._prevBlock;\n\n for (var e = 0; e < c; e++) {\n a[b + e] ^= d[e];\n }\n },\n h = (f.BlockCipherMode = k.extend({\n createEncryptor: function createEncryptor(a, b) {\n return this.Encryptor.create(a, b);\n },\n createDecryptor: function createDecryptor(a, b) {\n return this.Decryptor.create(a, b);\n },\n init: function init(a, b) {\n this._cipher = a;\n this._iv = b;\n }\n })).extend();\n\n h.Encryptor = h.extend({\n processBlock: function processBlock(a, b) {\n var c = this._cipher,\n d = c.blockSize;\n t.call(this, a, b, d);\n c.encryptBlock(a, b);\n this._prevBlock = a.slice(b, b + d);\n }\n });\n h.Decryptor = h.extend({\n processBlock: function processBlock(a, b) {\n var c = this._cipher,\n d = c.blockSize,\n e = a.slice(b, b + d);\n c.decryptBlock(a, b);\n t.call(this, a, b, d);\n this._prevBlock = e;\n }\n });\n m = m.CBC = h;\n h = (g.pad = {}).Pkcs7 = {\n pad: function pad(a, b) {\n for (var c = 4 * b, c = c - a.sigBytes % c, d = c << 24 | c << 16 | c << 8 | c, e = [], f = 0; f < c; f += 4) {\n e.push(d);\n }\n\n c = l.create(e, c);\n a.concat(c);\n },\n unpad: function unpad(a) {\n a.sigBytes -= a.words[a.sigBytes - 1 >>> 2] & 255;\n }\n };\n f.BlockCipher = n.extend({\n cfg: n.cfg.extend({\n mode: m,\n padding: h\n }),\n reset: function reset() {\n n.reset.call(this);\n var a = this.cfg,\n b = a.iv,\n a = a.mode;\n if (this._xformMode == this._ENC_XFORM_MODE) var c = a.createEncryptor;else c = a.createDecryptor, this._minBufferSize = 1;\n this._mode = c.call(a, this, b && b.words);\n },\n _doProcessBlock: function _doProcessBlock(a, b) {\n this._mode.processBlock(a, b);\n },\n _doFinalize: function _doFinalize() {\n var a = this.cfg.padding;\n\n if (this._xformMode == this._ENC_XFORM_MODE) {\n a.pad(this._data, this.blockSize);\n\n var b = this._process(!0);\n } else b = this._process(!0), a.unpad(b);\n\n return b;\n },\n blockSize: 4\n });\n var p = f.CipherParams = k.extend({\n init: function init(a) {\n this.mixIn(a);\n },\n toString: function toString(a) {\n return (a || this.formatter).stringify(this);\n }\n }),\n m = (g.format = {}).OpenSSL = {\n stringify: function stringify(a) {\n var b = a.ciphertext;\n a = a.salt;\n return (a ? l.create([1398893684, 1701076831]).concat(a).concat(b) : b).toString(r);\n },\n parse: function parse(a) {\n a = r.parse(a);\n var b = a.words;\n\n if (1398893684 == b[0] && 1701076831 == b[1]) {\n var c = l.create(b.slice(2, 4));\n b.splice(0, 4);\n a.sigBytes -= 16;\n }\n\n return p.create({\n ciphertext: a,\n salt: c\n });\n }\n },\n j = f.SerializableCipher = k.extend({\n cfg: k.extend({\n format: m\n }),\n encrypt: function encrypt(a, b, c, d) {\n d = this.cfg.extend(d);\n var e = a.createEncryptor(c, d);\n b = e.finalize(b);\n e = e.cfg;\n return p.create({\n ciphertext: b,\n key: c,\n iv: e.iv,\n algorithm: a,\n mode: e.mode,\n padding: e.padding,\n blockSize: a.blockSize,\n formatter: d.format\n });\n },\n decrypt: function decrypt(a, b, c, d) {\n d = this.cfg.extend(d);\n b = this._parse(b, d.format);\n return a.createDecryptor(c, d).finalize(b.ciphertext);\n },\n _parse: function _parse(a, b) {\n return \"string\" == typeof a ? b.parse(a, this) : a;\n }\n }),\n g = (g.kdf = {}).OpenSSL = {\n execute: function execute(a, b, c, d) {\n d || (d = l.random(8));\n a = v.create({\n keySize: b + c\n }).compute(a, d);\n c = l.create(a.words.slice(b), 4 * c);\n a.sigBytes = 4 * b;\n return p.create({\n key: a,\n iv: c,\n salt: d\n });\n }\n },\n s = f.PasswordBasedCipher = j.extend({\n cfg: j.cfg.extend({\n kdf: g\n }),\n encrypt: function encrypt(a, b, c, d) {\n d = this.cfg.extend(d);\n c = d.kdf.execute(c, a.keySize, a.ivSize);\n d.iv = c.iv;\n a = j.encrypt.call(this, a, b, c.key, d);\n a.mixIn(c);\n return a;\n },\n decrypt: function decrypt(a, b, c, d) {\n d = this.cfg.extend(d);\n b = this._parse(b, d.format);\n c = d.kdf.execute(c, a.keySize, a.ivSize, b.salt);\n d.iv = c.iv;\n return j.decrypt.call(this, a, b, c.key, d);\n }\n });\n}();\n/*\nCryptoJS v3.1.2 aes.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n(function () {\n for (var q = CryptoJS, x = q.lib.BlockCipher, r = q.algo, j = [], y = [], z = [], A = [], B = [], C = [], s = [], u = [], v = [], w = [], g = [], k = 0; 256 > k; k++) {\n g[k] = 128 > k ? k << 1 : k << 1 ^ 283;\n }\n\n for (var n = 0, l = 0, k = 0; 256 > k; k++) {\n var f = l ^ l << 1 ^ l << 2 ^ l << 3 ^ l << 4,\n f = f >>> 8 ^ f & 255 ^ 99;\n j[n] = f;\n y[f] = n;\n var t = g[n],\n D = g[t],\n E = g[D],\n b = 257 * g[f] ^ 16843008 * f;\n z[n] = b << 24 | b >>> 8;\n A[n] = b << 16 | b >>> 16;\n B[n] = b << 8 | b >>> 24;\n C[n] = b;\n b = 16843009 * E ^ 65537 * D ^ 257 * t ^ 16843008 * n;\n s[f] = b << 24 | b >>> 8;\n u[f] = b << 16 | b >>> 16;\n v[f] = b << 8 | b >>> 24;\n w[f] = b;\n n ? (n = t ^ g[g[g[E ^ t]]], l ^= g[g[l]]) : n = l = 1;\n }\n\n var F = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],\n r = r.AES = x.extend({\n _doReset: function _doReset() {\n for (var c = this._key, e = c.words, a = c.sigBytes / 4, c = 4 * ((this._nRounds = a + 6) + 1), b = this._keySchedule = [], h = 0; h < c; h++) {\n if (h < a) b[h] = e[h];else {\n var d = b[h - 1];\n h % a ? 6 < a && 4 == h % a && (d = j[d >>> 24] << 24 | j[d >>> 16 & 255] << 16 | j[d >>> 8 & 255] << 8 | j[d & 255]) : (d = d << 8 | d >>> 24, d = j[d >>> 24] << 24 | j[d >>> 16 & 255] << 16 | j[d >>> 8 & 255] << 8 | j[d & 255], d ^= F[h / a | 0] << 24);\n b[h] = b[h - a] ^ d;\n }\n }\n\n e = this._invKeySchedule = [];\n\n for (a = 0; a < c; a++) {\n h = c - a, d = a % 4 ? b[h] : b[h - 4], e[a] = 4 > a || 4 >= h ? d : s[j[d >>> 24]] ^ u[j[d >>> 16 & 255]] ^ v[j[d >>> 8 & 255]] ^ w[j[d & 255]];\n }\n },\n encryptBlock: function encryptBlock(c, e) {\n this._doCryptBlock(c, e, this._keySchedule, z, A, B, C, j);\n },\n decryptBlock: function decryptBlock(c, e) {\n var a = c[e + 1];\n c[e + 1] = c[e + 3];\n c[e + 3] = a;\n\n this._doCryptBlock(c, e, this._invKeySchedule, s, u, v, w, y);\n\n a = c[e + 1];\n c[e + 1] = c[e + 3];\n c[e + 3] = a;\n },\n _doCryptBlock: function _doCryptBlock(c, e, a, b, h, d, j, m) {\n for (var n = this._nRounds, f = c[e] ^ a[0], g = c[e + 1] ^ a[1], k = c[e + 2] ^ a[2], p = c[e + 3] ^ a[3], l = 4, t = 1; t < n; t++) {\n var q = b[f >>> 24] ^ h[g >>> 16 & 255] ^ d[k >>> 8 & 255] ^ j[p & 255] ^ a[l++],\n r = b[g >>> 24] ^ h[k >>> 16 & 255] ^ d[p >>> 8 & 255] ^ j[f & 255] ^ a[l++],\n s = b[k >>> 24] ^ h[p >>> 16 & 255] ^ d[f >>> 8 & 255] ^ j[g & 255] ^ a[l++],\n p = b[p >>> 24] ^ h[f >>> 16 & 255] ^ d[g >>> 8 & 255] ^ j[k & 255] ^ a[l++],\n f = q,\n g = r,\n k = s;\n }\n\n q = (m[f >>> 24] << 24 | m[g >>> 16 & 255] << 16 | m[k >>> 8 & 255] << 8 | m[p & 255]) ^ a[l++];\n r = (m[g >>> 24] << 24 | m[k >>> 16 & 255] << 16 | m[p >>> 8 & 255] << 8 | m[f & 255]) ^ a[l++];\n s = (m[k >>> 24] << 24 | m[p >>> 16 & 255] << 16 | m[f >>> 8 & 255] << 8 | m[g & 255]) ^ a[l++];\n p = (m[p >>> 24] << 24 | m[f >>> 16 & 255] << 16 | m[g >>> 8 & 255] << 8 | m[k & 255]) ^ a[l++];\n c[e] = q;\n c[e + 1] = r;\n c[e + 2] = s;\n c[e + 3] = p;\n },\n keySize: 8\n });\n q.AES = x._createHelper(r);\n})();\n/*\nCryptoJS v3.1.2 tripledes-min.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function () {\n function j(b, c) {\n var a = (this._lBlock >>> b ^ this._rBlock) & c;\n this._rBlock ^= a;\n this._lBlock ^= a << b;\n }\n\n function l(b, c) {\n var a = (this._rBlock >>> b ^ this._lBlock) & c;\n this._lBlock ^= a;\n this._rBlock ^= a << b;\n }\n\n var h = CryptoJS,\n e = h.lib,\n n = e.WordArray,\n e = e.BlockCipher,\n g = h.algo,\n q = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4],\n p = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32],\n r = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28],\n s = [{\n \"0\": 8421888,\n 268435456: 32768,\n 536870912: 8421378,\n 805306368: 2,\n 1073741824: 512,\n 1342177280: 8421890,\n 1610612736: 8389122,\n 1879048192: 8388608,\n 2147483648: 514,\n 2415919104: 8389120,\n 2684354560: 33280,\n 2952790016: 8421376,\n 3221225472: 32770,\n 3489660928: 8388610,\n 3758096384: 0,\n 4026531840: 33282,\n 134217728: 0,\n 402653184: 8421890,\n 671088640: 33282,\n 939524096: 32768,\n 1207959552: 8421888,\n 1476395008: 512,\n 1744830464: 8421378,\n 2013265920: 2,\n 2281701376: 8389120,\n 2550136832: 33280,\n 2818572288: 8421376,\n 3087007744: 8389122,\n 3355443200: 8388610,\n 3623878656: 32770,\n 3892314112: 514,\n 4160749568: 8388608,\n 1: 32768,\n 268435457: 2,\n 536870913: 8421888,\n 805306369: 8388608,\n 1073741825: 8421378,\n 1342177281: 33280,\n 1610612737: 512,\n 1879048193: 8389122,\n 2147483649: 8421890,\n 2415919105: 8421376,\n 2684354561: 8388610,\n 2952790017: 33282,\n 3221225473: 514,\n 3489660929: 8389120,\n 3758096385: 32770,\n 4026531841: 0,\n 134217729: 8421890,\n 402653185: 8421376,\n 671088641: 8388608,\n 939524097: 512,\n 1207959553: 32768,\n 1476395009: 8388610,\n 1744830465: 2,\n 2013265921: 33282,\n 2281701377: 32770,\n 2550136833: 8389122,\n 2818572289: 514,\n 3087007745: 8421888,\n 3355443201: 8389120,\n 3623878657: 0,\n 3892314113: 33280,\n 4160749569: 8421378\n }, {\n \"0\": 1074282512,\n 16777216: 16384,\n 33554432: 524288,\n 50331648: 1074266128,\n 67108864: 1073741840,\n 83886080: 1074282496,\n 100663296: 1073758208,\n 117440512: 16,\n 134217728: 540672,\n 150994944: 1073758224,\n 167772160: 1073741824,\n 184549376: 540688,\n 201326592: 524304,\n 218103808: 0,\n 234881024: 16400,\n 251658240: 1074266112,\n 8388608: 1073758208,\n 25165824: 540688,\n 41943040: 16,\n 58720256: 1073758224,\n 75497472: 1074282512,\n 92274688: 1073741824,\n 109051904: 524288,\n 125829120: 1074266128,\n 142606336: 524304,\n 159383552: 0,\n 176160768: 16384,\n 192937984: 1074266112,\n 209715200: 1073741840,\n 226492416: 540672,\n 243269632: 1074282496,\n 260046848: 16400,\n 268435456: 0,\n 285212672: 1074266128,\n 301989888: 1073758224,\n 318767104: 1074282496,\n 335544320: 1074266112,\n 352321536: 16,\n 369098752: 540688,\n 385875968: 16384,\n 402653184: 16400,\n 419430400: 524288,\n 436207616: 524304,\n 452984832: 1073741840,\n 469762048: 540672,\n 486539264: 1073758208,\n 503316480: 1073741824,\n 520093696: 1074282512,\n 276824064: 540688,\n 293601280: 524288,\n 310378496: 1074266112,\n 327155712: 16384,\n 343932928: 1073758208,\n 360710144: 1074282512,\n 377487360: 16,\n 394264576: 1073741824,\n 411041792: 1074282496,\n 427819008: 1073741840,\n 444596224: 1073758224,\n 461373440: 524304,\n 478150656: 0,\n 494927872: 16400,\n 511705088: 1074266128,\n 528482304: 540672\n }, {\n \"0\": 260,\n 1048576: 0,\n 2097152: 67109120,\n 3145728: 65796,\n 4194304: 65540,\n 5242880: 67108868,\n 6291456: 67174660,\n 7340032: 67174400,\n 8388608: 67108864,\n 9437184: 67174656,\n 10485760: 65792,\n 11534336: 67174404,\n 12582912: 67109124,\n 13631488: 65536,\n 14680064: 4,\n 15728640: 256,\n 524288: 67174656,\n 1572864: 67174404,\n 2621440: 0,\n 3670016: 67109120,\n 4718592: 67108868,\n 5767168: 65536,\n 6815744: 65540,\n 7864320: 260,\n 8912896: 4,\n 9961472: 256,\n 11010048: 67174400,\n 12058624: 65796,\n 13107200: 65792,\n 14155776: 67109124,\n 15204352: 67174660,\n 16252928: 67108864,\n 16777216: 67174656,\n 17825792: 65540,\n 18874368: 65536,\n 19922944: 67109120,\n 20971520: 256,\n 22020096: 67174660,\n 23068672: 67108868,\n 24117248: 0,\n 25165824: 67109124,\n 26214400: 67108864,\n 27262976: 4,\n 28311552: 65792,\n 29360128: 67174400,\n 30408704: 260,\n 31457280: 65796,\n 32505856: 67174404,\n 17301504: 67108864,\n 18350080: 260,\n 19398656: 67174656,\n 20447232: 0,\n 21495808: 65540,\n 22544384: 67109120,\n 23592960: 256,\n 24641536: 67174404,\n 25690112: 65536,\n 26738688: 67174660,\n 27787264: 65796,\n 28835840: 67108868,\n 29884416: 67109124,\n 30932992: 67174400,\n 31981568: 4,\n 33030144: 65792\n }, {\n \"0\": 2151682048,\n 65536: 2147487808,\n 131072: 4198464,\n 196608: 2151677952,\n 262144: 0,\n 327680: 4198400,\n 393216: 2147483712,\n 458752: 4194368,\n 524288: 2147483648,\n 589824: 4194304,\n 655360: 64,\n 720896: 2147487744,\n 786432: 2151678016,\n 851968: 4160,\n 917504: 4096,\n 983040: 2151682112,\n 32768: 2147487808,\n 98304: 64,\n 163840: 2151678016,\n 229376: 2147487744,\n 294912: 4198400,\n 360448: 2151682112,\n 425984: 0,\n 491520: 2151677952,\n 557056: 4096,\n 622592: 2151682048,\n 688128: 4194304,\n 753664: 4160,\n 819200: 2147483648,\n 884736: 4194368,\n 950272: 4198464,\n 1015808: 2147483712,\n 1048576: 4194368,\n 1114112: 4198400,\n 1179648: 2147483712,\n 1245184: 0,\n 1310720: 4160,\n 1376256: 2151678016,\n 1441792: 2151682048,\n 1507328: 2147487808,\n 1572864: 2151682112,\n 1638400: 2147483648,\n 1703936: 2151677952,\n 1769472: 4198464,\n 1835008: 2147487744,\n 1900544: 4194304,\n 1966080: 64,\n 2031616: 4096,\n 1081344: 2151677952,\n 1146880: 2151682112,\n 1212416: 0,\n 1277952: 4198400,\n 1343488: 4194368,\n 1409024: 2147483648,\n 1474560: 2147487808,\n 1540096: 64,\n 1605632: 2147483712,\n 1671168: 4096,\n 1736704: 2147487744,\n 1802240: 2151678016,\n 1867776: 4160,\n 1933312: 2151682048,\n 1998848: 4194304,\n 2064384: 4198464\n }, {\n \"0\": 128,\n 4096: 17039360,\n 8192: 262144,\n 12288: 536870912,\n 16384: 537133184,\n 20480: 16777344,\n 24576: 553648256,\n 28672: 262272,\n 32768: 16777216,\n 36864: 537133056,\n 40960: 536871040,\n 45056: 553910400,\n 49152: 553910272,\n 53248: 0,\n 57344: 17039488,\n 61440: 553648128,\n 2048: 17039488,\n 6144: 553648256,\n 10240: 128,\n 14336: 17039360,\n 18432: 262144,\n 22528: 537133184,\n 26624: 553910272,\n 30720: 536870912,\n 34816: 537133056,\n 38912: 0,\n 43008: 553910400,\n 47104: 16777344,\n 51200: 536871040,\n 55296: 553648128,\n 59392: 16777216,\n 63488: 262272,\n 65536: 262144,\n 69632: 128,\n 73728: 536870912,\n 77824: 553648256,\n 81920: 16777344,\n 86016: 553910272,\n 90112: 537133184,\n 94208: 16777216,\n 98304: 553910400,\n 102400: 553648128,\n 106496: 17039360,\n 110592: 537133056,\n 114688: 262272,\n 118784: 536871040,\n 122880: 0,\n 126976: 17039488,\n 67584: 553648256,\n 71680: 16777216,\n 75776: 17039360,\n 79872: 537133184,\n 83968: 536870912,\n 88064: 17039488,\n 92160: 128,\n 96256: 553910272,\n 100352: 262272,\n 104448: 553910400,\n 108544: 0,\n 112640: 553648128,\n 116736: 16777344,\n 120832: 262144,\n 124928: 537133056,\n 129024: 536871040\n }, {\n \"0\": 268435464,\n 256: 8192,\n 512: 270532608,\n 768: 270540808,\n 1024: 268443648,\n 1280: 2097152,\n 1536: 2097160,\n 1792: 268435456,\n 2048: 0,\n 2304: 268443656,\n 2560: 2105344,\n 2816: 8,\n 3072: 270532616,\n 3328: 2105352,\n 3584: 8200,\n 3840: 270540800,\n 128: 270532608,\n 384: 270540808,\n 640: 8,\n 896: 2097152,\n 1152: 2105352,\n 1408: 268435464,\n 1664: 268443648,\n 1920: 8200,\n 2176: 2097160,\n 2432: 8192,\n 2688: 268443656,\n 2944: 270532616,\n 3200: 0,\n 3456: 270540800,\n 3712: 2105344,\n 3968: 268435456,\n 4096: 268443648,\n 4352: 270532616,\n 4608: 270540808,\n 4864: 8200,\n 5120: 2097152,\n 5376: 268435456,\n 5632: 268435464,\n 5888: 2105344,\n 6144: 2105352,\n 6400: 0,\n 6656: 8,\n 6912: 270532608,\n 7168: 8192,\n 7424: 268443656,\n 7680: 270540800,\n 7936: 2097160,\n 4224: 8,\n 4480: 2105344,\n 4736: 2097152,\n 4992: 268435464,\n 5248: 268443648,\n 5504: 8200,\n 5760: 270540808,\n 6016: 270532608,\n 6272: 270540800,\n 6528: 270532616,\n 6784: 8192,\n 7040: 2105352,\n 7296: 2097160,\n 7552: 0,\n 7808: 268435456,\n 8064: 268443656\n }, {\n \"0\": 1048576,\n 16: 33555457,\n 32: 1024,\n 48: 1049601,\n 64: 34604033,\n 80: 0,\n 96: 1,\n 112: 34603009,\n 128: 33555456,\n 144: 1048577,\n 160: 33554433,\n 176: 34604032,\n 192: 34603008,\n 208: 1025,\n 224: 1049600,\n 240: 33554432,\n 8: 34603009,\n 24: 0,\n 40: 33555457,\n 56: 34604032,\n 72: 1048576,\n 88: 33554433,\n 104: 33554432,\n 120: 1025,\n 136: 1049601,\n 152: 33555456,\n 168: 34603008,\n 184: 1048577,\n 200: 1024,\n 216: 34604033,\n 232: 1,\n 248: 1049600,\n 256: 33554432,\n 272: 1048576,\n 288: 33555457,\n 304: 34603009,\n 320: 1048577,\n 336: 33555456,\n 352: 34604032,\n 368: 1049601,\n 384: 1025,\n 400: 34604033,\n 416: 1049600,\n 432: 1,\n 448: 0,\n 464: 34603008,\n 480: 33554433,\n 496: 1024,\n 264: 1049600,\n 280: 33555457,\n 296: 34603009,\n 312: 1,\n 328: 33554432,\n 344: 1048576,\n 360: 1025,\n 376: 34604032,\n 392: 33554433,\n 408: 34603008,\n 424: 0,\n 440: 34604033,\n 456: 1049601,\n 472: 1024,\n 488: 33555456,\n 504: 1048577\n }, {\n \"0\": 134219808,\n 1: 131072,\n 2: 134217728,\n 3: 32,\n 4: 131104,\n 5: 134350880,\n 6: 134350848,\n 7: 2048,\n 8: 134348800,\n 9: 134219776,\n 10: 133120,\n 11: 134348832,\n 12: 2080,\n 13: 0,\n 14: 134217760,\n 15: 133152,\n 2147483648: 2048,\n 2147483649: 134350880,\n 2147483650: 134219808,\n 2147483651: 134217728,\n 2147483652: 134348800,\n 2147483653: 133120,\n 2147483654: 133152,\n 2147483655: 32,\n 2147483656: 134217760,\n 2147483657: 2080,\n 2147483658: 131104,\n 2147483659: 134350848,\n 2147483660: 0,\n 2147483661: 134348832,\n 2147483662: 134219776,\n 2147483663: 131072,\n 16: 133152,\n 17: 134350848,\n 18: 32,\n 19: 2048,\n 20: 134219776,\n 21: 134217760,\n 22: 134348832,\n 23: 131072,\n 24: 0,\n 25: 131104,\n 26: 134348800,\n 27: 134219808,\n 28: 134350880,\n 29: 133120,\n 30: 2080,\n 31: 134217728,\n 2147483664: 131072,\n 2147483665: 2048,\n 2147483666: 134348832,\n 2147483667: 133152,\n 2147483668: 32,\n 2147483669: 134348800,\n 2147483670: 134217728,\n 2147483671: 134219808,\n 2147483672: 134350880,\n 2147483673: 134217760,\n 2147483674: 134219776,\n 2147483675: 0,\n 2147483676: 133120,\n 2147483677: 2080,\n 2147483678: 131104,\n 2147483679: 134350848\n }],\n t = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679],\n m = g.DES = e.extend({\n _doReset: function _doReset() {\n for (var b = this._key.words, c = [], a = 0; 56 > a; a++) {\n var f = q[a] - 1;\n c[a] = b[f >>> 5] >>> 31 - f % 32 & 1;\n }\n\n b = this._subKeys = [];\n\n for (f = 0; 16 > f; f++) {\n for (var d = b[f] = [], e = r[f], a = 0; 24 > a; a++) {\n d[a / 6 | 0] |= c[(p[a] - 1 + e) % 28] << 31 - a % 6, d[4 + (a / 6 | 0)] |= c[28 + (p[a + 24] - 1 + e) % 28] << 31 - a % 6;\n }\n\n d[0] = d[0] << 1 | d[0] >>> 31;\n\n for (a = 1; 7 > a; a++) {\n d[a] >>>= 4 * (a - 1) + 3;\n }\n\n d[7] = d[7] << 5 | d[7] >>> 27;\n }\n\n c = this._invSubKeys = [];\n\n for (a = 0; 16 > a; a++) {\n c[a] = b[15 - a];\n }\n },\n encryptBlock: function encryptBlock(b, c) {\n this._doCryptBlock(b, c, this._subKeys);\n },\n decryptBlock: function decryptBlock(b, c) {\n this._doCryptBlock(b, c, this._invSubKeys);\n },\n _doCryptBlock: function _doCryptBlock(b, c, a) {\n this._lBlock = b[c];\n this._rBlock = b[c + 1];\n j.call(this, 4, 252645135);\n j.call(this, 16, 65535);\n l.call(this, 2, 858993459);\n l.call(this, 8, 16711935);\n j.call(this, 1, 1431655765);\n\n for (var f = 0; 16 > f; f++) {\n for (var d = a[f], e = this._lBlock, h = this._rBlock, g = 0, k = 0; 8 > k; k++) {\n g |= s[k][((h ^ d[k]) & t[k]) >>> 0];\n }\n\n this._lBlock = h;\n this._rBlock = e ^ g;\n }\n\n a = this._lBlock;\n this._lBlock = this._rBlock;\n this._rBlock = a;\n j.call(this, 1, 1431655765);\n l.call(this, 8, 16711935);\n l.call(this, 2, 858993459);\n j.call(this, 16, 65535);\n j.call(this, 4, 252645135);\n b[c] = this._lBlock;\n b[c + 1] = this._rBlock;\n },\n keySize: 2,\n ivSize: 2,\n blockSize: 2\n });\n h.DES = e._createHelper(m);\n g = g.TripleDES = e.extend({\n _doReset: function _doReset() {\n var b = this._key.words;\n this._des1 = m.createEncryptor(n.create(b.slice(0, 2)));\n this._des2 = m.createEncryptor(n.create(b.slice(2, 4)));\n this._des3 = m.createEncryptor(n.create(b.slice(4, 6)));\n },\n encryptBlock: function encryptBlock(b, c) {\n this._des1.encryptBlock(b, c);\n\n this._des2.decryptBlock(b, c);\n\n this._des3.encryptBlock(b, c);\n },\n decryptBlock: function decryptBlock(b, c) {\n this._des3.decryptBlock(b, c);\n\n this._des2.encryptBlock(b, c);\n\n this._des1.decryptBlock(b, c);\n },\n keySize: 6,\n ivSize: 2,\n blockSize: 2\n });\n h.TripleDES = e._createHelper(g);\n})();\n/*\nCryptoJS v3.1.2 enc-base64.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function () {\n var h = CryptoJS,\n j = h.lib.WordArray;\n h.enc.Base64 = {\n stringify: function stringify(b) {\n var e = b.words,\n f = b.sigBytes,\n c = this._map;\n b.clamp();\n b = [];\n\n for (var a = 0; a < f; a += 3) {\n for (var d = (e[a >>> 2] >>> 24 - 8 * (a % 4) & 255) << 16 | (e[a + 1 >>> 2] >>> 24 - 8 * ((a + 1) % 4) & 255) << 8 | e[a + 2 >>> 2] >>> 24 - 8 * ((a + 2) % 4) & 255, g = 0; 4 > g && a + 0.75 * g < f; g++) {\n b.push(c.charAt(d >>> 6 * (3 - g) & 63));\n }\n }\n\n if (e = c.charAt(64)) for (; b.length % 4;) {\n b.push(e);\n }\n return b.join(\"\");\n },\n parse: function parse(b) {\n var e = b.length,\n f = this._map,\n c = f.charAt(64);\n c && (c = b.indexOf(c), -1 != c && (e = c));\n\n for (var c = [], a = 0, d = 0; d < e; d++) {\n if (d % 4) {\n var g = f.indexOf(b.charAt(d - 1)) << 2 * (d % 4),\n h = f.indexOf(b.charAt(d)) >>> 6 - 2 * (d % 4);\n c[a >>> 2] |= (g | h) << 24 - 8 * (a % 4);\n a++;\n }\n }\n\n return j.create(c, a);\n },\n _map: \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\"\n };\n})();\n/*\nCryptoJS v3.1.2 md5.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function (E) {\n function h(a, f, g, j, p, h, k) {\n a = a + (f & g | ~f & j) + p + k;\n return (a << h | a >>> 32 - h) + f;\n }\n\n function k(a, f, g, j, p, h, k) {\n a = a + (f & j | g & ~j) + p + k;\n return (a << h | a >>> 32 - h) + f;\n }\n\n function l(a, f, g, j, h, k, l) {\n a = a + (f ^ g ^ j) + h + l;\n return (a << k | a >>> 32 - k) + f;\n }\n\n function n(a, f, g, j, h, k, l) {\n a = a + (g ^ (f | ~j)) + h + l;\n return (a << k | a >>> 32 - k) + f;\n }\n\n for (var r = CryptoJS, q = r.lib, F = q.WordArray, s = q.Hasher, q = r.algo, a = [], t = 0; 64 > t; t++) {\n a[t] = 4294967296 * E.abs(E.sin(t + 1)) | 0;\n }\n\n q = q.MD5 = s.extend({\n _doReset: function _doReset() {\n this._hash = new F.init([1732584193, 4023233417, 2562383102, 271733878]);\n },\n _doProcessBlock: function _doProcessBlock(m, f) {\n for (var g = 0; 16 > g; g++) {\n var j = f + g,\n p = m[j];\n m[j] = (p << 8 | p >>> 24) & 16711935 | (p << 24 | p >>> 8) & 4278255360;\n }\n\n var g = this._hash.words,\n j = m[f + 0],\n p = m[f + 1],\n q = m[f + 2],\n r = m[f + 3],\n s = m[f + 4],\n t = m[f + 5],\n u = m[f + 6],\n v = m[f + 7],\n w = m[f + 8],\n x = m[f + 9],\n y = m[f + 10],\n z = m[f + 11],\n A = m[f + 12],\n B = m[f + 13],\n C = m[f + 14],\n D = m[f + 15],\n b = g[0],\n c = g[1],\n d = g[2],\n e = g[3],\n b = h(b, c, d, e, j, 7, a[0]),\n e = h(e, b, c, d, p, 12, a[1]),\n d = h(d, e, b, c, q, 17, a[2]),\n c = h(c, d, e, b, r, 22, a[3]),\n b = h(b, c, d, e, s, 7, a[4]),\n e = h(e, b, c, d, t, 12, a[5]),\n d = h(d, e, b, c, u, 17, a[6]),\n c = h(c, d, e, b, v, 22, a[7]),\n b = h(b, c, d, e, w, 7, a[8]),\n e = h(e, b, c, d, x, 12, a[9]),\n d = h(d, e, b, c, y, 17, a[10]),\n c = h(c, d, e, b, z, 22, a[11]),\n b = h(b, c, d, e, A, 7, a[12]),\n e = h(e, b, c, d, B, 12, a[13]),\n d = h(d, e, b, c, C, 17, a[14]),\n c = h(c, d, e, b, D, 22, a[15]),\n b = k(b, c, d, e, p, 5, a[16]),\n e = k(e, b, c, d, u, 9, a[17]),\n d = k(d, e, b, c, z, 14, a[18]),\n c = k(c, d, e, b, j, 20, a[19]),\n b = k(b, c, d, e, t, 5, a[20]),\n e = k(e, b, c, d, y, 9, a[21]),\n d = k(d, e, b, c, D, 14, a[22]),\n c = k(c, d, e, b, s, 20, a[23]),\n b = k(b, c, d, e, x, 5, a[24]),\n e = k(e, b, c, d, C, 9, a[25]),\n d = k(d, e, b, c, r, 14, a[26]),\n c = k(c, d, e, b, w, 20, a[27]),\n b = k(b, c, d, e, B, 5, a[28]),\n e = k(e, b, c, d, q, 9, a[29]),\n d = k(d, e, b, c, v, 14, a[30]),\n c = k(c, d, e, b, A, 20, a[31]),\n b = l(b, c, d, e, t, 4, a[32]),\n e = l(e, b, c, d, w, 11, a[33]),\n d = l(d, e, b, c, z, 16, a[34]),\n c = l(c, d, e, b, C, 23, a[35]),\n b = l(b, c, d, e, p, 4, a[36]),\n e = l(e, b, c, d, s, 11, a[37]),\n d = l(d, e, b, c, v, 16, a[38]),\n c = l(c, d, e, b, y, 23, a[39]),\n b = l(b, c, d, e, B, 4, a[40]),\n e = l(e, b, c, d, j, 11, a[41]),\n d = l(d, e, b, c, r, 16, a[42]),\n c = l(c, d, e, b, u, 23, a[43]),\n b = l(b, c, d, e, x, 4, a[44]),\n e = l(e, b, c, d, A, 11, a[45]),\n d = l(d, e, b, c, D, 16, a[46]),\n c = l(c, d, e, b, q, 23, a[47]),\n b = n(b, c, d, e, j, 6, a[48]),\n e = n(e, b, c, d, v, 10, a[49]),\n d = n(d, e, b, c, C, 15, a[50]),\n c = n(c, d, e, b, t, 21, a[51]),\n b = n(b, c, d, e, A, 6, a[52]),\n e = n(e, b, c, d, r, 10, a[53]),\n d = n(d, e, b, c, y, 15, a[54]),\n c = n(c, d, e, b, p, 21, a[55]),\n b = n(b, c, d, e, w, 6, a[56]),\n e = n(e, b, c, d, D, 10, a[57]),\n d = n(d, e, b, c, u, 15, a[58]),\n c = n(c, d, e, b, B, 21, a[59]),\n b = n(b, c, d, e, s, 6, a[60]),\n e = n(e, b, c, d, z, 10, a[61]),\n d = n(d, e, b, c, q, 15, a[62]),\n c = n(c, d, e, b, x, 21, a[63]);\n g[0] = g[0] + b | 0;\n g[1] = g[1] + c | 0;\n g[2] = g[2] + d | 0;\n g[3] = g[3] + e | 0;\n },\n _doFinalize: function _doFinalize() {\n var a = this._data,\n f = a.words,\n g = 8 * this._nDataBytes,\n j = 8 * a.sigBytes;\n f[j >>> 5] |= 128 << 24 - j % 32;\n var h = E.floor(g / 4294967296);\n f[(j + 64 >>> 9 << 4) + 15] = (h << 8 | h >>> 24) & 16711935 | (h << 24 | h >>> 8) & 4278255360;\n f[(j + 64 >>> 9 << 4) + 14] = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;\n a.sigBytes = 4 * (f.length + 1);\n\n this._process();\n\n a = this._hash;\n f = a.words;\n\n for (g = 0; 4 > g; g++) {\n j = f[g], f[g] = (j << 8 | j >>> 24) & 16711935 | (j << 24 | j >>> 8) & 4278255360;\n }\n\n return a;\n },\n clone: function clone() {\n var a = s.clone.call(this);\n a._hash = this._hash.clone();\n return a;\n }\n });\n r.MD5 = s._createHelper(q);\n r.HmacMD5 = s._createHmacHelper(q);\n})(Math);\n/*\nCryptoJS v3.1.2 sha1-min.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function () {\n var k = CryptoJS,\n b = k.lib,\n m = b.WordArray,\n l = b.Hasher,\n d = [],\n b = k.algo.SHA1 = l.extend({\n _doReset: function _doReset() {\n this._hash = new m.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);\n },\n _doProcessBlock: function _doProcessBlock(n, p) {\n for (var a = this._hash.words, e = a[0], f = a[1], h = a[2], j = a[3], b = a[4], c = 0; 80 > c; c++) {\n if (16 > c) d[c] = n[p + c] | 0;else {\n var g = d[c - 3] ^ d[c - 8] ^ d[c - 14] ^ d[c - 16];\n d[c] = g << 1 | g >>> 31;\n }\n g = (e << 5 | e >>> 27) + b + d[c];\n g = 20 > c ? g + ((f & h | ~f & j) + 1518500249) : 40 > c ? g + ((f ^ h ^ j) + 1859775393) : 60 > c ? g + ((f & h | f & j | h & j) - 1894007588) : g + ((f ^ h ^ j) - 899497514);\n b = j;\n j = h;\n h = f << 30 | f >>> 2;\n f = e;\n e = g;\n }\n\n a[0] = a[0] + e | 0;\n a[1] = a[1] + f | 0;\n a[2] = a[2] + h | 0;\n a[3] = a[3] + j | 0;\n a[4] = a[4] + b | 0;\n },\n _doFinalize: function _doFinalize() {\n var b = this._data,\n d = b.words,\n a = 8 * this._nDataBytes,\n e = 8 * b.sigBytes;\n d[e >>> 5] |= 128 << 24 - e % 32;\n d[(e + 64 >>> 9 << 4) + 14] = Math.floor(a / 4294967296);\n d[(e + 64 >>> 9 << 4) + 15] = a;\n b.sigBytes = 4 * d.length;\n\n this._process();\n\n return this._hash;\n },\n clone: function clone() {\n var b = l.clone.call(this);\n b._hash = this._hash.clone();\n return b;\n }\n });\n k.SHA1 = l._createHelper(b);\n k.HmacSHA1 = l._createHmacHelper(b);\n})();\n/*\nCryptoJS v3.1.2 sha256-min.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function (k) {\n for (var g = CryptoJS, h = g.lib, v = h.WordArray, j = h.Hasher, h = g.algo, s = [], t = [], u = function u(q) {\n return 4294967296 * (q - (q | 0)) | 0;\n }, l = 2, b = 0; 64 > b;) {\n var d;\n\n a: {\n d = l;\n\n for (var w = k.sqrt(d), r = 2; r <= w; r++) {\n if (!(d % r)) {\n d = !1;\n break a;\n }\n }\n\n d = !0;\n }\n\n d && (8 > b && (s[b] = u(k.pow(l, 0.5))), t[b] = u(k.pow(l, 1 / 3)), b++);\n l++;\n }\n\n var n = [],\n h = h.SHA256 = j.extend({\n _doReset: function _doReset() {\n this._hash = new v.init(s.slice(0));\n },\n _doProcessBlock: function _doProcessBlock(q, h) {\n for (var a = this._hash.words, c = a[0], d = a[1], b = a[2], k = a[3], f = a[4], g = a[5], j = a[6], l = a[7], e = 0; 64 > e; e++) {\n if (16 > e) n[e] = q[h + e] | 0;else {\n var m = n[e - 15],\n p = n[e - 2];\n n[e] = ((m << 25 | m >>> 7) ^ (m << 14 | m >>> 18) ^ m >>> 3) + n[e - 7] + ((p << 15 | p >>> 17) ^ (p << 13 | p >>> 19) ^ p >>> 10) + n[e - 16];\n }\n m = l + ((f << 26 | f >>> 6) ^ (f << 21 | f >>> 11) ^ (f << 7 | f >>> 25)) + (f & g ^ ~f & j) + t[e] + n[e];\n p = ((c << 30 | c >>> 2) ^ (c << 19 | c >>> 13) ^ (c << 10 | c >>> 22)) + (c & d ^ c & b ^ d & b);\n l = j;\n j = g;\n g = f;\n f = k + m | 0;\n k = b;\n b = d;\n d = c;\n c = m + p | 0;\n }\n\n a[0] = a[0] + c | 0;\n a[1] = a[1] + d | 0;\n a[2] = a[2] + b | 0;\n a[3] = a[3] + k | 0;\n a[4] = a[4] + f | 0;\n a[5] = a[5] + g | 0;\n a[6] = a[6] + j | 0;\n a[7] = a[7] + l | 0;\n },\n _doFinalize: function _doFinalize() {\n var d = this._data,\n b = d.words,\n a = 8 * this._nDataBytes,\n c = 8 * d.sigBytes;\n b[c >>> 5] |= 128 << 24 - c % 32;\n b[(c + 64 >>> 9 << 4) + 14] = k.floor(a / 4294967296);\n b[(c + 64 >>> 9 << 4) + 15] = a;\n d.sigBytes = 4 * b.length;\n\n this._process();\n\n return this._hash;\n },\n clone: function clone() {\n var b = j.clone.call(this);\n b._hash = this._hash.clone();\n return b;\n }\n });\n g.SHA256 = j._createHelper(h);\n g.HmacSHA256 = j._createHmacHelper(h);\n})(Math);\n/*\nCryptoJS v3.1.2 sha224-min.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function () {\n var b = CryptoJS,\n d = b.lib.WordArray,\n a = b.algo,\n c = a.SHA256,\n a = a.SHA224 = c.extend({\n _doReset: function _doReset() {\n this._hash = new d.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]);\n },\n _doFinalize: function _doFinalize() {\n var a = c._doFinalize.call(this);\n\n a.sigBytes -= 4;\n return a;\n }\n });\n b.SHA224 = c._createHelper(a);\n b.HmacSHA224 = c._createHmacHelper(a);\n})();\n/*\nCryptoJS v3.1.2 sha512-min.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function () {\n function a() {\n return d.create.apply(d, arguments);\n }\n\n for (var n = CryptoJS, r = n.lib.Hasher, e = n.x64, d = e.Word, T = e.WordArray, e = n.algo, ea = [a(1116352408, 3609767458), a(1899447441, 602891725), a(3049323471, 3964484399), a(3921009573, 2173295548), a(961987163, 4081628472), a(1508970993, 3053834265), a(2453635748, 2937671579), a(2870763221, 3664609560), a(3624381080, 2734883394), a(310598401, 1164996542), a(607225278, 1323610764), a(1426881987, 3590304994), a(1925078388, 4068182383), a(2162078206, 991336113), a(2614888103, 633803317), a(3248222580, 3479774868), a(3835390401, 2666613458), a(4022224774, 944711139), a(264347078, 2341262773), a(604807628, 2007800933), a(770255983, 1495990901), a(1249150122, 1856431235), a(1555081692, 3175218132), a(1996064986, 2198950837), a(2554220882, 3999719339), a(2821834349, 766784016), a(2952996808, 2566594879), a(3210313671, 3203337956), a(3336571891, 1034457026), a(3584528711, 2466948901), a(113926993, 3758326383), a(338241895, 168717936), a(666307205, 1188179964), a(773529912, 1546045734), a(1294757372, 1522805485), a(1396182291, 2643833823), a(1695183700, 2343527390), a(1986661051, 1014477480), a(2177026350, 1206759142), a(2456956037, 344077627), a(2730485921, 1290863460), a(2820302411, 3158454273), a(3259730800, 3505952657), a(3345764771, 106217008), a(3516065817, 3606008344), a(3600352804, 1432725776), a(4094571909, 1467031594), a(275423344, 851169720), a(430227734, 3100823752), a(506948616, 1363258195), a(659060556, 3750685593), a(883997877, 3785050280), a(958139571, 3318307427), a(1322822218, 3812723403), a(1537002063, 2003034995), a(1747873779, 3602036899), a(1955562222, 1575990012), a(2024104815, 1125592928), a(2227730452, 2716904306), a(2361852424, 442776044), a(2428436474, 593698344), a(2756734187, 3733110249), a(3204031479, 2999351573), a(3329325298, 3815920427), a(3391569614, 3928383900), a(3515267271, 566280711), a(3940187606, 3454069534), a(4118630271, 4000239992), a(116418474, 1914138554), a(174292421, 2731055270), a(289380356, 3203993006), a(460393269, 320620315), a(685471733, 587496836), a(852142971, 1086792851), a(1017036298, 365543100), a(1126000580, 2618297676), a(1288033470, 3409855158), a(1501505948, 4234509866), a(1607167915, 987167468), a(1816402316, 1246189591)], v = [], w = 0; 80 > w; w++) {\n v[w] = a();\n }\n\n e = e.SHA512 = r.extend({\n _doReset: function _doReset() {\n this._hash = new T.init([new d.init(1779033703, 4089235720), new d.init(3144134277, 2227873595), new d.init(1013904242, 4271175723), new d.init(2773480762, 1595750129), new d.init(1359893119, 2917565137), new d.init(2600822924, 725511199), new d.init(528734635, 4215389547), new d.init(1541459225, 327033209)]);\n },\n _doProcessBlock: function _doProcessBlock(a, d) {\n for (var f = this._hash.words, F = f[0], e = f[1], n = f[2], r = f[3], G = f[4], H = f[5], I = f[6], f = f[7], w = F.high, J = F.low, X = e.high, K = e.low, Y = n.high, L = n.low, Z = r.high, M = r.low, $ = G.high, N = G.low, aa = H.high, O = H.low, ba = I.high, P = I.low, ca = f.high, Q = f.low, k = w, g = J, z = X, x = K, A = Y, y = L, U = Z, B = M, l = $, h = N, R = aa, C = O, S = ba, D = P, V = ca, E = Q, m = 0; 80 > m; m++) {\n var s = v[m];\n if (16 > m) var j = s.high = a[d + 2 * m] | 0,\n b = s.low = a[d + 2 * m + 1] | 0;else {\n var j = v[m - 15],\n b = j.high,\n p = j.low,\n j = (b >>> 1 | p << 31) ^ (b >>> 8 | p << 24) ^ b >>> 7,\n p = (p >>> 1 | b << 31) ^ (p >>> 8 | b << 24) ^ (p >>> 7 | b << 25),\n u = v[m - 2],\n b = u.high,\n c = u.low,\n u = (b >>> 19 | c << 13) ^ (b << 3 | c >>> 29) ^ b >>> 6,\n c = (c >>> 19 | b << 13) ^ (c << 3 | b >>> 29) ^ (c >>> 6 | b << 26),\n b = v[m - 7],\n W = b.high,\n t = v[m - 16],\n q = t.high,\n t = t.low,\n b = p + b.low,\n j = j + W + (b >>> 0 < p >>> 0 ? 1 : 0),\n b = b + c,\n j = j + u + (b >>> 0 < c >>> 0 ? 1 : 0),\n b = b + t,\n j = j + q + (b >>> 0 < t >>> 0 ? 1 : 0);\n s.high = j;\n s.low = b;\n }\n var W = l & R ^ ~l & S,\n t = h & C ^ ~h & D,\n s = k & z ^ k & A ^ z & A,\n T = g & x ^ g & y ^ x & y,\n p = (k >>> 28 | g << 4) ^ (k << 30 | g >>> 2) ^ (k << 25 | g >>> 7),\n u = (g >>> 28 | k << 4) ^ (g << 30 | k >>> 2) ^ (g << 25 | k >>> 7),\n c = ea[m],\n fa = c.high,\n da = c.low,\n c = E + ((h >>> 14 | l << 18) ^ (h >>> 18 | l << 14) ^ (h << 23 | l >>> 9)),\n q = V + ((l >>> 14 | h << 18) ^ (l >>> 18 | h << 14) ^ (l << 23 | h >>> 9)) + (c >>> 0 < E >>> 0 ? 1 : 0),\n c = c + t,\n q = q + W + (c >>> 0 < t >>> 0 ? 1 : 0),\n c = c + da,\n q = q + fa + (c >>> 0 < da >>> 0 ? 1 : 0),\n c = c + b,\n q = q + j + (c >>> 0 < b >>> 0 ? 1 : 0),\n b = u + T,\n s = p + s + (b >>> 0 < u >>> 0 ? 1 : 0),\n V = S,\n E = D,\n S = R,\n D = C,\n R = l,\n C = h,\n h = B + c | 0,\n l = U + q + (h >>> 0 < B >>> 0 ? 1 : 0) | 0,\n U = A,\n B = y,\n A = z,\n y = x,\n z = k,\n x = g,\n g = c + b | 0,\n k = q + s + (g >>> 0 < c >>> 0 ? 1 : 0) | 0;\n }\n\n J = F.low = J + g;\n F.high = w + k + (J >>> 0 < g >>> 0 ? 1 : 0);\n K = e.low = K + x;\n e.high = X + z + (K >>> 0 < x >>> 0 ? 1 : 0);\n L = n.low = L + y;\n n.high = Y + A + (L >>> 0 < y >>> 0 ? 1 : 0);\n M = r.low = M + B;\n r.high = Z + U + (M >>> 0 < B >>> 0 ? 1 : 0);\n N = G.low = N + h;\n G.high = $ + l + (N >>> 0 < h >>> 0 ? 1 : 0);\n O = H.low = O + C;\n H.high = aa + R + (O >>> 0 < C >>> 0 ? 1 : 0);\n P = I.low = P + D;\n I.high = ba + S + (P >>> 0 < D >>> 0 ? 1 : 0);\n Q = f.low = Q + E;\n f.high = ca + V + (Q >>> 0 < E >>> 0 ? 1 : 0);\n },\n _doFinalize: function _doFinalize() {\n var a = this._data,\n d = a.words,\n f = 8 * this._nDataBytes,\n e = 8 * a.sigBytes;\n d[e >>> 5] |= 128 << 24 - e % 32;\n d[(e + 128 >>> 10 << 5) + 30] = Math.floor(f / 4294967296);\n d[(e + 128 >>> 10 << 5) + 31] = f;\n a.sigBytes = 4 * d.length;\n\n this._process();\n\n return this._hash.toX32();\n },\n clone: function clone() {\n var a = r.clone.call(this);\n a._hash = this._hash.clone();\n return a;\n },\n blockSize: 32\n });\n n.SHA512 = r._createHelper(e);\n n.HmacSHA512 = r._createHmacHelper(e);\n})();\n/*\nCryptoJS v3.1.2 sha384-min.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function () {\n var c = CryptoJS,\n a = c.x64,\n b = a.Word,\n e = a.WordArray,\n a = c.algo,\n d = a.SHA512,\n a = a.SHA384 = d.extend({\n _doReset: function _doReset() {\n this._hash = new e.init([new b.init(3418070365, 3238371032), new b.init(1654270250, 914150663), new b.init(2438529370, 812702999), new b.init(355462360, 4144912697), new b.init(1731405415, 4290775857), new b.init(2394180231, 1750603025), new b.init(3675008525, 1694076839), new b.init(1203062813, 3204075428)]);\n },\n _doFinalize: function _doFinalize() {\n var a = d._doFinalize.call(this);\n\n a.sigBytes -= 16;\n return a;\n }\n });\n c.SHA384 = d._createHelper(a);\n c.HmacSHA384 = d._createHmacHelper(a);\n})();\n/*\nCryptoJS v3.1.2 ripemd160-min.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n/*\n\n(c) 2012 by Cedric Mesnil. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n\n(function () {\n var q = CryptoJS,\n d = q.lib,\n n = d.WordArray,\n p = d.Hasher,\n d = q.algo,\n x = n.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]),\n y = n.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]),\n z = n.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]),\n A = n.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]),\n B = n.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),\n C = n.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),\n d = d.RIPEMD160 = p.extend({\n _doReset: function _doReset() {\n this._hash = n.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);\n },\n _doProcessBlock: function _doProcessBlock(e, v) {\n for (var b = 0; 16 > b; b++) {\n var c = v + b,\n f = e[c];\n e[c] = (f << 8 | f >>> 24) & 16711935 | (f << 24 | f >>> 8) & 4278255360;\n }\n\n var c = this._hash.words,\n f = B.words,\n d = C.words,\n n = x.words,\n q = y.words,\n p = z.words,\n w = A.words,\n t,\n g,\n h,\n j,\n r,\n u,\n k,\n l,\n m,\n s;\n u = t = c[0];\n k = g = c[1];\n l = h = c[2];\n m = j = c[3];\n s = r = c[4];\n\n for (var a, b = 0; 80 > b; b += 1) {\n a = t + e[v + n[b]] | 0, a = 16 > b ? a + ((g ^ h ^ j) + f[0]) : 32 > b ? a + ((g & h | ~g & j) + f[1]) : 48 > b ? a + (((g | ~h) ^ j) + f[2]) : 64 > b ? a + ((g & j | h & ~j) + f[3]) : a + ((g ^ (h | ~j)) + f[4]), a |= 0, a = a << p[b] | a >>> 32 - p[b], a = a + r | 0, t = r, r = j, j = h << 10 | h >>> 22, h = g, g = a, a = u + e[v + q[b]] | 0, a = 16 > b ? a + ((k ^ (l | ~m)) + d[0]) : 32 > b ? a + ((k & m | l & ~m) + d[1]) : 48 > b ? a + (((k | ~l) ^ m) + d[2]) : 64 > b ? a + ((k & l | ~k & m) + d[3]) : a + ((k ^ l ^ m) + d[4]), a |= 0, a = a << w[b] | a >>> 32 - w[b], a = a + s | 0, u = s, s = m, m = l << 10 | l >>> 22, l = k, k = a;\n }\n\n a = c[1] + h + m | 0;\n c[1] = c[2] + j + s | 0;\n c[2] = c[3] + r + u | 0;\n c[3] = c[4] + t + k | 0;\n c[4] = c[0] + g + l | 0;\n c[0] = a;\n },\n _doFinalize: function _doFinalize() {\n var e = this._data,\n d = e.words,\n b = 8 * this._nDataBytes,\n c = 8 * e.sigBytes;\n d[c >>> 5] |= 128 << 24 - c % 32;\n d[(c + 64 >>> 9 << 4) + 14] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;\n e.sigBytes = 4 * (d.length + 1);\n\n this._process();\n\n e = this._hash;\n d = e.words;\n\n for (b = 0; 5 > b; b++) {\n c = d[b], d[b] = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360;\n }\n\n return e;\n },\n clone: function clone() {\n var d = p.clone.call(this);\n d._hash = this._hash.clone();\n return d;\n }\n });\n q.RIPEMD160 = p._createHelper(d);\n q.HmacRIPEMD160 = p._createHmacHelper(d);\n})(Math);\n/*\nCryptoJS v3.1.2 hmac.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function () {\n var c = CryptoJS,\n k = c.enc.Utf8;\n c.algo.HMAC = c.lib.Base.extend({\n init: function init(a, b) {\n a = this._hasher = new a.init();\n \"string\" == typeof b && (b = k.parse(b));\n var c = a.blockSize,\n e = 4 * c;\n b.sigBytes > e && (b = a.finalize(b));\n b.clamp();\n\n for (var f = this._oKey = b.clone(), g = this._iKey = b.clone(), h = f.words, j = g.words, d = 0; d < c; d++) {\n h[d] ^= 1549556828, j[d] ^= 909522486;\n }\n\n f.sigBytes = g.sigBytes = e;\n this.reset();\n },\n reset: function reset() {\n var a = this._hasher;\n a.reset();\n a.update(this._iKey);\n },\n update: function update(a) {\n this._hasher.update(a);\n\n return this;\n },\n finalize: function finalize(a) {\n var b = this._hasher;\n a = b.finalize(a);\n b.reset();\n return b.finalize(this._oKey.clone().concat(a));\n }\n });\n})();\n/*\nCryptoJS v3.1.2 pbkdf2-min.js\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n\n\n(function () {\n var b = CryptoJS,\n a = b.lib,\n d = a.Base,\n m = a.WordArray,\n a = b.algo,\n q = a.HMAC,\n l = a.PBKDF2 = d.extend({\n cfg: d.extend({\n keySize: 4,\n hasher: a.SHA1,\n iterations: 1\n }),\n init: function init(a) {\n this.cfg = this.cfg.extend(a);\n },\n compute: function compute(a, b) {\n for (var c = this.cfg, f = q.create(c.hasher, a), g = m.create(), d = m.create([1]), l = g.words, r = d.words, n = c.keySize, c = c.iterations; l.length < n;) {\n var h = f.update(b).finalize(d);\n f.reset();\n\n for (var j = h.words, s = j.length, k = h, p = 1; p < c; p++) {\n k = f.finalize(k);\n f.reset();\n\n for (var t = k.words, e = 0; e < s; e++) {\n j[e] ^= t[e];\n }\n }\n\n g.concat(h);\n r[0]++;\n }\n\n g.sigBytes = 4 * n;\n return g;\n }\n });\n\n b.PBKDF2 = function (a, b, c) {\n return l.create(c).compute(a, b);\n };\n})();\n/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/\n */\n\n\nvar b64map = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\nvar b64pad = \"=\";\n\nfunction hex2b64(d) {\n var b;\n var e;\n var a = \"\";\n\n for (b = 0; b + 3 <= d.length; b += 3) {\n e = parseInt(d.substring(b, b + 3), 16);\n a += b64map.charAt(e >> 6) + b64map.charAt(e & 63);\n }\n\n if (b + 1 == d.length) {\n e = parseInt(d.substring(b, b + 1), 16);\n a += b64map.charAt(e << 2);\n } else {\n if (b + 2 == d.length) {\n e = parseInt(d.substring(b, b + 2), 16);\n a += b64map.charAt(e >> 2) + b64map.charAt((e & 3) << 4);\n }\n }\n\n if (b64pad) {\n while ((a.length & 3) > 0) {\n a += b64pad;\n }\n }\n\n return a;\n}\n\nfunction b64tohex(f) {\n var d = \"\";\n var e;\n var b = 0;\n var c;\n var a;\n\n for (e = 0; e < f.length; ++e) {\n if (f.charAt(e) == b64pad) {\n break;\n }\n\n a = b64map.indexOf(f.charAt(e));\n\n if (a < 0) {\n continue;\n }\n\n if (b == 0) {\n d += int2char(a >> 2);\n c = a & 3;\n b = 1;\n } else {\n if (b == 1) {\n d += int2char(c << 2 | a >> 4);\n c = a & 15;\n b = 2;\n } else {\n if (b == 2) {\n d += int2char(c);\n d += int2char(a >> 2);\n c = a & 3;\n b = 3;\n } else {\n d += int2char(c << 2 | a >> 4);\n d += int2char(a & 15);\n b = 0;\n }\n }\n }\n }\n\n if (b == 1) {\n d += int2char(c << 2);\n }\n\n return d;\n}\n\nfunction b64toBA(e) {\n var d = b64tohex(e);\n var c;\n var b = new Array();\n\n for (c = 0; 2 * c < d.length; ++c) {\n b[c] = parseInt(d.substring(2 * c, 2 * c + 2), 16);\n }\n\n return b;\n}\n\n;\n/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/\n */\n\nvar dbits;\nvar canary = 244837814094590;\nvar j_lm = (canary & 16777215) == 15715070;\n\nfunction BigInteger(e, d, f) {\n if (e != null) {\n if (\"number\" == typeof e) {\n this.fromNumber(e, d, f);\n } else {\n if (d == null && \"string\" != typeof e) {\n this.fromString(e, 256);\n } else {\n this.fromString(e, d);\n }\n }\n }\n}\n\nfunction nbi() {\n return new BigInteger(null);\n}\n\nfunction am1(f, a, b, e, h, g) {\n while (--g >= 0) {\n var d = a * this[f++] + b[e] + h;\n h = Math.floor(d / 67108864);\n b[e++] = d & 67108863;\n }\n\n return h;\n}\n\nfunction am2(f, q, r, e, o, a) {\n var k = q & 32767,\n p = q >> 15;\n\n while (--a >= 0) {\n var d = this[f] & 32767;\n var g = this[f++] >> 15;\n var b = p * d + g * k;\n d = k * d + ((b & 32767) << 15) + r[e] + (o & 1073741823);\n o = (d >>> 30) + (b >>> 15) + p * g + (o >>> 30);\n r[e++] = d & 1073741823;\n }\n\n return o;\n}\n\nfunction am3(f, q, r, e, o, a) {\n var k = q & 16383,\n p = q >> 14;\n\n while (--a >= 0) {\n var d = this[f] & 16383;\n var g = this[f++] >> 14;\n var b = p * d + g * k;\n d = k * d + ((b & 16383) << 14) + r[e] + o;\n o = (d >> 28) + (b >> 14) + p * g;\n r[e++] = d & 268435455;\n }\n\n return o;\n}\n\nif (j_lm && navigator.appName == \"Microsoft Internet Explorer\") {\n BigInteger.prototype.am = am2;\n dbits = 30;\n} else {\n if (j_lm && navigator.appName != \"Netscape\") {\n BigInteger.prototype.am = am1;\n dbits = 26;\n } else {\n BigInteger.prototype.am = am3;\n dbits = 28;\n }\n}\n\nBigInteger.prototype.DB = dbits;\nBigInteger.prototype.DM = (1 << dbits) - 1;\nBigInteger.prototype.DV = 1 << dbits;\nvar BI_FP = 52;\nBigInteger.prototype.FV = Math.pow(2, BI_FP);\nBigInteger.prototype.F1 = BI_FP - dbits;\nBigInteger.prototype.F2 = 2 * dbits - BI_FP;\nvar BI_RM = \"0123456789abcdefghijklmnopqrstuvwxyz\";\nvar BI_RC = new Array();\nvar rr, vv;\nrr = \"0\".charCodeAt(0);\n\nfor (vv = 0; vv <= 9; ++vv) {\n BI_RC[rr++] = vv;\n}\n\nrr = \"a\".charCodeAt(0);\n\nfor (vv = 10; vv < 36; ++vv) {\n BI_RC[rr++] = vv;\n}\n\nrr = \"A\".charCodeAt(0);\n\nfor (vv = 10; vv < 36; ++vv) {\n BI_RC[rr++] = vv;\n}\n\nfunction int2char(a) {\n return BI_RM.charAt(a);\n}\n\nfunction intAt(b, a) {\n var d = BI_RC[b.charCodeAt(a)];\n return d == null ? -1 : d;\n}\n\nfunction bnpCopyTo(b) {\n for (var a = this.t - 1; a >= 0; --a) {\n b[a] = this[a];\n }\n\n b.t = this.t;\n b.s = this.s;\n}\n\nfunction bnpFromInt(a) {\n this.t = 1;\n this.s = a < 0 ? -1 : 0;\n\n if (a > 0) {\n this[0] = a;\n } else {\n if (a < -1) {\n this[0] = a + this.DV;\n } else {\n this.t = 0;\n }\n }\n}\n\nfunction nbv(a) {\n var b = nbi();\n b.fromInt(a);\n return b;\n}\n\nfunction bnpFromString(h, c) {\n var e;\n\n if (c == 16) {\n e = 4;\n } else {\n if (c == 8) {\n e = 3;\n } else {\n if (c == 256) {\n e = 8;\n } else {\n if (c == 2) {\n e = 1;\n } else {\n if (c == 32) {\n e = 5;\n } else {\n if (c == 4) {\n e = 2;\n } else {\n this.fromRadix(h, c);\n return;\n }\n }\n }\n }\n }\n }\n\n this.t = 0;\n this.s = 0;\n var g = h.length,\n d = false,\n f = 0;\n\n while (--g >= 0) {\n var a = e == 8 ? h[g] & 255 : intAt(h, g);\n\n if (a < 0) {\n if (h.charAt(g) == \"-\") {\n d = true;\n }\n\n continue;\n }\n\n d = false;\n\n if (f == 0) {\n this[this.t++] = a;\n } else {\n if (f + e > this.DB) {\n this[this.t - 1] |= (a & (1 << this.DB - f) - 1) << f;\n this[this.t++] = a >> this.DB - f;\n } else {\n this[this.t - 1] |= a << f;\n }\n }\n\n f += e;\n\n if (f >= this.DB) {\n f -= this.DB;\n }\n }\n\n if (e == 8 && (h[0] & 128) != 0) {\n this.s = -1;\n\n if (f > 0) {\n this[this.t - 1] |= (1 << this.DB - f) - 1 << f;\n }\n }\n\n this.clamp();\n\n if (d) {\n BigInteger.ZERO.subTo(this, this);\n }\n}\n\nfunction bnpClamp() {\n var a = this.s & this.DM;\n\n while (this.t > 0 && this[this.t - 1] == a) {\n --this.t;\n }\n}\n\nfunction bnToString(c) {\n if (this.s < 0) {\n return \"-\" + this.negate().toString(c);\n }\n\n var e;\n\n if (c == 16) {\n e = 4;\n } else {\n if (c == 8) {\n e = 3;\n } else {\n if (c == 2) {\n e = 1;\n } else {\n if (c == 32) {\n e = 5;\n } else {\n if (c == 4) {\n e = 2;\n } else {\n return this.toRadix(c);\n }\n }\n }\n }\n }\n\n var g = (1 << e) - 1,\n l,\n a = false,\n h = \"\",\n f = this.t;\n var j = this.DB - f * this.DB % e;\n\n if (f-- > 0) {\n if (j < this.DB && (l = this[f] >> j) > 0) {\n a = true;\n h = int2char(l);\n }\n\n while (f >= 0) {\n if (j < e) {\n l = (this[f] & (1 << j) - 1) << e - j;\n l |= this[--f] >> (j += this.DB - e);\n } else {\n l = this[f] >> (j -= e) & g;\n\n if (j <= 0) {\n j += this.DB;\n --f;\n }\n }\n\n if (l > 0) {\n a = true;\n }\n\n if (a) {\n h += int2char(l);\n }\n }\n }\n\n return a ? h : \"0\";\n}\n\nfunction bnNegate() {\n var a = nbi();\n BigInteger.ZERO.subTo(this, a);\n return a;\n}\n\nfunction bnAbs() {\n return this.s < 0 ? this.negate() : this;\n}\n\nfunction bnCompareTo(b) {\n var d = this.s - b.s;\n\n if (d != 0) {\n return d;\n }\n\n var c = this.t;\n d = c - b.t;\n\n if (d != 0) {\n return this.s < 0 ? -d : d;\n }\n\n while (--c >= 0) {\n if ((d = this[c] - b[c]) != 0) {\n return d;\n }\n }\n\n return 0;\n}\n\nfunction nbits(a) {\n var c = 1,\n b;\n\n if ((b = a >>> 16) != 0) {\n a = b;\n c += 16;\n }\n\n if ((b = a >> 8) != 0) {\n a = b;\n c += 8;\n }\n\n if ((b = a >> 4) != 0) {\n a = b;\n c += 4;\n }\n\n if ((b = a >> 2) != 0) {\n a = b;\n c += 2;\n }\n\n if ((b = a >> 1) != 0) {\n a = b;\n c += 1;\n }\n\n return c;\n}\n\nfunction bnBitLength() {\n if (this.t <= 0) {\n return 0;\n }\n\n return this.DB * (this.t - 1) + nbits(this[this.t - 1] ^ this.s & this.DM);\n}\n\nfunction bnpDLShiftTo(c, b) {\n var a;\n\n for (a = this.t - 1; a >= 0; --a) {\n b[a + c] = this[a];\n }\n\n for (a = c - 1; a >= 0; --a) {\n b[a] = 0;\n }\n\n b.t = this.t + c;\n b.s = this.s;\n}\n\nfunction bnpDRShiftTo(c, b) {\n for (var a = c; a < this.t; ++a) {\n b[a - c] = this[a];\n }\n\n b.t = Math.max(this.t - c, 0);\n b.s = this.s;\n}\n\nfunction bnpLShiftTo(j, e) {\n var b = j % this.DB;\n var a = this.DB - b;\n var g = (1 << a) - 1;\n var f = Math.floor(j / this.DB),\n h = this.s << b & this.DM,\n d;\n\n for (d = this.t - 1; d >= 0; --d) {\n e[d + f + 1] = this[d] >> a | h;\n h = (this[d] & g) << b;\n }\n\n for (d = f - 1; d >= 0; --d) {\n e[d] = 0;\n }\n\n e[f] = h;\n e.t = this.t + f + 1;\n e.s = this.s;\n e.clamp();\n}\n\nfunction bnpRShiftTo(g, d) {\n d.s = this.s;\n var e = Math.floor(g / this.DB);\n\n if (e >= this.t) {\n d.t = 0;\n return;\n }\n\n var b = g % this.DB;\n var a = this.DB - b;\n var f = (1 << b) - 1;\n d[0] = this[e] >> b;\n\n for (var c = e + 1; c < this.t; ++c) {\n d[c - e - 1] |= (this[c] & f) << a;\n d[c - e] = this[c] >> b;\n }\n\n if (b > 0) {\n d[this.t - e - 1] |= (this.s & f) << a;\n }\n\n d.t = this.t - e;\n d.clamp();\n}\n\nfunction bnpSubTo(d, f) {\n var e = 0,\n g = 0,\n b = Math.min(d.t, this.t);\n\n while (e < b) {\n g += this[e] - d[e];\n f[e++] = g & this.DM;\n g >>= this.DB;\n }\n\n if (d.t < this.t) {\n g -= d.s;\n\n while (e < this.t) {\n g += this[e];\n f[e++] = g & this.DM;\n g >>= this.DB;\n }\n\n g += this.s;\n } else {\n g += this.s;\n\n while (e < d.t) {\n g -= d[e];\n f[e++] = g & this.DM;\n g >>= this.DB;\n }\n\n g -= d.s;\n }\n\n f.s = g < 0 ? -1 : 0;\n\n if (g < -1) {\n f[e++] = this.DV + g;\n } else {\n if (g > 0) {\n f[e++] = g;\n }\n }\n\n f.t = e;\n f.clamp();\n}\n\nfunction bnpMultiplyTo(c, e) {\n var b = this.abs(),\n f = c.abs();\n var d = b.t;\n e.t = d + f.t;\n\n while (--d >= 0) {\n e[d] = 0;\n }\n\n for (d = 0; d < f.t; ++d) {\n e[d + b.t] = b.am(0, f[d], e, d, 0, b.t);\n }\n\n e.s = 0;\n e.clamp();\n\n if (this.s != c.s) {\n BigInteger.ZERO.subTo(e, e);\n }\n}\n\nfunction bnpSquareTo(d) {\n var a = this.abs();\n var b = d.t = 2 * a.t;\n\n while (--b >= 0) {\n d[b] = 0;\n }\n\n for (b = 0; b < a.t - 1; ++b) {\n var e = a.am(b, a[b], d, 2 * b, 0, 1);\n\n if ((d[b + a.t] += a.am(b + 1, 2 * a[b], d, 2 * b + 1, e, a.t - b - 1)) >= a.DV) {\n d[b + a.t] -= a.DV;\n d[b + a.t + 1] = 1;\n }\n }\n\n if (d.t > 0) {\n d[d.t - 1] += a.am(b, a[b], d, 2 * b, 0, 1);\n }\n\n d.s = 0;\n d.clamp();\n}\n\nfunction bnpDivRemTo(n, h, g) {\n var w = n.abs();\n\n if (w.t <= 0) {\n return;\n }\n\n var k = this.abs();\n\n if (k.t < w.t) {\n if (h != null) {\n h.fromInt(0);\n }\n\n if (g != null) {\n this.copyTo(g);\n }\n\n return;\n }\n\n if (g == null) {\n g = nbi();\n }\n\n var d = nbi(),\n a = this.s,\n l = n.s;\n var v = this.DB - nbits(w[w.t - 1]);\n\n if (v > 0) {\n w.lShiftTo(v, d);\n k.lShiftTo(v, g);\n } else {\n w.copyTo(d);\n k.copyTo(g);\n }\n\n var p = d.t;\n var b = d[p - 1];\n\n if (b == 0) {\n return;\n }\n\n var o = b * (1 << this.F1) + (p > 1 ? d[p - 2] >> this.F2 : 0);\n var A = this.FV / o,\n z = (1 << this.F1) / o,\n x = 1 << this.F2;\n var u = g.t,\n s = u - p,\n f = h == null ? nbi() : h;\n d.dlShiftTo(s, f);\n\n if (g.compareTo(f) >= 0) {\n g[g.t++] = 1;\n g.subTo(f, g);\n }\n\n BigInteger.ONE.dlShiftTo(p, f);\n f.subTo(d, d);\n\n while (d.t < p) {\n d[d.t++] = 0;\n }\n\n while (--s >= 0) {\n var c = g[--u] == b ? this.DM : Math.floor(g[u] * A + (g[u - 1] + x) * z);\n\n if ((g[u] += d.am(0, c, g, s, 0, p)) < c) {\n d.dlShiftTo(s, f);\n g.subTo(f, g);\n\n while (g[u] < --c) {\n g.subTo(f, g);\n }\n }\n }\n\n if (h != null) {\n g.drShiftTo(p, h);\n\n if (a != l) {\n BigInteger.ZERO.subTo(h, h);\n }\n }\n\n g.t = p;\n g.clamp();\n\n if (v > 0) {\n g.rShiftTo(v, g);\n }\n\n if (a < 0) {\n BigInteger.ZERO.subTo(g, g);\n }\n}\n\nfunction bnMod(b) {\n var c = nbi();\n this.abs().divRemTo(b, null, c);\n\n if (this.s < 0 && c.compareTo(BigInteger.ZERO) > 0) {\n b.subTo(c, c);\n }\n\n return c;\n}\n\nfunction Classic(a) {\n this.m = a;\n}\n\nfunction cConvert(a) {\n if (a.s < 0 || a.compareTo(this.m) >= 0) {\n return a.mod(this.m);\n } else {\n return a;\n }\n}\n\nfunction cRevert(a) {\n return a;\n}\n\nfunction cReduce(a) {\n a.divRemTo(this.m, null, a);\n}\n\nfunction cMulTo(a, c, b) {\n a.multiplyTo(c, b);\n this.reduce(b);\n}\n\nfunction cSqrTo(a, b) {\n a.squareTo(b);\n this.reduce(b);\n}\n\nClassic.prototype.convert = cConvert;\nClassic.prototype.revert = cRevert;\nClassic.prototype.reduce = cReduce;\nClassic.prototype.mulTo = cMulTo;\nClassic.prototype.sqrTo = cSqrTo;\n\nfunction bnpInvDigit() {\n if (this.t < 1) {\n return 0;\n }\n\n var a = this[0];\n\n if ((a & 1) == 0) {\n return 0;\n }\n\n var b = a & 3;\n b = b * (2 - (a & 15) * b) & 15;\n b = b * (2 - (a & 255) * b) & 255;\n b = b * (2 - ((a & 65535) * b & 65535)) & 65535;\n b = b * (2 - a * b % this.DV) % this.DV;\n return b > 0 ? this.DV - b : -b;\n}\n\nfunction Montgomery(a) {\n this.m = a;\n this.mp = a.invDigit();\n this.mpl = this.mp & 32767;\n this.mph = this.mp >> 15;\n this.um = (1 << a.DB - 15) - 1;\n this.mt2 = 2 * a.t;\n}\n\nfunction montConvert(a) {\n var b = nbi();\n a.abs().dlShiftTo(this.m.t, b);\n b.divRemTo(this.m, null, b);\n\n if (a.s < 0 && b.compareTo(BigInteger.ZERO) > 0) {\n this.m.subTo(b, b);\n }\n\n return b;\n}\n\nfunction montRevert(a) {\n var b = nbi();\n a.copyTo(b);\n this.reduce(b);\n return b;\n}\n\nfunction montReduce(a) {\n while (a.t <= this.mt2) {\n a[a.t++] = 0;\n }\n\n for (var c = 0; c < this.m.t; ++c) {\n var b = a[c] & 32767;\n var d = b * this.mpl + ((b * this.mph + (a[c] >> 15) * this.mpl & this.um) << 15) & a.DM;\n b = c + this.m.t;\n a[b] += this.m.am(0, d, a, c, 0, this.m.t);\n\n while (a[b] >= a.DV) {\n a[b] -= a.DV;\n a[++b]++;\n }\n }\n\n a.clamp();\n a.drShiftTo(this.m.t, a);\n\n if (a.compareTo(this.m) >= 0) {\n a.subTo(this.m, a);\n }\n}\n\nfunction montSqrTo(a, b) {\n a.squareTo(b);\n this.reduce(b);\n}\n\nfunction montMulTo(a, c, b) {\n a.multiplyTo(c, b);\n this.reduce(b);\n}\n\nMontgomery.prototype.convert = montConvert;\nMontgomery.prototype.revert = montRevert;\nMontgomery.prototype.reduce = montReduce;\nMontgomery.prototype.mulTo = montMulTo;\nMontgomery.prototype.sqrTo = montSqrTo;\n\nfunction bnpIsEven() {\n return (this.t > 0 ? this[0] & 1 : this.s) == 0;\n}\n\nfunction bnpExp(h, j) {\n if (h > 4294967295 || h < 1) {\n return BigInteger.ONE;\n }\n\n var f = nbi(),\n a = nbi(),\n d = j.convert(this),\n c = nbits(h) - 1;\n d.copyTo(f);\n\n while (--c >= 0) {\n j.sqrTo(f, a);\n\n if ((h & 1 << c) > 0) {\n j.mulTo(a, d, f);\n } else {\n var b = f;\n f = a;\n a = b;\n }\n }\n\n return j.revert(f);\n}\n\nfunction bnModPowInt(b, a) {\n var c;\n\n if (b < 256 || a.isEven()) {\n c = new Classic(a);\n } else {\n c = new Montgomery(a);\n }\n\n return this.exp(b, c);\n}\n\nBigInteger.prototype.copyTo = bnpCopyTo;\nBigInteger.prototype.fromInt = bnpFromInt;\nBigInteger.prototype.fromString = bnpFromString;\nBigInteger.prototype.clamp = bnpClamp;\nBigInteger.prototype.dlShiftTo = bnpDLShiftTo;\nBigInteger.prototype.drShiftTo = bnpDRShiftTo;\nBigInteger.prototype.lShiftTo = bnpLShiftTo;\nBigInteger.prototype.rShiftTo = bnpRShiftTo;\nBigInteger.prototype.subTo = bnpSubTo;\nBigInteger.prototype.multiplyTo = bnpMultiplyTo;\nBigInteger.prototype.squareTo = bnpSquareTo;\nBigInteger.prototype.divRemTo = bnpDivRemTo;\nBigInteger.prototype.invDigit = bnpInvDigit;\nBigInteger.prototype.isEven = bnpIsEven;\nBigInteger.prototype.exp = bnpExp;\nBigInteger.prototype.toString = bnToString;\nBigInteger.prototype.negate = bnNegate;\nBigInteger.prototype.abs = bnAbs;\nBigInteger.prototype.compareTo = bnCompareTo;\nBigInteger.prototype.bitLength = bnBitLength;\nBigInteger.prototype.mod = bnMod;\nBigInteger.prototype.modPowInt = bnModPowInt;\nBigInteger.ZERO = nbv(0);\nBigInteger.ONE = nbv(1);\n/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/\n */\n\nfunction bnClone() {\n var a = nbi();\n this.copyTo(a);\n return a;\n}\n\nfunction bnIntValue() {\n if (this.s < 0) {\n if (this.t == 1) {\n return this[0] - this.DV;\n } else {\n if (this.t == 0) {\n return -1;\n }\n }\n } else {\n if (this.t == 1) {\n return this[0];\n } else {\n if (this.t == 0) {\n return 0;\n }\n }\n }\n\n return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0];\n}\n\nfunction bnByteValue() {\n return this.t == 0 ? this.s : this[0] << 24 >> 24;\n}\n\nfunction bnShortValue() {\n return this.t == 0 ? this.s : this[0] << 16 >> 16;\n}\n\nfunction bnpChunkSize(a) {\n return Math.floor(Math.LN2 * this.DB / Math.log(a));\n}\n\nfunction bnSigNum() {\n if (this.s < 0) {\n return -1;\n } else {\n if (this.t <= 0 || this.t == 1 && this[0] <= 0) {\n return 0;\n } else {\n return 1;\n }\n }\n}\n\nfunction bnpToRadix(c) {\n if (c == null) {\n c = 10;\n }\n\n if (this.signum() == 0 || c < 2 || c > 36) {\n return \"0\";\n }\n\n var f = this.chunkSize(c);\n var e = Math.pow(c, f);\n var i = nbv(e),\n j = nbi(),\n h = nbi(),\n g = \"\";\n this.divRemTo(i, j, h);\n\n while (j.signum() > 0) {\n g = (e + h.intValue()).toString(c).substr(1) + g;\n j.divRemTo(i, j, h);\n }\n\n return h.intValue().toString(c) + g;\n}\n\nfunction bnpFromRadix(m, h) {\n this.fromInt(0);\n\n if (h == null) {\n h = 10;\n }\n\n var f = this.chunkSize(h);\n var g = Math.pow(h, f),\n e = false,\n a = 0,\n l = 0;\n\n for (var c = 0; c < m.length; ++c) {\n var k = intAt(m, c);\n\n if (k < 0) {\n if (m.charAt(c) == \"-\" && this.signum() == 0) {\n e = true;\n }\n\n continue;\n }\n\n l = h * l + k;\n\n if (++a >= f) {\n this.dMultiply(g);\n this.dAddOffset(l, 0);\n a = 0;\n l = 0;\n }\n }\n\n if (a > 0) {\n this.dMultiply(Math.pow(h, a));\n this.dAddOffset(l, 0);\n }\n\n if (e) {\n BigInteger.ZERO.subTo(this, this);\n }\n}\n\nfunction bnpFromNumber(f, e, h) {\n if (\"number\" == typeof e) {\n if (f < 2) {\n this.fromInt(1);\n } else {\n this.fromNumber(f, h);\n\n if (!this.testBit(f - 1)) {\n this.bitwiseTo(BigInteger.ONE.shiftLeft(f - 1), op_or, this);\n }\n\n if (this.isEven()) {\n this.dAddOffset(1, 0);\n }\n\n while (!this.isProbablePrime(e)) {\n this.dAddOffset(2, 0);\n\n if (this.bitLength() > f) {\n this.subTo(BigInteger.ONE.shiftLeft(f - 1), this);\n }\n }\n }\n } else {\n var d = new Array(),\n g = f & 7;\n d.length = (f >> 3) + 1;\n e.nextBytes(d);\n\n if (g > 0) {\n d[0] &= (1 << g) - 1;\n } else {\n d[0] = 0;\n }\n\n this.fromString(d, 256);\n }\n}\n\nfunction bnToByteArray() {\n var b = this.t,\n c = new Array();\n c[0] = this.s;\n var e = this.DB - b * this.DB % 8,\n f,\n a = 0;\n\n if (b-- > 0) {\n if (e < this.DB && (f = this[b] >> e) != (this.s & this.DM) >> e) {\n c[a++] = f | this.s << this.DB - e;\n }\n\n while (b >= 0) {\n if (e < 8) {\n f = (this[b] & (1 << e) - 1) << 8 - e;\n f |= this[--b] >> (e += this.DB - 8);\n } else {\n f = this[b] >> (e -= 8) & 255;\n\n if (e <= 0) {\n e += this.DB;\n --b;\n }\n }\n\n if ((f & 128) != 0) {\n f |= -256;\n }\n\n if (a == 0 && (this.s & 128) != (f & 128)) {\n ++a;\n }\n\n if (a > 0 || f != this.s) {\n c[a++] = f;\n }\n }\n }\n\n return c;\n}\n\nfunction bnEquals(b) {\n return this.compareTo(b) == 0;\n}\n\nfunction bnMin(b) {\n return this.compareTo(b) < 0 ? this : b;\n}\n\nfunction bnMax(b) {\n return this.compareTo(b) > 0 ? this : b;\n}\n\nfunction bnpBitwiseTo(c, h, e) {\n var d,\n g,\n b = Math.min(c.t, this.t);\n\n for (d = 0; d < b; ++d) {\n e[d] = h(this[d], c[d]);\n }\n\n if (c.t < this.t) {\n g = c.s & this.DM;\n\n for (d = b; d < this.t; ++d) {\n e[d] = h(this[d], g);\n }\n\n e.t = this.t;\n } else {\n g = this.s & this.DM;\n\n for (d = b; d < c.t; ++d) {\n e[d] = h(g, c[d]);\n }\n\n e.t = c.t;\n }\n\n e.s = h(this.s, c.s);\n e.clamp();\n}\n\nfunction op_and(a, b) {\n return a & b;\n}\n\nfunction bnAnd(b) {\n var c = nbi();\n this.bitwiseTo(b, op_and, c);\n return c;\n}\n\nfunction op_or(a, b) {\n return a | b;\n}\n\nfunction bnOr(b) {\n var c = nbi();\n this.bitwiseTo(b, op_or, c);\n return c;\n}\n\nfunction op_xor(a, b) {\n return a ^ b;\n}\n\nfunction bnXor(b) {\n var c = nbi();\n this.bitwiseTo(b, op_xor, c);\n return c;\n}\n\nfunction op_andnot(a, b) {\n return a & ~b;\n}\n\nfunction bnAndNot(b) {\n var c = nbi();\n this.bitwiseTo(b, op_andnot, c);\n return c;\n}\n\nfunction bnNot() {\n var b = nbi();\n\n for (var a = 0; a < this.t; ++a) {\n b[a] = this.DM & ~this[a];\n }\n\n b.t = this.t;\n b.s = ~this.s;\n return b;\n}\n\nfunction bnShiftLeft(b) {\n var a = nbi();\n\n if (b < 0) {\n this.rShiftTo(-b, a);\n } else {\n this.lShiftTo(b, a);\n }\n\n return a;\n}\n\nfunction bnShiftRight(b) {\n var a = nbi();\n\n if (b < 0) {\n this.lShiftTo(-b, a);\n } else {\n this.rShiftTo(b, a);\n }\n\n return a;\n}\n\nfunction lbit(a) {\n if (a == 0) {\n return -1;\n }\n\n var b = 0;\n\n if ((a & 65535) == 0) {\n a >>= 16;\n b += 16;\n }\n\n if ((a & 255) == 0) {\n a >>= 8;\n b += 8;\n }\n\n if ((a & 15) == 0) {\n a >>= 4;\n b += 4;\n }\n\n if ((a & 3) == 0) {\n a >>= 2;\n b += 2;\n }\n\n if ((a & 1) == 0) {\n ++b;\n }\n\n return b;\n}\n\nfunction bnGetLowestSetBit() {\n for (var a = 0; a < this.t; ++a) {\n if (this[a] != 0) {\n return a * this.DB + lbit(this[a]);\n }\n }\n\n if (this.s < 0) {\n return this.t * this.DB;\n }\n\n return -1;\n}\n\nfunction cbit(a) {\n var b = 0;\n\n while (a != 0) {\n a &= a - 1;\n ++b;\n }\n\n return b;\n}\n\nfunction bnBitCount() {\n var c = 0,\n a = this.s & this.DM;\n\n for (var b = 0; b < this.t; ++b) {\n c += cbit(this[b] ^ a);\n }\n\n return c;\n}\n\nfunction bnTestBit(b) {\n var a = Math.floor(b / this.DB);\n\n if (a >= this.t) {\n return this.s != 0;\n }\n\n return (this[a] & 1 << b % this.DB) != 0;\n}\n\nfunction bnpChangeBit(c, b) {\n var a = BigInteger.ONE.shiftLeft(c);\n this.bitwiseTo(a, b, a);\n return a;\n}\n\nfunction bnSetBit(a) {\n return this.changeBit(a, op_or);\n}\n\nfunction bnClearBit(a) {\n return this.changeBit(a, op_andnot);\n}\n\nfunction bnFlipBit(a) {\n return this.changeBit(a, op_xor);\n}\n\nfunction bnpAddTo(d, f) {\n var e = 0,\n g = 0,\n b = Math.min(d.t, this.t);\n\n while (e < b) {\n g += this[e] + d[e];\n f[e++] = g & this.DM;\n g >>= this.DB;\n }\n\n if (d.t < this.t) {\n g += d.s;\n\n while (e < this.t) {\n g += this[e];\n f[e++] = g & this.DM;\n g >>= this.DB;\n }\n\n g += this.s;\n } else {\n g += this.s;\n\n while (e < d.t) {\n g += d[e];\n f[e++] = g & this.DM;\n g >>= this.DB;\n }\n\n g += d.s;\n }\n\n f.s = g < 0 ? -1 : 0;\n\n if (g > 0) {\n f[e++] = g;\n } else {\n if (g < -1) {\n f[e++] = this.DV + g;\n }\n }\n\n f.t = e;\n f.clamp();\n}\n\nfunction bnAdd(b) {\n var c = nbi();\n this.addTo(b, c);\n return c;\n}\n\nfunction bnSubtract(b) {\n var c = nbi();\n this.subTo(b, c);\n return c;\n}\n\nfunction bnMultiply(b) {\n var c = nbi();\n this.multiplyTo(b, c);\n return c;\n}\n\nfunction bnSquare() {\n var a = nbi();\n this.squareTo(a);\n return a;\n}\n\nfunction bnDivide(b) {\n var c = nbi();\n this.divRemTo(b, c, null);\n return c;\n}\n\nfunction bnRemainder(b) {\n var c = nbi();\n this.divRemTo(b, null, c);\n return c;\n}\n\nfunction bnDivideAndRemainder(b) {\n var d = nbi(),\n c = nbi();\n this.divRemTo(b, d, c);\n return new Array(d, c);\n}\n\nfunction bnpDMultiply(a) {\n this[this.t] = this.am(0, a - 1, this, 0, 0, this.t);\n ++this.t;\n this.clamp();\n}\n\nfunction bnpDAddOffset(b, a) {\n if (b == 0) {\n return;\n }\n\n while (this.t <= a) {\n this[this.t++] = 0;\n }\n\n this[a] += b;\n\n while (this[a] >= this.DV) {\n this[a] -= this.DV;\n\n if (++a >= this.t) {\n this[this.t++] = 0;\n }\n\n ++this[a];\n }\n}\n\nfunction NullExp() {}\n\nfunction nNop(a) {\n return a;\n}\n\nfunction nMulTo(a, c, b) {\n a.multiplyTo(c, b);\n}\n\nfunction nSqrTo(a, b) {\n a.squareTo(b);\n}\n\nNullExp.prototype.convert = nNop;\nNullExp.prototype.revert = nNop;\nNullExp.prototype.mulTo = nMulTo;\nNullExp.prototype.sqrTo = nSqrTo;\n\nfunction bnPow(a) {\n return this.exp(a, new NullExp());\n}\n\nfunction bnpMultiplyLowerTo(b, f, e) {\n var d = Math.min(this.t + b.t, f);\n e.s = 0;\n e.t = d;\n\n while (d > 0) {\n e[--d] = 0;\n }\n\n var c;\n\n for (c = e.t - this.t; d < c; ++d) {\n e[d + this.t] = this.am(0, b[d], e, d, 0, this.t);\n }\n\n for (c = Math.min(b.t, f); d < c; ++d) {\n this.am(0, b[d], e, d, 0, f - d);\n }\n\n e.clamp();\n}\n\nfunction bnpMultiplyUpperTo(b, e, d) {\n --e;\n var c = d.t = this.t + b.t - e;\n d.s = 0;\n\n while (--c >= 0) {\n d[c] = 0;\n }\n\n for (c = Math.max(e - this.t, 0); c < b.t; ++c) {\n d[this.t + c - e] = this.am(e - c, b[c], d, 0, 0, this.t + c - e);\n }\n\n d.clamp();\n d.drShiftTo(1, d);\n}\n\nfunction Barrett(a) {\n this.r2 = nbi();\n this.q3 = nbi();\n BigInteger.ONE.dlShiftTo(2 * a.t, this.r2);\n this.mu = this.r2.divide(a);\n this.m = a;\n}\n\nfunction barrettConvert(a) {\n if (a.s < 0 || a.t > 2 * this.m.t) {\n return a.mod(this.m);\n } else {\n if (a.compareTo(this.m) < 0) {\n return a;\n } else {\n var b = nbi();\n a.copyTo(b);\n this.reduce(b);\n return b;\n }\n }\n}\n\nfunction barrettRevert(a) {\n return a;\n}\n\nfunction barrettReduce(a) {\n a.drShiftTo(this.m.t - 1, this.r2);\n\n if (a.t > this.m.t + 1) {\n a.t = this.m.t + 1;\n a.clamp();\n }\n\n this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3);\n this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2);\n\n while (a.compareTo(this.r2) < 0) {\n a.dAddOffset(1, this.m.t + 1);\n }\n\n a.subTo(this.r2, a);\n\n while (a.compareTo(this.m) >= 0) {\n a.subTo(this.m, a);\n }\n}\n\nfunction barrettSqrTo(a, b) {\n a.squareTo(b);\n this.reduce(b);\n}\n\nfunction barrettMulTo(a, c, b) {\n a.multiplyTo(c, b);\n this.reduce(b);\n}\n\nBarrett.prototype.convert = barrettConvert;\nBarrett.prototype.revert = barrettRevert;\nBarrett.prototype.reduce = barrettReduce;\nBarrett.prototype.mulTo = barrettMulTo;\nBarrett.prototype.sqrTo = barrettSqrTo;\n\nfunction bnModPow(q, f) {\n var o = q.bitLength(),\n h,\n b = nbv(1),\n v;\n\n if (o <= 0) {\n return b;\n } else {\n if (o < 18) {\n h = 1;\n } else {\n if (o < 48) {\n h = 3;\n } else {\n if (o < 144) {\n h = 4;\n } else {\n if (o < 768) {\n h = 5;\n } else {\n h = 6;\n }\n }\n }\n }\n }\n\n if (o < 8) {\n v = new Classic(f);\n } else {\n if (f.isEven()) {\n v = new Barrett(f);\n } else {\n v = new Montgomery(f);\n }\n }\n\n var p = new Array(),\n d = 3,\n s = h - 1,\n a = (1 << h) - 1;\n p[1] = v.convert(this);\n\n if (h > 1) {\n var A = nbi();\n v.sqrTo(p[1], A);\n\n while (d <= a) {\n p[d] = nbi();\n v.mulTo(A, p[d - 2], p[d]);\n d += 2;\n }\n }\n\n var l = q.t - 1,\n x,\n u = true,\n c = nbi(),\n y;\n o = nbits(q[l]) - 1;\n\n while (l >= 0) {\n if (o >= s) {\n x = q[l] >> o - s & a;\n } else {\n x = (q[l] & (1 << o + 1) - 1) << s - o;\n\n if (l > 0) {\n x |= q[l - 1] >> this.DB + o - s;\n }\n }\n\n d = h;\n\n while ((x & 1) == 0) {\n x >>= 1;\n --d;\n }\n\n if ((o -= d) < 0) {\n o += this.DB;\n --l;\n }\n\n if (u) {\n p[x].copyTo(b);\n u = false;\n } else {\n while (d > 1) {\n v.sqrTo(b, c);\n v.sqrTo(c, b);\n d -= 2;\n }\n\n if (d > 0) {\n v.sqrTo(b, c);\n } else {\n y = b;\n b = c;\n c = y;\n }\n\n v.mulTo(c, p[x], b);\n }\n\n while (l >= 0 && (q[l] & 1 << o) == 0) {\n v.sqrTo(b, c);\n y = b;\n b = c;\n c = y;\n\n if (--o < 0) {\n o = this.DB - 1;\n --l;\n }\n }\n }\n\n return v.revert(b);\n}\n\nfunction bnGCD(c) {\n var b = this.s < 0 ? this.negate() : this.clone();\n var h = c.s < 0 ? c.negate() : c.clone();\n\n if (b.compareTo(h) < 0) {\n var e = b;\n b = h;\n h = e;\n }\n\n var d = b.getLowestSetBit(),\n f = h.getLowestSetBit();\n\n if (f < 0) {\n return b;\n }\n\n if (d < f) {\n f = d;\n }\n\n if (f > 0) {\n b.rShiftTo(f, b);\n h.rShiftTo(f, h);\n }\n\n while (b.signum() > 0) {\n if ((d = b.getLowestSetBit()) > 0) {\n b.rShiftTo(d, b);\n }\n\n if ((d = h.getLowestSetBit()) > 0) {\n h.rShiftTo(d, h);\n }\n\n if (b.compareTo(h) >= 0) {\n b.subTo(h, b);\n b.rShiftTo(1, b);\n } else {\n h.subTo(b, h);\n h.rShiftTo(1, h);\n }\n }\n\n if (f > 0) {\n h.lShiftTo(f, h);\n }\n\n return h;\n}\n\nfunction bnpModInt(e) {\n if (e <= 0) {\n return 0;\n }\n\n var c = this.DV % e,\n b = this.s < 0 ? e - 1 : 0;\n\n if (this.t > 0) {\n if (c == 0) {\n b = this[0] % e;\n } else {\n for (var a = this.t - 1; a >= 0; --a) {\n b = (c * b + this[a]) % e;\n }\n }\n }\n\n return b;\n}\n\nfunction bnModInverse(f) {\n var j = f.isEven();\n\n if (this.isEven() && j || f.signum() == 0) {\n return BigInteger.ZERO;\n }\n\n var i = f.clone(),\n h = this.clone();\n var g = nbv(1),\n e = nbv(0),\n l = nbv(0),\n k = nbv(1);\n\n while (i.signum() != 0) {\n while (i.isEven()) {\n i.rShiftTo(1, i);\n\n if (j) {\n if (!g.isEven() || !e.isEven()) {\n g.addTo(this, g);\n e.subTo(f, e);\n }\n\n g.rShiftTo(1, g);\n } else {\n if (!e.isEven()) {\n e.subTo(f, e);\n }\n }\n\n e.rShiftTo(1, e);\n }\n\n while (h.isEven()) {\n h.rShiftTo(1, h);\n\n if (j) {\n if (!l.isEven() || !k.isEven()) {\n l.addTo(this, l);\n k.subTo(f, k);\n }\n\n l.rShiftTo(1, l);\n } else {\n if (!k.isEven()) {\n k.subTo(f, k);\n }\n }\n\n k.rShiftTo(1, k);\n }\n\n if (i.compareTo(h) >= 0) {\n i.subTo(h, i);\n\n if (j) {\n g.subTo(l, g);\n }\n\n e.subTo(k, e);\n } else {\n h.subTo(i, h);\n\n if (j) {\n l.subTo(g, l);\n }\n\n k.subTo(e, k);\n }\n }\n\n if (h.compareTo(BigInteger.ONE) != 0) {\n return BigInteger.ZERO;\n }\n\n if (k.compareTo(f) >= 0) {\n return k.subtract(f);\n }\n\n if (k.signum() < 0) {\n k.addTo(f, k);\n } else {\n return k;\n }\n\n if (k.signum() < 0) {\n return k.add(f);\n } else {\n return k;\n }\n}\n\nvar lowprimes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997];\nvar lplim = (1 << 26) / lowprimes[lowprimes.length - 1];\n\nfunction bnIsProbablePrime(e) {\n var d,\n b = this.abs();\n\n if (b.t == 1 && b[0] <= lowprimes[lowprimes.length - 1]) {\n for (d = 0; d < lowprimes.length; ++d) {\n if (b[0] == lowprimes[d]) {\n return true;\n }\n }\n\n return false;\n }\n\n if (b.isEven()) {\n return false;\n }\n\n d = 1;\n\n while (d < lowprimes.length) {\n var a = lowprimes[d],\n c = d + 1;\n\n while (c < lowprimes.length && a < lplim) {\n a *= lowprimes[c++];\n }\n\n a = b.modInt(a);\n\n while (d < c) {\n if (a % lowprimes[d++] == 0) {\n return false;\n }\n }\n }\n\n return b.millerRabin(e);\n}\n\nfunction bnpMillerRabin(f) {\n var g = this.subtract(BigInteger.ONE);\n var c = g.getLowestSetBit();\n\n if (c <= 0) {\n return false;\n }\n\n var h = g.shiftRight(c);\n f = f + 1 >> 1;\n\n if (f > lowprimes.length) {\n f = lowprimes.length;\n }\n\n var b = nbi();\n\n for (var e = 0; e < f; ++e) {\n b.fromInt(lowprimes[Math.floor(Math.random() * lowprimes.length)]);\n var l = b.modPow(h, this);\n\n if (l.compareTo(BigInteger.ONE) != 0 && l.compareTo(g) != 0) {\n var d = 1;\n\n while (d++ < c && l.compareTo(g) != 0) {\n l = l.modPowInt(2, this);\n\n if (l.compareTo(BigInteger.ONE) == 0) {\n return false;\n }\n }\n\n if (l.compareTo(g) != 0) {\n return false;\n }\n }\n }\n\n return true;\n}\n\nBigInteger.prototype.chunkSize = bnpChunkSize;\nBigInteger.prototype.toRadix = bnpToRadix;\nBigInteger.prototype.fromRadix = bnpFromRadix;\nBigInteger.prototype.fromNumber = bnpFromNumber;\nBigInteger.prototype.bitwiseTo = bnpBitwiseTo;\nBigInteger.prototype.changeBit = bnpChangeBit;\nBigInteger.prototype.addTo = bnpAddTo;\nBigInteger.prototype.dMultiply = bnpDMultiply;\nBigInteger.prototype.dAddOffset = bnpDAddOffset;\nBigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;\nBigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;\nBigInteger.prototype.modInt = bnpModInt;\nBigInteger.prototype.millerRabin = bnpMillerRabin;\nBigInteger.prototype.clone = bnClone;\nBigInteger.prototype.intValue = bnIntValue;\nBigInteger.prototype.byteValue = bnByteValue;\nBigInteger.prototype.shortValue = bnShortValue;\nBigInteger.prototype.signum = bnSigNum;\nBigInteger.prototype.toByteArray = bnToByteArray;\nBigInteger.prototype.equals = bnEquals;\nBigInteger.prototype.min = bnMin;\nBigInteger.prototype.max = bnMax;\nBigInteger.prototype.and = bnAnd;\nBigInteger.prototype.or = bnOr;\nBigInteger.prototype.xor = bnXor;\nBigInteger.prototype.andNot = bnAndNot;\nBigInteger.prototype.not = bnNot;\nBigInteger.prototype.shiftLeft = bnShiftLeft;\nBigInteger.prototype.shiftRight = bnShiftRight;\nBigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;\nBigInteger.prototype.bitCount = bnBitCount;\nBigInteger.prototype.testBit = bnTestBit;\nBigInteger.prototype.setBit = bnSetBit;\nBigInteger.prototype.clearBit = bnClearBit;\nBigInteger.prototype.flipBit = bnFlipBit;\nBigInteger.prototype.add = bnAdd;\nBigInteger.prototype.subtract = bnSubtract;\nBigInteger.prototype.multiply = bnMultiply;\nBigInteger.prototype.divide = bnDivide;\nBigInteger.prototype.remainder = bnRemainder;\nBigInteger.prototype.divideAndRemainder = bnDivideAndRemainder;\nBigInteger.prototype.modPow = bnModPow;\nBigInteger.prototype.modInverse = bnModInverse;\nBigInteger.prototype.pow = bnPow;\nBigInteger.prototype.gcd = bnGCD;\nBigInteger.prototype.isProbablePrime = bnIsProbablePrime;\nBigInteger.prototype.square = bnSquare;\n/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/\n */\n\nfunction Arcfour() {\n this.i = 0;\n this.j = 0;\n this.S = new Array();\n}\n\nfunction ARC4init(d) {\n var c, a, b;\n\n for (c = 0; c < 256; ++c) {\n this.S[c] = c;\n }\n\n a = 0;\n\n for (c = 0; c < 256; ++c) {\n a = a + this.S[c] + d[c % d.length] & 255;\n b = this.S[c];\n this.S[c] = this.S[a];\n this.S[a] = b;\n }\n\n this.i = 0;\n this.j = 0;\n}\n\nfunction ARC4next() {\n var a;\n this.i = this.i + 1 & 255;\n this.j = this.j + this.S[this.i] & 255;\n a = this.S[this.i];\n this.S[this.i] = this.S[this.j];\n this.S[this.j] = a;\n return this.S[a + this.S[this.i] & 255];\n}\n\nArcfour.prototype.init = ARC4init;\nArcfour.prototype.next = ARC4next;\n\nfunction prng_newstate() {\n return new Arcfour();\n}\n\nvar rng_psize = 256;\n/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/\n */\n\nvar rng_state;\nvar rng_pool;\nvar rng_pptr;\n\nfunction rng_seed_int(a) {\n rng_pool[rng_pptr++] ^= a & 255;\n rng_pool[rng_pptr++] ^= a >> 8 & 255;\n rng_pool[rng_pptr++] ^= a >> 16 & 255;\n rng_pool[rng_pptr++] ^= a >> 24 & 255;\n\n if (rng_pptr >= rng_psize) {\n rng_pptr -= rng_psize;\n }\n}\n\nfunction rng_seed_time() {\n rng_seed_int(new Date().getTime());\n}\n\nif (rng_pool == null) {\n rng_pool = new Array();\n rng_pptr = 0;\n var t;\n\n if (window !== undefined && (window.crypto !== undefined || window.msCrypto !== undefined)) {\n var crypto = window.crypto || window.msCrypto;\n\n if (crypto.getRandomValues) {\n var ua = new Uint8Array(32);\n crypto.getRandomValues(ua);\n\n for (t = 0; t < 32; ++t) {\n rng_pool[rng_pptr++] = ua[t];\n }\n } else {\n if (navigator.appName == \"Netscape\" && navigator.appVersion < \"5\") {\n var z = window.crypto.random(32);\n\n for (t = 0; t < z.length; ++t) {\n rng_pool[rng_pptr++] = z.charCodeAt(t) & 255;\n }\n }\n }\n }\n\n while (rng_pptr < rng_psize) {\n t = Math.floor(65536 * Math.random());\n rng_pool[rng_pptr++] = t >>> 8;\n rng_pool[rng_pptr++] = t & 255;\n }\n\n rng_pptr = 0;\n rng_seed_time();\n}\n\nfunction rng_get_byte() {\n if (rng_state == null) {\n rng_seed_time();\n rng_state = prng_newstate();\n rng_state.init(rng_pool);\n\n for (rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr) {\n rng_pool[rng_pptr] = 0;\n }\n\n rng_pptr = 0;\n }\n\n return rng_state.next();\n}\n\nfunction rng_get_bytes(b) {\n var a;\n\n for (a = 0; a < b.length; ++a) {\n b[a] = rng_get_byte();\n }\n}\n\nfunction SecureRandom() {}\n\nSecureRandom.prototype.nextBytes = rng_get_bytes;\n/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/\n */\n\nfunction parseBigInt(b, a) {\n return new BigInteger(b, a);\n}\n\nfunction linebrk(c, d) {\n var a = \"\";\n var b = 0;\n\n while (b + d < c.length) {\n a += c.substring(b, b + d) + \"\\n\";\n b += d;\n }\n\n return a + c.substring(b, c.length);\n}\n\nfunction byte2Hex(a) {\n if (a < 16) {\n return \"0\" + a.toString(16);\n } else {\n return a.toString(16);\n }\n}\n\nfunction pkcs1pad2(e, h) {\n if (h < e.length + 11) {\n throw \"Message too long for RSA\";\n return null;\n }\n\n var g = new Array();\n var d = e.length - 1;\n\n while (d >= 0 && h > 0) {\n var f = e.charCodeAt(d--);\n\n if (f < 128) {\n g[--h] = f;\n } else {\n if (f > 127 && f < 2048) {\n g[--h] = f & 63 | 128;\n g[--h] = f >> 6 | 192;\n } else {\n g[--h] = f & 63 | 128;\n g[--h] = f >> 6 & 63 | 128;\n g[--h] = f >> 12 | 224;\n }\n }\n }\n\n g[--h] = 0;\n var b = new SecureRandom();\n var a = new Array();\n\n while (h > 2) {\n a[0] = 0;\n\n while (a[0] == 0) {\n b.nextBytes(a);\n }\n\n g[--h] = a[0];\n }\n\n g[--h] = 2;\n g[--h] = 0;\n return new BigInteger(g);\n}\n\nfunction oaep_mgf1_arr(c, a, e) {\n var b = \"\",\n d = 0;\n\n while (b.length < a) {\n b += e(String.fromCharCode.apply(String, c.concat([(d & 4278190080) >> 24, (d & 16711680) >> 16, (d & 65280) >> 8, d & 255])));\n d += 1;\n }\n\n return b;\n}\n\nfunction oaep_pad(q, a, f, l) {\n var c = KJUR.crypto.MessageDigest;\n var o = KJUR.crypto.Util;\n var b = null;\n\n if (!f) {\n f = \"sha1\";\n }\n\n if (typeof f === \"string\") {\n b = c.getCanonicalAlgName(f);\n l = c.getHashLength(b);\n\n f = function f(i) {\n return hextorstr(o.hashHex(rstrtohex(i), b));\n };\n }\n\n if (q.length + 2 * l + 2 > a) {\n throw \"Message too long for RSA\";\n }\n\n var k = \"\",\n e;\n\n for (e = 0; e < a - q.length - 2 * l - 2; e += 1) {\n k += \"\\x00\";\n }\n\n var h = f(\"\") + k + \"\\x01\" + q;\n var g = new Array(l);\n new SecureRandom().nextBytes(g);\n var j = oaep_mgf1_arr(g, h.length, f);\n var p = [];\n\n for (e = 0; e < h.length; e += 1) {\n p[e] = h.charCodeAt(e) ^ j.charCodeAt(e);\n }\n\n var m = oaep_mgf1_arr(p, g.length, f);\n var d = [0];\n\n for (e = 0; e < g.length; e += 1) {\n d[e + 1] = g[e] ^ m.charCodeAt(e);\n }\n\n return new BigInteger(d.concat(p));\n}\n\nfunction RSAKey() {\n this.n = null;\n this.e = 0;\n this.d = null;\n this.p = null;\n this.q = null;\n this.dmp1 = null;\n this.dmq1 = null;\n this.coeff = null;\n}\n\nfunction RSASetPublic(b, a) {\n this.isPublic = true;\n this.isPrivate = false;\n\n if (typeof b !== \"string\") {\n this.n = b;\n this.e = a;\n } else {\n if (b != null && a != null && b.length > 0 && a.length > 0) {\n this.n = parseBigInt(b, 16);\n this.e = parseInt(a, 16);\n } else {\n throw \"Invalid RSA public key\";\n }\n }\n}\n\nfunction RSADoPublic(a) {\n return a.modPowInt(this.e, this.n);\n}\n\nfunction RSAEncrypt(d) {\n var a = pkcs1pad2(d, this.n.bitLength() + 7 >> 3);\n\n if (a == null) {\n return null;\n }\n\n var e = this.doPublic(a);\n\n if (e == null) {\n return null;\n }\n\n var b = e.toString(16);\n\n if ((b.length & 1) == 0) {\n return b;\n } else {\n return \"0\" + b;\n }\n}\n\nfunction RSAEncryptOAEP(f, e, b) {\n var a = oaep_pad(f, this.n.bitLength() + 7 >> 3, e, b);\n\n if (a == null) {\n return null;\n }\n\n var g = this.doPublic(a);\n\n if (g == null) {\n return null;\n }\n\n var d = g.toString(16);\n\n if ((d.length & 1) == 0) {\n return d;\n } else {\n return \"0\" + d;\n }\n}\n\nRSAKey.prototype.doPublic = RSADoPublic;\nRSAKey.prototype.setPublic = RSASetPublic;\nRSAKey.prototype.encrypt = RSAEncrypt;\nRSAKey.prototype.encryptOAEP = RSAEncryptOAEP;\nRSAKey.prototype.type = \"RSA\";\n/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/\n */\n\nfunction pkcs1unpad2(g, j) {\n var a = g.toByteArray();\n var f = 0;\n\n while (f < a.length && a[f] == 0) {\n ++f;\n }\n\n if (a.length - f != j - 1 || a[f] != 2) {\n return null;\n }\n\n ++f;\n\n while (a[f] != 0) {\n if (++f >= a.length) {\n return null;\n }\n }\n\n var e = \"\";\n\n while (++f < a.length) {\n var h = a[f] & 255;\n\n if (h < 128) {\n e += String.fromCharCode(h);\n } else {\n if (h > 191 && h < 224) {\n e += String.fromCharCode((h & 31) << 6 | a[f + 1] & 63);\n ++f;\n } else {\n e += String.fromCharCode((h & 15) << 12 | (a[f + 1] & 63) << 6 | a[f + 2] & 63);\n f += 2;\n }\n }\n }\n\n return e;\n}\n\nfunction oaep_mgf1_str(c, a, e) {\n var b = \"\",\n d = 0;\n\n while (b.length < a) {\n b += e(c + String.fromCharCode.apply(String, [(d & 4278190080) >> 24, (d & 16711680) >> 16, (d & 65280) >> 8, d & 255]));\n d += 1;\n }\n\n return b;\n}\n\nfunction oaep_unpad(o, b, g, p) {\n var e = KJUR.crypto.MessageDigest;\n var r = KJUR.crypto.Util;\n var c = null;\n\n if (!g) {\n g = \"sha1\";\n }\n\n if (typeof g === \"string\") {\n c = e.getCanonicalAlgName(g);\n p = e.getHashLength(c);\n\n g = function g(d) {\n return hextorstr(r.hashHex(rstrtohex(d), c));\n };\n }\n\n o = o.toByteArray();\n var h;\n\n for (h = 0; h < o.length; h += 1) {\n o[h] &= 255;\n }\n\n while (o.length < b) {\n o.unshift(0);\n }\n\n o = String.fromCharCode.apply(String, o);\n\n if (o.length < 2 * p + 2) {\n throw \"Cipher too short\";\n }\n\n var f = o.substr(1, p);\n var s = o.substr(p + 1);\n var q = oaep_mgf1_str(s, p, g);\n var k = [],\n h;\n\n for (h = 0; h < f.length; h += 1) {\n k[h] = f.charCodeAt(h) ^ q.charCodeAt(h);\n }\n\n var l = oaep_mgf1_str(String.fromCharCode.apply(String, k), o.length - p, g);\n var j = [];\n\n for (h = 0; h < s.length; h += 1) {\n j[h] = s.charCodeAt(h) ^ l.charCodeAt(h);\n }\n\n j = String.fromCharCode.apply(String, j);\n\n if (j.substr(0, p) !== g(\"\")) {\n throw \"Hash mismatch\";\n }\n\n j = j.substr(p);\n var a = j.indexOf(\"\\x01\");\n var m = a != -1 ? j.substr(0, a).lastIndexOf(\"\\x00\") : -1;\n\n if (m + 1 != a) {\n throw \"Malformed data\";\n }\n\n return j.substr(a + 1);\n}\n\nfunction RSASetPrivate(c, a, b) {\n this.isPrivate = true;\n\n if (typeof c !== \"string\") {\n this.n = c;\n this.e = a;\n this.d = b;\n } else {\n if (c != null && a != null && c.length > 0 && a.length > 0) {\n this.n = parseBigInt(c, 16);\n this.e = parseInt(a, 16);\n this.d = parseBigInt(b, 16);\n } else {\n throw \"Invalid RSA private key\";\n }\n }\n}\n\nfunction RSASetPrivateEx(g, d, e, c, b, a, h, f) {\n this.isPrivate = true;\n this.isPublic = false;\n\n if (g == null) {\n throw \"RSASetPrivateEx N == null\";\n }\n\n if (d == null) {\n throw \"RSASetPrivateEx E == null\";\n }\n\n if (g.length == 0) {\n throw \"RSASetPrivateEx N.length == 0\";\n }\n\n if (d.length == 0) {\n throw \"RSASetPrivateEx E.length == 0\";\n }\n\n if (g != null && d != null && g.length > 0 && d.length > 0) {\n this.n = parseBigInt(g, 16);\n this.e = parseInt(d, 16);\n this.d = parseBigInt(e, 16);\n this.p = parseBigInt(c, 16);\n this.q = parseBigInt(b, 16);\n this.dmp1 = parseBigInt(a, 16);\n this.dmq1 = parseBigInt(h, 16);\n this.coeff = parseBigInt(f, 16);\n } else {\n throw \"Invalid RSA private key in RSASetPrivateEx\";\n }\n}\n\nfunction RSAGenerate(b, i) {\n var a = new SecureRandom();\n var f = b >> 1;\n this.e = parseInt(i, 16);\n var c = new BigInteger(i, 16);\n\n for (;;) {\n for (;;) {\n this.p = new BigInteger(b - f, 1, a);\n\n if (this.p.subtract(BigInteger.ONE).gcd(c).compareTo(BigInteger.ONE) == 0 && this.p.isProbablePrime(10)) {\n break;\n }\n }\n\n for (;;) {\n this.q = new BigInteger(f, 1, a);\n\n if (this.q.subtract(BigInteger.ONE).gcd(c).compareTo(BigInteger.ONE) == 0 && this.q.isProbablePrime(10)) {\n break;\n }\n }\n\n if (this.p.compareTo(this.q) <= 0) {\n var h = this.p;\n this.p = this.q;\n this.q = h;\n }\n\n var g = this.p.subtract(BigInteger.ONE);\n var d = this.q.subtract(BigInteger.ONE);\n var e = g.multiply(d);\n\n if (e.gcd(c).compareTo(BigInteger.ONE) == 0) {\n this.n = this.p.multiply(this.q);\n\n if (this.n.bitLength() == b) {\n this.d = c.modInverse(e);\n this.dmp1 = this.d.mod(g);\n this.dmq1 = this.d.mod(d);\n this.coeff = this.q.modInverse(this.p);\n break;\n }\n }\n }\n\n this.isPrivate = true;\n}\n\nfunction RSADoPrivate(a) {\n if (this.p == null || this.q == null) {\n return a.modPow(this.d, this.n);\n }\n\n var c = a.mod(this.p).modPow(this.dmp1, this.p);\n var b = a.mod(this.q).modPow(this.dmq1, this.q);\n\n while (c.compareTo(b) < 0) {\n c = c.add(this.p);\n }\n\n return c.subtract(b).multiply(this.coeff).mod(this.p).multiply(this.q).add(b);\n}\n\nfunction RSADecrypt(b) {\n if (b.length != Math.ceil(this.n.bitLength() / 4)) {\n throw new Error(\"wrong ctext length\");\n }\n\n var d = parseBigInt(b, 16);\n var a = this.doPrivate(d);\n\n if (a == null) {\n return null;\n }\n\n return pkcs1unpad2(a, this.n.bitLength() + 7 >> 3);\n}\n\nfunction RSADecryptOAEP(e, d, b) {\n if (e.length != Math.ceil(this.n.bitLength() / 4)) {\n throw new Error(\"wrong ctext length\");\n }\n\n var f = parseBigInt(e, 16);\n var a = this.doPrivate(f);\n\n if (a == null) {\n return null;\n }\n\n return oaep_unpad(a, this.n.bitLength() + 7 >> 3, d, b);\n}\n\nRSAKey.prototype.doPrivate = RSADoPrivate;\nRSAKey.prototype.setPrivate = RSASetPrivate;\nRSAKey.prototype.setPrivateEx = RSASetPrivateEx;\nRSAKey.prototype.generate = RSAGenerate;\nRSAKey.prototype.decrypt = RSADecrypt;\nRSAKey.prototype.decryptOAEP = RSADecryptOAEP;\n/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/\n */\n\nfunction ECFieldElementFp(b, a) {\n this.x = a;\n this.q = b;\n}\n\nfunction feFpEquals(a) {\n if (a == this) {\n return true;\n }\n\n return this.q.equals(a.q) && this.x.equals(a.x);\n}\n\nfunction feFpToBigInteger() {\n return this.x;\n}\n\nfunction feFpNegate() {\n return new ECFieldElementFp(this.q, this.x.negate().mod(this.q));\n}\n\nfunction feFpAdd(a) {\n return new ECFieldElementFp(this.q, this.x.add(a.toBigInteger()).mod(this.q));\n}\n\nfunction feFpSubtract(a) {\n return new ECFieldElementFp(this.q, this.x.subtract(a.toBigInteger()).mod(this.q));\n}\n\nfunction feFpMultiply(a) {\n return new ECFieldElementFp(this.q, this.x.multiply(a.toBigInteger()).mod(this.q));\n}\n\nfunction feFpSquare() {\n return new ECFieldElementFp(this.q, this.x.square().mod(this.q));\n}\n\nfunction feFpDivide(a) {\n return new ECFieldElementFp(this.q, this.x.multiply(a.toBigInteger().modInverse(this.q)).mod(this.q));\n}\n\nECFieldElementFp.prototype.equals = feFpEquals;\nECFieldElementFp.prototype.toBigInteger = feFpToBigInteger;\nECFieldElementFp.prototype.negate = feFpNegate;\nECFieldElementFp.prototype.add = feFpAdd;\nECFieldElementFp.prototype.subtract = feFpSubtract;\nECFieldElementFp.prototype.multiply = feFpMultiply;\nECFieldElementFp.prototype.square = feFpSquare;\nECFieldElementFp.prototype.divide = feFpDivide;\n\nfunction ECPointFp(c, a, d, b) {\n this.curve = c;\n this.x = a;\n this.y = d;\n\n if (b == null) {\n this.z = BigInteger.ONE;\n } else {\n this.z = b;\n }\n\n this.zinv = null;\n}\n\nfunction pointFpGetX() {\n if (this.zinv == null) {\n this.zinv = this.z.modInverse(this.curve.q);\n }\n\n return this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q));\n}\n\nfunction pointFpGetY() {\n if (this.zinv == null) {\n this.zinv = this.z.modInverse(this.curve.q);\n }\n\n return this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q));\n}\n\nfunction pointFpEquals(a) {\n if (a == this) {\n return true;\n }\n\n if (this.isInfinity()) {\n return a.isInfinity();\n }\n\n if (a.isInfinity()) {\n return this.isInfinity();\n }\n\n var c, b;\n c = a.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(a.z)).mod(this.curve.q);\n\n if (!c.equals(BigInteger.ZERO)) {\n return false;\n }\n\n b = a.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(a.z)).mod(this.curve.q);\n return b.equals(BigInteger.ZERO);\n}\n\nfunction pointFpIsInfinity() {\n if (this.x == null && this.y == null) {\n return true;\n }\n\n return this.z.equals(BigInteger.ZERO) && !this.y.toBigInteger().equals(BigInteger.ZERO);\n}\n\nfunction pointFpNegate() {\n return new ECPointFp(this.curve, this.x, this.y.negate(), this.z);\n}\n\nfunction pointFpAdd(l) {\n if (this.isInfinity()) {\n return l;\n }\n\n if (l.isInfinity()) {\n return this;\n }\n\n var p = l.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(l.z)).mod(this.curve.q);\n var o = l.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(l.z)).mod(this.curve.q);\n\n if (BigInteger.ZERO.equals(o)) {\n if (BigInteger.ZERO.equals(p)) {\n return this.twice();\n }\n\n return this.curve.getInfinity();\n }\n\n var j = new BigInteger(\"3\");\n var e = this.x.toBigInteger();\n var n = this.y.toBigInteger();\n var c = l.x.toBigInteger();\n var k = l.y.toBigInteger();\n var m = o.square();\n var i = m.multiply(o);\n var d = e.multiply(m);\n var g = p.square().multiply(this.z);\n var a = g.subtract(d.shiftLeft(1)).multiply(l.z).subtract(i).multiply(o).mod(this.curve.q);\n var h = d.multiply(j).multiply(p).subtract(n.multiply(i)).subtract(g.multiply(p)).multiply(l.z).add(p.multiply(i)).mod(this.curve.q);\n var f = i.multiply(this.z).multiply(l.z).mod(this.curve.q);\n return new ECPointFp(this.curve, this.curve.fromBigInteger(a), this.curve.fromBigInteger(h), f);\n}\n\nfunction pointFpTwice() {\n if (this.isInfinity()) {\n return this;\n }\n\n if (this.y.toBigInteger().signum() == 0) {\n return this.curve.getInfinity();\n }\n\n var g = new BigInteger(\"3\");\n var c = this.x.toBigInteger();\n var h = this.y.toBigInteger();\n var e = h.multiply(this.z);\n var j = e.multiply(h).mod(this.curve.q);\n var i = this.curve.a.toBigInteger();\n var k = c.square().multiply(g);\n\n if (!BigInteger.ZERO.equals(i)) {\n k = k.add(this.z.square().multiply(i));\n }\n\n k = k.mod(this.curve.q);\n var b = k.square().subtract(c.shiftLeft(3).multiply(j)).shiftLeft(1).multiply(e).mod(this.curve.q);\n var f = k.multiply(g).multiply(c).subtract(j.shiftLeft(1)).shiftLeft(2).multiply(j).subtract(k.square().multiply(k)).mod(this.curve.q);\n var d = e.square().multiply(e).shiftLeft(3).mod(this.curve.q);\n return new ECPointFp(this.curve, this.curve.fromBigInteger(b), this.curve.fromBigInteger(f), d);\n}\n\nfunction pointFpMultiply(d) {\n if (this.isInfinity()) {\n return this;\n }\n\n if (d.signum() == 0) {\n return this.curve.getInfinity();\n }\n\n var m = d;\n var l = m.multiply(new BigInteger(\"3\"));\n var b = this.negate();\n var j = this;\n var q = this.curve.q.subtract(d);\n var o = q.multiply(new BigInteger(\"3\"));\n var c = new ECPointFp(this.curve, this.x, this.y);\n var a = c.negate();\n var g;\n\n for (g = l.bitLength() - 2; g > 0; --g) {\n j = j.twice();\n var n = l.testBit(g);\n var f = m.testBit(g);\n\n if (n != f) {\n j = j.add(n ? this : b);\n }\n }\n\n for (g = o.bitLength() - 2; g > 0; --g) {\n c = c.twice();\n var p = o.testBit(g);\n var r = q.testBit(g);\n\n if (p != r) {\n c = c.add(p ? c : a);\n }\n }\n\n return j;\n}\n\nfunction pointFpMultiplyTwo(c, a, b) {\n var d;\n\n if (c.bitLength() > b.bitLength()) {\n d = c.bitLength() - 1;\n } else {\n d = b.bitLength() - 1;\n }\n\n var f = this.curve.getInfinity();\n var e = this.add(a);\n\n while (d >= 0) {\n f = f.twice();\n\n if (c.testBit(d)) {\n if (b.testBit(d)) {\n f = f.add(e);\n } else {\n f = f.add(this);\n }\n } else {\n if (b.testBit(d)) {\n f = f.add(a);\n }\n }\n\n --d;\n }\n\n return f;\n}\n\nECPointFp.prototype.getX = pointFpGetX;\nECPointFp.prototype.getY = pointFpGetY;\nECPointFp.prototype.equals = pointFpEquals;\nECPointFp.prototype.isInfinity = pointFpIsInfinity;\nECPointFp.prototype.negate = pointFpNegate;\nECPointFp.prototype.add = pointFpAdd;\nECPointFp.prototype.twice = pointFpTwice;\nECPointFp.prototype.multiply = pointFpMultiply;\nECPointFp.prototype.multiplyTwo = pointFpMultiplyTwo;\n\nfunction ECCurveFp(e, d, c) {\n this.q = e;\n this.a = this.fromBigInteger(d);\n this.b = this.fromBigInteger(c);\n this.infinity = new ECPointFp(this, null, null);\n}\n\nfunction curveFpGetQ() {\n return this.q;\n}\n\nfunction curveFpGetA() {\n return this.a;\n}\n\nfunction curveFpGetB() {\n return this.b;\n}\n\nfunction curveFpEquals(a) {\n if (a == this) {\n return true;\n }\n\n return this.q.equals(a.q) && this.a.equals(a.a) && this.b.equals(a.b);\n}\n\nfunction curveFpGetInfinity() {\n return this.infinity;\n}\n\nfunction curveFpFromBigInteger(a) {\n return new ECFieldElementFp(this.q, a);\n}\n\nfunction curveFpDecodePointHex(d) {\n switch (parseInt(d.substr(0, 2), 16)) {\n case 0:\n return this.infinity;\n\n case 2:\n case 3:\n return null;\n\n case 4:\n case 6:\n case 7:\n var a = (d.length - 2) / 2;\n var c = d.substr(2, a);\n var b = d.substr(a + 2, a);\n return new ECPointFp(this, this.fromBigInteger(new BigInteger(c, 16)), this.fromBigInteger(new BigInteger(b, 16)));\n\n default:\n return null;\n }\n}\n\nECCurveFp.prototype.getQ = curveFpGetQ;\nECCurveFp.prototype.getA = curveFpGetA;\nECCurveFp.prototype.getB = curveFpGetB;\nECCurveFp.prototype.equals = curveFpEquals;\nECCurveFp.prototype.getInfinity = curveFpGetInfinity;\nECCurveFp.prototype.fromBigInteger = curveFpFromBigInteger;\nECCurveFp.prototype.decodePointHex = curveFpDecodePointHex;\n/*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib\n */\n\nECFieldElementFp.prototype.getByteLength = function () {\n return Math.floor((this.toBigInteger().bitLength() + 7) / 8);\n};\n\nECPointFp.prototype.getEncoded = function (c) {\n var d = function d(h, f) {\n var g = h.toByteArrayUnsigned();\n\n if (f < g.length) {\n g = g.slice(g.length - f);\n } else {\n while (f > g.length) {\n g.unshift(0);\n }\n }\n\n return g;\n };\n\n var a = this.getX().toBigInteger();\n var e = this.getY().toBigInteger();\n var b = d(a, 32);\n\n if (c) {\n if (e.isEven()) {\n b.unshift(2);\n } else {\n b.unshift(3);\n }\n } else {\n b.unshift(4);\n b = b.concat(d(e, 32));\n }\n\n return b;\n};\n\nECPointFp.decodeFrom = function (g, c) {\n var f = c[0];\n var e = c.length - 1;\n var d = c.slice(1, 1 + e / 2);\n var b = c.slice(1 + e / 2, 1 + e);\n d.unshift(0);\n b.unshift(0);\n var a = new BigInteger(d);\n var h = new BigInteger(b);\n return new ECPointFp(g, g.fromBigInteger(a), g.fromBigInteger(h));\n};\n\nECPointFp.decodeFromHex = function (g, c) {\n var f = c.substr(0, 2);\n var e = c.length - 2;\n var d = c.substr(2, e / 2);\n var b = c.substr(2 + e / 2, e / 2);\n var a = new BigInteger(d, 16);\n var h = new BigInteger(b, 16);\n return new ECPointFp(g, g.fromBigInteger(a), g.fromBigInteger(h));\n};\n\nECPointFp.prototype.add2D = function (c) {\n if (this.isInfinity()) {\n return c;\n }\n\n if (c.isInfinity()) {\n return this;\n }\n\n if (this.x.equals(c.x)) {\n if (this.y.equals(c.y)) {\n return this.twice();\n }\n\n return this.curve.getInfinity();\n }\n\n var g = c.x.subtract(this.x);\n var e = c.y.subtract(this.y);\n var a = e.divide(g);\n var d = a.square().subtract(this.x).subtract(c.x);\n var f = a.multiply(this.x.subtract(d)).subtract(this.y);\n return new ECPointFp(this.curve, d, f);\n};\n\nECPointFp.prototype.twice2D = function () {\n if (this.isInfinity()) {\n return this;\n }\n\n if (this.y.toBigInteger().signum() == 0) {\n return this.curve.getInfinity();\n }\n\n var b = this.curve.fromBigInteger(BigInteger.valueOf(2));\n var e = this.curve.fromBigInteger(BigInteger.valueOf(3));\n var a = this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(b));\n var c = a.square().subtract(this.x.multiply(b));\n var d = a.multiply(this.x.subtract(c)).subtract(this.y);\n return new ECPointFp(this.curve, c, d);\n};\n\nECPointFp.prototype.multiply2D = function (b) {\n if (this.isInfinity()) {\n return this;\n }\n\n if (b.signum() == 0) {\n return this.curve.getInfinity();\n }\n\n var g = b;\n var f = g.multiply(new BigInteger(\"3\"));\n var l = this.negate();\n var d = this;\n var c;\n\n for (c = f.bitLength() - 2; c > 0; --c) {\n d = d.twice();\n var a = f.testBit(c);\n var j = g.testBit(c);\n\n if (a != j) {\n d = d.add2D(a ? this : l);\n }\n }\n\n return d;\n};\n\nECPointFp.prototype.isOnCurve = function () {\n var d = this.getX().toBigInteger();\n var i = this.getY().toBigInteger();\n var f = this.curve.getA().toBigInteger();\n var c = this.curve.getB().toBigInteger();\n var h = this.curve.getQ();\n var e = i.multiply(i).mod(h);\n var g = d.multiply(d).multiply(d).add(f.multiply(d)).add(c).mod(h);\n return e.equals(g);\n};\n\nECPointFp.prototype.toString = function () {\n return \"(\" + this.getX().toBigInteger().toString() + \",\" + this.getY().toBigInteger().toString() + \")\";\n};\n\nECPointFp.prototype.validate = function () {\n var c = this.curve.getQ();\n\n if (this.isInfinity()) {\n throw new Error(\"Point is at infinity.\");\n }\n\n var a = this.getX().toBigInteger();\n var b = this.getY().toBigInteger();\n\n if (a.compareTo(BigInteger.ONE) < 0 || a.compareTo(c.subtract(BigInteger.ONE)) > 0) {\n throw new Error(\"x coordinate out of bounds\");\n }\n\n if (b.compareTo(BigInteger.ONE) < 0 || b.compareTo(c.subtract(BigInteger.ONE)) > 0) {\n throw new Error(\"y coordinate out of bounds\");\n }\n\n if (!this.isOnCurve()) {\n throw new Error(\"Point is not on the curve.\");\n }\n\n if (this.multiply(c).isInfinity()) {\n throw new Error(\"Point is not a scalar multiple of G.\");\n }\n\n return true;\n};\n/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval\n */\n\n\nvar jsonParse = function () {\n var e = \"(?:-?\\\\b(?:0|[1-9][0-9]*)(?:\\\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\\\b)\";\n var j = '(?:[^\\\\0-\\\\x08\\\\x0a-\\\\x1f\"\\\\\\\\]|\\\\\\\\(?:[\"/\\\\\\\\bfnrt]|u[0-9A-Fa-f]{4}))';\n var i = '(?:\"' + j + '*\")';\n var d = new RegExp(\"(?:false|true|null|[\\\\{\\\\}\\\\[\\\\]]|\" + e + \"|\" + i + \")\", \"g\");\n var k = new RegExp(\"\\\\\\\\(?:([^u])|u(.{4}))\", \"g\");\n var g = {\n '\"': '\"',\n \"/\": \"/\",\n \"\\\\\": \"\\\\\",\n b: \"\\b\",\n f: \"\\f\",\n n: \"\\n\",\n r: \"\\r\",\n t: \"\\t\"\n };\n\n function h(l, m, n) {\n return m ? g[m] : String.fromCharCode(parseInt(n, 16));\n }\n\n var c = new String(\"\");\n var a = \"\\\\\";\n var f = {\n \"{\": Object,\n \"[\": Array\n };\n var b = Object.hasOwnProperty;\n return function (u, q) {\n var p = u.match(d);\n var x;\n var v = p[0];\n var l = false;\n\n if (\"{\" === v) {\n x = {};\n } else {\n if (\"[\" === v) {\n x = [];\n } else {\n x = [];\n l = true;\n }\n }\n\n var t;\n var r = [x];\n\n for (var o = 1 - l, m = p.length; o < m; ++o) {\n v = p[o];\n var w;\n\n switch (v.charCodeAt(0)) {\n default:\n w = r[0];\n w[t || w.length] = +v;\n t = void 0;\n break;\n\n case 34:\n v = v.substring(1, v.length - 1);\n\n if (v.indexOf(a) !== -1) {\n v = v.replace(k, h);\n }\n\n w = r[0];\n\n if (!t) {\n if (w instanceof Array) {\n t = w.length;\n } else {\n t = v || c;\n break;\n }\n }\n\n w[t] = v;\n t = void 0;\n break;\n\n case 91:\n w = r[0];\n r.unshift(w[t || w.length] = []);\n t = void 0;\n break;\n\n case 93:\n r.shift();\n break;\n\n case 102:\n w = r[0];\n w[t || w.length] = false;\n t = void 0;\n break;\n\n case 110:\n w = r[0];\n w[t || w.length] = null;\n t = void 0;\n break;\n\n case 116:\n w = r[0];\n w[t || w.length] = true;\n t = void 0;\n break;\n\n case 123:\n w = r[0];\n r.unshift(w[t || w.length] = {});\n t = void 0;\n break;\n\n case 125:\n r.shift();\n break;\n }\n }\n\n if (l) {\n if (r.length !== 1) {\n throw new Error();\n }\n\n x = x[0];\n } else {\n if (r.length) {\n throw new Error();\n }\n }\n\n if (q) {\n var s = function s(C, B) {\n var D = C[B];\n\n if (D && _typeof(D) === \"object\") {\n var n = null;\n\n for (var z in D) {\n if (b.call(D, z) && D !== C) {\n var y = s(D, z);\n\n if (y !== void 0) {\n D[z] = y;\n } else {\n if (!n) {\n n = [];\n }\n\n n.push(z);\n }\n }\n }\n\n if (n) {\n for (var A = n.length; --A >= 0;) {\n delete D[n[A]];\n }\n }\n }\n\n return q.call(C, B, D);\n };\n\n x = s({\n \"\": x\n }, \"\");\n }\n\n return x;\n };\n}();\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.asn1 == \"undefined\" || !KJUR.asn1) {\n KJUR.asn1 = {};\n}\n\nKJUR.asn1.ASN1Util = new function () {\n this.integerToByteHex = function (a) {\n var b = a.toString(16);\n\n if (b.length % 2 == 1) {\n b = \"0\" + b;\n }\n\n return b;\n };\n\n this.bigIntToMinTwosComplementsHex = function (j) {\n var f = j.toString(16);\n\n if (f.substr(0, 1) != \"-\") {\n if (f.length % 2 == 1) {\n f = \"0\" + f;\n } else {\n if (!f.match(/^[0-7]/)) {\n f = \"00\" + f;\n }\n }\n } else {\n var a = f.substr(1);\n var e = a.length;\n\n if (e % 2 == 1) {\n e += 1;\n } else {\n if (!f.match(/^[0-7]/)) {\n e += 2;\n }\n }\n\n var g = \"\";\n\n for (var d = 0; d < e; d++) {\n g += \"f\";\n }\n\n var c = new BigInteger(g, 16);\n var b = c.xor(j).add(BigInteger.ONE);\n f = b.toString(16).replace(/^-/, \"\");\n }\n\n return f;\n };\n\n this.getPEMStringFromHex = function (a, b) {\n return hextopem(a, b);\n };\n\n this.newObject = function (l) {\n var F = KJUR,\n p = F.asn1,\n B = p.DERBoolean,\n f = p.DERInteger,\n u = p.DERBitString,\n j = p.DEROctetString,\n x = p.DERNull,\n y = p.DERObjectIdentifier,\n n = p.DEREnumerated,\n h = p.DERUTF8String,\n g = p.DERNumericString,\n A = p.DERPrintableString,\n w = p.DERTeletexString,\n r = p.DERIA5String,\n E = p.DERUTCTime,\n k = p.DERGeneralizedTime,\n b = p.DERVisibleString,\n m = p.DERBMPString,\n o = p.DERSequence,\n d = p.DERSet,\n t = p.DERTaggedObject,\n q = p.ASN1Util.newObject;\n\n if (l instanceof p.ASN1Object) {\n return l;\n }\n\n var v = Object.keys(l);\n\n if (v.length != 1) {\n throw new Error(\"key of param shall be only one.\");\n }\n\n var H = v[0];\n\n if (\":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:\".indexOf(\":\" + H + \":\") == -1) {\n throw new Error(\"undefined key: \" + H);\n }\n\n if (H == \"bool\") {\n return new B(l[H]);\n }\n\n if (H == \"int\") {\n return new f(l[H]);\n }\n\n if (H == \"bitstr\") {\n return new u(l[H]);\n }\n\n if (H == \"octstr\") {\n return new j(l[H]);\n }\n\n if (H == \"null\") {\n return new x(l[H]);\n }\n\n if (H == \"oid\") {\n return new y(l[H]);\n }\n\n if (H == \"enum\") {\n return new n(l[H]);\n }\n\n if (H == \"utf8str\") {\n return new h(l[H]);\n }\n\n if (H == \"numstr\") {\n return new g(l[H]);\n }\n\n if (H == \"prnstr\") {\n return new A(l[H]);\n }\n\n if (H == \"telstr\") {\n return new w(l[H]);\n }\n\n if (H == \"ia5str\") {\n return new r(l[H]);\n }\n\n if (H == \"utctime\") {\n return new E(l[H]);\n }\n\n if (H == \"gentime\") {\n return new k(l[H]);\n }\n\n if (H == \"visstr\") {\n return new b(l[H]);\n }\n\n if (H == \"bmpstr\") {\n return new m(l[H]);\n }\n\n if (H == \"seq\") {\n var e = l[H];\n var G = [];\n\n for (var z = 0; z < e.length; z++) {\n var D = q(e[z]);\n G.push(D);\n }\n\n return new o({\n array: G\n });\n }\n\n if (H == \"set\") {\n var e = l[H];\n var G = [];\n\n for (var z = 0; z < e.length; z++) {\n var D = q(e[z]);\n G.push(D);\n }\n\n return new d({\n array: G\n });\n }\n\n if (H == \"tag\") {\n var C = l[H];\n\n if (Object.prototype.toString.call(C) === \"[object Array]\" && C.length == 3) {\n var s = q(C[2]);\n return new t({\n tag: C[0],\n explicit: C[1],\n obj: s\n });\n } else {\n var c = {};\n\n if (C.explicit !== undefined) {\n c.explicit = C.explicit;\n }\n\n if (C.tag !== undefined) {\n c.tag = C.tag;\n }\n\n if (C.obj === undefined) {\n throw \"obj shall be specified for 'tag'.\";\n }\n\n c.obj = q(C.obj);\n return new t(c);\n }\n }\n };\n\n this.jsonToASN1HEX = function (b) {\n var a = this.newObject(b);\n return a.getEncodedHex();\n };\n}();\n\nKJUR.asn1.ASN1Util.oidHexToInt = function (a) {\n var j = \"\";\n var k = parseInt(a.substr(0, 2), 16);\n var d = Math.floor(k / 40);\n var c = k % 40;\n var j = d + \".\" + c;\n var e = \"\";\n\n for (var f = 2; f < a.length; f += 2) {\n var g = parseInt(a.substr(f, 2), 16);\n var h = (\"00000000\" + g.toString(2)).slice(-8);\n e = e + h.substr(1, 7);\n\n if (h.substr(0, 1) == \"0\") {\n var b = new BigInteger(e, 2);\n j = j + \".\" + b.toString(10);\n e = \"\";\n }\n }\n\n return j;\n};\n\nKJUR.asn1.ASN1Util.oidIntToHex = function (f) {\n var e = function e(a) {\n var k = a.toString(16);\n\n if (k.length == 1) {\n k = \"0\" + k;\n }\n\n return k;\n };\n\n var d = function d(o) {\n var n = \"\";\n var k = new BigInteger(o, 10);\n var a = k.toString(2);\n var l = 7 - a.length % 7;\n\n if (l == 7) {\n l = 0;\n }\n\n var q = \"\";\n\n for (var m = 0; m < l; m++) {\n q += \"0\";\n }\n\n a = q + a;\n\n for (var m = 0; m < a.length - 1; m += 7) {\n var p = a.substr(m, 7);\n\n if (m != a.length - 7) {\n p = \"1\" + p;\n }\n\n n += e(parseInt(p, 2));\n }\n\n return n;\n };\n\n if (!f.match(/^[0-9.]+$/)) {\n throw \"malformed oid string: \" + f;\n }\n\n var g = \"\";\n var b = f.split(\".\");\n var j = parseInt(b[0]) * 40 + parseInt(b[1]);\n g += e(j);\n b.splice(0, 2);\n\n for (var c = 0; c < b.length; c++) {\n g += d(b[c]);\n }\n\n return g;\n};\n\nKJUR.asn1.ASN1Object = function (e) {\n var c = true;\n var b = null;\n var d = \"00\";\n var f = \"00\";\n var a = \"\";\n\n this.getLengthHexFromValue = function () {\n if (typeof this.hV == \"undefined\" || this.hV == null) {\n throw new Error(\"this.hV is null or undefined\");\n }\n\n if (this.hV.length % 2 == 1) {\n throw new Error(\"value hex must be even length: n=\" + a.length + \",v=\" + this.hV);\n }\n\n var j = this.hV.length / 2;\n var i = j.toString(16);\n\n if (i.length % 2 == 1) {\n i = \"0\" + i;\n }\n\n if (j < 128) {\n return i;\n } else {\n var h = i.length / 2;\n\n if (h > 15) {\n throw \"ASN.1 length too long to represent by 8x: n = \" + j.toString(16);\n }\n\n var g = 128 + h;\n return g.toString(16) + i;\n }\n };\n\n this.getEncodedHex = function () {\n if (this.hTLV == null || this.isModified) {\n this.hV = this.getFreshValueHex();\n this.hL = this.getLengthHexFromValue();\n this.hTLV = this.hT + this.hL + this.hV;\n this.isModified = false;\n }\n\n return this.hTLV;\n };\n\n this.getValueHex = function () {\n this.getEncodedHex();\n return this.hV;\n };\n\n this.getFreshValueHex = function () {\n return \"\";\n };\n\n if (e != undefined) {\n if (e.tlv != undefined) {\n this.hTLV = e.tlv;\n this.isModified = false;\n }\n }\n};\n\nKJUR.asn1.DERAbstractString = function (c) {\n KJUR.asn1.DERAbstractString.superclass.constructor.call(this);\n var b = null;\n var a = null;\n\n this.getString = function () {\n return this.s;\n };\n\n this.setString = function (d) {\n this.hTLV = null;\n this.isModified = true;\n this.s = d;\n this.hV = utf8tohex(this.s).toLowerCase();\n };\n\n this.setStringHex = function (d) {\n this.hTLV = null;\n this.isModified = true;\n this.s = null;\n this.hV = d;\n };\n\n this.getFreshValueHex = function () {\n return this.hV;\n };\n\n if (typeof c != \"undefined\") {\n if (typeof c == \"string\") {\n this.setString(c);\n } else {\n if (typeof c.str != \"undefined\") {\n this.setString(c.str);\n } else {\n if (typeof c.hex != \"undefined\") {\n this.setStringHex(c.hex);\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERAbstractString, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.DERAbstractTime = function (c) {\n KJUR.asn1.DERAbstractTime.superclass.constructor.call(this);\n var b = null;\n var a = null;\n\n this.localDateToUTC = function (g) {\n var e = g.getTime() + g.getTimezoneOffset() * 60000;\n var f = new Date(e);\n return f;\n };\n\n this.formatDate = function (m, o, e) {\n var g = this.zeroPadding;\n var n = this.localDateToUTC(m);\n var p = String(n.getFullYear());\n\n if (o == \"utc\") {\n p = p.substr(2, 2);\n }\n\n var l = g(String(n.getMonth() + 1), 2);\n var q = g(String(n.getDate()), 2);\n var h = g(String(n.getHours()), 2);\n var i = g(String(n.getMinutes()), 2);\n var j = g(String(n.getSeconds()), 2);\n var r = p + l + q + h + i + j;\n\n if (e === true) {\n var f = n.getMilliseconds();\n\n if (f != 0) {\n var k = g(String(f), 3);\n k = k.replace(/[0]+$/, \"\");\n r = r + \".\" + k;\n }\n }\n\n return r + \"Z\";\n };\n\n this.zeroPadding = function (e, d) {\n if (e.length >= d) {\n return e;\n }\n\n return new Array(d - e.length + 1).join(\"0\") + e;\n };\n\n this.getString = function () {\n return this.s;\n };\n\n this.setString = function (d) {\n this.hTLV = null;\n this.isModified = true;\n this.s = d;\n this.hV = stohex(d);\n };\n\n this.setByDateValue = function (h, j, e, d, f, g) {\n var i = new Date(Date.UTC(h, j - 1, e, d, f, g, 0));\n this.setByDate(i);\n };\n\n this.getFreshValueHex = function () {\n return this.hV;\n };\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERAbstractTime, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.DERAbstractStructured = function (b) {\n KJUR.asn1.DERAbstractString.superclass.constructor.call(this);\n var a = null;\n\n this.setByASN1ObjectArray = function (c) {\n this.hTLV = null;\n this.isModified = true;\n this.asn1Array = c;\n };\n\n this.appendASN1Object = function (c) {\n this.hTLV = null;\n this.isModified = true;\n this.asn1Array.push(c);\n };\n\n this.asn1Array = new Array();\n\n if (typeof b != \"undefined\") {\n if (typeof b.array != \"undefined\") {\n this.asn1Array = b.array;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERAbstractStructured, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.DERBoolean = function () {\n KJUR.asn1.DERBoolean.superclass.constructor.call(this);\n this.hT = \"01\";\n this.hTLV = \"0101ff\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERBoolean, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.DERInteger = function (a) {\n KJUR.asn1.DERInteger.superclass.constructor.call(this);\n this.hT = \"02\";\n\n this.setByBigInteger = function (b) {\n this.hTLV = null;\n this.isModified = true;\n this.hV = KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(b);\n };\n\n this.setByInteger = function (c) {\n var b = new BigInteger(String(c), 10);\n this.setByBigInteger(b);\n };\n\n this.setValueHex = function (b) {\n this.hV = b;\n };\n\n this.getFreshValueHex = function () {\n return this.hV;\n };\n\n if (typeof a != \"undefined\") {\n if (typeof a.bigint != \"undefined\") {\n this.setByBigInteger(a.bigint);\n } else {\n if (typeof a[\"int\"] != \"undefined\") {\n this.setByInteger(a[\"int\"]);\n } else {\n if (typeof a == \"number\") {\n this.setByInteger(a);\n } else {\n if (typeof a.hex != \"undefined\") {\n this.setValueHex(a.hex);\n }\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERInteger, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.DERBitString = function (b) {\n if (b !== undefined && typeof b.obj !== \"undefined\") {\n var a = KJUR.asn1.ASN1Util.newObject(b.obj);\n b.hex = \"00\" + a.getEncodedHex();\n }\n\n KJUR.asn1.DERBitString.superclass.constructor.call(this);\n this.hT = \"03\";\n\n this.setHexValueIncludingUnusedBits = function (c) {\n this.hTLV = null;\n this.isModified = true;\n this.hV = c;\n };\n\n this.setUnusedBitsAndHexValue = function (c, e) {\n if (c < 0 || 7 < c) {\n throw \"unused bits shall be from 0 to 7: u = \" + c;\n }\n\n var d = \"0\" + c;\n this.hTLV = null;\n this.isModified = true;\n this.hV = d + e;\n };\n\n this.setByBinaryString = function (e) {\n e = e.replace(/0+$/, \"\");\n var f = 8 - e.length % 8;\n\n if (f == 8) {\n f = 0;\n }\n\n for (var g = 0; g <= f; g++) {\n e += \"0\";\n }\n\n var j = \"\";\n\n for (var g = 0; g < e.length - 1; g += 8) {\n var d = e.substr(g, 8);\n var c = parseInt(d, 2).toString(16);\n\n if (c.length == 1) {\n c = \"0\" + c;\n }\n\n j += c;\n }\n\n this.hTLV = null;\n this.isModified = true;\n this.hV = \"0\" + f + j;\n };\n\n this.setByBooleanArray = function (e) {\n var d = \"\";\n\n for (var c = 0; c < e.length; c++) {\n if (e[c] == true) {\n d += \"1\";\n } else {\n d += \"0\";\n }\n }\n\n this.setByBinaryString(d);\n };\n\n this.newFalseArray = function (e) {\n var c = new Array(e);\n\n for (var d = 0; d < e; d++) {\n c[d] = false;\n }\n\n return c;\n };\n\n this.getFreshValueHex = function () {\n return this.hV;\n };\n\n if (typeof b != \"undefined\") {\n if (typeof b == \"string\" && b.toLowerCase().match(/^[0-9a-f]+$/)) {\n this.setHexValueIncludingUnusedBits(b);\n } else {\n if (typeof b.hex != \"undefined\") {\n this.setHexValueIncludingUnusedBits(b.hex);\n } else {\n if (typeof b.bin != \"undefined\") {\n this.setByBinaryString(b.bin);\n } else {\n if (typeof b.array != \"undefined\") {\n this.setByBooleanArray(b.array);\n }\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERBitString, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.DEROctetString = function (b) {\n if (b !== undefined && typeof b.obj !== \"undefined\") {\n var a = KJUR.asn1.ASN1Util.newObject(b.obj);\n b.hex = a.getEncodedHex();\n }\n\n KJUR.asn1.DEROctetString.superclass.constructor.call(this, b);\n this.hT = \"04\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DEROctetString, KJUR.asn1.DERAbstractString);\n\nKJUR.asn1.DERNull = function () {\n KJUR.asn1.DERNull.superclass.constructor.call(this);\n this.hT = \"05\";\n this.hTLV = \"0500\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERNull, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.DERObjectIdentifier = function (c) {\n var b = function b(d) {\n var e = d.toString(16);\n\n if (e.length == 1) {\n e = \"0\" + e;\n }\n\n return e;\n };\n\n var a = function a(k) {\n var j = \"\";\n var e = new BigInteger(k, 10);\n var d = e.toString(2);\n var f = 7 - d.length % 7;\n\n if (f == 7) {\n f = 0;\n }\n\n var m = \"\";\n\n for (var g = 0; g < f; g++) {\n m += \"0\";\n }\n\n d = m + d;\n\n for (var g = 0; g < d.length - 1; g += 7) {\n var l = d.substr(g, 7);\n\n if (g != d.length - 7) {\n l = \"1\" + l;\n }\n\n j += b(parseInt(l, 2));\n }\n\n return j;\n };\n\n KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this);\n this.hT = \"06\";\n\n this.setValueHex = function (d) {\n this.hTLV = null;\n this.isModified = true;\n this.s = null;\n this.hV = d;\n };\n\n this.setValueOidString = function (f) {\n if (!f.match(/^[0-9.]+$/)) {\n throw new Error(\"malformed oid string: \" + f);\n }\n\n var g = \"\";\n var d = f.split(\".\");\n var j = parseInt(d[0]) * 40 + parseInt(d[1]);\n g += b(j);\n d.splice(0, 2);\n\n for (var e = 0; e < d.length; e++) {\n g += a(d[e]);\n }\n\n this.hTLV = null;\n this.isModified = true;\n this.s = null;\n this.hV = g;\n };\n\n this.setValueName = function (e) {\n var d = KJUR.asn1.x509.OID.name2oid(e);\n\n if (d !== \"\") {\n this.setValueOidString(d);\n } else {\n throw new Error(\"DERObjectIdentifier oidName undefined: \" + e);\n }\n };\n\n this.getFreshValueHex = function () {\n return this.hV;\n };\n\n if (c !== undefined) {\n if (typeof c === \"string\") {\n if (c.match(/^[0-2].[0-9.]+$/)) {\n this.setValueOidString(c);\n } else {\n this.setValueName(c);\n }\n } else {\n if (c.oid !== undefined) {\n this.setValueOidString(c.oid);\n } else {\n if (c.hex !== undefined) {\n this.setValueHex(c.hex);\n } else {\n if (c.name !== undefined) {\n this.setValueName(c.name);\n }\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERObjectIdentifier, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.DEREnumerated = function (a) {\n KJUR.asn1.DEREnumerated.superclass.constructor.call(this);\n this.hT = \"0a\";\n\n this.setByBigInteger = function (b) {\n this.hTLV = null;\n this.isModified = true;\n this.hV = KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(b);\n };\n\n this.setByInteger = function (c) {\n var b = new BigInteger(String(c), 10);\n this.setByBigInteger(b);\n };\n\n this.setValueHex = function (b) {\n this.hV = b;\n };\n\n this.getFreshValueHex = function () {\n return this.hV;\n };\n\n if (typeof a != \"undefined\") {\n if (typeof a[\"int\"] != \"undefined\") {\n this.setByInteger(a[\"int\"]);\n } else {\n if (typeof a == \"number\") {\n this.setByInteger(a);\n } else {\n if (typeof a.hex != \"undefined\") {\n this.setValueHex(a.hex);\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DEREnumerated, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.DERUTF8String = function (a) {\n KJUR.asn1.DERUTF8String.superclass.constructor.call(this, a);\n this.hT = \"0c\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERUTF8String, KJUR.asn1.DERAbstractString);\n\nKJUR.asn1.DERNumericString = function (a) {\n KJUR.asn1.DERNumericString.superclass.constructor.call(this, a);\n this.hT = \"12\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERNumericString, KJUR.asn1.DERAbstractString);\n\nKJUR.asn1.DERPrintableString = function (a) {\n KJUR.asn1.DERPrintableString.superclass.constructor.call(this, a);\n this.hT = \"13\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERPrintableString, KJUR.asn1.DERAbstractString);\n\nKJUR.asn1.DERTeletexString = function (a) {\n KJUR.asn1.DERTeletexString.superclass.constructor.call(this, a);\n this.hT = \"14\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERTeletexString, KJUR.asn1.DERAbstractString);\n\nKJUR.asn1.DERIA5String = function (a) {\n KJUR.asn1.DERIA5String.superclass.constructor.call(this, a);\n this.hT = \"16\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERIA5String, KJUR.asn1.DERAbstractString);\n\nKJUR.asn1.DERVisibleString = function (a) {\n KJUR.asn1.DERIA5String.superclass.constructor.call(this, a);\n this.hT = \"1a\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERVisibleString, KJUR.asn1.DERAbstractString);\n\nKJUR.asn1.DERBMPString = function (a) {\n KJUR.asn1.DERBMPString.superclass.constructor.call(this, a);\n this.hT = \"1e\";\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERBMPString, KJUR.asn1.DERAbstractString);\n\nKJUR.asn1.DERUTCTime = function (a) {\n KJUR.asn1.DERUTCTime.superclass.constructor.call(this, a);\n this.hT = \"17\";\n\n this.setByDate = function (b) {\n this.hTLV = null;\n this.isModified = true;\n this.date = b;\n this.s = this.formatDate(this.date, \"utc\");\n this.hV = stohex(this.s);\n };\n\n this.getFreshValueHex = function () {\n if (typeof this.date == \"undefined\" && typeof this.s == \"undefined\") {\n this.date = new Date();\n this.s = this.formatDate(this.date, \"utc\");\n this.hV = stohex(this.s);\n }\n\n return this.hV;\n };\n\n if (a !== undefined) {\n if (a.str !== undefined) {\n this.setString(a.str);\n } else {\n if (typeof a == \"string\" && a.match(/^[0-9]{12}Z$/)) {\n this.setString(a);\n } else {\n if (a.hex !== undefined) {\n this.setStringHex(a.hex);\n } else {\n if (a.date !== undefined) {\n this.setByDate(a.date);\n }\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERUTCTime, KJUR.asn1.DERAbstractTime);\n\nKJUR.asn1.DERGeneralizedTime = function (a) {\n KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this, a);\n this.hT = \"18\";\n this.withMillis = false;\n\n this.setByDate = function (b) {\n this.hTLV = null;\n this.isModified = true;\n this.date = b;\n this.s = this.formatDate(this.date, \"gen\", this.withMillis);\n this.hV = stohex(this.s);\n };\n\n this.getFreshValueHex = function () {\n if (this.date === undefined && this.s === undefined) {\n this.date = new Date();\n this.s = this.formatDate(this.date, \"gen\", this.withMillis);\n this.hV = stohex(this.s);\n }\n\n return this.hV;\n };\n\n if (a !== undefined) {\n if (a.str !== undefined) {\n this.setString(a.str);\n } else {\n if (typeof a == \"string\" && a.match(/^[0-9]{14}Z$/)) {\n this.setString(a);\n } else {\n if (a.hex !== undefined) {\n this.setStringHex(a.hex);\n } else {\n if (a.date !== undefined) {\n this.setByDate(a.date);\n }\n }\n }\n }\n\n if (a.millis === true) {\n this.withMillis = true;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERGeneralizedTime, KJUR.asn1.DERAbstractTime);\n\nKJUR.asn1.DERSequence = function (a) {\n KJUR.asn1.DERSequence.superclass.constructor.call(this, a);\n this.hT = \"30\";\n\n this.getFreshValueHex = function () {\n var c = \"\";\n\n for (var b = 0; b < this.asn1Array.length; b++) {\n var d = this.asn1Array[b];\n c += d.getEncodedHex();\n }\n\n this.hV = c;\n return this.hV;\n };\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERSequence, KJUR.asn1.DERAbstractStructured);\n\nKJUR.asn1.DERSet = function (a) {\n KJUR.asn1.DERSet.superclass.constructor.call(this, a);\n this.hT = \"31\";\n this.sortFlag = true;\n\n this.getFreshValueHex = function () {\n var b = new Array();\n\n for (var c = 0; c < this.asn1Array.length; c++) {\n var d = this.asn1Array[c];\n b.push(d.getEncodedHex());\n }\n\n if (this.sortFlag == true) {\n b.sort();\n }\n\n this.hV = b.join(\"\");\n return this.hV;\n };\n\n if (typeof a != \"undefined\") {\n if (typeof a.sortflag != \"undefined\" && a.sortflag == false) {\n this.sortFlag = false;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERSet, KJUR.asn1.DERAbstractStructured);\n\nKJUR.asn1.DERTaggedObject = function (a) {\n KJUR.asn1.DERTaggedObject.superclass.constructor.call(this);\n this.hT = \"a0\";\n this.hV = \"\";\n this.isExplicit = true;\n this.asn1Object = null;\n\n this.setASN1Object = function (b, c, d) {\n this.hT = c;\n this.isExplicit = b;\n this.asn1Object = d;\n\n if (this.isExplicit) {\n this.hV = this.asn1Object.getEncodedHex();\n this.hTLV = null;\n this.isModified = true;\n } else {\n this.hV = null;\n this.hTLV = d.getEncodedHex();\n this.hTLV = this.hTLV.replace(/^../, c);\n this.isModified = false;\n }\n };\n\n this.getFreshValueHex = function () {\n return this.hV;\n };\n\n if (typeof a != \"undefined\") {\n if (typeof a.tag != \"undefined\") {\n this.hT = a.tag;\n }\n\n if (typeof a.explicit != \"undefined\") {\n this.isExplicit = a.explicit;\n }\n\n if (typeof a.obj != \"undefined\") {\n this.asn1Object = a.obj;\n this.setASN1Object(this.isExplicit, this.hT, this.asn1Object);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.DERTaggedObject, KJUR.asn1.ASN1Object);\nvar ASN1HEX = new function () {}();\n\nASN1HEX.getLblen = function (c, a) {\n if (c.substr(a + 2, 1) != \"8\") {\n return 1;\n }\n\n var b = parseInt(c.substr(a + 3, 1));\n\n if (b == 0) {\n return -1;\n }\n\n if (0 < b && b < 10) {\n return b + 1;\n }\n\n return -2;\n};\n\nASN1HEX.getL = function (c, b) {\n var a = ASN1HEX.getLblen(c, b);\n\n if (a < 1) {\n return \"\";\n }\n\n return c.substr(b + 2, a * 2);\n};\n\nASN1HEX.getVblen = function (d, a) {\n var c, b;\n c = ASN1HEX.getL(d, a);\n\n if (c == \"\") {\n return -1;\n }\n\n if (c.substr(0, 1) === \"8\") {\n b = new BigInteger(c.substr(2), 16);\n } else {\n b = new BigInteger(c, 16);\n }\n\n return b.intValue();\n};\n\nASN1HEX.getVidx = function (c, b) {\n var a = ASN1HEX.getLblen(c, b);\n\n if (a < 0) {\n return a;\n }\n\n return b + (a + 1) * 2;\n};\n\nASN1HEX.getV = function (d, a) {\n var c = ASN1HEX.getVidx(d, a);\n var b = ASN1HEX.getVblen(d, a);\n return d.substr(c, b * 2);\n};\n\nASN1HEX.getTLV = function (b, a) {\n return b.substr(a, 2) + ASN1HEX.getL(b, a) + ASN1HEX.getV(b, a);\n};\n\nASN1HEX.getTLVblen = function (b, a) {\n return 2 + ASN1HEX.getLblen(b, a) * 2 + ASN1HEX.getVblen(b, a) * 2;\n};\n\nASN1HEX.getNextSiblingIdx = function (d, a) {\n var c = ASN1HEX.getVidx(d, a);\n var b = ASN1HEX.getVblen(d, a);\n return c + b * 2;\n};\n\nASN1HEX.getChildIdx = function (e, k) {\n var l = ASN1HEX;\n var j = [];\n var c, f, g;\n c = l.getVidx(e, k);\n f = l.getVblen(e, k) * 2;\n\n if (e.substr(k, 2) == \"03\") {\n c += 2;\n f -= 2;\n }\n\n g = 0;\n var d = c;\n\n while (g <= f) {\n var b = l.getTLVblen(e, d);\n g += b;\n\n if (g <= f) {\n j.push(d);\n }\n\n d += b;\n\n if (g >= f) {\n break;\n }\n }\n\n return j;\n};\n\nASN1HEX.getNthChildIdx = function (d, b, e) {\n var c = ASN1HEX.getChildIdx(d, b);\n return c[e];\n};\n\nASN1HEX.getIdxbyList = function (e, d, c, i) {\n var g = ASN1HEX;\n var f, b;\n\n if (c.length == 0) {\n if (i !== undefined) {\n if (e.substr(d, 2) !== i) {\n return -1;\n }\n }\n\n return d;\n }\n\n f = c.shift();\n b = g.getChildIdx(e, d);\n\n if (f >= b.length) {\n return -1;\n }\n\n return g.getIdxbyList(e, b[f], c, i);\n};\n\nASN1HEX.getIdxbyListEx = function (f, k, b, g) {\n var m = ASN1HEX;\n var d, l;\n\n if (b.length == 0) {\n if (g !== undefined) {\n if (f.substr(k, 2) !== g) {\n return -1;\n }\n }\n\n return k;\n }\n\n d = b.shift();\n l = m.getChildIdx(f, k);\n var j = 0;\n\n for (var e = 0; e < l.length; e++) {\n var c = f.substr(l[e], 2);\n\n if (typeof d == \"number\" && !m.isContextTag(c) && j == d || typeof d == \"string\" && m.isContextTag(c, d)) {\n return m.getIdxbyListEx(f, l[e], b, g);\n }\n\n if (!m.isContextTag(c)) {\n j++;\n }\n }\n\n return -1;\n};\n\nASN1HEX.getTLVbyList = function (d, c, b, f) {\n var e = ASN1HEX;\n var a = e.getIdxbyList(d, c, b, f);\n\n if (a == -1) {\n return null;\n }\n\n if (a >= d.length) {\n return null;\n }\n\n return e.getTLV(d, a);\n};\n\nASN1HEX.getTLVbyListEx = function (d, c, b, f) {\n var e = ASN1HEX;\n var a = e.getIdxbyListEx(d, c, b, f);\n\n if (a == -1) {\n return null;\n }\n\n return e.getTLV(d, a);\n};\n\nASN1HEX.getVbyList = function (e, c, b, g, i) {\n var f = ASN1HEX;\n var a, d;\n a = f.getIdxbyList(e, c, b, g);\n\n if (a == -1) {\n return null;\n }\n\n if (a >= e.length) {\n return null;\n }\n\n d = f.getV(e, a);\n\n if (i === true) {\n d = d.substr(2);\n }\n\n return d;\n};\n\nASN1HEX.getVbyListEx = function (b, e, a, d, f) {\n var j = ASN1HEX;\n var g, c, i;\n g = j.getIdxbyListEx(b, e, a, d);\n\n if (g == -1) {\n return null;\n }\n\n i = j.getV(b, g);\n\n if (b.substr(g, 2) == \"03\" && f !== false) {\n i = i.substr(2);\n }\n\n return i;\n};\n\nASN1HEX.hextooidstr = function (e) {\n var h = function h(b, a) {\n if (b.length >= a) {\n return b;\n }\n\n return new Array(a - b.length + 1).join(\"0\") + b;\n };\n\n var l = [];\n var o = e.substr(0, 2);\n var f = parseInt(o, 16);\n l[0] = new String(Math.floor(f / 40));\n l[1] = new String(f % 40);\n var m = e.substr(2);\n var k = [];\n\n for (var g = 0; g < m.length / 2; g++) {\n k.push(parseInt(m.substr(g * 2, 2), 16));\n }\n\n var j = [];\n var d = \"\";\n\n for (var g = 0; g < k.length; g++) {\n if (k[g] & 128) {\n d = d + h((k[g] & 127).toString(2), 7);\n } else {\n d = d + h((k[g] & 127).toString(2), 7);\n j.push(new String(parseInt(d, 2)));\n d = \"\";\n }\n }\n\n var n = l.join(\".\");\n\n if (j.length > 0) {\n n = n + \".\" + j.join(\".\");\n }\n\n return n;\n};\n\nASN1HEX.dump = function (t, c, l, g) {\n var p = ASN1HEX;\n var j = p.getV;\n var y = p.dump;\n var w = p.getChildIdx;\n var e = t;\n\n if (t instanceof KJUR.asn1.ASN1Object) {\n e = t.getEncodedHex();\n }\n\n var q = function q(A, i) {\n if (A.length <= i * 2) {\n return A;\n } else {\n var v = A.substr(0, i) + \"..(total \" + A.length / 2 + \"bytes)..\" + A.substr(A.length - i, i);\n return v;\n }\n };\n\n if (c === undefined) {\n c = {\n ommit_long_octet: 32\n };\n }\n\n if (l === undefined) {\n l = 0;\n }\n\n if (g === undefined) {\n g = \"\";\n }\n\n var x = c.ommit_long_octet;\n var z = e.substr(l, 2);\n\n if (z == \"01\") {\n var h = j(e, l);\n\n if (h == \"00\") {\n return g + \"BOOLEAN FALSE\\n\";\n } else {\n return g + \"BOOLEAN TRUE\\n\";\n }\n }\n\n if (z == \"02\") {\n var h = j(e, l);\n return g + \"INTEGER \" + q(h, x) + \"\\n\";\n }\n\n if (z == \"03\") {\n var h = j(e, l);\n\n if (p.isASN1HEX(h.substr(2))) {\n var k = g + \"BITSTRING, encapsulates\\n\";\n k = k + y(h.substr(2), c, 0, g + \" \");\n return k;\n } else {\n return g + \"BITSTRING \" + q(h, x) + \"\\n\";\n }\n }\n\n if (z == \"04\") {\n var h = j(e, l);\n\n if (p.isASN1HEX(h)) {\n var k = g + \"OCTETSTRING, encapsulates\\n\";\n k = k + y(h, c, 0, g + \" \");\n return k;\n } else {\n return g + \"OCTETSTRING \" + q(h, x) + \"\\n\";\n }\n }\n\n if (z == \"05\") {\n return g + \"NULL\\n\";\n }\n\n if (z == \"06\") {\n var m = j(e, l);\n var b = KJUR.asn1.ASN1Util.oidHexToInt(m);\n var o = KJUR.asn1.x509.OID.oid2name(b);\n var a = b.replace(/\\./g, \" \");\n\n if (o != \"\") {\n return g + \"ObjectIdentifier \" + o + \" (\" + a + \")\\n\";\n } else {\n return g + \"ObjectIdentifier (\" + a + \")\\n\";\n }\n }\n\n if (z == \"0a\") {\n return g + \"ENUMERATED \" + parseInt(j(e, l)) + \"\\n\";\n }\n\n if (z == \"0c\") {\n return g + \"UTF8String '\" + hextoutf8(j(e, l)) + \"'\\n\";\n }\n\n if (z == \"13\") {\n return g + \"PrintableString '\" + hextoutf8(j(e, l)) + \"'\\n\";\n }\n\n if (z == \"14\") {\n return g + \"TeletexString '\" + hextoutf8(j(e, l)) + \"'\\n\";\n }\n\n if (z == \"16\") {\n return g + \"IA5String '\" + hextoutf8(j(e, l)) + \"'\\n\";\n }\n\n if (z == \"17\") {\n return g + \"UTCTime \" + hextoutf8(j(e, l)) + \"\\n\";\n }\n\n if (z == \"18\") {\n return g + \"GeneralizedTime \" + hextoutf8(j(e, l)) + \"\\n\";\n }\n\n if (z == \"1a\") {\n return g + \"VisualString '\" + hextoutf8(j(e, l)) + \"'\\n\";\n }\n\n if (z == \"1e\") {\n return g + \"BMPString '\" + hextoutf8(j(e, l)) + \"'\\n\";\n }\n\n if (z == \"30\") {\n if (e.substr(l, 4) == \"3000\") {\n return g + \"SEQUENCE {}\\n\";\n }\n\n var k = g + \"SEQUENCE\\n\";\n var d = w(e, l);\n var f = c;\n\n if ((d.length == 2 || d.length == 3) && e.substr(d[0], 2) == \"06\" && e.substr(d[d.length - 1], 2) == \"04\") {\n var o = p.oidname(j(e, d[0]));\n var r = JSON.parse(JSON.stringify(c));\n r.x509ExtName = o;\n f = r;\n }\n\n for (var u = 0; u < d.length; u++) {\n k = k + y(e, f, d[u], g + \" \");\n }\n\n return k;\n }\n\n if (z == \"31\") {\n var k = g + \"SET\\n\";\n var d = w(e, l);\n\n for (var u = 0; u < d.length; u++) {\n k = k + y(e, c, d[u], g + \" \");\n }\n\n return k;\n }\n\n var z = parseInt(z, 16);\n\n if ((z & 128) != 0) {\n var n = z & 31;\n\n if ((z & 32) != 0) {\n var k = g + \"[\" + n + \"]\\n\";\n var d = w(e, l);\n\n for (var u = 0; u < d.length; u++) {\n k = k + y(e, c, d[u], g + \" \");\n }\n\n return k;\n } else {\n var h = j(e, l);\n\n if (ASN1HEX.isASN1HEX(h)) {\n var k = g + \"[\" + n + \"]\\n\";\n k = k + y(h, c, 0, g + \" \");\n return k;\n } else {\n if (h.substr(0, 8) == \"68747470\") {\n h = hextoutf8(h);\n } else {\n if (c.x509ExtName === \"subjectAltName\" && n == 2) {\n h = hextoutf8(h);\n }\n }\n }\n\n var k = g + \"[\" + n + \"] \" + h + \"\\n\";\n return k;\n }\n }\n\n return g + \"UNKNOWN(\" + z + \") \" + j(e, l) + \"\\n\";\n};\n\nASN1HEX.isContextTag = function (c, b) {\n c = c.toLowerCase();\n var f, e;\n\n try {\n f = parseInt(c, 16);\n } catch (d) {\n return -1;\n }\n\n if (b === undefined) {\n if ((f & 192) == 128) {\n return true;\n } else {\n return false;\n }\n }\n\n try {\n var a = b.match(/^\\[[0-9]+\\]$/);\n\n if (a == null) {\n return false;\n }\n\n e = parseInt(b.substr(1, b.length - 1), 10);\n\n if (e > 31) {\n return false;\n }\n\n if ((f & 192) == 128 && (f & 31) == e) {\n return true;\n }\n\n return false;\n } catch (d) {\n return false;\n }\n};\n\nASN1HEX.isASN1HEX = function (e) {\n var d = ASN1HEX;\n\n if (e.length % 2 == 1) {\n return false;\n }\n\n var c = d.getVblen(e, 0);\n var b = e.substr(0, 2);\n var f = d.getL(e, 0);\n var a = e.length - b.length - f.length;\n\n if (a == c * 2) {\n return true;\n }\n\n return false;\n};\n\nASN1HEX.checkStrictDER = function (g, o, d, c, r) {\n var s = ASN1HEX;\n\n if (d === undefined) {\n if (typeof g != \"string\") {\n throw new Error(\"not hex string\");\n }\n\n g = g.toLowerCase();\n\n if (!KJUR.lang.String.isHex(g)) {\n throw new Error(\"not hex string\");\n }\n\n d = g.length;\n c = g.length / 2;\n\n if (c < 128) {\n r = 1;\n } else {\n r = Math.ceil(c.toString(16)) + 1;\n }\n }\n\n var k = s.getL(g, o);\n\n if (k.length > r * 2) {\n throw new Error(\"L of TLV too long: idx=\" + o);\n }\n\n var n = s.getVblen(g, o);\n\n if (n > c) {\n throw new Error(\"value of L too long than hex: idx=\" + o);\n }\n\n var q = s.getTLV(g, o);\n var f = q.length - 2 - s.getL(g, o).length;\n\n if (f !== n * 2) {\n throw new Error(\"V string length and L's value not the same:\" + f + \"/\" + n * 2);\n }\n\n if (o === 0) {\n if (g.length != q.length) {\n throw new Error(\"total length and TLV length unmatch:\" + g.length + \"!=\" + q.length);\n }\n }\n\n var b = g.substr(o, 2);\n\n if (b === \"02\") {\n var a = s.getVidx(g, o);\n\n if (g.substr(a, 2) == \"00\" && g.charCodeAt(a + 2) < 56) {\n throw new Error(\"not least zeros for DER INTEGER\");\n }\n }\n\n if (parseInt(b, 16) & 32) {\n var p = s.getVblen(g, o);\n var m = 0;\n var l = s.getChildIdx(g, o);\n\n for (var e = 0; e < l.length; e++) {\n var j = s.getTLV(g, l[e]);\n m += j.length;\n s.checkStrictDER(g, l[e], d, c, r);\n }\n\n if (p * 2 != m) {\n throw new Error(\"sum of children's TLV length and L unmatch: \" + p * 2 + \"!=\" + m);\n }\n }\n};\n\nASN1HEX.oidname = function (a) {\n var c = KJUR.asn1;\n\n if (KJUR.lang.String.isHex(a)) {\n a = c.ASN1Util.oidHexToInt(a);\n }\n\n var b = c.x509.OID.oid2name(a);\n\n if (b === \"\") {\n b = a;\n }\n\n return b;\n};\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.asn1 == \"undefined\" || !KJUR.asn1) {\n KJUR.asn1 = {};\n}\n\nif (typeof KJUR.asn1.x509 == \"undefined\" || !KJUR.asn1.x509) {\n KJUR.asn1.x509 = {};\n}\n\nKJUR.asn1.x509.Certificate = function (h) {\n KJUR.asn1.x509.Certificate.superclass.constructor.call(this);\n var d = KJUR,\n c = d.asn1,\n f = c.DERBitString,\n b = c.DERSequence,\n g = c.x509,\n a = g.TBSCertificate,\n e = g.AlgorithmIdentifier;\n this.params = undefined;\n\n this.setByParam = function (i) {\n this.params = i;\n };\n\n this.sign = function () {\n var k = this.params;\n var i = k.tbsobj.getEncodedHex();\n var j = new KJUR.crypto.Signature({\n alg: k.sigalg\n });\n j.init(k.cakey);\n j.updateHex(i);\n k.sighex = j.sign();\n };\n\n this.getPEM = function () {\n return hextopem(this.getEncodedHex(), \"CERTIFICATE\");\n };\n\n this.getEncodedHex = function () {\n var k = this.params;\n\n if (k.tbsobj == undefined || k.tbsobj == null) {\n k.tbsobj = new a(k);\n }\n\n if (k.sighex == undefined && k.cakey != undefined) {\n this.sign();\n }\n\n if (k.sighex == undefined) {\n throw new Error(\"sighex or cakey parameter not defined\");\n }\n\n var i = [];\n i.push(k.tbsobj);\n i.push(new e({\n name: k.sigalg\n }));\n i.push(new f({\n hex: \"00\" + k.sighex\n }));\n var j = new b({\n array: i\n });\n return j.getEncodedHex();\n };\n\n if (h != undefined) {\n this.params = h;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.Certificate, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.TBSCertificate = function (f) {\n KJUR.asn1.x509.TBSCertificate.superclass.constructor.call(this);\n var b = KJUR,\n i = b.asn1,\n d = i.x509,\n c = i.DERTaggedObject,\n h = i.DERInteger,\n g = i.DERSequence,\n l = d.AlgorithmIdentifier,\n e = d.Time,\n a = d.X500Name,\n j = d.Extensions,\n k = d.SubjectPublicKeyInfo;\n this.params = null;\n\n this.setByParam = function (m) {\n this.params = m;\n };\n\n this.getEncodedHex = function () {\n var n = [];\n var q = this.params;\n\n if (q.version != undefined || q.version != 1) {\n var m = 2;\n\n if (q.version != undefined) {\n m = q.version - 1;\n }\n\n var p = new c({\n obj: new h({\n \"int\": m\n })\n });\n n.push(p);\n }\n\n n.push(new h(q.serial));\n n.push(new l({\n name: q.sigalg\n }));\n n.push(new a(q.issuer));\n n.push(new g({\n array: [new e({\n str: q.notbefore\n }), new e({\n str: q.notafter\n })]\n }));\n n.push(new a(q.subject));\n n.push(new k(KEYUTIL.getKey(q.sbjpubkey)));\n\n if (q.ext !== undefined && q.ext.length > 0) {\n n.push(new c({\n tag: \"a3\",\n obj: new j(q.ext)\n }));\n }\n\n var o = new KJUR.asn1.DERSequence({\n array: n\n });\n return o.getEncodedHex();\n };\n\n if (f !== undefined) {\n this.setByParam(f);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.TBSCertificate, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.Extensions = function (d) {\n KJUR.asn1.x509.Extensions.superclass.constructor.call(this);\n var c = KJUR,\n b = c.asn1,\n a = b.DERSequence,\n e = b.x509;\n this.aParam = [];\n\n this.setByParam = function (f) {\n this.aParam = f;\n };\n\n this.getEncodedHex = function () {\n var f = [];\n\n for (var h = 0; h < this.aParam.length; h++) {\n var l = this.aParam[h];\n var k = l.extname;\n var j = null;\n\n if (l.extn != undefined) {\n j = new e.PrivateExtension(l);\n } else {\n if (k == \"subjectKeyIdentifier\") {\n j = new e.SubjectKeyIdentifier(l);\n } else {\n if (k == \"keyUsage\") {\n j = new e.KeyUsage(l);\n } else {\n if (k == \"subjectAltName\") {\n j = new e.SubjectAltName(l);\n } else {\n if (k == \"issuerAltName\") {\n j = new e.IssuerAltName(l);\n } else {\n if (k == \"basicConstraints\") {\n j = new e.BasicConstraints(l);\n } else {\n if (k == \"cRLDistributionPoints\") {\n j = new e.CRLDistributionPoints(l);\n } else {\n if (k == \"certificatePolicies\") {\n j = new e.CertificatePolicies(l);\n } else {\n if (k == \"authorityKeyIdentifier\") {\n j = new e.AuthorityKeyIdentifier(l);\n } else {\n if (k == \"extKeyUsage\") {\n j = new e.ExtKeyUsage(l);\n } else {\n if (k == \"authorityInfoAccess\") {\n j = new e.AuthorityInfoAccess(l);\n } else {\n if (k == \"cRLNumber\") {\n j = new e.CRLNumber(l);\n } else {\n if (k == \"cRLReason\") {\n j = new e.CRLReason(l);\n } else {\n if (k == \"ocspNonce\") {\n j = new e.OCSPNonce(l);\n } else {\n if (k == \"ocspNoCheck\") {\n j = new e.OCSPNoCheck(l);\n } else {\n throw new Error(\"extension not supported:\" + JSON.stringify(l));\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n if (j != null) {\n f.push(j);\n }\n }\n\n var g = new a({\n array: f\n });\n return g.getEncodedHex();\n };\n\n if (d != undefined) {\n this.setByParam(d);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.Extensions, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.Extension = function (d) {\n KJUR.asn1.x509.Extension.superclass.constructor.call(this);\n var f = null,\n a = KJUR,\n e = a.asn1,\n h = e.DERObjectIdentifier,\n i = e.DEROctetString,\n b = e.DERBitString,\n g = e.DERBoolean,\n c = e.DERSequence;\n\n this.getEncodedHex = function () {\n var m = new h({\n oid: this.oid\n });\n var l = new i({\n hex: this.getExtnValueHex()\n });\n var k = new Array();\n k.push(m);\n\n if (this.critical) {\n k.push(new g());\n }\n\n k.push(l);\n var j = new c({\n array: k\n });\n return j.getEncodedHex();\n };\n\n this.critical = false;\n\n if (d !== undefined) {\n if (d.critical !== undefined) {\n this.critical = d.critical;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.Extension, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.KeyUsage = function (f) {\n KJUR.asn1.x509.KeyUsage.superclass.constructor.call(this, f);\n var a = X509.KEYUSAGE_NAME;\n\n this.getExtnValueHex = function () {\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"2.5.29.15\";\n\n if (f !== undefined) {\n if (f.bin !== undefined) {\n this.asn1ExtnValue = new KJUR.asn1.DERBitString(f);\n }\n\n if (f.names !== undefined && f.names.length !== undefined) {\n var e = f.names;\n var d = \"000000000\";\n\n for (var c = 0; c < e.length; c++) {\n for (var b = 0; b < a.length; b++) {\n if (e[c] === a[b]) {\n d = d.substring(0, b) + \"1\" + d.substring(b + 1, d.length);\n }\n }\n }\n\n this.asn1ExtnValue = new KJUR.asn1.DERBitString({\n bin: d\n });\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.KeyUsage, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.BasicConstraints = function (g) {\n KJUR.asn1.x509.BasicConstraints.superclass.constructor.call(this, g);\n var c = KJUR.asn1,\n e = c.DERBoolean,\n f = c.DERInteger,\n b = c.DERSequence;\n var a = false;\n var d = -1;\n\n this.getExtnValueHex = function () {\n var i = new Array();\n\n if (this.cA) {\n i.push(new e());\n }\n\n if (this.pathLen > -1) {\n i.push(new f({\n \"int\": this.pathLen\n }));\n }\n\n var h = new b({\n array: i\n });\n this.asn1ExtnValue = h;\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"2.5.29.19\";\n this.cA = false;\n this.pathLen = -1;\n\n if (g !== undefined) {\n if (g.cA !== undefined) {\n this.cA = g.cA;\n }\n\n if (g.pathLen !== undefined) {\n this.pathLen = g.pathLen;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.BasicConstraints, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.CRLDistributionPoints = function (d) {\n KJUR.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this, d);\n var b = KJUR,\n a = b.asn1,\n c = a.x509;\n\n this.getExtnValueHex = function () {\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.setByDPArray = function (e) {\n var f = [];\n\n for (var g = 0; g < e.length; g++) {\n if (e[g] instanceof KJUR.asn1.ASN1Object) {\n f.push(e[g]);\n } else {\n var h = new c.DistributionPoint(e[g]);\n f.push(h);\n }\n }\n\n this.asn1ExtnValue = new a.DERSequence({\n array: f\n });\n };\n\n this.setByOneURI = function (f) {\n var e = new c.DistributionPoint({\n fulluri: f\n });\n this.setByDPArray([e]);\n };\n\n this.oid = \"2.5.29.31\";\n\n if (d !== undefined) {\n if (d.array !== undefined) {\n this.setByDPArray(d.array);\n } else {\n if (d.uri !== undefined) {\n this.setByOneURI(d.uri);\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.CRLDistributionPoints, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.DistributionPoint = function (e) {\n KJUR.asn1.x509.DistributionPoint.superclass.constructor.call(this);\n var a = null,\n c = KJUR,\n b = c.asn1,\n d = b.x509.DistributionPointName;\n\n this.getEncodedHex = function () {\n var f = new b.DERSequence();\n\n if (this.asn1DP != null) {\n var g = new b.DERTaggedObject({\n explicit: true,\n tag: \"a0\",\n obj: this.asn1DP\n });\n f.appendASN1Object(g);\n }\n\n this.hTLV = f.getEncodedHex();\n return this.hTLV;\n };\n\n if (e !== undefined) {\n if (e.dpobj !== undefined) {\n this.asn1DP = e.dpobj;\n } else {\n if (e.dpname !== undefined) {\n this.asn1DP = new d(e.dpname);\n } else {\n if (e.fulluri !== undefined) {\n this.asn1DP = new d({\n full: [{\n uri: e.fulluri\n }]\n });\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.DistributionPoint, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.DistributionPointName = function (h) {\n KJUR.asn1.x509.DistributionPointName.superclass.constructor.call(this);\n var g = null,\n d = null,\n a = null,\n f = null,\n c = KJUR,\n b = c.asn1,\n e = b.DERTaggedObject;\n\n this.getEncodedHex = function () {\n if (this.type != \"full\") {\n throw new Error(\"currently type shall be 'full': \" + this.type);\n }\n\n this.asn1Obj = new e({\n explicit: false,\n tag: this.tag,\n obj: this.asn1V\n });\n this.hTLV = this.asn1Obj.getEncodedHex();\n return this.hTLV;\n };\n\n if (h !== undefined) {\n if (b.x509.GeneralNames.prototype.isPrototypeOf(h)) {\n this.type = \"full\";\n this.tag = \"a0\";\n this.asn1V = h;\n } else {\n if (h.full !== undefined) {\n this.type = \"full\";\n this.tag = \"a0\";\n this.asn1V = new b.x509.GeneralNames(h.full);\n } else {\n throw new Error(\"This class supports GeneralNames only as argument\");\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.DistributionPointName, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.CertificatePolicies = function (f) {\n KJUR.asn1.x509.CertificatePolicies.superclass.constructor.call(this, f);\n var c = KJUR,\n b = c.asn1,\n e = b.x509,\n a = b.DERSequence,\n d = e.PolicyInformation;\n this.params = null;\n\n this.getExtnValueHex = function () {\n var j = [];\n\n for (var h = 0; h < this.params.array.length; h++) {\n j.push(new d(this.params.array[h]));\n }\n\n var g = new a({\n array: j\n });\n this.asn1ExtnValue = g;\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"2.5.29.32\";\n\n if (f !== undefined) {\n this.params = f;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.CertificatePolicies, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.PolicyInformation = function (d) {\n KJUR.asn1.x509.PolicyInformation.superclass.constructor.call(this, d);\n var c = KJUR.asn1,\n b = c.DERSequence,\n e = c.DERObjectIdentifier,\n a = c.x509.PolicyQualifierInfo;\n this.params = null;\n\n this.getEncodedHex = function () {\n if (this.params.policyoid === undefined && this.params.array === undefined) {\n throw new Error(\"parameter oid and array missing\");\n }\n\n var f = [new e(this.params.policyoid)];\n\n if (this.params.array !== undefined) {\n var j = [];\n\n for (var h = 0; h < this.params.array.length; h++) {\n j.push(new a(this.params.array[h]));\n }\n\n if (j.length > 0) {\n f.push(new b({\n array: j\n }));\n }\n }\n\n var g = new b({\n array: f\n });\n return g.getEncodedHex();\n };\n\n if (d !== undefined) {\n this.params = d;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.PolicyInformation, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.PolicyQualifierInfo = function (e) {\n KJUR.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this, e);\n var c = KJUR.asn1,\n b = c.DERSequence,\n d = c.DERIA5String,\n f = c.DERObjectIdentifier,\n a = c.x509.UserNotice;\n this.params = null;\n\n this.getEncodedHex = function () {\n if (this.params.cps !== undefined) {\n var g = new b({\n array: [new f({\n oid: \"1.3.6.1.5.5.7.2.1\"\n }), new d({\n str: this.params.cps\n })]\n });\n return g.getEncodedHex();\n }\n\n if (this.params.unotice != undefined) {\n var g = new b({\n array: [new f({\n oid: \"1.3.6.1.5.5.7.2.2\"\n }), new a(this.params.unotice)]\n });\n return g.getEncodedHex();\n }\n };\n\n if (e !== undefined) {\n this.params = e;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.PolicyQualifierInfo, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.UserNotice = function (e) {\n KJUR.asn1.x509.UserNotice.superclass.constructor.call(this, e);\n var a = KJUR.asn1.DERSequence,\n d = KJUR.asn1.DERInteger,\n c = KJUR.asn1.x509.DisplayText,\n b = KJUR.asn1.x509.NoticeReference;\n this.params = null;\n\n this.getEncodedHex = function () {\n var f = [];\n\n if (this.params.noticeref !== undefined) {\n f.push(new b(this.params.noticeref));\n }\n\n if (this.params.exptext !== undefined) {\n f.push(new c(this.params.exptext));\n }\n\n var g = new a({\n array: f\n });\n return g.getEncodedHex();\n };\n\n if (e !== undefined) {\n this.params = e;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.UserNotice, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.NoticeReference = function (d) {\n KJUR.asn1.x509.NoticeReference.superclass.constructor.call(this, d);\n var a = KJUR.asn1.DERSequence,\n c = KJUR.asn1.DERInteger,\n b = KJUR.asn1.x509.DisplayText;\n this.params = null;\n\n this.getEncodedHex = function () {\n var f = [];\n\n if (this.params.org !== undefined) {\n f.push(new b(this.params.org));\n }\n\n if (this.params.noticenum !== undefined) {\n var h = [];\n var e = this.params.noticenum;\n\n for (var j = 0; j < e.length; j++) {\n h.push(new c(e[j]));\n }\n\n f.push(new a({\n array: h\n }));\n }\n\n if (f.length == 0) {\n throw new Error(\"parameter is empty\");\n }\n\n var g = new a({\n array: f\n });\n return g.getEncodedHex();\n };\n\n if (d !== undefined) {\n this.params = d;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.NoticeReference, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.DisplayText = function (a) {\n KJUR.asn1.x509.DisplayText.superclass.constructor.call(this, a);\n this.hT = \"0c\";\n\n if (a !== undefined) {\n if (a.type === \"ia5\") {\n this.hT = \"16\";\n } else {\n if (a.type === \"vis\") {\n this.hT = \"1a\";\n } else {\n if (a.type === \"bmp\") {\n this.hT = \"1e\";\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.DisplayText, KJUR.asn1.DERAbstractString);\n\nKJUR.asn1.x509.ExtKeyUsage = function (c) {\n KJUR.asn1.x509.ExtKeyUsage.superclass.constructor.call(this, c);\n var b = KJUR,\n a = b.asn1;\n\n this.setPurposeArray = function (d) {\n this.asn1ExtnValue = new a.DERSequence();\n\n for (var e = 0; e < d.length; e++) {\n var f = new a.DERObjectIdentifier(d[e]);\n this.asn1ExtnValue.appendASN1Object(f);\n }\n };\n\n this.getExtnValueHex = function () {\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"2.5.29.37\";\n\n if (c !== undefined) {\n if (c.array !== undefined) {\n this.setPurposeArray(c.array);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.ExtKeyUsage, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.AuthorityKeyIdentifier = function (f) {\n KJUR.asn1.x509.AuthorityKeyIdentifier.superclass.constructor.call(this, f);\n var b = KJUR,\n a = b.asn1,\n d = a.DERTaggedObject,\n e = a.x509.GeneralNames,\n c = b.crypto.Util.isKey;\n this.asn1KID = null;\n this.asn1CertIssuer = null;\n this.asn1CertSN = null;\n\n this.getExtnValueHex = function () {\n var h = new Array();\n\n if (this.asn1KID) {\n h.push(new d({\n explicit: false,\n tag: \"80\",\n obj: this.asn1KID\n }));\n }\n\n if (this.asn1CertIssuer) {\n h.push(new d({\n explicit: false,\n tag: \"a1\",\n obj: new e([{\n dn: this.asn1CertIssuer\n }])\n }));\n }\n\n if (this.asn1CertSN) {\n h.push(new d({\n explicit: false,\n tag: \"82\",\n obj: this.asn1CertSN\n }));\n }\n\n var g = new a.DERSequence({\n array: h\n });\n this.asn1ExtnValue = g;\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.setKIDByParam = function (i) {\n if (i.str !== undefined || i.hex !== undefined) {\n this.asn1KID = new KJUR.asn1.DEROctetString(i);\n } else {\n if (_typeof(i) === \"object\" && KJUR.crypto.Util.isKey(i) || typeof i === \"string\" && i.indexOf(\"BEGIN \") != -1) {\n var h = i;\n\n if (typeof i === \"string\") {\n h = KEYUTIL.getKey(i);\n }\n\n var g = KEYUTIL.getKeyID(h);\n this.asn1KID = new KJUR.asn1.DEROctetString({\n hex: g\n });\n }\n }\n };\n\n this.setCertIssuerByParam = function (g) {\n if (g.str !== undefined || g.ldapstr !== undefined || g.hex !== undefined || g.certsubject !== undefined || g.certissuer !== undefined) {\n this.asn1CertIssuer = new KJUR.asn1.x509.X500Name(g);\n } else {\n if (typeof g === \"string\" && g.indexOf(\"BEGIN \") != -1 && g.indexOf(\"CERTIFICATE\") != -1) {\n this.asn1CertIssuer = new KJUR.asn1.x509.X500Name({\n certissuer: g\n });\n }\n }\n };\n\n this.setCertSNByParam = function (i) {\n if (i.str !== undefined || i.bigint !== undefined || i.hex !== undefined) {\n this.asn1CertSN = new KJUR.asn1.DERInteger(i);\n } else {\n if (typeof i === \"string\" && i.indexOf(\"BEGIN \") != -1 && i.indexOf(\"CERTIFICATE\")) {\n var g = new X509();\n g.readCertPEM(i);\n var h = g.getSerialNumberHex();\n this.asn1CertSN = new KJUR.asn1.DERInteger({\n hex: h\n });\n }\n }\n };\n\n this.oid = \"2.5.29.35\";\n\n if (f !== undefined) {\n if (f.kid !== undefined) {\n this.setKIDByParam(f.kid);\n }\n\n if (f.issuer !== undefined) {\n this.setCertIssuerByParam(f.issuer);\n }\n\n if (f.sn !== undefined) {\n this.setCertSNByParam(f.sn);\n }\n\n if (f.issuersn !== undefined && typeof f.issuersn === \"string\" && f.issuersn.indexOf(\"BEGIN \") != -1 && f.issuersn.indexOf(\"CERTIFICATE\")) {\n this.setCertSNByParam(f.issuersn);\n this.setCertIssuerByParam(f.issuersn);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.AuthorityKeyIdentifier, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.SubjectKeyIdentifier = function (d) {\n KJUR.asn1.x509.SubjectKeyIdentifier.superclass.constructor.call(this, d);\n var b = KJUR,\n a = b.asn1,\n c = a.DEROctetString;\n this.asn1KID = null;\n\n this.getExtnValueHex = function () {\n this.asn1ExtnValue = this.asn1KID;\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.setKIDByParam = function (g) {\n if (g.str !== undefined || g.hex !== undefined) {\n this.asn1KID = new c(g);\n } else {\n if (_typeof(g) === \"object\" && KJUR.crypto.Util.isKey(g) || typeof g === \"string\" && g.indexOf(\"BEGIN\") != -1) {\n var f = g;\n\n if (typeof g === \"string\") {\n f = KEYUTIL.getKey(g);\n }\n\n var e = KEYUTIL.getKeyID(f);\n this.asn1KID = new KJUR.asn1.DEROctetString({\n hex: e\n });\n }\n }\n };\n\n this.oid = \"2.5.29.14\";\n\n if (d !== undefined) {\n if (d.kid !== undefined) {\n this.setKIDByParam(d.kid);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.SubjectKeyIdentifier, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.AuthorityInfoAccess = function (a) {\n KJUR.asn1.x509.AuthorityInfoAccess.superclass.constructor.call(this, a);\n\n this.setAccessDescriptionArray = function (k) {\n var d = new Array(),\n b = KJUR,\n g = b.asn1,\n c = g.DERSequence,\n j = g.DERObjectIdentifier,\n l = g.x509.GeneralName;\n\n for (var f = 0; f < k.length; f++) {\n var e;\n var h = k[f];\n\n if (h.ocsp !== undefined) {\n e = new c({\n array: [new j({\n oid: \"1.3.6.1.5.5.7.48.1\"\n }), new l({\n uri: h.ocsp\n })]\n });\n } else {\n if (h.caissuer !== undefined) {\n e = new c({\n array: [new j({\n oid: \"1.3.6.1.5.5.7.48.2\"\n }), new l({\n uri: h.caissuer\n })]\n });\n } else {\n throw new Error(\"unknown AccessMethod parameter: \" + JSON.stringify(h));\n }\n }\n\n d.push(e);\n }\n\n this.asn1ExtnValue = new c({\n array: d\n });\n };\n\n this.getExtnValueHex = function () {\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"1.3.6.1.5.5.7.1.1\";\n\n if (a !== undefined) {\n if (a.array !== undefined) {\n this.setAccessDescriptionArray(a.array);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.AuthorityInfoAccess, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.SubjectAltName = function (a) {\n KJUR.asn1.x509.SubjectAltName.superclass.constructor.call(this, a);\n\n this.setNameArray = function (b) {\n this.asn1ExtnValue = new KJUR.asn1.x509.GeneralNames(b);\n };\n\n this.getExtnValueHex = function () {\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"2.5.29.17\";\n\n if (a !== undefined) {\n if (a.array !== undefined) {\n this.setNameArray(a.array);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.SubjectAltName, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.IssuerAltName = function (a) {\n KJUR.asn1.x509.IssuerAltName.superclass.constructor.call(this, a);\n\n this.setNameArray = function (b) {\n this.asn1ExtnValue = new KJUR.asn1.x509.GeneralNames(b);\n };\n\n this.getExtnValueHex = function () {\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"2.5.29.18\";\n\n if (a !== undefined) {\n if (a.array !== undefined) {\n this.setNameArray(a.array);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.IssuerAltName, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.PrivateExtension = function (f) {\n KJUR.asn1.x509.PrivateExtension.superclass.constructor.call(this, f);\n var c = KJUR,\n e = c.lang.String.isHex,\n b = c.asn1,\n d = b.x509.OID.name2oid,\n a = b.ASN1Util.newObject;\n this.params = null;\n\n this.setByParam = function (g) {\n this.oid = d(g.extname);\n this.params = g;\n };\n\n this.getExtnValueHex = function () {\n if (this.params.extname == undefined || this.params.extn == undefined) {\n throw new Error(\"extname or extnhex not specified\");\n }\n\n var h = this.params.extn;\n\n if (typeof h == \"string\" && e(h)) {\n return h;\n } else {\n if (_typeof(h) == \"object\") {\n try {\n return a(h).getEncodedHex();\n } catch (g) {}\n }\n }\n\n throw new Error(\"unsupported extn value\");\n };\n\n if (f != undefined) {\n this.setByParam(f);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.PrivateExtension, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.CRL = function (g) {\n KJUR.asn1.x509.CRL.superclass.constructor.call(this);\n var c = KJUR,\n b = c.asn1,\n a = b.DERSequence,\n e = b.DERBitString,\n f = b.x509,\n d = f.AlgorithmIdentifier,\n h = f.TBSCertList;\n this.params = undefined;\n\n this.setByParam = function (i) {\n this.params = i;\n };\n\n this.sign = function () {\n var j = new h(this.params).getEncodedHex();\n var k = new KJUR.crypto.Signature({\n alg: this.params.sigalg\n });\n k.init(this.params.cakey);\n k.updateHex(j);\n var i = k.sign();\n this.params.sighex = i;\n };\n\n this.getPEM = function () {\n return hextopem(this.getEncodedHex(), \"X509 CRL\");\n };\n\n this.getEncodedHex = function () {\n var k = this.params;\n\n if (k.tbsobj == undefined) {\n k.tbsobj = new h(k);\n }\n\n if (k.sighex == undefined && k.cakey != undefined) {\n this.sign();\n }\n\n if (k.sighex == undefined) {\n throw new Error(\"sighex or cakey parameter not defined\");\n }\n\n var i = [];\n i.push(k.tbsobj);\n i.push(new d({\n name: k.sigalg\n }));\n i.push(new e({\n hex: \"00\" + k.sighex\n }));\n var j = new a({\n array: i\n });\n return j.getEncodedHex();\n };\n\n if (g != undefined) {\n this.params = g;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.CRL, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.TBSCertList = function (f) {\n KJUR.asn1.x509.TBSCertList.superclass.constructor.call(this);\n var b = KJUR,\n i = b.asn1,\n h = i.DERInteger,\n g = i.DERSequence,\n c = i.DERTaggedObject,\n k = i.DERObjectIdentifier,\n d = i.x509,\n l = d.AlgorithmIdentifier,\n e = d.Time,\n j = d.Extensions,\n a = d.X500Name;\n this.params = null;\n\n this.setByParam = function (m) {\n this.params = m;\n };\n\n this.getRevCertSequence = function () {\n var m = [];\n var n = this.params.revcert;\n\n for (var o = 0; o < n.length; o++) {\n var p = [new h(n[o].sn), new e(n[o].date)];\n\n if (n[o].ext != undefined) {\n p.push(new j(n[o].ext));\n }\n\n m.push(new g({\n array: p\n }));\n }\n\n return new g({\n array: m\n });\n };\n\n this.getEncodedHex = function () {\n var n = [];\n var r = this.params;\n\n if (r.version != undefined) {\n var m = r.version - 1;\n var p = new h({\n \"int\": m\n });\n n.push(p);\n }\n\n n.push(new l({\n name: r.sigalg\n }));\n n.push(new a(r.issuer));\n n.push(new e(r.thisupdate));\n\n if (r.nextupdate != undefined) {\n n.push(new e(r.nextupdate));\n }\n\n if (r.revcert != undefined) {\n n.push(this.getRevCertSequence());\n }\n\n if (r.ext != undefined) {\n var q = new j(r.ext);\n n.push(new c({\n tag: \"a0\",\n explicit: true,\n obj: q\n }));\n }\n\n var o = new g({\n array: n\n });\n return o.getEncodedHex();\n };\n\n if (f !== undefined) {\n this.setByParam(f);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.TBSCertList, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.CRLEntry = function (e) {\n KJUR.asn1.x509.CRLEntry.superclass.constructor.call(this);\n var d = null,\n c = null,\n b = KJUR,\n a = b.asn1;\n\n this.setCertSerial = function (f) {\n this.sn = new a.DERInteger(f);\n };\n\n this.setRevocationDate = function (f) {\n this.time = new a.x509.Time(f);\n };\n\n this.getEncodedHex = function () {\n var f = new a.DERSequence({\n array: [this.sn, this.time]\n });\n this.TLV = f.getEncodedHex();\n return this.TLV;\n };\n\n if (e !== undefined) {\n if (e.time !== undefined) {\n this.setRevocationDate(e.time);\n }\n\n if (e.sn !== undefined) {\n this.setCertSerial(e.sn);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.CRLEntry, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.CRLNumber = function (a) {\n KJUR.asn1.x509.CRLNumber.superclass.constructor.call(this, a);\n this.params = undefined;\n\n this.getExtnValueHex = function () {\n this.asn1ExtnValue = new KJUR.asn1.DERInteger(this.params.num);\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"2.5.29.20\";\n\n if (a != undefined) {\n this.params = a;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.CRLNumber, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.CRLReason = function (a) {\n KJUR.asn1.x509.CRLReason.superclass.constructor.call(this, a);\n this.params = undefined;\n\n this.getExtnValueHex = function () {\n this.asn1ExtnValue = new KJUR.asn1.DEREnumerated(this.params.code);\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"2.5.29.21\";\n\n if (a != undefined) {\n this.params = a;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.CRLReason, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.OCSPNonce = function (a) {\n KJUR.asn1.x509.OCSPNonce.superclass.constructor.call(this, a);\n this.params = undefined;\n\n this.getExtnValueHex = function () {\n this.asn1ExtnValue = new KJUR.asn1.DEROctetString(this.params);\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"1.3.6.1.5.5.7.48.1.2\";\n\n if (a != undefined) {\n this.params = a;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.OCSPNonce, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.OCSPNoCheck = function (a) {\n KJUR.asn1.x509.OCSPNoCheck.superclass.constructor.call(this, a);\n this.params = undefined;\n\n this.getExtnValueHex = function () {\n this.asn1ExtnValue = new KJUR.asn1.DERNull();\n return this.asn1ExtnValue.getEncodedHex();\n };\n\n this.oid = \"1.3.6.1.5.5.7.48.1.5\";\n\n if (a != undefined) {\n this.params = a;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.OCSPNoCheck, KJUR.asn1.x509.Extension);\n\nKJUR.asn1.x509.X500Name = function (f) {\n KJUR.asn1.x509.X500Name.superclass.constructor.call(this);\n this.asn1Array = [];\n this.paramArray = [];\n this.sRule = \"utf8\";\n var c = KJUR,\n b = c.asn1,\n e = b.x509,\n d = e.RDN,\n a = pemtohex;\n\n this.setByString = function (g, l) {\n if (l !== undefined) {\n this.sRule = l;\n }\n\n var k = g.split(\"/\");\n k.shift();\n var j = [];\n\n for (var m = 0; m < k.length; m++) {\n if (k[m].match(/^[^=]+=.+$/)) {\n j.push(k[m]);\n } else {\n var h = j.length - 1;\n j[h] = j[h] + \"/\" + k[m];\n }\n }\n\n for (var m = 0; m < j.length; m++) {\n this.asn1Array.push(new d({\n str: j[m],\n rule: this.sRule\n }));\n }\n };\n\n this.setByLdapString = function (g, h) {\n if (h !== undefined) {\n this.sRule = h;\n }\n\n var i = e.X500Name.ldapToCompat(g);\n this.setByString(i, h);\n };\n\n this.setByObject = function (j, i) {\n if (i !== undefined) {\n this.sRule = i;\n }\n\n for (var g in j) {\n if (j.hasOwnProperty(g)) {\n var h = new d({\n str: g + \"=\" + j[g],\n rule: this.sRule\n });\n this.asn1Array ? this.asn1Array.push(h) : this.asn1Array = [h];\n }\n }\n };\n\n this.setByParam = function (h) {\n if (h.rule !== undefined) {\n this.sRule = h.rule;\n }\n\n if (h.array !== undefined) {\n this.paramArray = h.array;\n } else {\n if (h.str !== undefined) {\n this.setByString(h.str);\n } else {\n if (h.ldapstr !== undefined) {\n this.setByLdapString(h.ldapstr);\n } else {\n if (h.hex !== undefined) {\n this.hTLV = h.hex;\n } else {\n if (h.certissuer !== undefined) {\n var g = new X509();\n g.readCertPEM(h.certissuer);\n this.hTLV = g.getIssuerHex();\n } else {\n if (h.certsubject !== undefined) {\n var g = new X509();\n g.readCertPEM(h.certsubject);\n this.hTLV = g.getSubjectHex();\n } else {\n if (_typeof(h) === \"object\" && h.certsubject === undefined && h.certissuer === undefined) {\n this.setByObject(h);\n }\n }\n }\n }\n }\n }\n }\n };\n\n this.getEncodedHex = function () {\n if (typeof this.hTLV == \"string\") {\n return this.hTLV;\n }\n\n if (this.asn1Array.length == 0 && this.paramArray.length > 0) {\n for (var g = 0; g < this.paramArray.length; g++) {\n var k = {\n array: this.paramArray[g]\n };\n\n if (this.sRule != \"utf8\") {\n k.rule = this.sRule;\n }\n\n var h = new d(k);\n this.asn1Array.push(h);\n }\n }\n\n var j = new b.DERSequence({\n array: this.asn1Array\n });\n this.hTLV = j.getEncodedHex();\n return this.hTLV;\n };\n\n if (f !== undefined) {\n this.setByParam(f);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.X500Name, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.X500Name.compatToLDAP = function (d) {\n if (d.substr(0, 1) !== \"/\") {\n throw \"malformed input\";\n }\n\n var b = \"\";\n d = d.substr(1);\n var c = d.split(\"/\");\n c.reverse();\n c = c.map(function (a) {\n return a.replace(/,/, \"\\\\,\");\n });\n return c.join(\",\");\n};\n\nKJUR.asn1.x509.X500Name.onelineToLDAP = function (a) {\n return KJUR.asn1.x509.X500Name.compatToLDAP(a);\n};\n\nKJUR.asn1.x509.X500Name.ldapToCompat = function (g) {\n var c = g.split(\",\");\n var e = false;\n var b = [];\n\n for (var f = 0; c.length > 0; f++) {\n var h = c.shift();\n\n if (e === true) {\n var d = b.pop();\n var j = (d + \",\" + h).replace(/\\\\,/g, \",\");\n b.push(j);\n e = false;\n } else {\n b.push(h);\n }\n\n if (h.substr(-1, 1) === \"\\\\\") {\n e = true;\n }\n }\n\n b = b.map(function (a) {\n return a.replace(\"/\", \"\\\\/\");\n });\n b.reverse();\n return \"/\" + b.join(\"/\");\n};\n\nKJUR.asn1.x509.X500Name.ldapToOneline = function (a) {\n return KJUR.asn1.x509.X500Name.ldapToCompat(a);\n};\n\nKJUR.asn1.x509.RDN = function (b) {\n KJUR.asn1.x509.RDN.superclass.constructor.call(this);\n this.asn1Array = [];\n this.paramArray = [];\n this.sRule = \"utf8\";\n var a = KJUR.asn1.x509.AttributeTypeAndValue;\n\n this.setByParam = function (c) {\n if (c.rule !== undefined) {\n this.sRule = c.rule;\n }\n\n if (c.str !== undefined) {\n this.addByMultiValuedString(c.str);\n }\n\n if (c.array !== undefined) {\n this.paramArray = c.array;\n }\n };\n\n this.addByString = function (c) {\n this.asn1Array.push(new KJUR.asn1.x509.AttributeTypeAndValue({\n str: c,\n rule: this.sRule\n }));\n };\n\n this.addByMultiValuedString = function (e) {\n var c = KJUR.asn1.x509.RDN.parseString(e);\n\n for (var d = 0; d < c.length; d++) {\n this.addByString(c[d]);\n }\n };\n\n this.getEncodedHex = function () {\n if (this.asn1Array.length == 0 && this.paramArray.length > 0) {\n for (var d = 0; d < this.paramArray.length; d++) {\n var f = this.paramArray[d];\n\n if (f.rule !== undefined && this.sRule != \"utf8\") {\n f.rule = this.sRule;\n }\n\n var c = new a(f);\n this.asn1Array.push(c);\n }\n }\n\n var e = new KJUR.asn1.DERSet({\n array: this.asn1Array\n });\n this.TLV = e.getEncodedHex();\n return this.TLV;\n };\n\n if (b !== undefined) {\n this.setByParam(b);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.RDN, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.RDN.parseString = function (m) {\n var j = m.split(/\\+/);\n var h = false;\n var c = [];\n\n for (var g = 0; j.length > 0; g++) {\n var k = j.shift();\n\n if (h === true) {\n var f = c.pop();\n var d = (f + \"+\" + k).replace(/\\\\\\+/g, \"+\");\n c.push(d);\n h = false;\n } else {\n c.push(k);\n }\n\n if (k.substr(-1, 1) === \"\\\\\") {\n h = true;\n }\n }\n\n var l = false;\n var b = [];\n\n for (var g = 0; c.length > 0; g++) {\n var k = c.shift();\n\n if (l === true) {\n var e = b.pop();\n\n if (k.match(/\"$/)) {\n var d = (e + \"+\" + k).replace(/^([^=]+)=\"(.*)\"$/, \"$1=$2\");\n b.push(d);\n l = false;\n } else {\n b.push(e + \"+\" + k);\n }\n } else {\n b.push(k);\n }\n\n if (k.match(/^[^=]+=\"/)) {\n l = true;\n }\n }\n\n return b;\n};\n\nKJUR.asn1.x509.AttributeTypeAndValue = function (c) {\n KJUR.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this);\n this.sRule = \"utf8\";\n this.sType = null;\n this.sValue = null;\n this.dsType = null;\n var a = KJUR,\n g = a.asn1,\n d = g.DERSequence,\n l = g.DERUTF8String,\n i = g.DERPrintableString,\n h = g.DERTeletexString,\n b = g.DERIA5String,\n e = g.DERVisibleString,\n k = g.DERBMPString,\n f = a.lang.String.isMail,\n j = a.lang.String.isPrintable;\n\n this.setByParam = function (o) {\n if (o.rule !== undefined) {\n this.sRule = o.rule;\n }\n\n if (o.ds !== undefined) {\n this.dsType = o.ds;\n }\n\n if (o.value === undefined && o.str !== undefined) {\n var n = o.str;\n var m = n.match(/^([^=]+)=(.+)$/);\n\n if (m) {\n this.sType = m[1];\n this.sValue = m[2];\n } else {\n throw new Error(\"malformed attrTypeAndValueStr: \" + attrTypeAndValueStr);\n }\n } else {\n this.sType = o.type;\n this.sValue = o.value;\n }\n };\n\n this.setByString = function (n, o) {\n if (o !== undefined) {\n this.sRule = o;\n }\n\n var m = n.match(/^([^=]+)=(.+)$/);\n\n if (m) {\n this.setByAttrTypeAndValueStr(m[1], m[2]);\n } else {\n throw new Error(\"malformed attrTypeAndValueStr: \" + attrTypeAndValueStr);\n }\n };\n\n this._getDsType = function () {\n var o = this.sType;\n var n = this.sValue;\n var m = this.sRule;\n\n if (m === \"prn\") {\n if (o == \"CN\" && f(n)) {\n return \"ia5\";\n }\n\n if (j(n)) {\n return \"prn\";\n }\n\n return \"utf8\";\n } else {\n if (m === \"utf8\") {\n if (o == \"CN\" && f(n)) {\n return \"ia5\";\n }\n\n if (o == \"C\") {\n return \"prn\";\n }\n\n return \"utf8\";\n }\n }\n\n return \"utf8\";\n };\n\n this.setByAttrTypeAndValueStr = function (o, n, m) {\n if (m !== undefined) {\n this.sRule = m;\n }\n\n this.sType = o;\n this.sValue = n;\n };\n\n this.getValueObj = function (n, m) {\n if (n == \"utf8\") {\n return new l({\n str: m\n });\n }\n\n if (n == \"prn\") {\n return new i({\n str: m\n });\n }\n\n if (n == \"tel\") {\n return new h({\n str: m\n });\n }\n\n if (n == \"ia5\") {\n return new b({\n str: m\n });\n }\n\n if (n == \"vis\") {\n return new e({\n str: m\n });\n }\n\n if (n == \"bmp\") {\n return new k({\n str: m\n });\n }\n\n throw new Error(\"unsupported directory string type: type=\" + n + \" value=\" + m);\n };\n\n this.getEncodedHex = function () {\n if (this.dsType == null) {\n this.dsType = this._getDsType();\n }\n\n var n = KJUR.asn1.x509.OID.atype2obj(this.sType);\n var m = this.getValueObj(this.dsType, this.sValue);\n var p = new d({\n array: [n, m]\n });\n this.TLV = p.getEncodedHex();\n return this.TLV;\n };\n\n if (c !== undefined) {\n this.setByParam(c);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.AttributeTypeAndValue, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.SubjectPublicKeyInfo = function (f) {\n KJUR.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);\n var l = null,\n k = null,\n a = KJUR,\n j = a.asn1,\n i = j.DERInteger,\n b = j.DERBitString,\n m = j.DERObjectIdentifier,\n e = j.DERSequence,\n h = j.ASN1Util.newObject,\n d = j.x509,\n o = d.AlgorithmIdentifier,\n g = a.crypto,\n n = g.ECDSA,\n c = g.DSA;\n\n this.getASN1Object = function () {\n if (this.asn1AlgId == null || this.asn1SubjPKey == null) {\n throw \"algId and/or subjPubKey not set\";\n }\n\n var p = new e({\n array: [this.asn1AlgId, this.asn1SubjPKey]\n });\n return p;\n };\n\n this.getEncodedHex = function () {\n var p = this.getASN1Object();\n this.hTLV = p.getEncodedHex();\n return this.hTLV;\n };\n\n this.setPubKey = function (q) {\n try {\n if (q instanceof RSAKey) {\n var u = h({\n seq: [{\n \"int\": {\n bigint: q.n\n }\n }, {\n \"int\": {\n \"int\": q.e\n }\n }]\n });\n var s = u.getEncodedHex();\n this.asn1AlgId = new o({\n name: \"rsaEncryption\"\n });\n this.asn1SubjPKey = new b({\n hex: \"00\" + s\n });\n }\n } catch (p) {}\n\n try {\n if (q instanceof KJUR.crypto.ECDSA) {\n var r = new m({\n name: q.curveName\n });\n this.asn1AlgId = new o({\n name: \"ecPublicKey\",\n asn1params: r\n });\n this.asn1SubjPKey = new b({\n hex: \"00\" + q.pubKeyHex\n });\n }\n } catch (p) {}\n\n try {\n if (q instanceof KJUR.crypto.DSA) {\n var r = new h({\n seq: [{\n \"int\": {\n bigint: q.p\n }\n }, {\n \"int\": {\n bigint: q.q\n }\n }, {\n \"int\": {\n bigint: q.g\n }\n }]\n });\n this.asn1AlgId = new o({\n name: \"dsa\",\n asn1params: r\n });\n var t = new i({\n bigint: q.y\n });\n this.asn1SubjPKey = new b({\n hex: \"00\" + t.getEncodedHex()\n });\n }\n } catch (p) {}\n };\n\n if (f !== undefined) {\n this.setPubKey(f);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.SubjectPublicKeyInfo, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.Time = function (f) {\n KJUR.asn1.x509.Time.superclass.constructor.call(this);\n var e = null,\n a = null,\n d = KJUR,\n c = d.asn1,\n b = c.DERUTCTime,\n g = c.DERGeneralizedTime;\n\n this.setTimeParams = function (h) {\n this.timeParams = h;\n };\n\n this.getEncodedHex = function () {\n var h = null;\n\n if (this.timeParams != null) {\n if (this.type == \"utc\") {\n h = new b(this.timeParams);\n } else {\n h = new g(this.timeParams);\n }\n } else {\n if (this.type == \"utc\") {\n h = new b();\n } else {\n h = new g();\n }\n }\n\n this.TLV = h.getEncodedHex();\n return this.TLV;\n };\n\n this.type = \"utc\";\n\n if (f !== undefined) {\n if (f.type !== undefined) {\n this.type = f.type;\n } else {\n if (f.str !== undefined) {\n if (f.str.match(/^[0-9]{12}Z$/)) {\n this.type = \"utc\";\n }\n\n if (f.str.match(/^[0-9]{14}Z$/)) {\n this.type = \"gen\";\n }\n }\n }\n\n this.timeParams = f;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.Time, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.AlgorithmIdentifier = function (e) {\n KJUR.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this);\n this.nameAlg = null;\n this.asn1Alg = null;\n this.asn1Params = null;\n this.paramEmpty = false;\n var b = KJUR,\n a = b.asn1,\n c = a.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;\n\n this.getEncodedHex = function () {\n if (this.nameAlg === null && this.asn1Alg === null) {\n throw new Error(\"algorithm not specified\");\n }\n\n if (this.nameAlg !== null) {\n var f = null;\n\n for (var h in c) {\n if (h === this.nameAlg) {\n f = c[h];\n }\n }\n\n if (f !== null) {\n this.hTLV = f;\n return this.hTLV;\n }\n }\n\n if (this.nameAlg !== null && this.asn1Alg === null) {\n this.asn1Alg = a.x509.OID.name2obj(this.nameAlg);\n }\n\n var g = [this.asn1Alg];\n\n if (this.asn1Params !== null) {\n g.push(this.asn1Params);\n }\n\n var i = new a.DERSequence({\n array: g\n });\n this.hTLV = i.getEncodedHex();\n return this.hTLV;\n };\n\n if (e !== undefined) {\n if (e.name !== undefined) {\n this.nameAlg = e.name;\n }\n\n if (e.asn1params !== undefined) {\n this.asn1Params = e.asn1params;\n }\n\n if (e.paramempty !== undefined) {\n this.paramEmpty = e.paramempty;\n }\n }\n\n if (this.asn1Params === null && this.paramEmpty === false && this.nameAlg !== null) {\n if (this.nameAlg.name !== undefined) {\n this.nameAlg = this.nameAlg.name;\n }\n\n var d = this.nameAlg.toLowerCase();\n\n if (d.substr(-7, 7) !== \"withdsa\" && d.substr(-9, 9) !== \"withecdsa\") {\n this.asn1Params = new a.DERNull();\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.AlgorithmIdentifier, KJUR.asn1.ASN1Object);\nKJUR.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV = {\n SHAwithRSAandMGF1: \"300d06092a864886f70d01010a3000\",\n SHA256withRSAandMGF1: \"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120\",\n SHA384withRSAandMGF1: \"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130\",\n SHA512withRSAandMGF1: \"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140\"\n};\n\nKJUR.asn1.x509.GeneralName = function (e) {\n KJUR.asn1.x509.GeneralName.superclass.constructor.call(this);\n var m = null,\n i = null,\n k = {\n rfc822: \"81\",\n dns: \"82\",\n dn: \"a4\",\n uri: \"86\",\n ip: \"87\"\n },\n b = KJUR,\n g = b.asn1,\n f = g.DERSequence,\n j = g.DEROctetString,\n d = g.DERIA5String,\n c = g.DERTaggedObject,\n l = g.ASN1Object,\n a = g.x509.X500Name,\n h = pemtohex;\n this.explicit = false;\n\n this.setByParam = function (p) {\n var r = null;\n var u = null;\n\n if (p === undefined) {\n return;\n }\n\n if (p.rfc822 !== undefined) {\n this.type = \"rfc822\";\n u = new d({\n str: p[this.type]\n });\n }\n\n if (p.dns !== undefined) {\n this.type = \"dns\";\n u = new d({\n str: p[this.type]\n });\n }\n\n if (p.uri !== undefined) {\n this.type = \"uri\";\n u = new d({\n str: p[this.type]\n });\n }\n\n if (p.dn !== undefined) {\n this.type = \"dn\";\n this.explicit = true;\n\n if (typeof p.dn === \"string\") {\n u = new a({\n str: p.dn\n });\n } else {\n if (p.dn instanceof KJUR.asn1.x509.X500Name) {\n u = p.dn;\n } else {\n u = new a(p.dn);\n }\n }\n }\n\n if (p.ldapdn !== undefined) {\n this.type = \"dn\";\n this.explicit = true;\n u = new a({\n ldapstr: p.ldapdn\n });\n }\n\n if (p.certissuer !== undefined) {\n this.type = \"dn\";\n this.explicit = true;\n var o = p.certissuer;\n var w = null;\n\n if (o.match(/^[0-9A-Fa-f]+$/)) {\n w == o;\n }\n\n if (o.indexOf(\"-----BEGIN \") != -1) {\n w = h(o);\n }\n\n if (w == null) {\n throw \"certissuer param not cert\";\n }\n\n var t = new X509();\n t.hex = w;\n var y = t.getIssuerHex();\n u = new l();\n u.hTLV = y;\n }\n\n if (p.certsubj !== undefined) {\n this.type = \"dn\";\n this.explicit = true;\n var o = p.certsubj;\n var w = null;\n\n if (o.match(/^[0-9A-Fa-f]+$/)) {\n w == o;\n }\n\n if (o.indexOf(\"-----BEGIN \") != -1) {\n w = h(o);\n }\n\n if (w == null) {\n throw \"certsubj param not cert\";\n }\n\n var t = new X509();\n t.hex = w;\n var y = t.getSubjectHex();\n u = new l();\n u.hTLV = y;\n }\n\n if (p.ip !== undefined) {\n this.type = \"ip\";\n this.explicit = false;\n var q = p.ip;\n var s;\n var n = \"malformed IP address\";\n\n if (q.match(/^[0-9.]+[.][0-9.]+$/)) {\n s = intarystrtohex(\"[\" + q.split(\".\").join(\",\") + \"]\");\n\n if (s.length !== 8) {\n throw n;\n }\n } else {\n if (q.match(/^[0-9A-Fa-f:]+:[0-9A-Fa-f:]+$/)) {\n s = ipv6tohex(q);\n } else {\n if (q.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/)) {\n s = q;\n } else {\n throw n;\n }\n }\n }\n\n u = new j({\n hex: s\n });\n }\n\n if (this.type == null) {\n throw \"unsupported type in params=\" + p;\n }\n\n this.asn1Obj = new c({\n explicit: this.explicit,\n tag: k[this.type],\n obj: u\n });\n };\n\n this.getEncodedHex = function () {\n return this.asn1Obj.getEncodedHex();\n };\n\n if (e !== undefined) {\n this.setByParam(e);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.GeneralName, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.x509.GeneralNames = function (d) {\n KJUR.asn1.x509.GeneralNames.superclass.constructor.call(this);\n var a = null,\n c = KJUR,\n b = c.asn1;\n\n this.setByParamArray = function (g) {\n for (var e = 0; e < g.length; e++) {\n var f = new b.x509.GeneralName(g[e]);\n this.asn1Array.push(f);\n }\n };\n\n this.getEncodedHex = function () {\n var e = new b.DERSequence({\n array: this.asn1Array\n });\n return e.getEncodedHex();\n };\n\n this.asn1Array = new Array();\n\n if (typeof d != \"undefined\") {\n this.setByParamArray(d);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.x509.GeneralNames, KJUR.asn1.ASN1Object);\nKJUR.asn1.x509.OID = new function (a) {\n this.atype2oidList = {\n CN: \"2.5.4.3\",\n L: \"2.5.4.7\",\n ST: \"2.5.4.8\",\n O: \"2.5.4.10\",\n OU: \"2.5.4.11\",\n C: \"2.5.4.6\",\n STREET: \"2.5.4.9\",\n DC: \"0.9.2342.19200300.100.1.25\",\n UID: \"0.9.2342.19200300.100.1.1\",\n SN: \"2.5.4.4\",\n T: \"2.5.4.12\",\n DN: \"2.5.4.49\",\n E: \"1.2.840.113549.1.9.1\",\n description: \"2.5.4.13\",\n businessCategory: \"2.5.4.15\",\n postalCode: \"2.5.4.17\",\n serialNumber: \"2.5.4.5\",\n uniqueIdentifier: \"2.5.4.45\",\n organizationIdentifier: \"2.5.4.97\",\n jurisdictionOfIncorporationL: \"1.3.6.1.4.1.311.60.2.1.1\",\n jurisdictionOfIncorporationSP: \"1.3.6.1.4.1.311.60.2.1.2\",\n jurisdictionOfIncorporationC: \"1.3.6.1.4.1.311.60.2.1.3\"\n };\n this.name2oidList = {\n sha1: \"1.3.14.3.2.26\",\n sha256: \"2.16.840.1.101.3.4.2.1\",\n sha384: \"2.16.840.1.101.3.4.2.2\",\n sha512: \"2.16.840.1.101.3.4.2.3\",\n sha224: \"2.16.840.1.101.3.4.2.4\",\n md5: \"1.2.840.113549.2.5\",\n md2: \"1.3.14.7.2.2.1\",\n ripemd160: \"1.3.36.3.2.1\",\n MD2withRSA: \"1.2.840.113549.1.1.2\",\n MD4withRSA: \"1.2.840.113549.1.1.3\",\n MD5withRSA: \"1.2.840.113549.1.1.4\",\n SHA1withRSA: \"1.2.840.113549.1.1.5\",\n \"pkcs1-MGF\": \"1.2.840.113549.1.1.8\",\n rsaPSS: \"1.2.840.113549.1.1.10\",\n SHA224withRSA: \"1.2.840.113549.1.1.14\",\n SHA256withRSA: \"1.2.840.113549.1.1.11\",\n SHA384withRSA: \"1.2.840.113549.1.1.12\",\n SHA512withRSA: \"1.2.840.113549.1.1.13\",\n SHA1withECDSA: \"1.2.840.10045.4.1\",\n SHA224withECDSA: \"1.2.840.10045.4.3.1\",\n SHA256withECDSA: \"1.2.840.10045.4.3.2\",\n SHA384withECDSA: \"1.2.840.10045.4.3.3\",\n SHA512withECDSA: \"1.2.840.10045.4.3.4\",\n dsa: \"1.2.840.10040.4.1\",\n SHA1withDSA: \"1.2.840.10040.4.3\",\n SHA224withDSA: \"2.16.840.1.101.3.4.3.1\",\n SHA256withDSA: \"2.16.840.1.101.3.4.3.2\",\n rsaEncryption: \"1.2.840.113549.1.1.1\",\n commonName: \"2.5.4.3\",\n countryName: \"2.5.4.6\",\n localityName: \"2.5.4.7\",\n stateOrProvinceName: \"2.5.4.8\",\n streetAddress: \"2.5.4.9\",\n organizationName: \"2.5.4.10\",\n organizationalUnitName: \"2.5.4.11\",\n domainComponent: \"0.9.2342.19200300.100.1.25\",\n userId: \"0.9.2342.19200300.100.1.1\",\n surname: \"2.5.4.4\",\n title: \"2.5.4.12\",\n distinguishedName: \"2.5.4.49\",\n emailAddress: \"1.2.840.113549.1.9.1\",\n description: \"2.5.4.13\",\n businessCategory: \"2.5.4.15\",\n postalCode: \"2.5.4.17\",\n uniqueIdentifier: \"2.5.4.45\",\n organizationIdentifier: \"2.5.4.97\",\n jurisdictionOfIncorporationL: \"1.3.6.1.4.1.311.60.2.1.1\",\n jurisdictionOfIncorporationSP: \"1.3.6.1.4.1.311.60.2.1.2\",\n jurisdictionOfIncorporationC: \"1.3.6.1.4.1.311.60.2.1.3\",\n subjectKeyIdentifier: \"2.5.29.14\",\n keyUsage: \"2.5.29.15\",\n subjectAltName: \"2.5.29.17\",\n issuerAltName: \"2.5.29.18\",\n basicConstraints: \"2.5.29.19\",\n cRLNumber: \"2.5.29.20\",\n cRLReason: \"2.5.29.21\",\n nameConstraints: \"2.5.29.30\",\n cRLDistributionPoints: \"2.5.29.31\",\n certificatePolicies: \"2.5.29.32\",\n anyPolicy: \"2.5.29.32.0\",\n authorityKeyIdentifier: \"2.5.29.35\",\n policyConstraints: \"2.5.29.36\",\n extKeyUsage: \"2.5.29.37\",\n authorityInfoAccess: \"1.3.6.1.5.5.7.1.1\",\n ocsp: \"1.3.6.1.5.5.7.48.1\",\n ocspBasic: \"1.3.6.1.5.5.7.48.1.1\",\n ocspNonce: \"1.3.6.1.5.5.7.48.1.2\",\n ocspNoCheck: \"1.3.6.1.5.5.7.48.1.5\",\n caIssuers: \"1.3.6.1.5.5.7.48.2\",\n anyExtendedKeyUsage: \"2.5.29.37.0\",\n serverAuth: \"1.3.6.1.5.5.7.3.1\",\n clientAuth: \"1.3.6.1.5.5.7.3.2\",\n codeSigning: \"1.3.6.1.5.5.7.3.3\",\n emailProtection: \"1.3.6.1.5.5.7.3.4\",\n timeStamping: \"1.3.6.1.5.5.7.3.8\",\n ocspSigning: \"1.3.6.1.5.5.7.3.9\",\n ecPublicKey: \"1.2.840.10045.2.1\",\n secp256r1: \"1.2.840.10045.3.1.7\",\n secp256k1: \"1.3.132.0.10\",\n secp384r1: \"1.3.132.0.34\",\n pkcs5PBES2: \"1.2.840.113549.1.5.13\",\n pkcs5PBKDF2: \"1.2.840.113549.1.5.12\",\n \"des-EDE3-CBC\": \"1.2.840.113549.3.7\",\n data: \"1.2.840.113549.1.7.1\",\n \"signed-data\": \"1.2.840.113549.1.7.2\",\n \"enveloped-data\": \"1.2.840.113549.1.7.3\",\n \"digested-data\": \"1.2.840.113549.1.7.5\",\n \"encrypted-data\": \"1.2.840.113549.1.7.6\",\n \"authenticated-data\": \"1.2.840.113549.1.9.16.1.2\",\n tstinfo: \"1.2.840.113549.1.9.16.1.4\",\n signingCertificate: \"1.2.840.113549.1.9.16.2.12\",\n timeStampToken: \"1.2.840.113549.1.9.16.2.14\",\n etsArchiveTimeStamp: \"1.2.840.113549.1.9.16.2.27\",\n signingCertificateV2: \"1.2.840.113549.1.9.16.2.47\",\n etsArchiveTimeStampV2: \"1.2.840.113549.1.9.16.2.48\",\n extensionRequest: \"1.2.840.113549.1.9.14\",\n contentType: \"1.2.840.113549.1.9.3\",\n messageDigest: \"1.2.840.113549.1.9.4\",\n signingTime: \"1.2.840.113549.1.9.5\",\n counterSignature: \"1.2.840.113549.1.9.6\",\n archiveTimeStampV3: \"0.4.0.1733.2.4\",\n pdfRevocationInfoArchival: \"1.2.840.113583.1.1.8\"\n };\n this.objCache = {};\n\n this.name2obj = function (b) {\n if (typeof this.objCache[b] != \"undefined\") {\n return this.objCache[b];\n }\n\n if (typeof this.name2oidList[b] == \"undefined\") {\n throw \"Name of ObjectIdentifier not defined: \" + b;\n }\n\n var c = this.name2oidList[b];\n var d = new KJUR.asn1.DERObjectIdentifier({\n oid: c\n });\n this.objCache[b] = d;\n return d;\n };\n\n this.atype2obj = function (b) {\n if (typeof this.objCache[b] != \"undefined\") {\n return this.objCache[b];\n }\n\n if (typeof this.atype2oidList[b] == \"undefined\") {\n throw \"AttributeType name undefined: \" + b;\n }\n\n var c = this.atype2oidList[b];\n var d = new KJUR.asn1.DERObjectIdentifier({\n oid: c\n });\n this.objCache[b] = d;\n return d;\n };\n}();\n\nKJUR.asn1.x509.OID.oid2name = function (b) {\n var c = KJUR.asn1.x509.OID.name2oidList;\n\n for (var a in c) {\n if (c[a] == b) {\n return a;\n }\n }\n\n return \"\";\n};\n\nKJUR.asn1.x509.OID.oid2atype = function (b) {\n var c = KJUR.asn1.x509.OID.atype2oidList;\n\n for (var a in c) {\n if (c[a] == b) {\n return a;\n }\n }\n\n return b;\n};\n\nKJUR.asn1.x509.OID.name2oid = function (a) {\n if (a.match(/^[0-9.]+$/)) {\n return a;\n }\n\n var b = KJUR.asn1.x509.OID.name2oidList;\n\n if (b[a] === undefined) {\n return \"\";\n }\n\n return b[a];\n};\n\nKJUR.asn1.x509.X509Util = {};\n\nKJUR.asn1.x509.X509Util.newCertPEM = function (e) {\n var d = KJUR.asn1.x509,\n b = d.TBSCertificate,\n a = d.Certificate;\n var c = new a(e);\n return c.getPEM();\n};\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.asn1 == \"undefined\" || !KJUR.asn1) {\n KJUR.asn1 = {};\n}\n\nif (typeof KJUR.asn1.cms == \"undefined\" || !KJUR.asn1.cms) {\n KJUR.asn1.cms = {};\n}\n\nKJUR.asn1.cms.Attribute = function (d) {\n var a = [],\n c = KJUR,\n b = c.asn1;\n b.cms.Attribute.superclass.constructor.call(this);\n\n this.getEncodedHex = function () {\n var h, g, e;\n h = new b.DERObjectIdentifier({\n oid: this.attrTypeOid\n });\n g = new b.DERSet({\n array: this.valueList\n });\n\n try {\n g.getEncodedHex();\n } catch (f) {\n throw \"fail valueSet.getEncodedHex in Attribute(1)/\" + f;\n }\n\n e = new b.DERSequence({\n array: [h, g]\n });\n\n try {\n this.hTLV = e.getEncodedHex();\n } catch (f) {\n throw \"failed seq.getEncodedHex in Attribute(2)/\" + f;\n }\n\n return this.hTLV;\n };\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.Attribute, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.cms.ContentType = function (d) {\n var c = KJUR,\n b = c.asn1;\n b.cms.ContentType.superclass.constructor.call(this);\n this.attrTypeOid = \"1.2.840.113549.1.9.3\";\n var a = null;\n\n if (typeof d != \"undefined\") {\n var a = new b.DERObjectIdentifier(d);\n this.valueList = [a];\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.ContentType, KJUR.asn1.cms.Attribute);\n\nKJUR.asn1.cms.MessageDigest = function (d) {\n var b = KJUR,\n e = b.asn1,\n g = e.DEROctetString,\n i = e.cms;\n i.MessageDigest.superclass.constructor.call(this);\n this.attrTypeOid = \"1.2.840.113549.1.9.4\";\n\n if (d !== undefined) {\n if (d.eciObj instanceof i.EncapsulatedContentInfo && typeof d.hashAlg === \"string\") {\n var h = d.eciObj.eContentValueHex;\n var c = d.hashAlg;\n var a = b.crypto.Util.hashHex(h, c);\n var f = new g({\n hex: a\n });\n f.getEncodedHex();\n this.valueList = [f];\n } else {\n var f = new g(d);\n f.getEncodedHex();\n this.valueList = [f];\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.MessageDigest, KJUR.asn1.cms.Attribute);\n\nKJUR.asn1.cms.SigningTime = function (e) {\n var d = KJUR,\n c = d.asn1;\n c.cms.SigningTime.superclass.constructor.call(this);\n this.attrTypeOid = \"1.2.840.113549.1.9.5\";\n\n if (e !== undefined) {\n var a = new c.x509.Time(e);\n\n try {\n a.getEncodedHex();\n } catch (b) {\n throw \"SigningTime.getEncodedHex() failed/\" + b;\n }\n\n this.valueList = [a];\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.SigningTime, KJUR.asn1.cms.Attribute);\n\nKJUR.asn1.cms.SigningCertificate = function (f) {\n var c = KJUR,\n b = c.asn1,\n a = b.DERSequence,\n e = b.cms,\n d = c.crypto;\n e.SigningCertificate.superclass.constructor.call(this);\n this.attrTypeOid = \"1.2.840.113549.1.9.16.2.12\";\n\n this.setCerts = function (n) {\n var l = [];\n\n for (var k = 0; k < n.length; k++) {\n var h = pemtohex(n[k]);\n var g = c.crypto.Util.hashHex(h, \"sha1\");\n var o = new b.DEROctetString({\n hex: g\n });\n o.getEncodedHex();\n var m = new e.IssuerSerial({\n cert: n[k]\n });\n m.getEncodedHex();\n var p = new a({\n array: [o, m]\n });\n p.getEncodedHex();\n l.push(p);\n }\n\n var j = new a({\n array: [new a({\n array: l\n })]\n });\n j.getEncodedHex();\n this.valueList = [j];\n };\n\n if (f !== undefined) {\n if (_typeof(f.array) == \"object\") {\n this.setCerts(f.array);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.SigningCertificate, KJUR.asn1.cms.Attribute);\n\nKJUR.asn1.cms.SigningCertificateV2 = function (h) {\n var d = KJUR,\n c = d.asn1,\n b = c.DERSequence,\n g = c.x509,\n f = c.cms,\n e = d.crypto;\n f.SigningCertificateV2.superclass.constructor.call(this);\n this.attrTypeOid = \"1.2.840.113549.1.9.16.2.47\";\n\n this.setCerts = function (r, k) {\n var p = [];\n\n for (var n = 0; n < r.length; n++) {\n var l = pemtohex(r[n]);\n var t = [];\n\n if (k !== \"sha256\") {\n t.push(new g.AlgorithmIdentifier({\n name: k\n }));\n }\n\n var j = e.Util.hashHex(l, k);\n var s = new c.DEROctetString({\n hex: j\n });\n s.getEncodedHex();\n t.push(s);\n var o = new f.IssuerSerial({\n cert: r[n]\n });\n o.getEncodedHex();\n t.push(o);\n var q = new b({\n array: t\n });\n q.getEncodedHex();\n p.push(q);\n }\n\n var m = new b({\n array: [new b({\n array: p\n })]\n });\n m.getEncodedHex();\n this.valueList = [m];\n };\n\n if (h !== undefined) {\n if (_typeof(h.array) == \"object\") {\n var a = \"sha256\";\n\n if (typeof h.hashAlg == \"string\") {\n a = h.hashAlg;\n }\n\n this.setCerts(h.array, a);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.SigningCertificateV2, KJUR.asn1.cms.Attribute);\n\nKJUR.asn1.cms.IssuerSerial = function (f) {\n var d = KJUR,\n h = d.asn1,\n g = h.DERInteger,\n j = h.cms,\n e = h.x509,\n b = e.X500Name,\n a = e.GeneralNames,\n c = X509;\n j.IssuerSerial.superclass.constructor.call(this);\n var k = null;\n var i = null;\n\n this.setByCertPEM = function (o) {\n var m = pemtohex(o);\n var l = new c();\n l.hex = m;\n var p = l.getIssuerHex();\n this.dIssuer = new b();\n this.dIssuer.hTLV = p;\n var n = l.getSerialNumberHex();\n this.dSerial = new g({\n hex: n\n });\n };\n\n this.getEncodedHex = function () {\n var l = new a([{\n dn: this.dIssuer\n }]);\n var m = new h.DERSequence({\n array: [l, this.dSerial]\n });\n this.hTLV = m.getEncodedHex();\n return this.hTLV;\n };\n\n if (f !== undefined) {\n if (typeof f == \"string\" && f.indexOf(\"-----BEGIN \") != -1) {\n this.setByCertPEM(f);\n }\n\n if (f.issuer && f.serial) {\n if (f.issuer instanceof b) {\n this.dIssuer = f.issuer;\n } else {\n this.dIssuer = new b(f.issuer);\n }\n\n if (f.serial instanceof g) {\n this.dSerial = f.serial;\n } else {\n this.dSerial = new g(f.serial);\n }\n }\n\n if (typeof f.cert == \"string\") {\n this.setByCertPEM(f.cert);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.IssuerSerial, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.cms.IssuerAndSerialNumber = function (e) {\n var b = KJUR,\n g = b.asn1,\n f = g.DERInteger,\n i = g.cms,\n d = g.x509,\n a = d.X500Name,\n c = X509;\n i.IssuerAndSerialNumber.superclass.constructor.call(this);\n var j = null;\n var h = null;\n\n this.setByCertPEM = function (n) {\n var l = pemtohex(n);\n var k = new c();\n k.hex = l;\n var o = k.getIssuerHex();\n this.dIssuer = new a();\n this.dIssuer.hTLV = o;\n var m = k.getSerialNumberHex();\n this.dSerial = new f({\n hex: m\n });\n };\n\n this.getEncodedHex = function () {\n var k = new g.DERSequence({\n array: [this.dIssuer, this.dSerial]\n });\n this.hTLV = k.getEncodedHex();\n return this.hTLV;\n };\n\n if (e !== undefined) {\n if (typeof e == \"string\" && e.indexOf(\"-----BEGIN \") != -1) {\n this.setByCertPEM(e);\n }\n\n if (e.issuer && e.serial) {\n if (e.issuer instanceof a) {\n this.dIssuer = e.issuer;\n } else {\n this.dIssuer = new a(e.issuer);\n }\n\n if (e.serial instanceof f) {\n this.dSerial = e.serial;\n } else {\n this.dSerial = new f(e.serial);\n }\n }\n\n if (typeof e.cert == \"string\") {\n this.setByCertPEM(e.cert);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.IssuerAndSerialNumber, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.cms.AttributeList = function (d) {\n var b = KJUR,\n a = b.asn1,\n c = a.cms;\n c.AttributeList.superclass.constructor.call(this);\n this.list = new Array();\n this.sortFlag = true;\n\n this.add = function (e) {\n if (e instanceof c.Attribute) {\n this.list.push(e);\n }\n };\n\n this.length = function () {\n return this.list.length;\n };\n\n this.clear = function () {\n this.list = new Array();\n this.hTLV = null;\n this.hV = null;\n };\n\n this.getEncodedHex = function () {\n if (typeof this.hTLV == \"string\") {\n return this.hTLV;\n }\n\n var e = new a.DERSet({\n array: this.list,\n sortflag: this.sortFlag\n });\n this.hTLV = e.getEncodedHex();\n return this.hTLV;\n };\n\n if (d !== undefined) {\n if (typeof d.sortflag != \"undefined\" && d.sortflag == false) {\n this.sortFlag = false;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.AttributeList, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.cms.SignerInfo = function (e) {\n var a = KJUR,\n h = a.asn1,\n b = h.DERTaggedObject,\n n = h.cms,\n j = n.AttributeList,\n g = n.ContentType,\n k = n.EncapsulatedContentInfo,\n c = n.MessageDigest,\n l = n.SignedData,\n d = h.x509,\n m = d.AlgorithmIdentifier,\n f = a.crypto,\n i = KEYUTIL;\n n.SignerInfo.superclass.constructor.call(this);\n this.dCMSVersion = new h.DERInteger({\n \"int\": 1\n });\n this.dSignerIdentifier = null;\n this.dDigestAlgorithm = null;\n this.dSignedAttrs = new j();\n this.dSigAlg = null;\n this.dSig = null;\n this.dUnsignedAttrs = new j();\n\n this.setSignerIdentifier = function (p) {\n if (typeof p == \"string\" && p.indexOf(\"CERTIFICATE\") != -1 && p.indexOf(\"BEGIN\") != -1 && p.indexOf(\"END\") != -1) {\n var o = p;\n this.dSignerIdentifier = new n.IssuerAndSerialNumber({\n cert: p\n });\n }\n };\n\n this.setForContentAndHash = function (p) {\n var o = \"data\";\n\n if (p.contentType !== undefined) {\n o = p.contentType;\n }\n\n if (p !== undefined) {\n if (p.eciObj instanceof k) {\n this.dSignedAttrs.add(new g(o));\n this.dSignedAttrs.add(new c({\n eciObj: p.eciObj,\n hashAlg: p.hashAlg\n }));\n }\n\n if (p.sdObj !== undefined && p.sdObj instanceof l) {\n if (p.sdObj.digestAlgNameList.join(\":\").indexOf(p.hashAlg) == -1) {\n p.sdObj.digestAlgNameList.push(p.hashAlg);\n }\n }\n\n if (typeof p.hashAlg == \"string\") {\n this.dDigestAlgorithm = new m({\n name: p.hashAlg\n });\n }\n }\n };\n\n this.sign = function (t, p) {\n this.dSigAlg = new m({\n name: p\n });\n var q = this.dSignedAttrs.getEncodedHex();\n var o = i.getKey(t);\n var s = new f.Signature({\n alg: p\n });\n s.init(o);\n s.updateHex(q);\n var r = s.sign();\n this.dSig = new h.DEROctetString({\n hex: r\n });\n };\n\n this.addUnsigned = function (o) {\n this.hTLV = null;\n this.dUnsignedAttrs.hTLV = null;\n this.dUnsignedAttrs.add(o);\n };\n\n this.getEncodedHex = function () {\n if (this.dSignedAttrs instanceof j && this.dSignedAttrs.length() == 0) {\n throw \"SignedAttrs length = 0 (empty)\";\n }\n\n var o = new b({\n obj: this.dSignedAttrs,\n tag: \"a0\",\n explicit: false\n });\n var r = null;\n\n if (this.dUnsignedAttrs.length() > 0) {\n r = new b({\n obj: this.dUnsignedAttrs,\n tag: \"a1\",\n explicit: false\n });\n }\n\n var q = [this.dCMSVersion, this.dSignerIdentifier, this.dDigestAlgorithm, o, this.dSigAlg, this.dSig];\n\n if (r != null) {\n q.push(r);\n }\n\n var p = new h.DERSequence({\n array: q\n });\n this.hTLV = p.getEncodedHex();\n return this.hTLV;\n };\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.SignerInfo, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.cms.EncapsulatedContentInfo = function (g) {\n var c = KJUR,\n b = c.asn1,\n e = b.DERTaggedObject,\n a = b.DERSequence,\n h = b.DERObjectIdentifier,\n d = b.DEROctetString,\n f = b.cms;\n f.EncapsulatedContentInfo.superclass.constructor.call(this);\n this.dEContentType = new h({\n name: \"data\"\n });\n this.dEContent = null;\n this.isDetached = false;\n this.eContentValueHex = null;\n\n this.setContentType = function (i) {\n if (i.match(/^[0-2][.][0-9.]+$/)) {\n this.dEContentType = new h({\n oid: i\n });\n } else {\n this.dEContentType = new h({\n name: i\n });\n }\n };\n\n this.setContentValue = function (i) {\n if (i !== undefined) {\n if (typeof i.hex == \"string\") {\n this.eContentValueHex = i.hex;\n } else {\n if (typeof i.str == \"string\") {\n this.eContentValueHex = utf8tohex(i.str);\n }\n }\n }\n };\n\n this.setContentValueHex = function (i) {\n this.eContentValueHex = i;\n };\n\n this.setContentValueStr = function (i) {\n this.eContentValueHex = utf8tohex(i);\n };\n\n this.getEncodedHex = function () {\n if (typeof this.eContentValueHex != \"string\") {\n throw \"eContentValue not yet set\";\n }\n\n var k = new d({\n hex: this.eContentValueHex\n });\n this.dEContent = new e({\n obj: k,\n tag: \"a0\",\n explicit: true\n });\n var i = [this.dEContentType];\n\n if (!this.isDetached) {\n i.push(this.dEContent);\n }\n\n var j = new a({\n array: i\n });\n this.hTLV = j.getEncodedHex();\n return this.hTLV;\n };\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.EncapsulatedContentInfo, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.cms.ContentInfo = function (f) {\n var c = KJUR,\n b = c.asn1,\n d = b.DERTaggedObject,\n a = b.DERSequence,\n e = b.x509;\n KJUR.asn1.cms.ContentInfo.superclass.constructor.call(this);\n this.dContentType = null;\n this.dContent = null;\n\n this.setContentType = function (g) {\n if (typeof g == \"string\") {\n this.dContentType = e.OID.name2obj(g);\n }\n };\n\n this.getEncodedHex = function () {\n var h = new d({\n obj: this.dContent,\n tag: \"a0\",\n explicit: true\n });\n var g = new a({\n array: [this.dContentType, h]\n });\n this.hTLV = g.getEncodedHex();\n return this.hTLV;\n };\n\n if (f !== undefined) {\n if (f.type) {\n this.setContentType(f.type);\n }\n\n if (f.obj && f.obj instanceof b.ASN1Object) {\n this.dContent = f.obj;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.ContentInfo, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.cms.SignedData = function (e) {\n var a = KJUR,\n h = a.asn1,\n j = h.ASN1Object,\n g = h.DERInteger,\n m = h.DERSet,\n f = h.DERSequence,\n b = h.DERTaggedObject,\n l = h.cms,\n i = l.EncapsulatedContentInfo,\n d = l.SignerInfo,\n n = l.ContentInfo,\n c = h.x509,\n k = c.AlgorithmIdentifier;\n KJUR.asn1.cms.SignedData.superclass.constructor.call(this);\n this.dCMSVersion = new g({\n \"int\": 1\n });\n this.dDigestAlgs = null;\n this.digestAlgNameList = [];\n this.dEncapContentInfo = new i();\n this.dCerts = null;\n this.certificateList = [];\n this.crlList = [];\n this.signerInfoList = [new d()];\n\n this.addCertificatesByPEM = function (p) {\n var q = pemtohex(p);\n var r = new j();\n r.hTLV = q;\n this.certificateList.push(r);\n };\n\n this.getEncodedHex = function () {\n if (typeof this.hTLV == \"string\") {\n return this.hTLV;\n }\n\n if (this.dDigestAlgs == null) {\n var u = [];\n\n for (var t = 0; t < this.digestAlgNameList.length; t++) {\n var s = this.digestAlgNameList[t];\n var w = new k({\n name: s\n });\n u.push(w);\n }\n\n this.dDigestAlgs = new m({\n array: u\n });\n }\n\n var p = [this.dCMSVersion, this.dDigestAlgs, this.dEncapContentInfo];\n\n if (this.dCerts == null) {\n if (this.certificateList.length > 0) {\n var v = new m({\n array: this.certificateList\n });\n this.dCerts = new b({\n obj: v,\n tag: \"a0\",\n explicit: false\n });\n }\n }\n\n if (this.dCerts != null) {\n p.push(this.dCerts);\n }\n\n var r = new m({\n array: this.signerInfoList\n });\n p.push(r);\n var q = new f({\n array: p\n });\n this.hTLV = q.getEncodedHex();\n return this.hTLV;\n };\n\n this.getContentInfo = function () {\n this.getEncodedHex();\n var o = new n({\n type: \"signed-data\",\n obj: this\n });\n return o;\n };\n\n this.getContentInfoEncodedHex = function () {\n var o = this.getContentInfo();\n var p = o.getEncodedHex();\n return p;\n };\n\n this.getPEM = function () {\n return hextopem(this.getContentInfoEncodedHex(), \"CMS\");\n };\n};\n\nYAHOO.lang.extend(KJUR.asn1.cms.SignedData, KJUR.asn1.ASN1Object);\nKJUR.asn1.cms.CMSUtil = new function () {}();\n\nKJUR.asn1.cms.CMSUtil.newSignedData = function (d) {\n var b = KJUR,\n j = b.asn1,\n q = j.cms,\n f = q.SignerInfo,\n n = q.SignedData,\n o = q.SigningTime,\n a = q.SigningCertificate,\n p = q.SigningCertificateV2,\n c = j.cades,\n e = c.SignaturePolicyIdentifier;\n var m = new n();\n m.dEncapContentInfo.setContentValue(d.content);\n\n if (typeof d.detached == \"boolean\") {\n m.dEncapContentInfo.isDetached = d.detached;\n }\n\n if (_typeof(d.certs) == \"object\") {\n for (var h = 0; h < d.certs.length; h++) {\n m.addCertificatesByPEM(d.certs[h]);\n }\n }\n\n m.signerInfoList = [];\n\n for (var h = 0; h < d.signerInfos.length; h++) {\n var k = d.signerInfos[h];\n var g = new f();\n g.setSignerIdentifier(k.signerCert);\n g.setForContentAndHash({\n sdObj: m,\n eciObj: m.dEncapContentInfo,\n hashAlg: k.hashAlg\n });\n\n for (attrName in k.sAttr) {\n var r = k.sAttr[attrName];\n\n if (attrName == \"SigningTime\") {\n var l = new o(r);\n g.dSignedAttrs.add(l);\n }\n\n if (attrName == \"SigningCertificate\") {\n var l = new a(r);\n g.dSignedAttrs.add(l);\n }\n\n if (attrName == \"SigningCertificateV2\") {\n var l = new p(r);\n g.dSignedAttrs.add(l);\n }\n\n if (attrName == \"SignaturePolicyIdentifier\") {\n var l = new e(r);\n g.dSignedAttrs.add(l);\n }\n }\n\n g.sign(k.signerPrvKey, k.sigAlg);\n m.signerInfoList.push(g);\n }\n\n return m;\n};\n\nKJUR.asn1.cms.CMSUtil.verifySignedData = function (n) {\n var C = KJUR,\n p = C.asn1,\n s = p.cms,\n D = s.SignerInfo,\n q = s.SignedData,\n y = s.SigningTime,\n b = s.SigningCertificate,\n d = s.SigningCertificateV2,\n A = p.cades,\n u = A.SignaturePolicyIdentifier,\n i = C.lang.String.isHex,\n v = ASN1HEX,\n h = v.getVbyList,\n a = v.getTLVbyList,\n t = v.getIdxbyList,\n z = v.getChildIdx,\n c = v.getTLV,\n B = v.oidname,\n j = C.crypto.Util.hashHex;\n\n if (n.cms === undefined && !i(n.cms)) {}\n\n var E = n.cms;\n\n var g = function g(J, H) {\n var G;\n\n for (var I = 3; I < 6; I++) {\n G = t(J, 0, [1, 0, I]);\n\n if (G !== undefined) {\n var F = J.substr(G, 2);\n\n if (F === \"a0\") {\n H.certsIdx = G;\n }\n\n if (F === \"a1\") {\n H.revinfosIdx = G;\n }\n\n if (F === \"31\") {\n H.signerinfosIdx = G;\n }\n }\n }\n };\n\n var l = function l(I, F) {\n var H = F.signerinfosIdx;\n\n if (H === undefined) {\n return;\n }\n\n var L = z(I, H);\n F.signerInfoIdxList = L;\n\n for (var G = 0; G < L.length; G++) {\n var K = L[G];\n var J = {\n idx: K\n };\n k(I, J);\n F.signerInfos.push(J);\n }\n };\n\n var k = function k(I, J) {\n var F = J.idx;\n J.signerid_issuer1 = a(I, F, [1, 0], \"30\");\n J.signerid_serial1 = h(I, F, [1, 1], \"02\");\n J.hashalg = B(h(I, F, [2, 0], \"06\"));\n var H = t(I, F, [3], \"a0\");\n J.idxSignedAttrs = H;\n f(I, J, H);\n var G = z(I, F);\n var K = G.length;\n\n if (K < 6) {\n throw \"malformed SignerInfo\";\n }\n\n J.sigalg = B(h(I, F, [K - 2, 0], \"06\"));\n J.sigval = h(I, F, [K - 1], \"04\");\n };\n\n var f = function f(L, M, F) {\n var J = z(L, F);\n M.signedAttrIdxList = J;\n\n for (var K = 0; K < J.length; K++) {\n var I = J[K];\n var G = h(L, I, [0], \"06\");\n var H;\n\n if (G === \"2a864886f70d010905\") {\n H = hextoutf8(h(L, I, [1, 0]));\n M.saSigningTime = H;\n } else {\n if (G === \"2a864886f70d010904\") {\n H = h(L, I, [1, 0], \"04\");\n M.saMessageDigest = H;\n }\n }\n }\n };\n\n var w = function w(G, F) {\n if (h(G, 0, [0], \"06\") !== \"2a864886f70d010702\") {\n return F;\n }\n\n F.cmsType = \"signedData\";\n F.econtent = h(G, 0, [1, 0, 2, 1, 0]);\n g(G, F);\n F.signerInfos = [];\n l(G, F);\n };\n\n var o = function o(J, F) {\n var G = F.parse.signerInfos;\n var L = G.length;\n var K = true;\n\n for (var I = 0; I < L; I++) {\n var H = G[I];\n e(J, F, H, I);\n\n if (!H.isValid) {\n K = false;\n }\n }\n\n F.isValid = K;\n };\n\n var x = function x(F, Q, J, P) {\n var N = Q.parse.certsIdx;\n var H;\n\n if (Q.certs === undefined) {\n H = [];\n Q.certkeys = [];\n var K = z(F, N);\n\n for (var I = 0; I < K.length; I++) {\n var M = c(F, K[I]);\n var O = new X509();\n O.readCertHex(M);\n H[I] = O;\n Q.certkeys[I] = O.getPublicKey();\n }\n\n Q.certs = H;\n } else {\n H = Q.certs;\n }\n\n Q.cccc = H.length;\n Q.cccci = K.length;\n\n for (var I = 0; I < H.length; I++) {\n var L = O.getIssuerHex();\n var G = O.getSerialNumberHex();\n\n if (J.signerid_issuer1 === L && J.signerid_serial1 === G) {\n J.certkey_idx = I;\n }\n }\n };\n\n var e = function e(F, R, I, N) {\n I.verifyDetail = {};\n var Q = I.verifyDetail;\n var K = R.parse.econtent;\n var G = I.hashalg;\n var L = I.saMessageDigest;\n Q.validMessageDigest = false;\n\n if (j(K, G) === L) {\n Q.validMessageDigest = true;\n }\n\n x(F, R, I, N);\n Q.validSignatureValue = false;\n var H = I.sigalg;\n var M = \"31\" + c(F, I.idxSignedAttrs).substr(2);\n I.signedattrshex = M;\n var J = R.certs[I.certkey_idx].getPublicKey();\n var P = new KJUR.crypto.Signature({\n alg: H\n });\n P.init(J);\n P.updateHex(M);\n var O = P.verify(I.sigval);\n Q.validSignatureValue_isValid = O;\n\n if (O === true) {\n Q.validSignatureValue = true;\n }\n\n I.isValid = false;\n\n if (Q.validMessageDigest && Q.validSignatureValue) {\n I.isValid = true;\n }\n };\n\n var m = function m() {};\n\n var r = {\n isValid: false,\n parse: {}\n };\n w(E, r.parse);\n o(E, r);\n return r;\n};\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.asn1 == \"undefined\" || !KJUR.asn1) {\n KJUR.asn1 = {};\n}\n\nif (typeof KJUR.asn1.tsp == \"undefined\" || !KJUR.asn1.tsp) {\n KJUR.asn1.tsp = {};\n}\n\nKJUR.asn1.tsp.Accuracy = function (f) {\n var c = KJUR,\n b = c.asn1,\n e = b.DERInteger,\n a = b.DERSequence,\n d = b.DERTaggedObject;\n b.tsp.Accuracy.superclass.constructor.call(this);\n this.seconds = null;\n this.millis = null;\n this.micros = null;\n\n this.getEncodedHex = function () {\n var i = null;\n var k = null;\n var m = null;\n var g = [];\n\n if (this.seconds != null) {\n i = new e({\n \"int\": this.seconds\n });\n g.push(i);\n }\n\n if (this.millis != null) {\n var l = new e({\n \"int\": this.millis\n });\n k = new d({\n obj: l,\n tag: \"80\",\n explicit: false\n });\n g.push(k);\n }\n\n if (this.micros != null) {\n var j = new e({\n \"int\": this.micros\n });\n m = new d({\n obj: j,\n tag: \"81\",\n explicit: false\n });\n g.push(m);\n }\n\n var h = new a({\n array: g\n });\n this.hTLV = h.getEncodedHex();\n return this.hTLV;\n };\n\n if (f !== undefined) {\n if (typeof f.seconds == \"number\") {\n this.seconds = f.seconds;\n }\n\n if (typeof f.millis == \"number\") {\n this.millis = f.millis;\n }\n\n if (typeof f.micros == \"number\") {\n this.micros = f.micros;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.Accuracy, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.tsp.MessageImprint = function (g) {\n var c = KJUR,\n b = c.asn1,\n a = b.DERSequence,\n d = b.DEROctetString,\n f = b.x509,\n e = f.AlgorithmIdentifier;\n b.tsp.MessageImprint.superclass.constructor.call(this);\n this.dHashAlg = null;\n this.dHashValue = null;\n\n this.getEncodedHex = function () {\n if (typeof this.hTLV == \"string\") {\n return this.hTLV;\n }\n\n var h = new a({\n array: [this.dHashAlg, this.dHashValue]\n });\n return h.getEncodedHex();\n };\n\n if (g !== undefined) {\n if (typeof g.hashAlg == \"string\") {\n this.dHashAlg = new e({\n name: g.hashAlg\n });\n }\n\n if (typeof g.hashValue == \"string\") {\n this.dHashValue = new d({\n hex: g.hashValue\n });\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.MessageImprint, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.tsp.TimeStampReq = function (c) {\n var a = KJUR,\n f = a.asn1,\n d = f.DERSequence,\n e = f.DERInteger,\n g = f.DERBoolean,\n i = f.DERObjectIdentifier,\n h = f.tsp,\n b = h.MessageImprint;\n h.TimeStampReq.superclass.constructor.call(this);\n this.dVersion = new e({\n \"int\": 1\n });\n this.dMessageImprint = null;\n this.dPolicy = null;\n this.dNonce = null;\n this.certReq = true;\n\n this.setMessageImprint = function (j) {\n if (j instanceof b) {\n this.dMessageImprint = j;\n return;\n }\n\n if (_typeof(j) == \"object\") {\n this.dMessageImprint = new b(j);\n }\n };\n\n this.getEncodedHex = function () {\n if (this.dMessageImprint == null) {\n throw \"messageImprint shall be specified\";\n }\n\n var j = [this.dVersion, this.dMessageImprint];\n\n if (this.dPolicy != null) {\n j.push(this.dPolicy);\n }\n\n if (this.dNonce != null) {\n j.push(this.dNonce);\n }\n\n if (this.certReq) {\n j.push(new g());\n }\n\n var k = new d({\n array: j\n });\n this.hTLV = k.getEncodedHex();\n return this.hTLV;\n };\n\n if (c !== undefined) {\n if (_typeof(c.mi) == \"object\") {\n this.setMessageImprint(c.mi);\n }\n\n if (_typeof(c.policy) == \"object\") {\n this.dPolicy = new i(c.policy);\n }\n\n if (_typeof(c.nonce) == \"object\") {\n this.dNonce = new e(c.nonce);\n }\n\n if (typeof c.certreq == \"boolean\") {\n this.certReq = c.certreq;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.TimeStampReq, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.tsp.TSTInfo = function (f) {\n var c = KJUR,\n j = c.asn1,\n g = j.DERSequence,\n i = j.DERInteger,\n l = j.DERBoolean,\n h = j.DERGeneralizedTime,\n m = j.DERObjectIdentifier,\n e = j.DERTaggedObject,\n k = j.tsp,\n d = k.MessageImprint,\n b = k.Accuracy,\n a = j.x509.X500Name,\n n = j.x509.GeneralName;\n k.TSTInfo.superclass.constructor.call(this);\n this.dVersion = new i({\n \"int\": 1\n });\n this.dPolicy = null;\n this.dMessageImprint = null;\n this.dSerialNumber = null;\n this.dGenTime = null;\n this.dAccuracy = null;\n this.dOrdering = null;\n this.dNonce = null;\n this.dTsa = null;\n\n this.getEncodedHex = function () {\n var o = [this.dVersion];\n\n if (this.dPolicy == null) {\n throw \"policy shall be specified.\";\n }\n\n o.push(this.dPolicy);\n\n if (this.dMessageImprint == null) {\n throw \"messageImprint shall be specified.\";\n }\n\n o.push(this.dMessageImprint);\n\n if (this.dSerialNumber == null) {\n throw \"serialNumber shall be specified.\";\n }\n\n o.push(this.dSerialNumber);\n\n if (this.dGenTime == null) {\n throw \"genTime shall be specified.\";\n }\n\n o.push(this.dGenTime);\n\n if (this.dAccuracy != null) {\n o.push(this.dAccuracy);\n }\n\n if (this.dOrdering != null) {\n o.push(this.dOrdering);\n }\n\n if (this.dNonce != null) {\n o.push(this.dNonce);\n }\n\n if (this.dTsa != null) {\n o.push(this.dTsa);\n }\n\n var p = new g({\n array: o\n });\n this.hTLV = p.getEncodedHex();\n return this.hTLV;\n };\n\n if (f !== undefined) {\n if (typeof f.policy == \"string\") {\n if (!f.policy.match(/^[0-9.]+$/)) {\n throw \"policy shall be oid like 0.1.4.134\";\n }\n\n this.dPolicy = new m({\n oid: f.policy\n });\n }\n\n if (f.messageImprint !== undefined) {\n this.dMessageImprint = new d(f.messageImprint);\n }\n\n if (f.serialNumber !== undefined) {\n this.dSerialNumber = new i(f.serialNumber);\n }\n\n if (f.genTime !== undefined) {\n this.dGenTime = new h(f.genTime);\n }\n\n if (f.accuracy !== undefined) {\n this.dAccuracy = new b(f.accuracy);\n }\n\n if (f.ordering !== undefined && f.ordering == true) {\n this.dOrdering = new l();\n }\n\n if (f.nonce !== undefined) {\n this.dNonce = new i(f.nonce);\n }\n\n if (f.tsa !== undefined) {\n this.dTsa = new e({\n tag: \"a0\",\n explicit: true,\n obj: new n({\n dn: f.tsa\n })\n });\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.TSTInfo, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.tsp.TimeStampResp = function (g) {\n var e = KJUR,\n d = e.asn1,\n c = d.DERSequence,\n f = d.ASN1Object,\n a = d.tsp,\n b = a.PKIStatusInfo;\n a.TimeStampResp.superclass.constructor.call(this);\n this.dStatus = null;\n this.dTST = null;\n\n this.getEncodedHex = function () {\n if (this.dStatus == null) {\n throw \"status shall be specified\";\n }\n\n var h = [this.dStatus];\n\n if (this.dTST != null) {\n h.push(this.dTST);\n }\n\n var i = new c({\n array: h\n });\n this.hTLV = i.getEncodedHex();\n return this.hTLV;\n };\n\n if (g !== undefined) {\n if (_typeof(g.status) == \"object\") {\n this.dStatus = new b(g.status);\n }\n\n if (g.tst !== undefined && g.tst instanceof f) {\n this.dTST = g.tst.getContentInfo();\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.TimeStampResp, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.tsp.PKIStatusInfo = function (h) {\n var g = KJUR,\n f = g.asn1,\n e = f.DERSequence,\n a = f.tsp,\n d = a.PKIStatus,\n c = a.PKIFreeText,\n b = a.PKIFailureInfo;\n a.PKIStatusInfo.superclass.constructor.call(this);\n this.dStatus = null;\n this.dStatusString = null;\n this.dFailureInfo = null;\n\n this.getEncodedHex = function () {\n if (this.dStatus == null) {\n throw \"status shall be specified\";\n }\n\n var i = [this.dStatus];\n\n if (this.dStatusString != null) {\n i.push(this.dStatusString);\n }\n\n if (this.dFailureInfo != null) {\n i.push(this.dFailureInfo);\n }\n\n var j = new e({\n array: i\n });\n this.hTLV = j.getEncodedHex();\n return this.hTLV;\n };\n\n if (h !== undefined) {\n if (_typeof(h.status) == \"object\") {\n this.dStatus = new d(h.status);\n }\n\n if (_typeof(h.statstr) == \"object\") {\n this.dStatusString = new c({\n array: h.statstr\n });\n }\n\n if (_typeof(h.failinfo) == \"object\") {\n this.dFailureInfo = new b(h.failinfo);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.PKIStatusInfo, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.tsp.PKIStatus = function (h) {\n var d = KJUR,\n c = d.asn1,\n g = c.DERInteger,\n a = c.tsp,\n b = a.PKIStatus;\n a.PKIStatus.superclass.constructor.call(this);\n var f = null;\n\n this.getEncodedHex = function () {\n this.hTLV = this.dStatus.getEncodedHex();\n return this.hTLV;\n };\n\n if (h !== undefined) {\n if (h.name !== undefined) {\n var e = b.valueList;\n\n if (e[h.name] === undefined) {\n throw \"name undefined: \" + h.name;\n }\n\n this.dStatus = new g({\n \"int\": e[h.name]\n });\n } else {\n this.dStatus = new g(h);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.PKIStatus, KJUR.asn1.ASN1Object);\nKJUR.asn1.tsp.PKIStatus.valueList = {\n granted: 0,\n grantedWithMods: 1,\n rejection: 2,\n waiting: 3,\n revocationWarning: 4,\n revocationNotification: 5\n};\n\nKJUR.asn1.tsp.PKIFreeText = function (f) {\n var e = KJUR,\n d = e.asn1,\n b = d.DERSequence,\n c = d.DERUTF8String,\n a = d.tsp;\n a.PKIFreeText.superclass.constructor.call(this);\n this.textList = [];\n\n this.getEncodedHex = function () {\n var g = [];\n\n for (var j = 0; j < this.textList.length; j++) {\n g.push(new c({\n str: this.textList[j]\n }));\n }\n\n var h = new b({\n array: g\n });\n this.hTLV = h.getEncodedHex();\n return this.hTLV;\n };\n\n if (f !== undefined) {\n if (_typeof(f.array) == \"object\") {\n this.textList = f.array;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.PKIFreeText, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.tsp.PKIFailureInfo = function (g) {\n var d = KJUR,\n c = d.asn1,\n f = c.DERBitString,\n a = c.tsp,\n b = a.PKIFailureInfo;\n b.superclass.constructor.call(this);\n this.value = null;\n\n this.getEncodedHex = function () {\n if (this.value == null) {\n throw \"value shall be specified\";\n }\n\n var h = new Number(this.value).toString(2);\n var i = new f();\n i.setByBinaryString(h);\n this.hTLV = i.getEncodedHex();\n return this.hTLV;\n };\n\n if (g !== undefined) {\n if (typeof g.name == \"string\") {\n var e = b.valueList;\n\n if (e[g.name] === undefined) {\n throw \"name undefined: \" + g.name;\n }\n\n this.value = e[g.name];\n } else {\n if (typeof g[\"int\"] == \"number\") {\n this.value = g[\"int\"];\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.PKIFailureInfo, KJUR.asn1.ASN1Object);\nKJUR.asn1.tsp.PKIFailureInfo.valueList = {\n badAlg: 0,\n badRequest: 2,\n badDataFormat: 5,\n timeNotAvailable: 14,\n unacceptedPolicy: 15,\n unacceptedExtension: 16,\n addInfoNotAvailable: 17,\n systemFailure: 25\n};\n\nKJUR.asn1.tsp.AbstractTSAAdapter = function (a) {\n this.getTSTHex = function (c, b) {\n throw \"not implemented yet\";\n };\n};\n\nKJUR.asn1.tsp.SimpleTSAAdapter = function (e) {\n var d = KJUR,\n c = d.asn1,\n a = c.tsp,\n b = d.crypto.Util.hashHex;\n a.SimpleTSAAdapter.superclass.constructor.call(this);\n this.params = null;\n this.serial = 0;\n\n this.getTSTHex = function (g, f) {\n var i = b(g, f);\n this.params.tstInfo.messageImprint = {\n hashAlg: f,\n hashValue: i\n };\n this.params.tstInfo.serialNumber = {\n \"int\": this.serial++\n };\n var h = Math.floor(Math.random() * 1000000000);\n this.params.tstInfo.nonce = {\n \"int\": h\n };\n var j = a.TSPUtil.newTimeStampToken(this.params);\n return j.getContentInfoEncodedHex();\n };\n\n if (e !== undefined) {\n this.params = e;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.SimpleTSAAdapter, KJUR.asn1.tsp.AbstractTSAAdapter);\n\nKJUR.asn1.tsp.FixedTSAAdapter = function (e) {\n var d = KJUR,\n c = d.asn1,\n a = c.tsp,\n b = d.crypto.Util.hashHex;\n a.FixedTSAAdapter.superclass.constructor.call(this);\n this.params = null;\n\n this.getTSTHex = function (g, f) {\n var h = b(g, f);\n this.params.tstInfo.messageImprint = {\n hashAlg: f,\n hashValue: h\n };\n var i = a.TSPUtil.newTimeStampToken(this.params);\n return i.getContentInfoEncodedHex();\n };\n\n if (e !== undefined) {\n this.params = e;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.tsp.FixedTSAAdapter, KJUR.asn1.tsp.AbstractTSAAdapter);\nKJUR.asn1.tsp.TSPUtil = new function () {}();\n\nKJUR.asn1.tsp.TSPUtil.newTimeStampToken = function (c) {\n var b = KJUR,\n j = b.asn1,\n h = b.asn1.DERInteger,\n n = j.cms,\n l = j.tsp,\n a = j.tsp.TSTInfo;\n var k = new n.SignedData();\n var g = new a(c.tstInfo);\n var f = g.getEncodedHex();\n k.dCMSVersion = new h({\n \"int\": 3\n });\n k.dEncapContentInfo.setContentValue({\n hex: f\n });\n k.dEncapContentInfo.setContentType(\"tstinfo\");\n\n if (_typeof(c.certs) == \"object\") {\n for (var e = 0; e < c.certs.length; e++) {\n k.addCertificatesByPEM(c.certs[e]);\n }\n }\n\n var d = k.signerInfoList[0];\n d.setSignerIdentifier(c.signerCert);\n d.setForContentAndHash({\n sdObj: k,\n eciObj: k.dEncapContentInfo,\n contentType: \"tstinfo\",\n hashAlg: c.hashAlg\n });\n var m = new n.SigningCertificate({\n array: [c.signerCert]\n });\n d.dSignedAttrs.add(m);\n d.sign(c.signerPrvKey, c.sigAlg);\n return k;\n};\n\nKJUR.asn1.tsp.TSPUtil.parseTimeStampReq = function (m) {\n var l = ASN1HEX;\n var h = l.getChildIdx;\n var f = l.getV;\n var b = l.getTLV;\n var j = {};\n j.certreq = false;\n var a = h(m, 0);\n\n if (a.length < 2) {\n throw \"TimeStampReq must have at least 2 items\";\n }\n\n var e = b(m, a[1]);\n j.mi = KJUR.asn1.tsp.TSPUtil.parseMessageImprint(e);\n\n for (var d = 2; d < a.length; d++) {\n var g = a[d];\n var k = m.substr(g, 2);\n\n if (k == \"06\") {\n var c = f(m, g);\n j.policy = l.hextooidstr(c);\n }\n\n if (k == \"02\") {\n j.nonce = f(m, g);\n }\n\n if (k == \"01\") {\n j.certreq = true;\n }\n }\n\n return j;\n};\n\nKJUR.asn1.tsp.TSPUtil.parseMessageImprint = function (c) {\n var m = ASN1HEX;\n var j = m.getChildIdx;\n var i = m.getV;\n var g = m.getIdxbyList;\n var k = {};\n\n if (c.substr(0, 2) != \"30\") {\n throw \"head of messageImprint hex shall be '30'\";\n }\n\n var a = j(c, 0);\n var l = g(c, 0, [0, 0]);\n var e = i(c, l);\n var d = m.hextooidstr(e);\n var h = KJUR.asn1.x509.OID.oid2name(d);\n\n if (h == \"\") {\n throw \"hashAlg name undefined: \" + d;\n }\n\n var b = h;\n var f = g(c, 0, [1]);\n k.hashAlg = b;\n k.hashValue = i(c, f);\n return k;\n};\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.asn1 == \"undefined\" || !KJUR.asn1) {\n KJUR.asn1 = {};\n}\n\nif (typeof KJUR.asn1.cades == \"undefined\" || !KJUR.asn1.cades) {\n KJUR.asn1.cades = {};\n}\n\nKJUR.asn1.cades.SignaturePolicyIdentifier = function (f) {\n var b = KJUR,\n h = b.asn1,\n i = h.DERObjectIdentifier,\n g = h.DERSequence,\n e = h.cades,\n c = e.OtherHashAlgAndValue;\n e.SignaturePolicyIdentifier.superclass.constructor.call(this);\n this.attrTypeOid = \"1.2.840.113549.1.9.16.2.15\";\n\n if (f !== undefined) {\n if (typeof f.oid == \"string\" && _typeof(f.hash) == \"object\") {\n var d = new i({\n oid: f.oid\n });\n var a = new c(f.hash);\n var j = new g({\n array: [d, a]\n });\n this.valueList = [j];\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cades.SignaturePolicyIdentifier, KJUR.asn1.cms.Attribute);\n\nKJUR.asn1.cades.OtherHashAlgAndValue = function (e) {\n var a = KJUR,\n g = a.asn1,\n f = g.DERSequence,\n h = g.DEROctetString,\n d = g.x509,\n i = d.AlgorithmIdentifier,\n c = g.cades,\n b = c.OtherHashAlgAndValue;\n b.superclass.constructor.call(this);\n this.dAlg = null;\n this.dHash = null;\n\n this.getEncodedHex = function () {\n var j = new f({\n array: [this.dAlg, this.dHash]\n });\n this.hTLV = j.getEncodedHex();\n return this.hTLV;\n };\n\n if (e !== undefined) {\n if (typeof e.alg == \"string\" && typeof e.hash == \"string\") {\n this.dAlg = new i({\n name: e.alg\n });\n this.dHash = new h({\n hex: e.hash\n });\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cades.OtherHashAlgAndValue, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.cades.SignatureTimeStamp = function (h) {\n var c = KJUR,\n b = c.asn1,\n e = b.ASN1Object,\n g = b.x509,\n a = b.cades;\n a.SignatureTimeStamp.superclass.constructor.call(this);\n this.attrTypeOid = \"1.2.840.113549.1.9.16.2.14\";\n this.tstHex = null;\n\n if (h !== undefined) {\n if (h.res !== undefined) {\n if (typeof h.res == \"string\" && h.res.match(/^[0-9A-Fa-f]+$/)) {} else {\n if (h.res instanceof e) {} else {\n throw \"res param shall be ASN1Object or hex string\";\n }\n }\n }\n\n if (h.tst !== undefined) {\n if (typeof h.tst == \"string\" && h.tst.match(/^[0-9A-Fa-f]+$/)) {\n var f = new e();\n this.tstHex = h.tst;\n f.hTLV = this.tstHex;\n f.getEncodedHex();\n this.valueList = [f];\n } else {\n if (h.tst instanceof e) {} else {\n throw \"tst param shall be ASN1Object or hex string\";\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cades.SignatureTimeStamp, KJUR.asn1.cms.Attribute);\n\nKJUR.asn1.cades.CompleteCertificateRefs = function (d) {\n var c = KJUR,\n b = c.asn1,\n a = b.cades;\n a.CompleteCertificateRefs.superclass.constructor.call(this);\n this.attrTypeOid = \"1.2.840.113549.1.9.16.2.21\";\n\n this.setByArray = function (e) {\n this.valueList = [];\n\n for (var f = 0; f < e.length; f++) {\n var g = new a.OtherCertID(e[f]);\n this.valueList.push(g);\n }\n };\n\n if (d !== undefined) {\n if (_typeof(d) == \"object\" && typeof d.length == \"number\") {\n this.setByArray(d);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cades.CompleteCertificateRefs, KJUR.asn1.cms.Attribute);\n\nKJUR.asn1.cades.OtherCertID = function (e) {\n var c = KJUR,\n b = c.asn1,\n d = b.cms,\n a = b.cades;\n a.OtherCertID.superclass.constructor.call(this);\n this.hasIssuerSerial = true;\n this.dOtherCertHash = null;\n this.dIssuerSerial = null;\n\n this.setByCertPEM = function (f) {\n this.dOtherCertHash = new a.OtherHash(f);\n\n if (this.hasIssuerSerial) {\n this.dIssuerSerial = new d.IssuerAndSerialNumber(f);\n }\n };\n\n this.getEncodedHex = function () {\n if (this.hTLV != null) {\n return this.hTLV;\n }\n\n if (this.dOtherCertHash == null) {\n throw \"otherCertHash not set\";\n }\n\n var f = [this.dOtherCertHash];\n\n if (this.dIssuerSerial != null) {\n f.push(this.dIssuerSerial);\n }\n\n var g = new b.DERSequence({\n array: f\n });\n this.hTLV = g.getEncodedHex();\n return this.hTLV;\n };\n\n if (e !== undefined) {\n if (typeof e == \"string\" && e.indexOf(\"-----BEGIN \") != -1) {\n this.setByCertPEM(e);\n }\n\n if (_typeof(e) == \"object\") {\n if (e.hasis === false) {\n this.hasIssuerSerial = false;\n }\n\n if (typeof e.cert == \"string\") {\n this.setByCertPEM(e.cert);\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cades.OtherCertID, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.cades.OtherHash = function (f) {\n var d = KJUR,\n c = d.asn1,\n e = c.cms,\n b = c.cades,\n g = b.OtherHashAlgAndValue,\n a = d.crypto.Util.hashHex;\n b.OtherHash.superclass.constructor.call(this);\n this.alg = \"sha256\";\n this.dOtherHash = null;\n\n this.setByCertPEM = function (h) {\n if (h.indexOf(\"-----BEGIN \") == -1) {\n throw \"certPEM not to seem PEM format\";\n }\n\n var i = pemtohex(h);\n var j = a(i, this.alg);\n this.dOtherHash = new g({\n alg: this.alg,\n hash: j\n });\n };\n\n this.getEncodedHex = function () {\n if (this.dOtherHash == null) {\n throw \"OtherHash not set\";\n }\n\n return this.dOtherHash.getEncodedHex();\n };\n\n if (f !== undefined) {\n if (typeof f == \"string\") {\n if (f.indexOf(\"-----BEGIN \") != -1) {\n this.setByCertPEM(f);\n } else {\n if (f.match(/^[0-9A-Fa-f]+$/)) {\n this.dOtherHash = new c.DEROctetString({\n hex: f\n });\n } else {\n throw \"unsupported string value for params\";\n }\n }\n } else {\n if (_typeof(f) == \"object\") {\n if (typeof f.cert == \"string\") {\n if (typeof f.alg == \"string\") {\n this.alg = f.alg;\n }\n\n this.setByCertPEM(f.cert);\n } else {\n this.dOtherHash = new g(f);\n }\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.cades.OtherHash, KJUR.asn1.ASN1Object);\nKJUR.asn1.cades.CAdESUtil = new function () {}();\n\nKJUR.asn1.cades.CAdESUtil.addSigTS = function (c, b, a) {};\n\nKJUR.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned = function (f) {\n var q = ASN1HEX,\n w = q.getChildIdx,\n b = q.getTLV,\n a = q.getTLVbyList,\n s = q.getTLVbyListEx,\n l = q.getIdxbyList,\n e = q.getIdxbyListEx,\n D = KJUR,\n h = D.asn1,\n m = h.ASN1Object,\n k = h.cms,\n j = k.SignedData,\n x = h.cades,\n B = x.CAdESUtil;\n var n = {};\n\n if (a(f, 0, [0]) != \"06092a864886f70d010702\") {\n throw \"hex is not CMS SignedData\";\n }\n\n var A = l(f, 0, [1, 0]);\n var C = w(f, A);\n\n if (C.length < 4) {\n throw \"num of SignedData elem shall be 4 at least\";\n }\n\n var d = C.shift();\n n.version = b(f, d);\n var y = C.shift();\n n.algs = b(f, y);\n var c = C.shift();\n n.encapcontent = b(f, c);\n n.certs = null;\n n.revs = null;\n n.si = [];\n var p = C.shift();\n\n if (f.substr(p, 2) == \"a0\") {\n n.certs = b(f, p);\n p = C.shift();\n }\n\n if (f.substr(p, 2) == \"a1\") {\n n.revs = b(f, p);\n p = C.shift();\n }\n\n var v = p;\n\n if (f.substr(v, 2) != \"31\") {\n throw \"Can't find signerInfos\";\n }\n\n var g = w(f, v);\n\n for (var t = 0; t < g.length; t++) {\n var u = g[t];\n var o = B.parseSignerInfoForAddingUnsigned(f, u, t);\n n.si[t] = o;\n }\n\n var z = null;\n n.obj = new j();\n z = new m();\n z.hTLV = n.version;\n n.obj.dCMSVersion = z;\n z = new m();\n z.hTLV = n.algs;\n n.obj.dDigestAlgs = z;\n z = new m();\n z.hTLV = n.encapcontent;\n n.obj.dEncapContentInfo = z;\n z = new m();\n z.hTLV = n.certs;\n n.obj.dCerts = z;\n n.obj.signerInfoList = [];\n\n for (var t = 0; t < n.si.length; t++) {\n n.obj.signerInfoList.push(n.si[t].obj);\n }\n\n return n;\n};\n\nKJUR.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned = function (g, q, c) {\n var p = ASN1HEX,\n s = p.getChildIdx,\n a = p.getTLV,\n l = p.getV,\n v = KJUR,\n h = v.asn1,\n n = h.ASN1Object,\n j = h.cms,\n k = j.AttributeList,\n w = j.SignerInfo;\n var o = {};\n var t = s(g, q);\n\n if (t.length != 6) {\n throw \"not supported items for SignerInfo (!=6)\";\n }\n\n var d = t.shift();\n o.version = a(g, d);\n var e = t.shift();\n o.si = a(g, e);\n var m = t.shift();\n o.digalg = a(g, m);\n var f = t.shift();\n o.sattrs = a(g, f);\n var i = t.shift();\n o.sigalg = a(g, i);\n var b = t.shift();\n o.sig = a(g, b);\n o.sigval = l(g, b);\n var u = null;\n o.obj = new w();\n u = new n();\n u.hTLV = o.version;\n o.obj.dCMSVersion = u;\n u = new n();\n u.hTLV = o.si;\n o.obj.dSignerIdentifier = u;\n u = new n();\n u.hTLV = o.digalg;\n o.obj.dDigestAlgorithm = u;\n u = new n();\n u.hTLV = o.sattrs;\n o.obj.dSignedAttrs = u;\n u = new n();\n u.hTLV = o.sigalg;\n o.obj.dSigAlg = u;\n u = new n();\n u.hTLV = o.sig;\n o.obj.dSig = u;\n o.obj.dUnsignedAttrs = new k();\n return o;\n};\n\nif (typeof KJUR.asn1.csr == \"undefined\" || !KJUR.asn1.csr) {\n KJUR.asn1.csr = {};\n}\n\nKJUR.asn1.csr.CertificationRequest = function (g) {\n var d = KJUR,\n c = d.asn1,\n e = c.DERBitString,\n b = c.DERSequence,\n a = c.csr,\n f = c.x509,\n h = a.CertificationRequestInfo;\n a.CertificationRequest.superclass.constructor.call(this);\n\n this.setByParam = function (i) {\n this.params = i;\n };\n\n this.sign = function () {\n var j = new h(this.params).getEncodedHex();\n var k = new KJUR.crypto.Signature({\n alg: this.params.sigalg\n });\n k.init(this.params.sbjprvkey);\n k.updateHex(j);\n var i = k.sign();\n this.params.sighex = i;\n };\n\n this.getPEM = function () {\n return hextopem(this.getEncodedHex(), \"CERTIFICATE REQUEST\");\n };\n\n this.getEncodedHex = function () {\n var l = this.params;\n var j = new KJUR.asn1.csr.CertificationRequestInfo(this.params);\n var m = new KJUR.asn1.x509.AlgorithmIdentifier({\n name: l.sigalg\n });\n\n if (l.sighex == undefined && l.sbjprvkey != undefined) {\n this.sign();\n }\n\n if (l.sighex == undefined) {\n throw new Error(\"sighex or sbjprvkey parameter not defined\");\n }\n\n var k = new e({\n hex: \"00\" + l.sighex\n });\n var i = new b({\n array: [j, m, k]\n });\n return i.getEncodedHex();\n };\n\n if (g !== undefined) {\n this.setByParam(g);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.csr.CertificationRequest, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.csr.CertificationRequestInfo = function (f) {\n var b = KJUR,\n j = b.asn1,\n c = j.DERBitString,\n g = j.DERSequence,\n i = j.DERInteger,\n n = j.DERUTF8String,\n d = j.DERTaggedObject,\n h = j.ASN1Util.newObject,\n l = j.csr,\n e = j.x509,\n a = e.X500Name,\n k = e.Extensions,\n m = e.SubjectPublicKeyInfo;\n l.CertificationRequestInfo.superclass.constructor.call(this);\n this.params = null;\n\n this.setByParam = function (o) {\n if (o != undefined) {\n this.params = o;\n }\n };\n\n this.getEncodedHex = function () {\n var s = this.params;\n var p = [];\n p.push(new i({\n \"int\": 0\n }));\n p.push(new a(s.subject));\n p.push(new m(KEYUTIL.getKey(s.sbjpubkey)));\n\n if (s.extreq != undefined) {\n var o = new k(s.extreq);\n var r = h({\n tag: {\n tag: \"a0\",\n explict: true,\n obj: {\n seq: [{\n oid: \"1.2.840.113549.1.9.14\"\n }, {\n set: [o]\n }]\n }\n }\n });\n p.push(r);\n } else {\n p.push(new d({\n tag: \"a0\",\n explicit: false,\n obj: new n({\n str: \"\"\n })\n }));\n }\n\n var q = new g({\n array: p\n });\n return q.getEncodedHex();\n };\n\n if (f != undefined) {\n this.setByParam(f);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.csr.CertificationRequestInfo, KJUR.asn1.ASN1Object);\nKJUR.asn1.csr.CSRUtil = new function () {}();\n\nKJUR.asn1.csr.CSRUtil.newCSRPEM = function (e) {\n var b = KEYUTIL,\n a = KJUR.asn1.csr;\n var c = new a.CertificationRequest(e);\n var d = c.getPEM();\n return d;\n};\n\nKJUR.asn1.csr.CSRUtil.getParam = function (c) {\n var m = ASN1HEX,\n j = m.getV;\n _getIdxbyList = m.getIdxbyList;\n _getTLVbyList = m.getTLVbyList, _getTLVbyListEx = m.getTLVbyListEx, _getVbyListEx = m.getVbyListEx;\n\n var b = function b(p) {\n var o = _getIdxbyList(p, 0, [0, 3, 0, 0], \"06\");\n\n if (j(p, o) != \"2a864886f70d01090e\") {\n return null;\n }\n\n return _getTLVbyList(p, 0, [0, 3, 0, 1, 0], \"30\");\n };\n\n var n = {};\n\n if (c.indexOf(\"-----BEGIN CERTIFICATE REQUEST\") == -1) {\n throw new Error(\"argument is not PEM file\");\n }\n\n var e = pemtohex(c, \"CERTIFICATE REQUEST\");\n\n try {\n var g = _getTLVbyListEx(e, 0, [0, 1]);\n\n var k = new X509();\n n.subject = {};\n n.subject.array = k.getX500Name(g);\n n.subject.str = X509.hex2dn(g);\n } catch (h) {}\n\n var d = _getTLVbyListEx(e, 0, [0, 2]);\n\n var f = KEYUTIL.getKey(d, null, \"pkcs8pub\");\n n.sbjpubkey = KEYUTIL.getPEM(f, \"PKCS8PUB\");\n var i = b(e);\n var k = new X509();\n\n if (i != null) {\n n.extreq = k.getExtParamArray(i);\n }\n\n try {\n var a = _getTLVbyListEx(e, 0, [1], \"30\");\n\n var k = new X509();\n n.sigalg = k.getAlgorithmIdentifierName(a);\n } catch (h) {}\n\n try {\n var l = _getVbyListEx(e, 0, [2]);\n\n n.sighex = l;\n } catch (h) {}\n\n return n;\n};\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.asn1 == \"undefined\" || !KJUR.asn1) {\n KJUR.asn1 = {};\n}\n\nif (typeof KJUR.asn1.ocsp == \"undefined\" || !KJUR.asn1.ocsp) {\n KJUR.asn1.ocsp = {};\n}\n\nKJUR.asn1.ocsp.DEFAULT_HASH = \"sha1\";\n\nKJUR.asn1.ocsp.OCSPResponse = function (e) {\n KJUR.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);\n var a = KJUR.asn1.DEREnumerated,\n b = KJUR.asn1.ASN1Util.newObject,\n c = KJUR.asn1.ocsp.ResponseBytes;\n var d = [\"successful\", \"malformedRequest\", \"internalError\", \"tryLater\", \"_not_used_\", \"sigRequired\", \"unauthorized\"];\n this.params = null;\n\n this._getStatusCode = function () {\n var f = this.params.resstatus;\n\n if (typeof f == \"number\") {\n return f;\n }\n\n if (typeof f != \"string\") {\n return -1;\n }\n\n return d.indexOf(f);\n };\n\n this.setByParam = function (f) {\n this.params = f;\n };\n\n this.getEncodedHex = function () {\n var h = this.params;\n\n var g = this._getStatusCode();\n\n if (g == -1) {\n throw new Error(\"responseStatus not supported: \" + h.resstatus);\n }\n\n if (g != 0) {\n return b({\n seq: [{\n \"enum\": {\n \"int\": g\n }\n }]\n }).getEncodedHex();\n }\n\n var f = new c(h);\n return b({\n seq: [{\n \"enum\": {\n \"int\": 0\n }\n }, {\n tag: {\n tag: \"a0\",\n explicit: true,\n obj: f\n }\n }]\n }).getEncodedHex();\n };\n\n if (e !== undefined) {\n this.setByParam(e);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.OCSPResponse, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.ResponseBytes = function (e) {\n KJUR.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);\n var b = KJUR.asn1,\n a = b.DERSequence,\n f = b.DERObjectIdentifier,\n c = b.DEROctetString,\n d = b.ocsp.BasicOCSPResponse;\n this.params = null;\n\n this.setByParam = function (g) {\n this.params = g;\n };\n\n this.getEncodedHex = function () {\n var j = this.params;\n\n if (j.restype != \"ocspBasic\") {\n throw new Error(\"not supported responseType: \" + j.restype);\n }\n\n var i = new d(j);\n var g = [];\n g.push(new f({\n name: \"ocspBasic\"\n }));\n g.push(new c({\n hex: i.getEncodedHex()\n }));\n var h = new a({\n array: g\n });\n return h.getEncodedHex();\n };\n\n if (e !== undefined) {\n this.setByParam(e);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.ResponseBytes, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.BasicOCSPResponse = function (d) {\n KJUR.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);\n var i = Error,\n g = KJUR.asn1,\n j = g.ASN1Object,\n e = g.DERSequence,\n f = g.DERGeneralizedTime,\n c = g.DERTaggedObject,\n b = g.DERBitString,\n h = g.x509.Extensions,\n k = g.x509.AlgorithmIdentifier,\n l = g.ocsp,\n a = l.ResponderID;\n _SingleResponseList = l.SingleResponseList, _ResponseData = l.ResponseData;\n this.params = null;\n\n this.setByParam = function (m) {\n this.params = m;\n };\n\n this.sign = function () {\n var o = this.params;\n var m = o.tbsresp.getEncodedHex();\n var n = new KJUR.crypto.Signature({\n alg: o.sigalg\n });\n n.init(o.reskey);\n n.updateHex(m);\n o.sighex = n.sign();\n };\n\n this.getEncodedHex = function () {\n var t = this.params;\n\n if (t.tbsresp == undefined) {\n t.tbsresp = new _ResponseData(t);\n }\n\n if (t.sighex == undefined && t.reskey != undefined) {\n this.sign();\n }\n\n var n = [];\n n.push(t.tbsresp);\n n.push(new k({\n name: t.sigalg\n }));\n n.push(new b({\n hex: \"00\" + t.sighex\n }));\n\n if (t.certs != undefined && t.certs.length != undefined) {\n var m = [];\n\n for (var q = 0; q < t.certs.length; q++) {\n var s = t.certs[q];\n var r = null;\n\n if (ASN1HEX.isASN1HEX(s)) {\n r = s;\n } else {\n if (s.match(/-----BEGIN/)) {\n r = pemtohex(s);\n } else {\n throw new i(\"certs[\" + q + \"] not hex or PEM\");\n }\n }\n\n m.push(new j({\n tlv: r\n }));\n }\n\n var p = new e({\n array: m\n });\n n.push(new c({\n tag: \"a0\",\n explicit: true,\n obj: p\n }));\n }\n\n var o = new e({\n array: n\n });\n return o.getEncodedHex();\n };\n\n if (d !== undefined) {\n this.setByParam(d);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.BasicOCSPResponse, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.ResponseData = function (c) {\n KJUR.asn1.ocsp.ResponseData.superclass.constructor.call(this);\n var h = Error,\n f = KJUR.asn1,\n d = f.DERSequence,\n e = f.DERGeneralizedTime,\n b = f.DERTaggedObject,\n g = f.x509.Extensions,\n i = f.ocsp,\n a = i.ResponderID;\n _SingleResponseList = i.SingleResponseList;\n this.params = null;\n\n this.getEncodedHex = function () {\n var m = this.params;\n\n if (m.respid != undefined) {\n new h(\"respid not specified\");\n }\n\n if (m.prodat != undefined) {\n new h(\"prodat not specified\");\n }\n\n if (m.array != undefined) {\n new h(\"array not specified\");\n }\n\n var j = [];\n j.push(new a(m.respid));\n j.push(new e(m.prodat));\n j.push(new _SingleResponseList(m.array));\n\n if (m.ext != undefined) {\n var l = new g(m.ext);\n j.push(new b({\n tag: \"a1\",\n explicit: true,\n obj: l\n }));\n }\n\n var k = new d({\n array: j\n });\n return k.getEncodedHex();\n };\n\n this.setByParam = function (j) {\n this.params = j;\n };\n\n if (c !== undefined) {\n this.setByParam(c);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.ResponseData, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.ResponderID = function (d) {\n KJUR.asn1.ocsp.ResponderID.superclass.constructor.call(this);\n var b = KJUR.asn1,\n a = b.ASN1Util.newObject,\n c = b.x509.X500Name;\n this.params = null;\n\n this.getEncodedHex = function () {\n var f = this.params;\n\n if (f.key != undefined) {\n var e = a({\n tag: {\n tag: \"82\",\n explicit: true,\n obj: {\n octstr: {\n hex: f.key\n }\n }\n }\n });\n return e.getEncodedHex();\n } else {\n if (f.name != undefined) {\n var e = a({\n tag: {\n tag: \"a1\",\n explicit: true,\n obj: new c(f.name)\n }\n });\n return e.getEncodedHex();\n }\n }\n\n throw new Error(\"key or name not specified\");\n };\n\n this.setByParam = function (e) {\n this.params = e;\n };\n\n if (d !== undefined) {\n this.setByParam(d);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.ResponderID, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.SingleResponseList = function (d) {\n KJUR.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);\n var c = KJUR.asn1,\n b = c.DERSequence,\n a = c.ocsp.SingleResponse;\n this.params = null;\n\n this.getEncodedHex = function () {\n var h = this.params;\n\n if (_typeof(h) != \"object\" || h.length == undefined) {\n throw new Error(\"params not specified properly\");\n }\n\n var e = [];\n\n for (var g = 0; g < h.length; g++) {\n e.push(new a(h[g]));\n }\n\n var f = new b({\n array: e\n });\n return f.getEncodedHex();\n };\n\n this.setByParam = function (e) {\n this.params = e;\n };\n\n if (d !== undefined) {\n this.setByParam(d);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.SingleResponseList, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.SingleResponse = function (e) {\n var k = Error,\n a = KJUR,\n i = a.asn1,\n f = i.DERSequence,\n g = i.DERGeneralizedTime,\n b = i.DERTaggedObject,\n l = i.ocsp,\n h = l.CertID,\n c = l.CertStatus,\n d = i.x509,\n j = d.Extensions;\n l.SingleResponse.superclass.constructor.call(this);\n this.params = null;\n\n this.getEncodedHex = function () {\n var q = this.params;\n var n = [];\n\n if (q.certid == undefined) {\n throw new k(\"certid unspecified\");\n }\n\n if (q.status == undefined) {\n throw new k(\"status unspecified\");\n }\n\n if (q.thisupdate == undefined) {\n throw new k(\"thisupdate unspecified\");\n }\n\n n.push(new h(q.certid));\n n.push(new c(q.status));\n n.push(new g(q.thisupdate));\n\n if (q.nextupdate != undefined) {\n var m = new g(q.nextupdate);\n n.push(new b({\n tag: \"80\",\n explicit: true,\n obj: m\n }));\n }\n\n if (q.ext != undefined) {\n var p = new j(q.ext);\n n.push(new b({\n tag: \"a1\",\n explicit: true,\n obj: p\n }));\n }\n\n var o = new f({\n array: n\n });\n return o.getEncodedHex();\n };\n\n this.setByParam = function (m) {\n this.params = m;\n };\n\n if (e !== undefined) {\n this.setByParam(e);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.SingleResponse, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.CertID = function (g) {\n var d = KJUR,\n k = d.asn1,\n m = k.DEROctetString,\n j = k.DERInteger,\n h = k.DERSequence,\n f = k.x509,\n n = f.AlgorithmIdentifier,\n o = k.ocsp,\n l = o.DEFAULT_HASH,\n i = d.crypto,\n e = i.Util.hashHex,\n c = X509,\n q = ASN1HEX;\n o.CertID.superclass.constructor.call(this);\n this.dHashAlg = null;\n this.dIssuerNameHash = null;\n this.dIssuerKeyHash = null;\n this.dSerialNumber = null;\n\n this.setByValue = function (t, s, p, r) {\n if (r === undefined) {\n r = l;\n }\n\n this.dHashAlg = new n({\n name: r\n });\n this.dIssuerNameHash = new m({\n hex: t\n });\n this.dIssuerKeyHash = new m({\n hex: s\n });\n this.dSerialNumber = new j({\n hex: p\n });\n };\n\n this.setByCert = function (x, t, v) {\n if (v === undefined) {\n v = l;\n }\n\n var p = new c();\n p.readCertPEM(t);\n var y = new c();\n y.readCertPEM(x);\n var z = y.getPublicKeyHex();\n var w = q.getTLVbyList(z, 0, [1, 0], \"30\");\n var r = p.getSerialNumberHex();\n var s = e(y.getSubjectHex(), v);\n var u = e(w, v);\n this.setByValue(s, u, r, v);\n this.hoge = p.getSerialNumberHex();\n };\n\n this.getEncodedHex = function () {\n if (this.dHashAlg === null && this.dIssuerNameHash === null && this.dIssuerKeyHash === null && this.dSerialNumber === null) {\n throw \"not yet set values\";\n }\n\n var p = [this.dHashAlg, this.dIssuerNameHash, this.dIssuerKeyHash, this.dSerialNumber];\n var r = new h({\n array: p\n });\n this.hTLV = r.getEncodedHex();\n return this.hTLV;\n };\n\n if (g !== undefined) {\n var b = g;\n\n if (b.issuerCert !== undefined && b.subjectCert !== undefined) {\n var a = l;\n\n if (b.alg === undefined) {\n a = undefined;\n }\n\n this.setByCert(b.issuerCert, b.subjectCert, a);\n } else {\n if (b.issname !== undefined && b.isskey !== undefined && b.sbjsn !== undefined) {\n var a = l;\n\n if (b.alg === undefined) {\n a = undefined;\n }\n\n this.setByValue(b.issname, b.isskey, b.sbjsn, a);\n } else {\n throw new Error(\"invalid constructor arguments\");\n }\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.CertID, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.CertStatus = function (a) {\n KJUR.asn1.ocsp.CertStatus.superclass.constructor.call(this);\n this.params = null;\n\n this.getEncodedHex = function () {\n var d = this.params;\n\n if (d.status == \"good\") {\n return \"8000\";\n }\n\n if (d.status == \"unknown\") {\n return \"8200\";\n }\n\n if (d.status == \"revoked\") {\n var c = [{\n gentime: {\n str: d.time\n }\n }];\n\n if (d.reason != undefined) {\n c.push({\n \"enum\": {\n \"int\": d.reason\n }\n });\n }\n\n var b = {\n tag: \"a1\",\n explicit: false,\n obj: {\n seq: c\n }\n };\n return KJUR.asn1.ASN1Util.newObject({\n tag: b\n }).getEncodedHex();\n }\n\n throw new Error(\"bad status\");\n };\n\n this.setByParam = function (b) {\n this.params = b;\n };\n\n if (a !== undefined) {\n this.setByParam(a);\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.CertStatus, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.Request = function (f) {\n var c = KJUR,\n b = c.asn1,\n a = b.DERSequence,\n d = b.ocsp;\n d.Request.superclass.constructor.call(this);\n this.dReqCert = null;\n this.dExt = null;\n\n this.getEncodedHex = function () {\n var g = [];\n\n if (this.dReqCert === null) {\n throw \"reqCert not set\";\n }\n\n g.push(this.dReqCert);\n var h = new a({\n array: g\n });\n this.hTLV = h.getEncodedHex();\n return this.hTLV;\n };\n\n if (typeof f !== \"undefined\") {\n var e = new d.CertID(f);\n this.dReqCert = e;\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.Request, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.TBSRequest = function (e) {\n var c = KJUR,\n b = c.asn1,\n a = b.DERSequence,\n d = b.ocsp;\n d.TBSRequest.superclass.constructor.call(this);\n this.version = 0;\n this.dRequestorName = null;\n this.dRequestList = [];\n this.dRequestExt = null;\n\n this.setRequestListByParam = function (h) {\n var f = [];\n\n for (var g = 0; g < h.length; g++) {\n var j = new d.Request(h[0]);\n f.push(j);\n }\n\n this.dRequestList = f;\n };\n\n this.getEncodedHex = function () {\n var f = [];\n\n if (this.version !== 0) {\n throw \"not supported version: \" + this.version;\n }\n\n if (this.dRequestorName !== null) {\n throw \"requestorName not supported\";\n }\n\n var h = new a({\n array: this.dRequestList\n });\n f.push(h);\n\n if (this.dRequestExt !== null) {\n throw \"requestExtensions not supported\";\n }\n\n var g = new a({\n array: f\n });\n this.hTLV = g.getEncodedHex();\n return this.hTLV;\n };\n\n if (e !== undefined) {\n if (e.reqList !== undefined) {\n this.setRequestListByParam(e.reqList);\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.TBSRequest, KJUR.asn1.ASN1Object);\n\nKJUR.asn1.ocsp.OCSPRequest = function (f) {\n var c = KJUR,\n b = c.asn1,\n a = b.DERSequence,\n d = b.ocsp;\n d.OCSPRequest.superclass.constructor.call(this);\n this.dTbsRequest = null;\n this.dOptionalSignature = null;\n\n this.getEncodedHex = function () {\n var g = [];\n\n if (this.dTbsRequest !== null) {\n g.push(this.dTbsRequest);\n } else {\n throw \"tbsRequest not set\";\n }\n\n if (this.dOptionalSignature !== null) {\n throw \"optionalSignature not supported\";\n }\n\n var h = new a({\n array: g\n });\n this.hTLV = h.getEncodedHex();\n return this.hTLV;\n };\n\n if (f !== undefined) {\n if (f.reqList !== undefined) {\n var e = new d.TBSRequest(f);\n this.dTbsRequest = e;\n }\n }\n};\n\nYAHOO.lang.extend(KJUR.asn1.ocsp.OCSPRequest, KJUR.asn1.ASN1Object);\nKJUR.asn1.ocsp.OCSPUtil = {};\n\nKJUR.asn1.ocsp.OCSPUtil.getRequestHex = function (a, b, h) {\n var d = KJUR,\n c = d.asn1,\n e = c.ocsp;\n\n if (h === undefined) {\n h = e.DEFAULT_HASH;\n }\n\n var g = {\n alg: h,\n issuerCert: a,\n subjectCert: b\n };\n var f = new e.OCSPRequest({\n reqList: [g]\n });\n return f.getEncodedHex();\n};\n\nKJUR.asn1.ocsp.OCSPUtil.getOCSPResponseInfo = function (b) {\n var m = ASN1HEX,\n c = m.getVbyList,\n k = m.getVbyListEx,\n e = m.getIdxbyList,\n d = m.getIdxbyListEx,\n g = m.getV;\n var n = {};\n\n try {\n var j = k(b, 0, [0], \"0a\");\n n.responseStatus = parseInt(j, 16);\n } catch (f) {}\n\n if (n.responseStatus !== 0) {\n return n;\n }\n\n try {\n var i = e(b, 0, [1, 0, 1, 0, 0, 2, 0, 1]);\n\n if (b.substr(i, 2) === \"80\") {\n n.certStatus = \"good\";\n } else {\n if (b.substr(i, 2) === \"a1\") {\n n.certStatus = \"revoked\";\n n.revocationTime = hextoutf8(c(b, i, [0]));\n } else {\n if (b.substr(i, 2) === \"82\") {\n n.certStatus = \"unknown\";\n }\n }\n }\n } catch (f) {}\n\n try {\n var a = e(b, 0, [1, 0, 1, 0, 0, 2, 0, 2]);\n n.thisUpdate = hextoutf8(g(b, a));\n } catch (f) {}\n\n try {\n var l = e(b, 0, [1, 0, 1, 0, 0, 2, 0, 3]);\n\n if (b.substr(l, 2) === \"a0\") {\n n.nextUpdate = hextoutf8(c(b, l, [0]));\n }\n } catch (f) {}\n\n return n;\n};\n\nKJUR.asn1.ocsp.OCSPParser = function () {\n var e = Error,\n a = X509,\n f = new a(),\n i = ASN1HEX,\n g = i.getV,\n b = i.getTLV,\n d = i.getIdxbyList,\n c = i.getTLVbyListEx,\n h = i.getChildIdx;\n\n this.getOCSPRequest = function (l) {\n var k = h(l, 0);\n\n if (k.length != 1 && k.length != 2) {\n throw new e(\"wrong number elements: \" + k.length);\n }\n\n var j = this.getTBSRequest(b(l, k[0]));\n return j;\n };\n\n this.getTBSRequest = function (l) {\n var j = {};\n var k = c(l, 0, [0], \"30\");\n j.array = this.getRequestList(k);\n var m = c(l, 0, [\"[2]\", 0], \"30\");\n\n if (m != null) {\n j.ext = f.getExtParamArray(m);\n }\n\n return j;\n };\n\n this.getRequestList = function (m) {\n var j = [];\n var k = h(m, 0);\n\n for (var l = 0; l < k.length; l++) {\n var m = b(m, k[l]);\n j.push(this.getRequest(m));\n }\n\n return j;\n };\n\n this.getRequest = function (k) {\n var j = h(k, 0);\n\n if (j.length != 1 && j.length != 2) {\n throw new e(\"wrong number elements: \" + j.length);\n }\n\n var m = this.getCertID(b(k, j[0]));\n\n if (j.length == 2) {\n var l = d(k, 0, [1, 0]);\n m.ext = f.getExtParamArray(b(k, l));\n }\n\n return m;\n };\n\n this.getCertID = function (m) {\n var l = h(m, 0);\n\n if (l.length != 4) {\n throw new e(\"wrong number elements: \" + l.length);\n }\n\n var k = new a();\n var j = {};\n j.alg = k.getAlgorithmIdentifierName(b(m, l[0]));\n j.issname = g(m, l[1]);\n j.isskey = g(m, l[2]);\n j.sbjsn = g(m, l[3]);\n return j;\n };\n};\n\nvar KJUR;\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.lang == \"undefined\" || !KJUR.lang) {\n KJUR.lang = {};\n}\n\nKJUR.lang.String = function () {};\n\nfunction Base64x() {}\n\nfunction stoBA(d) {\n var b = new Array();\n\n for (var c = 0; c < d.length; c++) {\n b[c] = d.charCodeAt(c);\n }\n\n return b;\n}\n\nfunction BAtos(b) {\n var d = \"\";\n\n for (var c = 0; c < b.length; c++) {\n d = d + String.fromCharCode(b[c]);\n }\n\n return d;\n}\n\nfunction BAtohex(b) {\n var e = \"\";\n\n for (var d = 0; d < b.length; d++) {\n var c = b[d].toString(16);\n\n if (c.length == 1) {\n c = \"0\" + c;\n }\n\n e = e + c;\n }\n\n return e;\n}\n\nfunction stohex(a) {\n return BAtohex(stoBA(a));\n}\n\nfunction stob64(a) {\n return hex2b64(stohex(a));\n}\n\nfunction stob64u(a) {\n return b64tob64u(hex2b64(stohex(a)));\n}\n\nfunction b64utos(a) {\n return BAtos(b64toBA(b64utob64(a)));\n}\n\nfunction b64tob64u(a) {\n a = a.replace(/\\=/g, \"\");\n a = a.replace(/\\+/g, \"-\");\n a = a.replace(/\\//g, \"_\");\n return a;\n}\n\nfunction b64utob64(a) {\n if (a.length % 4 == 2) {\n a = a + \"==\";\n } else {\n if (a.length % 4 == 3) {\n a = a + \"=\";\n }\n }\n\n a = a.replace(/-/g, \"+\");\n a = a.replace(/_/g, \"/\");\n return a;\n}\n\nfunction hextob64u(a) {\n if (a.length % 2 == 1) {\n a = \"0\" + a;\n }\n\n return b64tob64u(hex2b64(a));\n}\n\nfunction b64utohex(a) {\n return b64tohex(b64utob64(a));\n}\n\nvar utf8tob64u, b64utoutf8;\n\nif (typeof Buffer === \"function\") {\n utf8tob64u = function utf8tob64u(a) {\n return b64tob64u(new Buffer(a, \"utf8\").toString(\"base64\"));\n };\n\n b64utoutf8 = function b64utoutf8(a) {\n return new Buffer(b64utob64(a), \"base64\").toString(\"utf8\");\n };\n} else {\n utf8tob64u = function utf8tob64u(a) {\n return hextob64u(uricmptohex(encodeURIComponentAll(a)));\n };\n\n b64utoutf8 = function b64utoutf8(a) {\n return decodeURIComponent(hextouricmp(b64utohex(a)));\n };\n}\n\nfunction utf8tob64(a) {\n return hex2b64(uricmptohex(encodeURIComponentAll(a)));\n}\n\nfunction b64toutf8(a) {\n return decodeURIComponent(hextouricmp(b64tohex(a)));\n}\n\nfunction utf8tohex(a) {\n return uricmptohex(encodeURIComponentAll(a));\n}\n\nfunction hextoutf8(a) {\n return decodeURIComponent(hextouricmp(a));\n}\n\nfunction hextorstr(c) {\n var b = \"\";\n\n for (var a = 0; a < c.length - 1; a += 2) {\n b += String.fromCharCode(parseInt(c.substr(a, 2), 16));\n }\n\n return b;\n}\n\nfunction rstrtohex(c) {\n var a = \"\";\n\n for (var b = 0; b < c.length; b++) {\n a += (\"0\" + c.charCodeAt(b).toString(16)).slice(-2);\n }\n\n return a;\n}\n\nfunction hextob64(a) {\n return hex2b64(a);\n}\n\nfunction hextob64nl(b) {\n var a = hextob64(b);\n var c = a.replace(/(.{64})/g, \"$1\\r\\n\");\n c = c.replace(/\\r\\n$/, \"\");\n return c;\n}\n\nfunction b64nltohex(b) {\n var a = b.replace(/[^0-9A-Za-z\\/+=]*/g, \"\");\n var c = b64tohex(a);\n return c;\n}\n\nfunction hextopem(a, b) {\n var c = hextob64nl(a);\n return \"-----BEGIN \" + b + \"-----\\r\\n\" + c + \"\\r\\n-----END \" + b + \"-----\\r\\n\";\n}\n\nfunction pemtohex(a, b) {\n if (a.indexOf(\"-----BEGIN \") == -1) {\n throw \"can't find PEM header: \" + b;\n }\n\n if (b !== undefined) {\n a = a.replace(new RegExp(\"^[^]*-----BEGIN \" + b + \"-----\"), \"\");\n a = a.replace(new RegExp(\"-----END \" + b + \"-----[^]*$\"), \"\");\n } else {\n a = a.replace(/^[^]*-----BEGIN [^-]+-----/, \"\");\n a = a.replace(/-----END [^-]+-----[^]*$/, \"\");\n }\n\n return b64nltohex(a);\n}\n\nfunction hextoArrayBuffer(d) {\n if (d.length % 2 != 0) {\n throw \"input is not even length\";\n }\n\n if (d.match(/^[0-9A-Fa-f]+$/) == null) {\n throw \"input is not hexadecimal\";\n }\n\n var b = new ArrayBuffer(d.length / 2);\n var a = new DataView(b);\n\n for (var c = 0; c < d.length / 2; c++) {\n a.setUint8(c, parseInt(d.substr(c * 2, 2), 16));\n }\n\n return b;\n}\n\nfunction ArrayBuffertohex(b) {\n var d = \"\";\n var a = new DataView(b);\n\n for (var c = 0; c < b.byteLength; c++) {\n d += (\"00\" + a.getUint8(c).toString(16)).slice(-2);\n }\n\n return d;\n}\n\nfunction zulutomsec(n) {\n var l, j, m, e, f, i, b, k;\n var a, h, g, c;\n c = n.match(/^(\\d{2}|\\d{4})(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(|\\.\\d+)Z$/);\n\n if (c) {\n a = c[1];\n l = parseInt(a);\n\n if (a.length === 2) {\n if (50 <= l && l < 100) {\n l = 1900 + l;\n } else {\n if (0 <= l && l < 50) {\n l = 2000 + l;\n }\n }\n }\n\n j = parseInt(c[2]) - 1;\n m = parseInt(c[3]);\n e = parseInt(c[4]);\n f = parseInt(c[5]);\n i = parseInt(c[6]);\n b = 0;\n h = c[7];\n\n if (h !== \"\") {\n g = (h.substr(1) + \"00\").substr(0, 3);\n b = parseInt(g);\n }\n\n return Date.UTC(l, j, m, e, f, i, b);\n }\n\n throw \"unsupported zulu format: \" + n;\n}\n\nfunction zulutosec(a) {\n var b = zulutomsec(a);\n return ~~(b / 1000);\n}\n\nfunction zulutodate(a) {\n return new Date(zulutomsec(a));\n}\n\nfunction datetozulu(g, e, f) {\n var b;\n var a = g.getUTCFullYear();\n\n if (e) {\n if (a < 1950 || 2049 < a) {\n throw \"not proper year for UTCTime: \" + a;\n }\n\n b = (\"\" + a).slice(-2);\n } else {\n b = (\"000\" + a).slice(-4);\n }\n\n b += (\"0\" + (g.getUTCMonth() + 1)).slice(-2);\n b += (\"0\" + g.getUTCDate()).slice(-2);\n b += (\"0\" + g.getUTCHours()).slice(-2);\n b += (\"0\" + g.getUTCMinutes()).slice(-2);\n b += (\"0\" + g.getUTCSeconds()).slice(-2);\n\n if (f) {\n var c = g.getUTCMilliseconds();\n\n if (c !== 0) {\n c = (\"00\" + c).slice(-3);\n c = c.replace(/0+$/g, \"\");\n b += \".\" + c;\n }\n }\n\n b += \"Z\";\n return b;\n}\n\nfunction uricmptohex(a) {\n return a.replace(/%/g, \"\");\n}\n\nfunction hextouricmp(a) {\n return a.replace(/(..)/g, \"%$1\");\n}\n\nfunction ipv6tohex(g) {\n var b = \"malformed IPv6 address\";\n\n if (!g.match(/^[0-9A-Fa-f:]+$/)) {\n throw b;\n }\n\n g = g.toLowerCase();\n var d = g.split(\":\").length - 1;\n\n if (d < 2) {\n throw b;\n }\n\n var e = \":\".repeat(7 - d + 2);\n g = g.replace(\"::\", e);\n var c = g.split(\":\");\n\n if (c.length != 8) {\n throw b;\n }\n\n for (var f = 0; f < 8; f++) {\n c[f] = (\"0000\" + c[f]).slice(-4);\n }\n\n return c.join(\"\");\n}\n\nfunction hextoipv6(e) {\n if (!e.match(/^[0-9A-Fa-f]{32}$/)) {\n throw \"malformed IPv6 address octet\";\n }\n\n e = e.toLowerCase();\n var b = e.match(/.{1,4}/g);\n\n for (var d = 0; d < 8; d++) {\n b[d] = b[d].replace(/^0+/, \"\");\n\n if (b[d] == \"\") {\n b[d] = \"0\";\n }\n }\n\n e = \":\" + b.join(\":\") + \":\";\n var c = e.match(/:(0:){2,}/g);\n\n if (c === null) {\n return e.slice(1, -1);\n }\n\n var f = \"\";\n\n for (var d = 0; d < c.length; d++) {\n if (c[d].length > f.length) {\n f = c[d];\n }\n }\n\n e = e.replace(f, \"::\");\n return e.slice(1, -1);\n}\n\nfunction hextoip(b) {\n var d = \"malformed hex value\";\n\n if (!b.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/)) {\n throw d;\n }\n\n if (b.length == 8) {\n var c;\n\n try {\n c = parseInt(b.substr(0, 2), 16) + \".\" + parseInt(b.substr(2, 2), 16) + \".\" + parseInt(b.substr(4, 2), 16) + \".\" + parseInt(b.substr(6, 2), 16);\n return c;\n } catch (a) {\n throw d;\n }\n } else {\n if (b.length == 32) {\n return hextoipv6(b);\n } else {\n return b;\n }\n }\n}\n\nfunction iptohex(f) {\n var j = \"malformed IP address\";\n f = f.toLowerCase(f);\n\n if (f.match(/^[0-9.]+$/)) {\n var b = f.split(\".\");\n\n if (b.length !== 4) {\n throw j;\n }\n\n var g = \"\";\n\n try {\n for (var e = 0; e < 4; e++) {\n var h = parseInt(b[e]);\n g += (\"0\" + h.toString(16)).slice(-2);\n }\n\n return g;\n } catch (c) {\n throw j;\n }\n } else {\n if (f.match(/^[0-9a-f:]+$/) && f.indexOf(\":\") !== -1) {\n return ipv6tohex(f);\n } else {\n throw j;\n }\n }\n}\n\nfunction encodeURIComponentAll(a) {\n var d = encodeURIComponent(a);\n var b = \"\";\n\n for (var c = 0; c < d.length; c++) {\n if (d[c] == \"%\") {\n b = b + d.substr(c, 3);\n c = c + 2;\n } else {\n b = b + \"%\" + stohex(d[c]);\n }\n }\n\n return b;\n}\n\nfunction newline_toUnix(a) {\n a = a.replace(/\\r\\n/mg, \"\\n\");\n return a;\n}\n\nfunction newline_toDos(a) {\n a = a.replace(/\\r\\n/mg, \"\\n\");\n a = a.replace(/\\n/mg, \"\\r\\n\");\n return a;\n}\n\nKJUR.lang.String.isInteger = function (a) {\n if (a.match(/^[0-9]+$/)) {\n return true;\n } else {\n if (a.match(/^-[0-9]+$/)) {\n return true;\n } else {\n return false;\n }\n }\n};\n\nKJUR.lang.String.isHex = function (a) {\n if (a.length % 2 == 0 && (a.match(/^[0-9a-f]+$/) || a.match(/^[0-9A-F]+$/))) {\n return true;\n } else {\n return false;\n }\n};\n\nKJUR.lang.String.isBase64 = function (a) {\n a = a.replace(/\\s+/g, \"\");\n\n if (a.match(/^[0-9A-Za-z+\\/]+={0,3}$/) && a.length % 4 == 0) {\n return true;\n } else {\n return false;\n }\n};\n\nKJUR.lang.String.isBase64URL = function (a) {\n if (a.match(/[+/=]/)) {\n return false;\n }\n\n a = b64utob64(a);\n return KJUR.lang.String.isBase64(a);\n};\n\nKJUR.lang.String.isIntegerArray = function (a) {\n a = a.replace(/\\s+/g, \"\");\n\n if (a.match(/^\\[[0-9,]+\\]$/)) {\n return true;\n } else {\n return false;\n }\n};\n\nKJUR.lang.String.isPrintable = function (a) {\n if (a.match(/^[0-9A-Za-z '()+,-./:=?]*$/) !== null) {\n return true;\n }\n\n return false;\n};\n\nKJUR.lang.String.isIA5 = function (a) {\n if (a.match(/^[\\x20-\\x21\\x23-\\x7f]*$/) !== null) {\n return true;\n }\n\n return false;\n};\n\nKJUR.lang.String.isMail = function (a) {\n if (a.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\\.[A-Za-z0-9]{1,}$/) !== null) {\n return true;\n }\n\n return false;\n};\n\nfunction hextoposhex(a) {\n if (a.length % 2 == 1) {\n return \"0\" + a;\n }\n\n if (a.substr(0, 1) > \"7\") {\n return \"00\" + a;\n }\n\n return a;\n}\n\nfunction intarystrtohex(b) {\n b = b.replace(/^\\s*\\[\\s*/, \"\");\n b = b.replace(/\\s*\\]\\s*$/, \"\");\n b = b.replace(/\\s*/g, \"\");\n\n try {\n var c = b.split(/,/).map(function (g, e, h) {\n var f = parseInt(g);\n\n if (f < 0 || 255 < f) {\n throw \"integer not in range 0-255\";\n }\n\n var d = (\"00\" + f.toString(16)).slice(-2);\n return d;\n }).join(\"\");\n return c;\n } catch (a) {\n throw \"malformed integer array string: \" + a;\n }\n}\n\nvar strdiffidx = function strdiffidx(c, a) {\n var d = c.length;\n\n if (c.length > a.length) {\n d = a.length;\n }\n\n for (var b = 0; b < d; b++) {\n if (c.charCodeAt(b) != a.charCodeAt(b)) {\n return b;\n }\n }\n\n if (c.length != a.length) {\n return d;\n }\n\n return -1;\n};\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.crypto == \"undefined\" || !KJUR.crypto) {\n KJUR.crypto = {};\n}\n\nKJUR.crypto.Util = new function () {\n this.DIGESTINFOHEAD = {\n sha1: \"3021300906052b0e03021a05000414\",\n sha224: \"302d300d06096086480165030402040500041c\",\n sha256: \"3031300d060960864801650304020105000420\",\n sha384: \"3041300d060960864801650304020205000430\",\n sha512: \"3051300d060960864801650304020305000440\",\n md2: \"3020300c06082a864886f70d020205000410\",\n md5: \"3020300c06082a864886f70d020505000410\",\n ripemd160: \"3021300906052b2403020105000414\"\n };\n this.DEFAULTPROVIDER = {\n md5: \"cryptojs\",\n sha1: \"cryptojs\",\n sha224: \"cryptojs\",\n sha256: \"cryptojs\",\n sha384: \"cryptojs\",\n sha512: \"cryptojs\",\n ripemd160: \"cryptojs\",\n hmacmd5: \"cryptojs\",\n hmacsha1: \"cryptojs\",\n hmacsha224: \"cryptojs\",\n hmacsha256: \"cryptojs\",\n hmacsha384: \"cryptojs\",\n hmacsha512: \"cryptojs\",\n hmacripemd160: \"cryptojs\",\n MD5withRSA: \"cryptojs/jsrsa\",\n SHA1withRSA: \"cryptojs/jsrsa\",\n SHA224withRSA: \"cryptojs/jsrsa\",\n SHA256withRSA: \"cryptojs/jsrsa\",\n SHA384withRSA: \"cryptojs/jsrsa\",\n SHA512withRSA: \"cryptojs/jsrsa\",\n RIPEMD160withRSA: \"cryptojs/jsrsa\",\n MD5withECDSA: \"cryptojs/jsrsa\",\n SHA1withECDSA: \"cryptojs/jsrsa\",\n SHA224withECDSA: \"cryptojs/jsrsa\",\n SHA256withECDSA: \"cryptojs/jsrsa\",\n SHA384withECDSA: \"cryptojs/jsrsa\",\n SHA512withECDSA: \"cryptojs/jsrsa\",\n RIPEMD160withECDSA: \"cryptojs/jsrsa\",\n SHA1withDSA: \"cryptojs/jsrsa\",\n SHA224withDSA: \"cryptojs/jsrsa\",\n SHA256withDSA: \"cryptojs/jsrsa\",\n MD5withRSAandMGF1: \"cryptojs/jsrsa\",\n SHAwithRSAandMGF1: \"cryptojs/jsrsa\",\n SHA1withRSAandMGF1: \"cryptojs/jsrsa\",\n SHA224withRSAandMGF1: \"cryptojs/jsrsa\",\n SHA256withRSAandMGF1: \"cryptojs/jsrsa\",\n SHA384withRSAandMGF1: \"cryptojs/jsrsa\",\n SHA512withRSAandMGF1: \"cryptojs/jsrsa\",\n RIPEMD160withRSAandMGF1: \"cryptojs/jsrsa\"\n };\n this.CRYPTOJSMESSAGEDIGESTNAME = {\n md5: CryptoJS.algo.MD5,\n sha1: CryptoJS.algo.SHA1,\n sha224: CryptoJS.algo.SHA224,\n sha256: CryptoJS.algo.SHA256,\n sha384: CryptoJS.algo.SHA384,\n sha512: CryptoJS.algo.SHA512,\n ripemd160: CryptoJS.algo.RIPEMD160\n };\n\n this.getDigestInfoHex = function (a, b) {\n if (typeof this.DIGESTINFOHEAD[b] == \"undefined\") {\n throw \"alg not supported in Util.DIGESTINFOHEAD: \" + b;\n }\n\n return this.DIGESTINFOHEAD[b] + a;\n };\n\n this.getPaddedDigestInfoHex = function (h, a, j) {\n var c = this.getDigestInfoHex(h, a);\n var d = j / 4;\n\n if (c.length + 22 > d) {\n throw \"key is too short for SigAlg: keylen=\" + j + \",\" + a;\n }\n\n var b = \"0001\";\n var k = \"00\" + c;\n var g = \"\";\n var l = d - b.length - k.length;\n\n for (var f = 0; f < l; f += 2) {\n g += \"ff\";\n }\n\n var e = b + g + k;\n return e;\n };\n\n this.hashString = function (a, c) {\n var b = new KJUR.crypto.MessageDigest({\n alg: c\n });\n return b.digestString(a);\n };\n\n this.hashHex = function (b, c) {\n var a = new KJUR.crypto.MessageDigest({\n alg: c\n });\n return a.digestHex(b);\n };\n\n this.sha1 = function (a) {\n return this.hashString(a, \"sha1\");\n };\n\n this.sha256 = function (a) {\n return this.hashString(a, \"sha256\");\n };\n\n this.sha256Hex = function (a) {\n return this.hashHex(a, \"sha256\");\n };\n\n this.sha512 = function (a) {\n return this.hashString(a, \"sha512\");\n };\n\n this.sha512Hex = function (a) {\n return this.hashHex(a, \"sha512\");\n };\n\n this.isKey = function (a) {\n if (a instanceof RSAKey || a instanceof KJUR.crypto.DSA || a instanceof KJUR.crypto.ECDSA) {\n return true;\n } else {\n return false;\n }\n };\n}();\n\nKJUR.crypto.Util.md5 = function (a) {\n var b = new KJUR.crypto.MessageDigest({\n alg: \"md5\",\n prov: \"cryptojs\"\n });\n return b.digestString(a);\n};\n\nKJUR.crypto.Util.ripemd160 = function (a) {\n var b = new KJUR.crypto.MessageDigest({\n alg: \"ripemd160\",\n prov: \"cryptojs\"\n });\n return b.digestString(a);\n};\n\nKJUR.crypto.Util.SECURERANDOMGEN = new SecureRandom();\n\nKJUR.crypto.Util.getRandomHexOfNbytes = function (b) {\n var a = new Array(b);\n KJUR.crypto.Util.SECURERANDOMGEN.nextBytes(a);\n return BAtohex(a);\n};\n\nKJUR.crypto.Util.getRandomBigIntegerOfNbytes = function (a) {\n return new BigInteger(KJUR.crypto.Util.getRandomHexOfNbytes(a), 16);\n};\n\nKJUR.crypto.Util.getRandomHexOfNbits = function (d) {\n var c = d % 8;\n var a = (d - c) / 8;\n var b = new Array(a + 1);\n KJUR.crypto.Util.SECURERANDOMGEN.nextBytes(b);\n b[0] = (255 << c & 255 ^ 255) & b[0];\n return BAtohex(b);\n};\n\nKJUR.crypto.Util.getRandomBigIntegerOfNbits = function (a) {\n return new BigInteger(KJUR.crypto.Util.getRandomHexOfNbits(a), 16);\n};\n\nKJUR.crypto.Util.getRandomBigIntegerZeroToMax = function (b) {\n var a = b.bitLength();\n\n while (1) {\n var c = KJUR.crypto.Util.getRandomBigIntegerOfNbits(a);\n\n if (b.compareTo(c) != -1) {\n return c;\n }\n }\n};\n\nKJUR.crypto.Util.getRandomBigIntegerMinToMax = function (e, b) {\n var c = e.compareTo(b);\n\n if (c == 1) {\n throw \"biMin is greater than biMax\";\n }\n\n if (c == 0) {\n return e;\n }\n\n var a = b.subtract(e);\n var d = KJUR.crypto.Util.getRandomBigIntegerZeroToMax(a);\n return d.add(e);\n};\n\nKJUR.crypto.MessageDigest = function (c) {\n var b = null;\n var a = null;\n var d = null;\n\n this.setAlgAndProvider = function (g, f) {\n g = KJUR.crypto.MessageDigest.getCanonicalAlgName(g);\n\n if (g !== null && f === undefined) {\n f = KJUR.crypto.Util.DEFAULTPROVIDER[g];\n }\n\n if (\":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:\".indexOf(g) != -1 && f == \"cryptojs\") {\n try {\n this.md = KJUR.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[g].create();\n } catch (e) {\n throw \"setAlgAndProvider hash alg set fail alg=\" + g + \"/\" + e;\n }\n\n this.updateString = function (h) {\n this.md.update(h);\n };\n\n this.updateHex = function (h) {\n var i = CryptoJS.enc.Hex.parse(h);\n this.md.update(i);\n };\n\n this.digest = function () {\n var h = this.md.finalize();\n return h.toString(CryptoJS.enc.Hex);\n };\n\n this.digestString = function (h) {\n this.updateString(h);\n return this.digest();\n };\n\n this.digestHex = function (h) {\n this.updateHex(h);\n return this.digest();\n };\n }\n\n if (\":sha256:\".indexOf(g) != -1 && f == \"sjcl\") {\n try {\n this.md = new sjcl.hash.sha256();\n } catch (e) {\n throw \"setAlgAndProvider hash alg set fail alg=\" + g + \"/\" + e;\n }\n\n this.updateString = function (h) {\n this.md.update(h);\n };\n\n this.updateHex = function (i) {\n var h = sjcl.codec.hex.toBits(i);\n this.md.update(h);\n };\n\n this.digest = function () {\n var h = this.md.finalize();\n return sjcl.codec.hex.fromBits(h);\n };\n\n this.digestString = function (h) {\n this.updateString(h);\n return this.digest();\n };\n\n this.digestHex = function (h) {\n this.updateHex(h);\n return this.digest();\n };\n }\n };\n\n this.updateString = function (e) {\n throw \"updateString(str) not supported for this alg/prov: \" + this.algName + \"/\" + this.provName;\n };\n\n this.updateHex = function (e) {\n throw \"updateHex(hex) not supported for this alg/prov: \" + this.algName + \"/\" + this.provName;\n };\n\n this.digest = function () {\n throw \"digest() not supported for this alg/prov: \" + this.algName + \"/\" + this.provName;\n };\n\n this.digestString = function (e) {\n throw \"digestString(str) not supported for this alg/prov: \" + this.algName + \"/\" + this.provName;\n };\n\n this.digestHex = function (e) {\n throw \"digestHex(hex) not supported for this alg/prov: \" + this.algName + \"/\" + this.provName;\n };\n\n if (c !== undefined) {\n if (c.alg !== undefined) {\n this.algName = c.alg;\n\n if (c.prov === undefined) {\n this.provName = KJUR.crypto.Util.DEFAULTPROVIDER[this.algName];\n }\n\n this.setAlgAndProvider(this.algName, this.provName);\n }\n }\n};\n\nKJUR.crypto.MessageDigest.getCanonicalAlgName = function (a) {\n if (typeof a === \"string\") {\n a = a.toLowerCase();\n a = a.replace(/-/, \"\");\n }\n\n return a;\n};\n\nKJUR.crypto.MessageDigest.getHashLength = function (c) {\n var b = KJUR.crypto.MessageDigest;\n var a = b.getCanonicalAlgName(c);\n\n if (b.HASHLENGTH[a] === undefined) {\n throw \"not supported algorithm: \" + c;\n }\n\n return b.HASHLENGTH[a];\n};\n\nKJUR.crypto.MessageDigest.HASHLENGTH = {\n md5: 16,\n sha1: 20,\n sha224: 28,\n sha256: 32,\n sha384: 48,\n sha512: 64,\n ripemd160: 20\n};\n\nKJUR.crypto.Mac = function (d) {\n var f = null;\n var c = null;\n var a = null;\n var e = null;\n var b = null;\n\n this.setAlgAndProvider = function (k, i) {\n k = k.toLowerCase();\n\n if (k == null) {\n k = \"hmacsha1\";\n }\n\n k = k.toLowerCase();\n\n if (k.substr(0, 4) != \"hmac\") {\n throw \"setAlgAndProvider unsupported HMAC alg: \" + k;\n }\n\n if (i === undefined) {\n i = KJUR.crypto.Util.DEFAULTPROVIDER[k];\n }\n\n this.algProv = k + \"/\" + i;\n var g = k.substr(4);\n\n if (\":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:\".indexOf(g) != -1 && i == \"cryptojs\") {\n try {\n var j = KJUR.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[g];\n this.mac = CryptoJS.algo.HMAC.create(j, this.pass);\n } catch (h) {\n throw \"setAlgAndProvider hash alg set fail hashAlg=\" + g + \"/\" + h;\n }\n\n this.updateString = function (l) {\n this.mac.update(l);\n };\n\n this.updateHex = function (l) {\n var m = CryptoJS.enc.Hex.parse(l);\n this.mac.update(m);\n };\n\n this.doFinal = function () {\n var l = this.mac.finalize();\n return l.toString(CryptoJS.enc.Hex);\n };\n\n this.doFinalString = function (l) {\n this.updateString(l);\n return this.doFinal();\n };\n\n this.doFinalHex = function (l) {\n this.updateHex(l);\n return this.doFinal();\n };\n }\n };\n\n this.updateString = function (g) {\n throw \"updateString(str) not supported for this alg/prov: \" + this.algProv;\n };\n\n this.updateHex = function (g) {\n throw \"updateHex(hex) not supported for this alg/prov: \" + this.algProv;\n };\n\n this.doFinal = function () {\n throw \"digest() not supported for this alg/prov: \" + this.algProv;\n };\n\n this.doFinalString = function (g) {\n throw \"digestString(str) not supported for this alg/prov: \" + this.algProv;\n };\n\n this.doFinalHex = function (g) {\n throw \"digestHex(hex) not supported for this alg/prov: \" + this.algProv;\n };\n\n this.setPassword = function (h) {\n if (typeof h == \"string\") {\n var g = h;\n\n if (h.length % 2 == 1 || !h.match(/^[0-9A-Fa-f]+$/)) {\n g = rstrtohex(h);\n }\n\n this.pass = CryptoJS.enc.Hex.parse(g);\n return;\n }\n\n if (_typeof(h) != \"object\") {\n throw \"KJUR.crypto.Mac unsupported password type: \" + h;\n }\n\n var g = null;\n\n if (h.hex !== undefined) {\n if (h.hex.length % 2 != 0 || !h.hex.match(/^[0-9A-Fa-f]+$/)) {\n throw \"Mac: wrong hex password: \" + h.hex;\n }\n\n g = h.hex;\n }\n\n if (h.utf8 !== undefined) {\n g = utf8tohex(h.utf8);\n }\n\n if (h.rstr !== undefined) {\n g = rstrtohex(h.rstr);\n }\n\n if (h.b64 !== undefined) {\n g = b64tohex(h.b64);\n }\n\n if (h.b64u !== undefined) {\n g = b64utohex(h.b64u);\n }\n\n if (g == null) {\n throw \"KJUR.crypto.Mac unsupported password type: \" + h;\n }\n\n this.pass = CryptoJS.enc.Hex.parse(g);\n };\n\n if (d !== undefined) {\n if (d.pass !== undefined) {\n this.setPassword(d.pass);\n }\n\n if (d.alg !== undefined) {\n this.algName = d.alg;\n\n if (d.prov === undefined) {\n this.provName = KJUR.crypto.Util.DEFAULTPROVIDER[this.algName];\n }\n\n this.setAlgAndProvider(this.algName, this.provName);\n }\n }\n};\n\nKJUR.crypto.Signature = function (o) {\n var q = null;\n var n = null;\n var r = null;\n var c = null;\n var l = null;\n var d = null;\n var k = null;\n var h = null;\n var p = null;\n var e = null;\n var b = -1;\n var g = null;\n var j = null;\n var a = null;\n var i = null;\n var f = null;\n\n this._setAlgNames = function () {\n var s = this.algName.match(/^(.+)with(.+)$/);\n\n if (s) {\n this.mdAlgName = s[1].toLowerCase();\n this.pubkeyAlgName = s[2].toLowerCase();\n\n if (this.pubkeyAlgName == \"rsaandmgf1\" && this.mdAlgName == \"sha\") {\n this.mdAlgName = \"sha1\";\n }\n }\n };\n\n this._zeroPaddingOfSignature = function (x, w) {\n var v = \"\";\n var t = w / 4 - x.length;\n\n for (var u = 0; u < t; u++) {\n v = v + \"0\";\n }\n\n return v + x;\n };\n\n this.setAlgAndProvider = function (u, t) {\n this._setAlgNames();\n\n if (t != \"cryptojs/jsrsa\") {\n throw new Error(\"provider not supported: \" + t);\n }\n\n if (\":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:\".indexOf(this.mdAlgName) != -1) {\n try {\n this.md = new KJUR.crypto.MessageDigest({\n alg: this.mdAlgName\n });\n } catch (s) {\n throw new Error(\"setAlgAndProvider hash alg set fail alg=\" + this.mdAlgName + \"/\" + s);\n }\n\n this.init = function (w, x) {\n var y = null;\n\n try {\n if (x === undefined) {\n y = KEYUTIL.getKey(w);\n } else {\n y = KEYUTIL.getKey(w, x);\n }\n } catch (v) {\n throw \"init failed:\" + v;\n }\n\n if (y.isPrivate === true) {\n this.prvKey = y;\n this.state = \"SIGN\";\n } else {\n if (y.isPublic === true) {\n this.pubKey = y;\n this.state = \"VERIFY\";\n } else {\n throw \"init failed.:\" + y;\n }\n }\n };\n\n this.updateString = function (v) {\n this.md.updateString(v);\n };\n\n this.updateHex = function (v) {\n this.md.updateHex(v);\n };\n\n this.sign = function () {\n this.sHashHex = this.md.digest();\n\n if (this.prvKey === undefined && this.ecprvhex !== undefined && this.eccurvename !== undefined && KJUR.crypto.ECDSA !== undefined) {\n this.prvKey = new KJUR.crypto.ECDSA({\n curve: this.eccurvename,\n prv: this.ecprvhex\n });\n }\n\n if (this.prvKey instanceof RSAKey && this.pubkeyAlgName === \"rsaandmgf1\") {\n this.hSign = this.prvKey.signWithMessageHashPSS(this.sHashHex, this.mdAlgName, this.pssSaltLen);\n } else {\n if (this.prvKey instanceof RSAKey && this.pubkeyAlgName === \"rsa\") {\n this.hSign = this.prvKey.signWithMessageHash(this.sHashHex, this.mdAlgName);\n } else {\n if (this.prvKey instanceof KJUR.crypto.ECDSA) {\n this.hSign = this.prvKey.signWithMessageHash(this.sHashHex);\n } else {\n if (this.prvKey instanceof KJUR.crypto.DSA) {\n this.hSign = this.prvKey.signWithMessageHash(this.sHashHex);\n } else {\n throw \"Signature: unsupported private key alg: \" + this.pubkeyAlgName;\n }\n }\n }\n }\n\n return this.hSign;\n };\n\n this.signString = function (v) {\n this.updateString(v);\n return this.sign();\n };\n\n this.signHex = function (v) {\n this.updateHex(v);\n return this.sign();\n };\n\n this.verify = function (v) {\n this.sHashHex = this.md.digest();\n\n if (this.pubKey === undefined && this.ecpubhex !== undefined && this.eccurvename !== undefined && KJUR.crypto.ECDSA !== undefined) {\n this.pubKey = new KJUR.crypto.ECDSA({\n curve: this.eccurvename,\n pub: this.ecpubhex\n });\n }\n\n if (this.pubKey instanceof RSAKey && this.pubkeyAlgName === \"rsaandmgf1\") {\n return this.pubKey.verifyWithMessageHashPSS(this.sHashHex, v, this.mdAlgName, this.pssSaltLen);\n } else {\n if (this.pubKey instanceof RSAKey && this.pubkeyAlgName === \"rsa\") {\n return this.pubKey.verifyWithMessageHash(this.sHashHex, v);\n } else {\n if (KJUR.crypto.ECDSA !== undefined && this.pubKey instanceof KJUR.crypto.ECDSA) {\n return this.pubKey.verifyWithMessageHash(this.sHashHex, v);\n } else {\n if (KJUR.crypto.DSA !== undefined && this.pubKey instanceof KJUR.crypto.DSA) {\n return this.pubKey.verifyWithMessageHash(this.sHashHex, v);\n } else {\n throw \"Signature: unsupported public key alg: \" + this.pubkeyAlgName;\n }\n }\n }\n }\n };\n }\n };\n\n this.init = function (s, t) {\n throw \"init(key, pass) not supported for this alg:prov=\" + this.algProvName;\n };\n\n this.updateString = function (s) {\n throw \"updateString(str) not supported for this alg:prov=\" + this.algProvName;\n };\n\n this.updateHex = function (s) {\n throw \"updateHex(hex) not supported for this alg:prov=\" + this.algProvName;\n };\n\n this.sign = function () {\n throw \"sign() not supported for this alg:prov=\" + this.algProvName;\n };\n\n this.signString = function (s) {\n throw \"digestString(str) not supported for this alg:prov=\" + this.algProvName;\n };\n\n this.signHex = function (s) {\n throw \"digestHex(hex) not supported for this alg:prov=\" + this.algProvName;\n };\n\n this.verify = function (s) {\n throw \"verify(hSigVal) not supported for this alg:prov=\" + this.algProvName;\n };\n\n this.initParams = o;\n\n if (o !== undefined) {\n if (o.alg !== undefined) {\n this.algName = o.alg;\n\n if (o.prov === undefined) {\n this.provName = KJUR.crypto.Util.DEFAULTPROVIDER[this.algName];\n } else {\n this.provName = o.prov;\n }\n\n this.algProvName = this.algName + \":\" + this.provName;\n this.setAlgAndProvider(this.algName, this.provName);\n\n this._setAlgNames();\n }\n\n if (o.psssaltlen !== undefined) {\n this.pssSaltLen = o.psssaltlen;\n }\n\n if (o.prvkeypem !== undefined) {\n if (o.prvkeypas !== undefined) {\n throw \"both prvkeypem and prvkeypas parameters not supported\";\n } else {\n try {\n var q = KEYUTIL.getKey(o.prvkeypem);\n this.init(q);\n } catch (m) {\n throw \"fatal error to load pem private key: \" + m;\n }\n }\n }\n }\n};\n\nKJUR.crypto.Cipher = function (a) {};\n\nKJUR.crypto.Cipher.encrypt = function (e, f, d) {\n if (f instanceof RSAKey && f.isPublic) {\n var c = KJUR.crypto.Cipher.getAlgByKeyAndName(f, d);\n\n if (c === \"RSA\") {\n return f.encrypt(e);\n }\n\n if (c === \"RSAOAEP\") {\n return f.encryptOAEP(e, \"sha1\");\n }\n\n var b = c.match(/^RSAOAEP(\\d+)$/);\n\n if (b !== null) {\n return f.encryptOAEP(e, \"sha\" + b[1]);\n }\n\n throw \"Cipher.encrypt: unsupported algorithm for RSAKey: \" + d;\n } else {\n throw \"Cipher.encrypt: unsupported key or algorithm\";\n }\n};\n\nKJUR.crypto.Cipher.decrypt = function (e, f, d) {\n if (f instanceof RSAKey && f.isPrivate) {\n var c = KJUR.crypto.Cipher.getAlgByKeyAndName(f, d);\n\n if (c === \"RSA\") {\n return f.decrypt(e);\n }\n\n if (c === \"RSAOAEP\") {\n return f.decryptOAEP(e, \"sha1\");\n }\n\n var b = c.match(/^RSAOAEP(\\d+)$/);\n\n if (b !== null) {\n return f.decryptOAEP(e, \"sha\" + b[1]);\n }\n\n throw \"Cipher.decrypt: unsupported algorithm for RSAKey: \" + d;\n } else {\n throw \"Cipher.decrypt: unsupported key or algorithm\";\n }\n};\n\nKJUR.crypto.Cipher.getAlgByKeyAndName = function (b, a) {\n if (b instanceof RSAKey) {\n if (\":RSA:RSAOAEP:RSAOAEP224:RSAOAEP256:RSAOAEP384:RSAOAEP512:\".indexOf(a) != -1) {\n return a;\n }\n\n if (a === null || a === undefined) {\n return \"RSA\";\n }\n\n throw \"getAlgByKeyAndName: not supported algorithm name for RSAKey: \" + a;\n }\n\n throw \"getAlgByKeyAndName: not supported algorithm name: \" + a;\n};\n\nKJUR.crypto.OID = new function () {\n this.oidhex2name = {\n \"2a864886f70d010101\": \"rsaEncryption\",\n \"2a8648ce3d0201\": \"ecPublicKey\",\n \"2a8648ce380401\": \"dsa\",\n \"2a8648ce3d030107\": \"secp256r1\",\n \"2b8104001f\": \"secp192k1\",\n \"2b81040021\": \"secp224r1\",\n \"2b8104000a\": \"secp256k1\",\n \"2b81040023\": \"secp521r1\",\n \"2b81040022\": \"secp384r1\",\n \"2a8648ce380403\": \"SHA1withDSA\",\n \"608648016503040301\": \"SHA224withDSA\",\n \"608648016503040302\": \"SHA256withDSA\"\n };\n}();\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.crypto == \"undefined\" || !KJUR.crypto) {\n KJUR.crypto = {};\n}\n\nKJUR.crypto.ECDSA = function (e) {\n var g = \"secp256r1\";\n var p = null;\n var b = null;\n var i = null;\n var j = Error,\n f = BigInteger,\n h = ECPointFp,\n m = KJUR.crypto.ECDSA,\n c = KJUR.crypto.ECParameterDB,\n d = m.getName,\n q = ASN1HEX,\n n = q.getVbyListEx,\n k = q.isASN1HEX;\n var a = new SecureRandom();\n var o = null;\n this.type = \"EC\";\n this.isPrivate = false;\n this.isPublic = false;\n\n function l(x, t, w, s) {\n var r = Math.max(t.bitLength(), s.bitLength());\n var y = x.add2D(w);\n var v = x.curve.getInfinity();\n\n for (var u = r - 1; u >= 0; --u) {\n v = v.twice2D();\n v.z = f.ONE;\n\n if (t.testBit(u)) {\n if (s.testBit(u)) {\n v = v.add2D(y);\n } else {\n v = v.add2D(x);\n }\n } else {\n if (s.testBit(u)) {\n v = v.add2D(w);\n }\n }\n }\n\n return v;\n }\n\n this.getBigRandom = function (r) {\n return new f(r.bitLength(), a).mod(r.subtract(f.ONE)).add(f.ONE);\n };\n\n this.setNamedCurve = function (r) {\n this.ecparams = c.getByName(r);\n this.prvKeyHex = null;\n this.pubKeyHex = null;\n this.curveName = r;\n };\n\n this.setPrivateKeyHex = function (r) {\n this.isPrivate = true;\n this.prvKeyHex = r;\n };\n\n this.setPublicKeyHex = function (r) {\n this.isPublic = true;\n this.pubKeyHex = r;\n };\n\n this.getPublicKeyXYHex = function () {\n var t = this.pubKeyHex;\n\n if (t.substr(0, 2) !== \"04\") {\n throw \"this method supports uncompressed format(04) only\";\n }\n\n var s = this.ecparams.keylen / 4;\n\n if (t.length !== 2 + s * 2) {\n throw \"malformed public key hex length\";\n }\n\n var r = {};\n r.x = t.substr(2, s);\n r.y = t.substr(2 + s);\n return r;\n };\n\n this.getShortNISTPCurveName = function () {\n var r = this.curveName;\n\n if (r === \"secp256r1\" || r === \"NIST P-256\" || r === \"P-256\" || r === \"prime256v1\") {\n return \"P-256\";\n }\n\n if (r === \"secp384r1\" || r === \"NIST P-384\" || r === \"P-384\") {\n return \"P-384\";\n }\n\n return null;\n };\n\n this.generateKeyPairHex = function () {\n var t = this.ecparams.n;\n var w = this.getBigRandom(t);\n var u = this.ecparams.G.multiply(w);\n var z = u.getX().toBigInteger();\n var x = u.getY().toBigInteger();\n var r = this.ecparams.keylen / 4;\n var v = (\"0000000000\" + w.toString(16)).slice(-r);\n var A = (\"0000000000\" + z.toString(16)).slice(-r);\n var y = (\"0000000000\" + x.toString(16)).slice(-r);\n var s = \"04\" + A + y;\n this.setPrivateKeyHex(v);\n this.setPublicKeyHex(s);\n return {\n ecprvhex: v,\n ecpubhex: s\n };\n };\n\n this.signWithMessageHash = function (r) {\n return this.signHex(r, this.prvKeyHex);\n };\n\n this.signHex = function (x, u) {\n var A = new f(u, 16);\n var v = this.ecparams.n;\n var z = new f(x.substring(0, this.ecparams.keylen / 4), 16);\n\n do {\n var w = this.getBigRandom(v);\n var B = this.ecparams.G;\n var y = B.multiply(w);\n var t = y.getX().toBigInteger().mod(v);\n } while (t.compareTo(f.ZERO) <= 0);\n\n var C = w.modInverse(v).multiply(z.add(A.multiply(t))).mod(v);\n return m.biRSSigToASN1Sig(t, C);\n };\n\n this.sign = function (w, B) {\n var z = B;\n var u = this.ecparams.n;\n var y = f.fromByteArrayUnsigned(w);\n\n do {\n var v = this.getBigRandom(u);\n var A = this.ecparams.G;\n var x = A.multiply(v);\n var t = x.getX().toBigInteger().mod(u);\n } while (t.compareTo(BigInteger.ZERO) <= 0);\n\n var C = v.modInverse(u).multiply(y.add(z.multiply(t))).mod(u);\n return this.serializeSig(t, C);\n };\n\n this.verifyWithMessageHash = function (s, r) {\n return this.verifyHex(s, r, this.pubKeyHex);\n };\n\n this.verifyHex = function (v, y, u) {\n try {\n var t, B;\n var w = m.parseSigHex(y);\n t = w.r;\n B = w.s;\n var x = h.decodeFromHex(this.ecparams.curve, u);\n var z = new f(v.substring(0, this.ecparams.keylen / 4), 16);\n return this.verifyRaw(z, t, B, x);\n } catch (A) {\n return false;\n }\n };\n\n this.verify = function (z, A, u) {\n var w, t;\n\n if (Bitcoin.Util.isArray(A)) {\n var y = this.parseSig(A);\n w = y.r;\n t = y.s;\n } else {\n if (\"object\" === _typeof(A) && A.r && A.s) {\n w = A.r;\n t = A.s;\n } else {\n throw \"Invalid value for signature\";\n }\n }\n\n var v;\n\n if (u instanceof ECPointFp) {\n v = u;\n } else {\n if (Bitcoin.Util.isArray(u)) {\n v = h.decodeFrom(this.ecparams.curve, u);\n } else {\n throw \"Invalid format for pubkey value, must be byte array or ECPointFp\";\n }\n }\n\n var x = f.fromByteArrayUnsigned(z);\n return this.verifyRaw(x, w, t, v);\n };\n\n this.verifyRaw = function (z, t, E, y) {\n var x = this.ecparams.n;\n var D = this.ecparams.G;\n\n if (t.compareTo(f.ONE) < 0 || t.compareTo(x) >= 0) {\n return false;\n }\n\n if (E.compareTo(f.ONE) < 0 || E.compareTo(x) >= 0) {\n return false;\n }\n\n var A = E.modInverse(x);\n var w = z.multiply(A).mod(x);\n var u = t.multiply(A).mod(x);\n var B = D.multiply(w).add(y.multiply(u));\n var C = B.getX().toBigInteger().mod(x);\n return C.equals(t);\n };\n\n this.serializeSig = function (v, u) {\n var w = v.toByteArraySigned();\n var t = u.toByteArraySigned();\n var x = [];\n x.push(2);\n x.push(w.length);\n x = x.concat(w);\n x.push(2);\n x.push(t.length);\n x = x.concat(t);\n x.unshift(x.length);\n x.unshift(48);\n return x;\n };\n\n this.parseSig = function (y) {\n var x;\n\n if (y[0] != 48) {\n throw new Error(\"Signature not a valid DERSequence\");\n }\n\n x = 2;\n\n if (y[x] != 2) {\n throw new Error(\"First element in signature must be a DERInteger\");\n }\n\n var w = y.slice(x + 2, x + 2 + y[x + 1]);\n x += 2 + y[x + 1];\n\n if (y[x] != 2) {\n throw new Error(\"Second element in signature must be a DERInteger\");\n }\n\n var t = y.slice(x + 2, x + 2 + y[x + 1]);\n x += 2 + y[x + 1];\n var v = f.fromByteArrayUnsigned(w);\n var u = f.fromByteArrayUnsigned(t);\n return {\n r: v,\n s: u\n };\n };\n\n this.parseSigCompact = function (w) {\n if (w.length !== 65) {\n throw \"Signature has the wrong length\";\n }\n\n var t = w[0] - 27;\n\n if (t < 0 || t > 7) {\n throw \"Invalid signature type\";\n }\n\n var x = this.ecparams.n;\n var v = f.fromByteArrayUnsigned(w.slice(1, 33)).mod(x);\n var u = f.fromByteArrayUnsigned(w.slice(33, 65)).mod(x);\n return {\n r: v,\n s: u,\n i: t\n };\n };\n\n this.readPKCS5PrvKeyHex = function (u) {\n if (k(u) === false) {\n throw new Error(\"not ASN.1 hex string\");\n }\n\n var r, t, v;\n\n try {\n r = n(u, 0, [\"[0]\", 0], \"06\");\n t = n(u, 0, [1], \"04\");\n\n try {\n v = n(u, 0, [\"[1]\", 0], \"03\");\n } catch (s) {}\n } catch (s) {\n throw new Error(\"malformed PKCS#1/5 plain ECC private key\");\n }\n\n this.curveName = d(r);\n\n if (this.curveName === undefined) {\n throw \"unsupported curve name\";\n }\n\n this.setNamedCurve(this.curveName);\n this.setPublicKeyHex(v);\n this.setPrivateKeyHex(t);\n this.isPublic = false;\n };\n\n this.readPKCS8PrvKeyHex = function (v) {\n if (k(v) === false) {\n throw new j(\"not ASN.1 hex string\");\n }\n\n var t, r, u, w;\n\n try {\n t = n(v, 0, [1, 0], \"06\");\n r = n(v, 0, [1, 1], \"06\");\n u = n(v, 0, [2, 0, 1], \"04\");\n\n try {\n w = n(v, 0, [2, 0, \"[1]\", 0], \"03\");\n } catch (s) {}\n } catch (s) {\n throw new j(\"malformed PKCS#8 plain ECC private key\");\n }\n\n this.curveName = d(r);\n\n if (this.curveName === undefined) {\n throw new j(\"unsupported curve name\");\n }\n\n this.setNamedCurve(this.curveName);\n this.setPublicKeyHex(w);\n this.setPrivateKeyHex(u);\n this.isPublic = false;\n };\n\n this.readPKCS8PubKeyHex = function (u) {\n if (k(u) === false) {\n throw new j(\"not ASN.1 hex string\");\n }\n\n var t, r, v;\n\n try {\n t = n(u, 0, [0, 0], \"06\");\n r = n(u, 0, [0, 1], \"06\");\n v = n(u, 0, [1], \"03\");\n } catch (s) {\n throw new j(\"malformed PKCS#8 ECC public key\");\n }\n\n this.curveName = d(r);\n\n if (this.curveName === null) {\n throw new j(\"unsupported curve name\");\n }\n\n this.setNamedCurve(this.curveName);\n this.setPublicKeyHex(v);\n };\n\n this.readCertPubKeyHex = function (t, v) {\n if (k(t) === false) {\n throw new j(\"not ASN.1 hex string\");\n }\n\n var r, u;\n\n try {\n r = n(t, 0, [0, 5, 0, 1], \"06\");\n u = n(t, 0, [0, 5, 1], \"03\");\n } catch (s) {\n throw new j(\"malformed X.509 certificate ECC public key\");\n }\n\n this.curveName = d(r);\n\n if (this.curveName === null) {\n throw new j(\"unsupported curve name\");\n }\n\n this.setNamedCurve(this.curveName);\n this.setPublicKeyHex(u);\n };\n\n if (e !== undefined) {\n if (e.curve !== undefined) {\n this.curveName = e.curve;\n }\n }\n\n if (this.curveName === undefined) {\n this.curveName = g;\n }\n\n this.setNamedCurve(this.curveName);\n\n if (e !== undefined) {\n if (e.prv !== undefined) {\n this.setPrivateKeyHex(e.prv);\n }\n\n if (e.pub !== undefined) {\n this.setPublicKeyHex(e.pub);\n }\n }\n};\n\nKJUR.crypto.ECDSA.parseSigHex = function (a) {\n var b = KJUR.crypto.ECDSA.parseSigHexInHexRS(a);\n var d = new BigInteger(b.r, 16);\n var c = new BigInteger(b.s, 16);\n return {\n r: d,\n s: c\n };\n};\n\nKJUR.crypto.ECDSA.parseSigHexInHexRS = function (f) {\n var j = ASN1HEX,\n i = j.getChildIdx,\n g = j.getV;\n j.checkStrictDER(f, 0);\n\n if (f.substr(0, 2) != \"30\") {\n throw new Error(\"signature is not a ASN.1 sequence\");\n }\n\n var h = i(f, 0);\n\n if (h.length != 2) {\n throw new Error(\"signature shall have two elements\");\n }\n\n var e = h[0];\n var d = h[1];\n\n if (f.substr(e, 2) != \"02\") {\n throw new Error(\"1st item not ASN.1 integer\");\n }\n\n if (f.substr(d, 2) != \"02\") {\n throw new Error(\"2nd item not ASN.1 integer\");\n }\n\n var c = g(f, e);\n var b = g(f, d);\n return {\n r: c,\n s: b\n };\n};\n\nKJUR.crypto.ECDSA.asn1SigToConcatSig = function (c) {\n var d = KJUR.crypto.ECDSA.parseSigHexInHexRS(c);\n var b = d.r;\n var a = d.s;\n\n if (b.substr(0, 2) == \"00\" && b.length % 32 == 2) {\n b = b.substr(2);\n }\n\n if (a.substr(0, 2) == \"00\" && a.length % 32 == 2) {\n a = a.substr(2);\n }\n\n if (b.length % 32 == 30) {\n b = \"00\" + b;\n }\n\n if (a.length % 32 == 30) {\n a = \"00\" + a;\n }\n\n if (b.length % 32 != 0) {\n throw \"unknown ECDSA sig r length error\";\n }\n\n if (a.length % 32 != 0) {\n throw \"unknown ECDSA sig s length error\";\n }\n\n return b + a;\n};\n\nKJUR.crypto.ECDSA.concatSigToASN1Sig = function (a) {\n if (a.length / 2 * 8 % (16 * 8) != 0) {\n throw \"unknown ECDSA concatinated r-s sig length error\";\n }\n\n var c = a.substr(0, a.length / 2);\n var b = a.substr(a.length / 2);\n return KJUR.crypto.ECDSA.hexRSSigToASN1Sig(c, b);\n};\n\nKJUR.crypto.ECDSA.hexRSSigToASN1Sig = function (b, a) {\n var d = new BigInteger(b, 16);\n var c = new BigInteger(a, 16);\n return KJUR.crypto.ECDSA.biRSSigToASN1Sig(d, c);\n};\n\nKJUR.crypto.ECDSA.biRSSigToASN1Sig = function (f, d) {\n var c = KJUR.asn1;\n var b = new c.DERInteger({\n bigint: f\n });\n var a = new c.DERInteger({\n bigint: d\n });\n var e = new c.DERSequence({\n array: [b, a]\n });\n return e.getEncodedHex();\n};\n\nKJUR.crypto.ECDSA.getName = function (a) {\n if (a === \"2b8104001f\") {\n return \"secp192k1\";\n }\n\n if (a === \"2a8648ce3d030107\") {\n return \"secp256r1\";\n }\n\n if (a === \"2b8104000a\") {\n return \"secp256k1\";\n }\n\n if (a === \"2b81040021\") {\n return \"secp224r1\";\n }\n\n if (a === \"2b81040022\") {\n return \"secp384r1\";\n }\n\n if (\"|secp256r1|NIST P-256|P-256|prime256v1|\".indexOf(a) !== -1) {\n return \"secp256r1\";\n }\n\n if (\"|secp256k1|\".indexOf(a) !== -1) {\n return \"secp256k1\";\n }\n\n if (\"|secp224r1|NIST P-224|P-224|\".indexOf(a) !== -1) {\n return \"secp224r1\";\n }\n\n if (\"|secp384r1|NIST P-384|P-384|\".indexOf(a) !== -1) {\n return \"secp384r1\";\n }\n\n return null;\n};\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.crypto == \"undefined\" || !KJUR.crypto) {\n KJUR.crypto = {};\n}\n\nKJUR.crypto.ECParameterDB = new function () {\n var b = {};\n var c = {};\n\n function a(d) {\n return new BigInteger(d, 16);\n }\n\n this.getByName = function (e) {\n var d = e;\n\n if (typeof c[d] != \"undefined\") {\n d = c[e];\n }\n\n if (typeof b[d] != \"undefined\") {\n return b[d];\n }\n\n throw \"unregistered EC curve name: \" + d;\n };\n\n this.regist = function (A, l, o, g, m, e, j, f, k, u, d, x) {\n b[A] = {};\n var s = a(o);\n var z = a(g);\n var y = a(m);\n var t = a(e);\n var w = a(j);\n var r = new ECCurveFp(s, z, y);\n var q = r.decodePointHex(\"04\" + f + k);\n b[A][\"name\"] = A;\n b[A][\"keylen\"] = l;\n b[A][\"curve\"] = r;\n b[A][\"G\"] = q;\n b[A][\"n\"] = t;\n b[A][\"h\"] = w;\n b[A][\"oid\"] = d;\n b[A][\"info\"] = x;\n\n for (var v = 0; v < u.length; v++) {\n c[u[v]] = A;\n }\n };\n}();\nKJUR.crypto.ECParameterDB.regist(\"secp128r1\", 128, \"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF\", \"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC\", \"E87579C11079F43DD824993C2CEE5ED3\", \"FFFFFFFE0000000075A30D1B9038A115\", \"1\", \"161FF7528B899B2D0C28607CA52C5B86\", \"CF5AC8395BAFEB13C02DA292DDED7A83\", [], \"\", \"secp128r1 : SECG curve over a 128 bit prime field\");\nKJUR.crypto.ECParameterDB.regist(\"secp160k1\", 160, \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73\", \"0\", \"7\", \"0100000000000000000001B8FA16DFAB9ACA16B6B3\", \"1\", \"3B4C382CE37AA192A4019E763036F4F5DD4D7EBB\", \"938CF935318FDCED6BC28286531733C3F03C4FEE\", [], \"\", \"secp160k1 : SECG curve over a 160 bit prime field\");\nKJUR.crypto.ECParameterDB.regist(\"secp160r1\", 160, \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF\", \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC\", \"1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45\", \"0100000000000000000001F4C8F927AED3CA752257\", \"1\", \"4A96B5688EF573284664698968C38BB913CBFC82\", \"23A628553168947D59DCC912042351377AC5FB32\", [], \"\", \"secp160r1 : SECG curve over a 160 bit prime field\");\nKJUR.crypto.ECParameterDB.regist(\"secp192k1\", 192, \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37\", \"0\", \"3\", \"FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D\", \"1\", \"DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D\", \"9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D\", []);\nKJUR.crypto.ECParameterDB.regist(\"secp192r1\", 192, \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF\", \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC\", \"64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1\", \"FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831\", \"1\", \"188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012\", \"07192B95FFC8DA78631011ED6B24CDD573F977A11E794811\", []);\nKJUR.crypto.ECParameterDB.regist(\"secp224r1\", 224, \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001\", \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE\", \"B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4\", \"FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D\", \"1\", \"B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21\", \"BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34\", []);\nKJUR.crypto.ECParameterDB.regist(\"secp256k1\", 256, \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F\", \"0\", \"7\", \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141\", \"1\", \"79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798\", \"483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8\", []);\nKJUR.crypto.ECParameterDB.regist(\"secp256r1\", 256, \"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF\", \"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC\", \"5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B\", \"FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551\", \"1\", \"6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296\", \"4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5\", [\"NIST P-256\", \"P-256\", \"prime256v1\"]);\nKJUR.crypto.ECParameterDB.regist(\"secp384r1\", 384, \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF\", \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC\", \"B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF\", \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973\", \"1\", \"AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7\", \"3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\", [\"NIST P-384\", \"P-384\"]);\nKJUR.crypto.ECParameterDB.regist(\"secp521r1\", 521, \"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\", \"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC\", \"051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00\", \"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409\", \"1\", \"C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66\", \"011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\", [\"NIST P-521\", \"P-521\"]);\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.crypto == \"undefined\" || !KJUR.crypto) {\n KJUR.crypto = {};\n}\n\nKJUR.crypto.DSA = function () {\n var b = ASN1HEX,\n e = b.getVbyList,\n d = b.getVbyListEx,\n a = b.isASN1HEX,\n c = BigInteger;\n this.p = null;\n this.q = null;\n this.g = null;\n this.y = null;\n this.x = null;\n this.type = \"DSA\";\n this.isPrivate = false;\n this.isPublic = false;\n\n this.setPrivate = function (j, i, h, k, f) {\n this.isPrivate = true;\n this.p = j;\n this.q = i;\n this.g = h;\n this.y = k;\n this.x = f;\n };\n\n this.setPrivateHex = function (i, g, k, n, o) {\n var h, f, j, l, m;\n h = new BigInteger(i, 16);\n f = new BigInteger(g, 16);\n j = new BigInteger(k, 16);\n\n if (typeof n === \"string\" && n.length > 1) {\n l = new BigInteger(n, 16);\n } else {\n l = null;\n }\n\n m = new BigInteger(o, 16);\n this.setPrivate(h, f, j, l, m);\n };\n\n this.setPublic = function (i, h, f, j) {\n this.isPublic = true;\n this.p = i;\n this.q = h;\n this.g = f;\n this.y = j;\n this.x = null;\n };\n\n this.setPublicHex = function (k, j, i, l) {\n var g, f, m, h;\n g = new BigInteger(k, 16);\n f = new BigInteger(j, 16);\n m = new BigInteger(i, 16);\n h = new BigInteger(l, 16);\n this.setPublic(g, f, m, h);\n };\n\n this.signWithMessageHash = function (j) {\n var i = this.p;\n var h = this.q;\n var m = this.g;\n var o = this.y;\n var t = this.x;\n var l = KJUR.crypto.Util.getRandomBigIntegerMinToMax(BigInteger.ONE.add(BigInteger.ONE), h.subtract(BigInteger.ONE));\n var u = j.substr(0, h.bitLength() / 4);\n var n = new BigInteger(u, 16);\n var f = m.modPow(l, i).mod(h);\n var w = l.modInverse(h).multiply(n.add(t.multiply(f))).mod(h);\n var v = KJUR.asn1.ASN1Util.jsonToASN1HEX({\n seq: [{\n \"int\": {\n bigint: f\n }\n }, {\n \"int\": {\n bigint: w\n }\n }]\n });\n return v;\n };\n\n this.verifyWithMessageHash = function (m, l) {\n var j = this.p;\n var h = this.q;\n var o = this.g;\n var u = this.y;\n var n = this.parseASN1Signature(l);\n var f = n[0];\n var C = n[1];\n var B = m.substr(0, h.bitLength() / 4);\n var t = new BigInteger(B, 16);\n\n if (BigInteger.ZERO.compareTo(f) > 0 || f.compareTo(h) > 0) {\n throw \"invalid DSA signature\";\n }\n\n if (BigInteger.ZERO.compareTo(C) >= 0 || C.compareTo(h) > 0) {\n throw \"invalid DSA signature\";\n }\n\n var x = C.modInverse(h);\n var k = t.multiply(x).mod(h);\n var i = f.multiply(x).mod(h);\n var A = o.modPow(k, j).multiply(u.modPow(i, j)).mod(j).mod(h);\n return A.compareTo(f) == 0;\n };\n\n this.parseASN1Signature = function (f) {\n try {\n var i = new c(d(f, 0, [0], \"02\"), 16);\n var h = new c(d(f, 0, [1], \"02\"), 16);\n return [i, h];\n } catch (g) {\n throw new Error(\"malformed ASN.1 DSA signature\");\n }\n };\n\n this.readPKCS5PrvKeyHex = function (j) {\n var k, i, g, l, m;\n\n if (a(j) === false) {\n throw new Error(\"not ASN.1 hex string\");\n }\n\n try {\n k = d(j, 0, [1], \"02\");\n i = d(j, 0, [2], \"02\");\n g = d(j, 0, [3], \"02\");\n l = d(j, 0, [4], \"02\");\n m = d(j, 0, [5], \"02\");\n } catch (f) {\n throw new Error(\"malformed PKCS#1/5 plain DSA private key\");\n }\n\n this.setPrivateHex(k, i, g, l, m);\n };\n\n this.readPKCS8PrvKeyHex = function (j) {\n var k, i, g, l;\n\n if (a(j) === false) {\n throw new Error(\"not ASN.1 hex string\");\n }\n\n try {\n k = d(j, 0, [1, 1, 0], \"02\");\n i = d(j, 0, [1, 1, 1], \"02\");\n g = d(j, 0, [1, 1, 2], \"02\");\n l = d(j, 0, [2, 0], \"02\");\n } catch (f) {\n throw new Error(\"malformed PKCS#8 plain DSA private key\");\n }\n\n this.setPrivateHex(k, i, g, null, l);\n };\n\n this.readPKCS8PubKeyHex = function (j) {\n var k, i, g, l;\n\n if (a(j) === false) {\n throw new Error(\"not ASN.1 hex string\");\n }\n\n try {\n k = d(j, 0, [0, 1, 0], \"02\");\n i = d(j, 0, [0, 1, 1], \"02\");\n g = d(j, 0, [0, 1, 2], \"02\");\n l = d(j, 0, [1, 0], \"02\");\n } catch (f) {\n throw new Error(\"malformed PKCS#8 DSA public key\");\n }\n\n this.setPublicHex(k, i, g, l);\n };\n\n this.readCertPubKeyHex = function (j, m) {\n var k, i, g, l;\n\n if (a(j) === false) {\n throw new Error(\"not ASN.1 hex string\");\n }\n\n try {\n k = d(j, 0, [0, 5, 0, 1, 0], \"02\");\n i = d(j, 0, [0, 5, 0, 1, 1], \"02\");\n g = d(j, 0, [0, 5, 0, 1, 2], \"02\");\n l = d(j, 0, [0, 5, 1, 0], \"02\");\n } catch (f) {\n throw new Error(\"malformed X.509 certificate DSA public key\");\n }\n\n this.setPublicHex(k, i, g, l);\n };\n};\n\nvar KEYUTIL = function () {\n var d = function d(p, r, q) {\n return k(CryptoJS.AES, p, r, q);\n };\n\n var e = function e(p, r, q) {\n return k(CryptoJS.TripleDES, p, r, q);\n };\n\n var a = function a(p, r, q) {\n return k(CryptoJS.DES, p, r, q);\n };\n\n var k = function k(s, x, u, q) {\n var r = CryptoJS.enc.Hex.parse(x);\n var w = CryptoJS.enc.Hex.parse(u);\n var p = CryptoJS.enc.Hex.parse(q);\n var t = {};\n t.key = w;\n t.iv = p;\n t.ciphertext = r;\n var v = s.decrypt(t, w, {\n iv: p\n });\n return CryptoJS.enc.Hex.stringify(v);\n };\n\n var l = function l(p, r, q) {\n return g(CryptoJS.AES, p, r, q);\n };\n\n var o = function o(p, r, q) {\n return g(CryptoJS.TripleDES, p, r, q);\n };\n\n var f = function f(p, r, q) {\n return g(CryptoJS.DES, p, r, q);\n };\n\n var g = function g(t, y, v, q) {\n var s = CryptoJS.enc.Hex.parse(y);\n var x = CryptoJS.enc.Hex.parse(v);\n var p = CryptoJS.enc.Hex.parse(q);\n var w = t.encrypt(s, x, {\n iv: p\n });\n var r = CryptoJS.enc.Hex.parse(w.toString());\n var u = CryptoJS.enc.Base64.stringify(r);\n return u;\n };\n\n var i = {\n \"AES-256-CBC\": {\n proc: d,\n eproc: l,\n keylen: 32,\n ivlen: 16\n },\n \"AES-192-CBC\": {\n proc: d,\n eproc: l,\n keylen: 24,\n ivlen: 16\n },\n \"AES-128-CBC\": {\n proc: d,\n eproc: l,\n keylen: 16,\n ivlen: 16\n },\n \"DES-EDE3-CBC\": {\n proc: e,\n eproc: o,\n keylen: 24,\n ivlen: 8\n },\n \"DES-CBC\": {\n proc: a,\n eproc: f,\n keylen: 8,\n ivlen: 8\n }\n };\n\n var c = function c(p) {\n return i[p][\"proc\"];\n };\n\n var m = function m(p) {\n var r = CryptoJS.lib.WordArray.random(p);\n var q = CryptoJS.enc.Hex.stringify(r);\n return q;\n };\n\n var n = function n(v) {\n var w = {};\n var q = v.match(new RegExp(\"DEK-Info: ([^,]+),([0-9A-Fa-f]+)\", \"m\"));\n\n if (q) {\n w.cipher = q[1];\n w.ivsalt = q[2];\n }\n\n var p = v.match(new RegExp(\"-----BEGIN ([A-Z]+) PRIVATE KEY-----\"));\n\n if (p) {\n w.type = p[1];\n }\n\n var u = -1;\n var x = 0;\n\n if (v.indexOf(\"\\r\\n\\r\\n\") != -1) {\n u = v.indexOf(\"\\r\\n\\r\\n\");\n x = 2;\n }\n\n if (v.indexOf(\"\\n\\n\") != -1) {\n u = v.indexOf(\"\\n\\n\");\n x = 1;\n }\n\n var t = v.indexOf(\"-----END\");\n\n if (u != -1 && t != -1) {\n var r = v.substring(u + x * 2, t - x);\n r = r.replace(/\\s+/g, \"\");\n w.data = r;\n }\n\n return w;\n };\n\n var j = function j(q, y, p) {\n var v = p.substring(0, 16);\n var t = CryptoJS.enc.Hex.parse(v);\n var r = CryptoJS.enc.Utf8.parse(y);\n var u = i[q][\"keylen\"] + i[q][\"ivlen\"];\n var x = \"\";\n var w = null;\n\n for (;;) {\n var s = CryptoJS.algo.MD5.create();\n\n if (w != null) {\n s.update(w);\n }\n\n s.update(r);\n s.update(t);\n w = s.finalize();\n x = x + CryptoJS.enc.Hex.stringify(w);\n\n if (x.length >= u * 2) {\n break;\n }\n }\n\n var z = {};\n z.keyhex = x.substr(0, i[q][\"keylen\"] * 2);\n z.ivhex = x.substr(i[q][\"keylen\"] * 2, i[q][\"ivlen\"] * 2);\n return z;\n };\n\n var b = function b(p, v, r, w) {\n var s = CryptoJS.enc.Base64.parse(p);\n var q = CryptoJS.enc.Hex.stringify(s);\n var u = i[v][\"proc\"];\n var t = u(q, r, w);\n return t;\n };\n\n var h = function h(p, s, q, u) {\n var r = i[s][\"eproc\"];\n var t = r(p, q, u);\n return t;\n };\n\n return {\n version: \"1.0.0\",\n parsePKCS5PEM: function parsePKCS5PEM(p) {\n return n(p);\n },\n getKeyAndUnusedIvByPasscodeAndIvsalt: function getKeyAndUnusedIvByPasscodeAndIvsalt(q, p, r) {\n return j(q, p, r);\n },\n decryptKeyB64: function decryptKeyB64(p, r, q, s) {\n return b(p, r, q, s);\n },\n getDecryptedKeyHex: function getDecryptedKeyHex(y, x) {\n var q = n(y);\n var t = q.type;\n var r = q.cipher;\n var p = q.ivsalt;\n var s = q.data;\n var w = j(r, x, p);\n var v = w.keyhex;\n var u = b(s, r, v, p);\n return u;\n },\n getEncryptedPKCS5PEMFromPrvKeyHex: function getEncryptedPKCS5PEMFromPrvKeyHex(x, s, A, t, r) {\n var p = \"\";\n\n if (typeof t == \"undefined\" || t == null) {\n t = \"AES-256-CBC\";\n }\n\n if (typeof i[t] == \"undefined\") {\n throw \"KEYUTIL unsupported algorithm: \" + t;\n }\n\n if (typeof r == \"undefined\" || r == null) {\n var v = i[t][\"ivlen\"];\n var u = m(v);\n r = u.toUpperCase();\n }\n\n var z = j(t, A, r);\n var y = z.keyhex;\n var w = h(s, t, y, r);\n var q = w.replace(/(.{64})/g, \"$1\\r\\n\");\n var p = \"-----BEGIN \" + x + \" PRIVATE KEY-----\\r\\n\";\n p += \"Proc-Type: 4,ENCRYPTED\\r\\n\";\n p += \"DEK-Info: \" + t + \",\" + r + \"\\r\\n\";\n p += \"\\r\\n\";\n p += q;\n p += \"\\r\\n-----END \" + x + \" PRIVATE KEY-----\\r\\n\";\n return p;\n },\n parseHexOfEncryptedPKCS8: function parseHexOfEncryptedPKCS8(y) {\n var B = ASN1HEX;\n var z = B.getChildIdx;\n var w = B.getV;\n var t = {};\n var r = z(y, 0);\n\n if (r.length != 2) {\n throw \"malformed format: SEQUENCE(0).items != 2: \" + r.length;\n }\n\n t.ciphertext = w(y, r[1]);\n var A = z(y, r[0]);\n\n if (A.length != 2) {\n throw \"malformed format: SEQUENCE(0.0).items != 2: \" + A.length;\n }\n\n if (w(y, A[0]) != \"2a864886f70d01050d\") {\n throw \"this only supports pkcs5PBES2\";\n }\n\n var p = z(y, A[1]);\n\n if (A.length != 2) {\n throw \"malformed format: SEQUENCE(0.0.1).items != 2: \" + p.length;\n }\n\n var q = z(y, p[1]);\n\n if (q.length != 2) {\n throw \"malformed format: SEQUENCE(0.0.1.1).items != 2: \" + q.length;\n }\n\n if (w(y, q[0]) != \"2a864886f70d0307\") {\n throw \"this only supports TripleDES\";\n }\n\n t.encryptionSchemeAlg = \"TripleDES\";\n t.encryptionSchemeIV = w(y, q[1]);\n var s = z(y, p[0]);\n\n if (s.length != 2) {\n throw \"malformed format: SEQUENCE(0.0.1.0).items != 2: \" + s.length;\n }\n\n if (w(y, s[0]) != \"2a864886f70d01050c\") {\n throw \"this only supports pkcs5PBKDF2\";\n }\n\n var x = z(y, s[1]);\n\n if (x.length < 2) {\n throw \"malformed format: SEQUENCE(0.0.1.0.1).items < 2: \" + x.length;\n }\n\n t.pbkdf2Salt = w(y, x[0]);\n var u = w(y, x[1]);\n\n try {\n t.pbkdf2Iter = parseInt(u, 16);\n } catch (v) {\n throw \"malformed format pbkdf2Iter: \" + u;\n }\n\n return t;\n },\n getPBKDF2KeyHexFromParam: function getPBKDF2KeyHexFromParam(u, p) {\n var t = CryptoJS.enc.Hex.parse(u.pbkdf2Salt);\n var q = u.pbkdf2Iter;\n var s = CryptoJS.PBKDF2(p, t, {\n keySize: 192 / 32,\n iterations: q\n });\n var r = CryptoJS.enc.Hex.stringify(s);\n return r;\n },\n _getPlainPKCS8HexFromEncryptedPKCS8PEM: function _getPlainPKCS8HexFromEncryptedPKCS8PEM(x, y) {\n var r = pemtohex(x, \"ENCRYPTED PRIVATE KEY\");\n var p = this.parseHexOfEncryptedPKCS8(r);\n var u = KEYUTIL.getPBKDF2KeyHexFromParam(p, y);\n var v = {};\n v.ciphertext = CryptoJS.enc.Hex.parse(p.ciphertext);\n var t = CryptoJS.enc.Hex.parse(u);\n var s = CryptoJS.enc.Hex.parse(p.encryptionSchemeIV);\n var w = CryptoJS.TripleDES.decrypt(v, t, {\n iv: s\n });\n var q = CryptoJS.enc.Hex.stringify(w);\n return q;\n },\n getKeyFromEncryptedPKCS8PEM: function getKeyFromEncryptedPKCS8PEM(s, q) {\n var p = this._getPlainPKCS8HexFromEncryptedPKCS8PEM(s, q);\n\n var r = this.getKeyFromPlainPrivatePKCS8Hex(p);\n return r;\n },\n parsePlainPrivatePKCS8Hex: function parsePlainPrivatePKCS8Hex(s) {\n var v = ASN1HEX;\n var u = v.getChildIdx;\n var t = v.getV;\n var q = {};\n q.algparam = null;\n\n if (s.substr(0, 2) != \"30\") {\n throw \"malformed plain PKCS8 private key(code:001)\";\n }\n\n var r = u(s, 0);\n\n if (r.length != 3) {\n throw \"malformed plain PKCS8 private key(code:002)\";\n }\n\n if (s.substr(r[1], 2) != \"30\") {\n throw \"malformed PKCS8 private key(code:003)\";\n }\n\n var p = u(s, r[1]);\n\n if (p.length != 2) {\n throw \"malformed PKCS8 private key(code:004)\";\n }\n\n if (s.substr(p[0], 2) != \"06\") {\n throw \"malformed PKCS8 private key(code:005)\";\n }\n\n q.algoid = t(s, p[0]);\n\n if (s.substr(p[1], 2) == \"06\") {\n q.algparam = t(s, p[1]);\n }\n\n if (s.substr(r[2], 2) != \"04\") {\n throw \"malformed PKCS8 private key(code:006)\";\n }\n\n q.keyidx = v.getVidx(s, r[2]);\n return q;\n },\n getKeyFromPlainPrivatePKCS8PEM: function getKeyFromPlainPrivatePKCS8PEM(q) {\n var p = pemtohex(q, \"PRIVATE KEY\");\n var r = this.getKeyFromPlainPrivatePKCS8Hex(p);\n return r;\n },\n getKeyFromPlainPrivatePKCS8Hex: function getKeyFromPlainPrivatePKCS8Hex(p) {\n var q = this.parsePlainPrivatePKCS8Hex(p);\n var r;\n\n if (q.algoid == \"2a864886f70d010101\") {\n r = new RSAKey();\n } else {\n if (q.algoid == \"2a8648ce380401\") {\n r = new KJUR.crypto.DSA();\n } else {\n if (q.algoid == \"2a8648ce3d0201\") {\n r = new KJUR.crypto.ECDSA();\n } else {\n throw \"unsupported private key algorithm\";\n }\n }\n }\n\n r.readPKCS8PrvKeyHex(p);\n return r;\n },\n _getKeyFromPublicPKCS8Hex: function _getKeyFromPublicPKCS8Hex(q) {\n var p;\n var r = ASN1HEX.getVbyList(q, 0, [0, 0], \"06\");\n\n if (r === \"2a864886f70d010101\") {\n p = new RSAKey();\n } else {\n if (r === \"2a8648ce380401\") {\n p = new KJUR.crypto.DSA();\n } else {\n if (r === \"2a8648ce3d0201\") {\n p = new KJUR.crypto.ECDSA();\n } else {\n throw \"unsupported PKCS#8 public key hex\";\n }\n }\n }\n\n p.readPKCS8PubKeyHex(q);\n return p;\n },\n parsePublicRawRSAKeyHex: function parsePublicRawRSAKeyHex(r) {\n var u = ASN1HEX;\n var t = u.getChildIdx;\n var s = u.getV;\n var p = {};\n\n if (r.substr(0, 2) != \"30\") {\n throw \"malformed RSA key(code:001)\";\n }\n\n var q = t(r, 0);\n\n if (q.length != 2) {\n throw \"malformed RSA key(code:002)\";\n }\n\n if (r.substr(q[0], 2) != \"02\") {\n throw \"malformed RSA key(code:003)\";\n }\n\n p.n = s(r, q[0]);\n\n if (r.substr(q[1], 2) != \"02\") {\n throw \"malformed RSA key(code:004)\";\n }\n\n p.e = s(r, q[1]);\n return p;\n },\n parsePublicPKCS8Hex: function parsePublicPKCS8Hex(t) {\n var v = ASN1HEX;\n var u = v.getChildIdx;\n var s = v.getV;\n var q = {};\n q.algparam = null;\n var r = u(t, 0);\n\n if (r.length != 2) {\n throw \"outer DERSequence shall have 2 elements: \" + r.length;\n }\n\n var w = r[0];\n\n if (t.substr(w, 2) != \"30\") {\n throw \"malformed PKCS8 public key(code:001)\";\n }\n\n var p = u(t, w);\n\n if (p.length != 2) {\n throw \"malformed PKCS8 public key(code:002)\";\n }\n\n if (t.substr(p[0], 2) != \"06\") {\n throw \"malformed PKCS8 public key(code:003)\";\n }\n\n q.algoid = s(t, p[0]);\n\n if (t.substr(p[1], 2) == \"06\") {\n q.algparam = s(t, p[1]);\n } else {\n if (t.substr(p[1], 2) == \"30\") {\n q.algparam = {};\n q.algparam.p = v.getVbyList(t, p[1], [0], \"02\");\n q.algparam.q = v.getVbyList(t, p[1], [1], \"02\");\n q.algparam.g = v.getVbyList(t, p[1], [2], \"02\");\n }\n }\n\n if (t.substr(r[1], 2) != \"03\") {\n throw \"malformed PKCS8 public key(code:004)\";\n }\n\n q.key = s(t, r[1]).substr(2);\n return q;\n }\n };\n}();\n\nKEYUTIL.getKey = function (l, k, n) {\n var G = ASN1HEX,\n L = G.getChildIdx,\n v = G.getV,\n d = G.getVbyList,\n c = KJUR.crypto,\n i = c.ECDSA,\n C = c.DSA,\n w = RSAKey,\n M = pemtohex,\n F = KEYUTIL;\n\n if (typeof w != \"undefined\" && l instanceof w) {\n return l;\n }\n\n if (typeof i != \"undefined\" && l instanceof i) {\n return l;\n }\n\n if (typeof C != \"undefined\" && l instanceof C) {\n return l;\n }\n\n if (l.curve !== undefined && l.xy !== undefined && l.d === undefined) {\n return new i({\n pub: l.xy,\n curve: l.curve\n });\n }\n\n if (l.curve !== undefined && l.d !== undefined) {\n return new i({\n prv: l.d,\n curve: l.curve\n });\n }\n\n if (l.kty === undefined && l.n !== undefined && l.e !== undefined && l.d === undefined) {\n var P = new w();\n P.setPublic(l.n, l.e);\n return P;\n }\n\n if (l.kty === undefined && l.n !== undefined && l.e !== undefined && l.d !== undefined && l.p !== undefined && l.q !== undefined && l.dp !== undefined && l.dq !== undefined && l.co !== undefined && l.qi === undefined) {\n var P = new w();\n P.setPrivateEx(l.n, l.e, l.d, l.p, l.q, l.dp, l.dq, l.co);\n return P;\n }\n\n if (l.kty === undefined && l.n !== undefined && l.e !== undefined && l.d !== undefined && l.p === undefined) {\n var P = new w();\n P.setPrivate(l.n, l.e, l.d);\n return P;\n }\n\n if (l.p !== undefined && l.q !== undefined && l.g !== undefined && l.y !== undefined && l.x === undefined) {\n var P = new C();\n P.setPublic(l.p, l.q, l.g, l.y);\n return P;\n }\n\n if (l.p !== undefined && l.q !== undefined && l.g !== undefined && l.y !== undefined && l.x !== undefined) {\n var P = new C();\n P.setPrivate(l.p, l.q, l.g, l.y, l.x);\n return P;\n }\n\n if (l.kty === \"RSA\" && l.n !== undefined && l.e !== undefined && l.d === undefined) {\n var P = new w();\n P.setPublic(b64utohex(l.n), b64utohex(l.e));\n return P;\n }\n\n if (l.kty === \"RSA\" && l.n !== undefined && l.e !== undefined && l.d !== undefined && l.p !== undefined && l.q !== undefined && l.dp !== undefined && l.dq !== undefined && l.qi !== undefined) {\n var P = new w();\n P.setPrivateEx(b64utohex(l.n), b64utohex(l.e), b64utohex(l.d), b64utohex(l.p), b64utohex(l.q), b64utohex(l.dp), b64utohex(l.dq), b64utohex(l.qi));\n return P;\n }\n\n if (l.kty === \"RSA\" && l.n !== undefined && l.e !== undefined && l.d !== undefined) {\n var P = new w();\n P.setPrivate(b64utohex(l.n), b64utohex(l.e), b64utohex(l.d));\n return P;\n }\n\n if (l.kty === \"EC\" && l.crv !== undefined && l.x !== undefined && l.y !== undefined && l.d === undefined) {\n var j = new i({\n curve: l.crv\n });\n var t = j.ecparams.keylen / 4;\n var B = (\"0000000000\" + b64utohex(l.x)).slice(-t);\n var z = (\"0000000000\" + b64utohex(l.y)).slice(-t);\n var u = \"04\" + B + z;\n j.setPublicKeyHex(u);\n return j;\n }\n\n if (l.kty === \"EC\" && l.crv !== undefined && l.x !== undefined && l.y !== undefined && l.d !== undefined) {\n var j = new i({\n curve: l.crv\n });\n var t = j.ecparams.keylen / 4;\n var B = (\"0000000000\" + b64utohex(l.x)).slice(-t);\n var z = (\"0000000000\" + b64utohex(l.y)).slice(-t);\n var u = \"04\" + B + z;\n var b = (\"0000000000\" + b64utohex(l.d)).slice(-t);\n j.setPublicKeyHex(u);\n j.setPrivateKeyHex(b);\n return j;\n }\n\n if (n === \"pkcs5prv\") {\n var J = l,\n G = ASN1HEX,\n N,\n P;\n N = L(J, 0);\n\n if (N.length === 9) {\n P = new w();\n P.readPKCS5PrvKeyHex(J);\n } else {\n if (N.length === 6) {\n P = new C();\n P.readPKCS5PrvKeyHex(J);\n } else {\n if (N.length > 2 && J.substr(N[1], 2) === \"04\") {\n P = new i();\n P.readPKCS5PrvKeyHex(J);\n } else {\n throw \"unsupported PKCS#1/5 hexadecimal key\";\n }\n }\n }\n\n return P;\n }\n\n if (n === \"pkcs8prv\") {\n var P = F.getKeyFromPlainPrivatePKCS8Hex(l);\n return P;\n }\n\n if (n === \"pkcs8pub\") {\n return F._getKeyFromPublicPKCS8Hex(l);\n }\n\n if (n === \"x509pub\") {\n return X509.getPublicKeyFromCertHex(l);\n }\n\n if (l.indexOf(\"-END CERTIFICATE-\", 0) != -1 || l.indexOf(\"-END X509 CERTIFICATE-\", 0) != -1 || l.indexOf(\"-END TRUSTED CERTIFICATE-\", 0) != -1) {\n return X509.getPublicKeyFromCertPEM(l);\n }\n\n if (l.indexOf(\"-END PUBLIC KEY-\") != -1) {\n var O = pemtohex(l, \"PUBLIC KEY\");\n return F._getKeyFromPublicPKCS8Hex(O);\n }\n\n if (l.indexOf(\"-END RSA PRIVATE KEY-\") != -1 && l.indexOf(\"4,ENCRYPTED\") == -1) {\n var m = M(l, \"RSA PRIVATE KEY\");\n return F.getKey(m, null, \"pkcs5prv\");\n }\n\n if (l.indexOf(\"-END DSA PRIVATE KEY-\") != -1 && l.indexOf(\"4,ENCRYPTED\") == -1) {\n var I = M(l, \"DSA PRIVATE KEY\");\n var E = d(I, 0, [1], \"02\");\n var D = d(I, 0, [2], \"02\");\n var K = d(I, 0, [3], \"02\");\n var r = d(I, 0, [4], \"02\");\n var s = d(I, 0, [5], \"02\");\n var P = new C();\n P.setPrivate(new BigInteger(E, 16), new BigInteger(D, 16), new BigInteger(K, 16), new BigInteger(r, 16), new BigInteger(s, 16));\n return P;\n }\n\n if (l.indexOf(\"-END EC PRIVATE KEY-\") != -1 && l.indexOf(\"4,ENCRYPTED\") == -1) {\n var m = M(l, \"EC PRIVATE KEY\");\n return F.getKey(m, null, \"pkcs5prv\");\n }\n\n if (l.indexOf(\"-END PRIVATE KEY-\") != -1) {\n return F.getKeyFromPlainPrivatePKCS8PEM(l);\n }\n\n if (l.indexOf(\"-END RSA PRIVATE KEY-\") != -1 && l.indexOf(\"4,ENCRYPTED\") != -1) {\n var o = F.getDecryptedKeyHex(l, k);\n var H = new RSAKey();\n H.readPKCS5PrvKeyHex(o);\n return H;\n }\n\n if (l.indexOf(\"-END EC PRIVATE KEY-\") != -1 && l.indexOf(\"4,ENCRYPTED\") != -1) {\n var I = F.getDecryptedKeyHex(l, k);\n var P = d(I, 0, [1], \"04\");\n var f = d(I, 0, [2, 0], \"06\");\n var A = d(I, 0, [3, 0], \"03\").substr(2);\n var e = \"\";\n\n if (KJUR.crypto.OID.oidhex2name[f] !== undefined) {\n e = KJUR.crypto.OID.oidhex2name[f];\n } else {\n throw \"undefined OID(hex) in KJUR.crypto.OID: \" + f;\n }\n\n var j = new i({\n curve: e\n });\n j.setPublicKeyHex(A);\n j.setPrivateKeyHex(P);\n j.isPublic = false;\n return j;\n }\n\n if (l.indexOf(\"-END DSA PRIVATE KEY-\") != -1 && l.indexOf(\"4,ENCRYPTED\") != -1) {\n var I = F.getDecryptedKeyHex(l, k);\n var E = d(I, 0, [1], \"02\");\n var D = d(I, 0, [2], \"02\");\n var K = d(I, 0, [3], \"02\");\n var r = d(I, 0, [4], \"02\");\n var s = d(I, 0, [5], \"02\");\n var P = new C();\n P.setPrivate(new BigInteger(E, 16), new BigInteger(D, 16), new BigInteger(K, 16), new BigInteger(r, 16), new BigInteger(s, 16));\n return P;\n }\n\n if (l.indexOf(\"-END ENCRYPTED PRIVATE KEY-\") != -1) {\n return F.getKeyFromEncryptedPKCS8PEM(l, k);\n }\n\n throw new Error(\"not supported argument\");\n};\n\nKEYUTIL.generateKeypair = function (a, c) {\n if (a == \"RSA\") {\n var b = c;\n var h = new RSAKey();\n h.generate(b, \"10001\");\n h.isPrivate = true;\n h.isPublic = true;\n var f = new RSAKey();\n var e = h.n.toString(16);\n var i = h.e.toString(16);\n f.setPublic(e, i);\n f.isPrivate = false;\n f.isPublic = true;\n var k = {};\n k.prvKeyObj = h;\n k.pubKeyObj = f;\n return k;\n } else {\n if (a == \"EC\") {\n var d = c;\n var g = new KJUR.crypto.ECDSA({\n curve: d\n });\n var j = g.generateKeyPairHex();\n var h = new KJUR.crypto.ECDSA({\n curve: d\n });\n h.setPublicKeyHex(j.ecpubhex);\n h.setPrivateKeyHex(j.ecprvhex);\n h.isPrivate = true;\n h.isPublic = false;\n var f = new KJUR.crypto.ECDSA({\n curve: d\n });\n f.setPublicKeyHex(j.ecpubhex);\n f.isPrivate = false;\n f.isPublic = true;\n var k = {};\n k.prvKeyObj = h;\n k.pubKeyObj = f;\n return k;\n } else {\n throw \"unknown algorithm: \" + a;\n }\n }\n};\n\nKEYUTIL.getPEM = function (b, D, y, m, q, j) {\n var F = KJUR,\n k = F.asn1,\n z = k.DERObjectIdentifier,\n f = k.DERInteger,\n l = k.ASN1Util.newObject,\n a = k.x509,\n C = a.SubjectPublicKeyInfo,\n e = F.crypto,\n u = e.DSA,\n r = e.ECDSA,\n n = RSAKey;\n\n function A(s) {\n var G = l({\n seq: [{\n \"int\": 0\n }, {\n \"int\": {\n bigint: s.n\n }\n }, {\n \"int\": s.e\n }, {\n \"int\": {\n bigint: s.d\n }\n }, {\n \"int\": {\n bigint: s.p\n }\n }, {\n \"int\": {\n bigint: s.q\n }\n }, {\n \"int\": {\n bigint: s.dmp1\n }\n }, {\n \"int\": {\n bigint: s.dmq1\n }\n }, {\n \"int\": {\n bigint: s.coeff\n }\n }]\n });\n return G;\n }\n\n function B(G) {\n var s = l({\n seq: [{\n \"int\": 1\n }, {\n octstr: {\n hex: G.prvKeyHex\n }\n }, {\n tag: [\"a0\", true, {\n oid: {\n name: G.curveName\n }\n }]\n }, {\n tag: [\"a1\", true, {\n bitstr: {\n hex: \"00\" + G.pubKeyHex\n }\n }]\n }]\n });\n return s;\n }\n\n function x(s) {\n var G = l({\n seq: [{\n \"int\": 0\n }, {\n \"int\": {\n bigint: s.p\n }\n }, {\n \"int\": {\n bigint: s.q\n }\n }, {\n \"int\": {\n bigint: s.g\n }\n }, {\n \"int\": {\n bigint: s.y\n }\n }, {\n \"int\": {\n bigint: s.x\n }\n }]\n });\n return G;\n }\n\n if ((n !== undefined && b instanceof n || u !== undefined && b instanceof u || r !== undefined && b instanceof r) && b.isPublic == true && (D === undefined || D == \"PKCS8PUB\")) {\n var E = new C(b);\n var w = E.getEncodedHex();\n return hextopem(w, \"PUBLIC KEY\");\n }\n\n if (D == \"PKCS1PRV\" && n !== undefined && b instanceof n && (y === undefined || y == null) && b.isPrivate == true) {\n var E = A(b);\n var w = E.getEncodedHex();\n return hextopem(w, \"RSA PRIVATE KEY\");\n }\n\n if (D == \"PKCS1PRV\" && r !== undefined && b instanceof r && (y === undefined || y == null) && b.isPrivate == true) {\n var i = new z({\n name: b.curveName\n });\n var v = i.getEncodedHex();\n var h = B(b);\n var t = h.getEncodedHex();\n var p = \"\";\n p += hextopem(v, \"EC PARAMETERS\");\n p += hextopem(t, \"EC PRIVATE KEY\");\n return p;\n }\n\n if (D == \"PKCS1PRV\" && u !== undefined && b instanceof u && (y === undefined || y == null) && b.isPrivate == true) {\n var E = x(b);\n var w = E.getEncodedHex();\n return hextopem(w, \"DSA PRIVATE KEY\");\n }\n\n if (D == \"PKCS5PRV\" && n !== undefined && b instanceof n && y !== undefined && y != null && b.isPrivate == true) {\n var E = A(b);\n var w = E.getEncodedHex();\n\n if (m === undefined) {\n m = \"DES-EDE3-CBC\";\n }\n\n return this.getEncryptedPKCS5PEMFromPrvKeyHex(\"RSA\", w, y, m, j);\n }\n\n if (D == \"PKCS5PRV\" && r !== undefined && b instanceof r && y !== undefined && y != null && b.isPrivate == true) {\n var E = B(b);\n var w = E.getEncodedHex();\n\n if (m === undefined) {\n m = \"DES-EDE3-CBC\";\n }\n\n return this.getEncryptedPKCS5PEMFromPrvKeyHex(\"EC\", w, y, m, j);\n }\n\n if (D == \"PKCS5PRV\" && u !== undefined && b instanceof u && y !== undefined && y != null && b.isPrivate == true) {\n var E = x(b);\n var w = E.getEncodedHex();\n\n if (m === undefined) {\n m = \"DES-EDE3-CBC\";\n }\n\n return this.getEncryptedPKCS5PEMFromPrvKeyHex(\"DSA\", w, y, m, j);\n }\n\n var o = function o(G, s) {\n var I = c(G, s);\n var H = new l({\n seq: [{\n seq: [{\n oid: {\n name: \"pkcs5PBES2\"\n }\n }, {\n seq: [{\n seq: [{\n oid: {\n name: \"pkcs5PBKDF2\"\n }\n }, {\n seq: [{\n octstr: {\n hex: I.pbkdf2Salt\n }\n }, {\n \"int\": I.pbkdf2Iter\n }]\n }]\n }, {\n seq: [{\n oid: {\n name: \"des-EDE3-CBC\"\n }\n }, {\n octstr: {\n hex: I.encryptionSchemeIV\n }\n }]\n }]\n }]\n }, {\n octstr: {\n hex: I.ciphertext\n }\n }]\n });\n return H.getEncodedHex();\n };\n\n var c = function c(N, O) {\n var H = 100;\n var M = CryptoJS.lib.WordArray.random(8);\n var L = \"DES-EDE3-CBC\";\n var s = CryptoJS.lib.WordArray.random(8);\n var I = CryptoJS.PBKDF2(O, M, {\n keySize: 192 / 32,\n iterations: H\n });\n var J = CryptoJS.enc.Hex.parse(N);\n var K = CryptoJS.TripleDES.encrypt(J, I, {\n iv: s\n }) + \"\";\n var G = {};\n G.ciphertext = K;\n G.pbkdf2Salt = CryptoJS.enc.Hex.stringify(M);\n G.pbkdf2Iter = H;\n G.encryptionSchemeAlg = L;\n G.encryptionSchemeIV = CryptoJS.enc.Hex.stringify(s);\n return G;\n };\n\n if (D == \"PKCS8PRV\" && n != undefined && b instanceof n && b.isPrivate == true) {\n var g = A(b);\n var d = g.getEncodedHex();\n var E = l({\n seq: [{\n \"int\": 0\n }, {\n seq: [{\n oid: {\n name: \"rsaEncryption\"\n }\n }, {\n \"null\": true\n }]\n }, {\n octstr: {\n hex: d\n }\n }]\n });\n var w = E.getEncodedHex();\n\n if (y === undefined || y == null) {\n return hextopem(w, \"PRIVATE KEY\");\n } else {\n var t = o(w, y);\n return hextopem(t, \"ENCRYPTED PRIVATE KEY\");\n }\n }\n\n if (D == \"PKCS8PRV\" && r !== undefined && b instanceof r && b.isPrivate == true) {\n var g = new l({\n seq: [{\n \"int\": 1\n }, {\n octstr: {\n hex: b.prvKeyHex\n }\n }, {\n tag: [\"a1\", true, {\n bitstr: {\n hex: \"00\" + b.pubKeyHex\n }\n }]\n }]\n });\n var d = g.getEncodedHex();\n var E = l({\n seq: [{\n \"int\": 0\n }, {\n seq: [{\n oid: {\n name: \"ecPublicKey\"\n }\n }, {\n oid: {\n name: b.curveName\n }\n }]\n }, {\n octstr: {\n hex: d\n }\n }]\n });\n var w = E.getEncodedHex();\n\n if (y === undefined || y == null) {\n return hextopem(w, \"PRIVATE KEY\");\n } else {\n var t = o(w, y);\n return hextopem(t, \"ENCRYPTED PRIVATE KEY\");\n }\n }\n\n if (D == \"PKCS8PRV\" && u !== undefined && b instanceof u && b.isPrivate == true) {\n var g = new f({\n bigint: b.x\n });\n var d = g.getEncodedHex();\n var E = l({\n seq: [{\n \"int\": 0\n }, {\n seq: [{\n oid: {\n name: \"dsa\"\n }\n }, {\n seq: [{\n \"int\": {\n bigint: b.p\n }\n }, {\n \"int\": {\n bigint: b.q\n }\n }, {\n \"int\": {\n bigint: b.g\n }\n }]\n }]\n }, {\n octstr: {\n hex: d\n }\n }]\n });\n var w = E.getEncodedHex();\n\n if (y === undefined || y == null) {\n return hextopem(w, \"PRIVATE KEY\");\n } else {\n var t = o(w, y);\n return hextopem(t, \"ENCRYPTED PRIVATE KEY\");\n }\n }\n\n throw new Error(\"unsupported object nor format\");\n};\n\nKEYUTIL.getKeyFromCSRPEM = function (b) {\n var a = pemtohex(b, \"CERTIFICATE REQUEST\");\n var c = KEYUTIL.getKeyFromCSRHex(a);\n return c;\n};\n\nKEYUTIL.getKeyFromCSRHex = function (a) {\n var c = KEYUTIL.parseCSRHex(a);\n var b = KEYUTIL.getKey(c.p8pubkeyhex, null, \"pkcs8pub\");\n return b;\n};\n\nKEYUTIL.parseCSRHex = function (d) {\n var i = ASN1HEX;\n var f = i.getChildIdx;\n var c = i.getTLV;\n var b = {};\n var g = d;\n\n if (g.substr(0, 2) != \"30\") {\n throw \"malformed CSR(code:001)\";\n }\n\n var e = f(g, 0);\n\n if (e.length < 1) {\n throw \"malformed CSR(code:002)\";\n }\n\n if (g.substr(e[0], 2) != \"30\") {\n throw \"malformed CSR(code:003)\";\n }\n\n var a = f(g, e[0]);\n\n if (a.length < 3) {\n throw \"malformed CSR(code:004)\";\n }\n\n b.p8pubkeyhex = c(g, a[2]);\n return b;\n};\n\nKEYUTIL.getKeyID = function (f) {\n var c = KEYUTIL;\n var e = ASN1HEX;\n\n if (typeof f === \"string\" && f.indexOf(\"BEGIN \") != -1) {\n f = c.getKey(f);\n }\n\n var d = pemtohex(c.getPEM(f));\n var b = e.getIdxbyList(d, 0, [1]);\n var a = e.getV(d, b).substring(2);\n return KJUR.crypto.Util.hashHex(a, \"sha1\");\n};\n\nKEYUTIL.getJWKFromKey = function (d) {\n var b = {};\n\n if (d instanceof RSAKey && d.isPrivate) {\n b.kty = \"RSA\";\n b.n = hextob64u(d.n.toString(16));\n b.e = hextob64u(d.e.toString(16));\n b.d = hextob64u(d.d.toString(16));\n b.p = hextob64u(d.p.toString(16));\n b.q = hextob64u(d.q.toString(16));\n b.dp = hextob64u(d.dmp1.toString(16));\n b.dq = hextob64u(d.dmq1.toString(16));\n b.qi = hextob64u(d.coeff.toString(16));\n return b;\n } else {\n if (d instanceof RSAKey && d.isPublic) {\n b.kty = \"RSA\";\n b.n = hextob64u(d.n.toString(16));\n b.e = hextob64u(d.e.toString(16));\n return b;\n } else {\n if (d instanceof KJUR.crypto.ECDSA && d.isPrivate) {\n var a = d.getShortNISTPCurveName();\n\n if (a !== \"P-256\" && a !== \"P-384\") {\n throw \"unsupported curve name for JWT: \" + a;\n }\n\n var c = d.getPublicKeyXYHex();\n b.kty = \"EC\";\n b.crv = a;\n b.x = hextob64u(c.x);\n b.y = hextob64u(c.y);\n b.d = hextob64u(d.prvKeyHex);\n return b;\n } else {\n if (d instanceof KJUR.crypto.ECDSA && d.isPublic) {\n var a = d.getShortNISTPCurveName();\n\n if (a !== \"P-256\" && a !== \"P-384\") {\n throw \"unsupported curve name for JWT: \" + a;\n }\n\n var c = d.getPublicKeyXYHex();\n b.kty = \"EC\";\n b.crv = a;\n b.x = hextob64u(c.x);\n b.y = hextob64u(c.y);\n return b;\n }\n }\n }\n }\n\n throw \"not supported key object\";\n};\n\nRSAKey.getPosArrayOfChildrenFromHex = function (a) {\n return ASN1HEX.getChildIdx(a, 0);\n};\n\nRSAKey.getHexValueArrayOfChildrenFromHex = function (f) {\n var n = ASN1HEX;\n var i = n.getV;\n var k = RSAKey.getPosArrayOfChildrenFromHex(f);\n var e = i(f, k[0]);\n var j = i(f, k[1]);\n var b = i(f, k[2]);\n var c = i(f, k[3]);\n var h = i(f, k[4]);\n var g = i(f, k[5]);\n var m = i(f, k[6]);\n var l = i(f, k[7]);\n var d = i(f, k[8]);\n var k = new Array();\n k.push(e, j, b, c, h, g, m, l, d);\n return k;\n};\n\nRSAKey.prototype.readPrivateKeyFromPEMString = function (d) {\n var c = pemtohex(d);\n var b = RSAKey.getHexValueArrayOfChildrenFromHex(c);\n this.setPrivateEx(b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8]);\n};\n\nRSAKey.prototype.readPKCS5PrvKeyHex = function (c) {\n var b = RSAKey.getHexValueArrayOfChildrenFromHex(c);\n this.setPrivateEx(b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8]);\n};\n\nRSAKey.prototype.readPKCS8PrvKeyHex = function (e) {\n var c, i, k, b, a, f, d, j;\n var m = ASN1HEX;\n var l = m.getVbyListEx;\n\n if (m.isASN1HEX(e) === false) {\n throw new Error(\"not ASN.1 hex string\");\n }\n\n try {\n c = l(e, 0, [2, 0, 1], \"02\");\n i = l(e, 0, [2, 0, 2], \"02\");\n k = l(e, 0, [2, 0, 3], \"02\");\n b = l(e, 0, [2, 0, 4], \"02\");\n a = l(e, 0, [2, 0, 5], \"02\");\n f = l(e, 0, [2, 0, 6], \"02\");\n d = l(e, 0, [2, 0, 7], \"02\");\n j = l(e, 0, [2, 0, 8], \"02\");\n } catch (g) {\n throw new Error(\"malformed PKCS#8 plain RSA private key\");\n }\n\n this.setPrivateEx(c, i, k, b, a, f, d, j);\n};\n\nRSAKey.prototype.readPKCS5PubKeyHex = function (c) {\n var e = ASN1HEX;\n var b = e.getV;\n\n if (e.isASN1HEX(c) === false) {\n throw new Error(\"keyHex is not ASN.1 hex string\");\n }\n\n var a = e.getChildIdx(c, 0);\n\n if (a.length !== 2 || c.substr(a[0], 2) !== \"02\" || c.substr(a[1], 2) !== \"02\") {\n throw new Error(\"wrong hex for PKCS#5 public key\");\n }\n\n var f = b(c, a[0]);\n var d = b(c, a[1]);\n this.setPublic(f, d);\n};\n\nRSAKey.prototype.readPKCS8PubKeyHex = function (b) {\n var c = ASN1HEX;\n\n if (c.isASN1HEX(b) === false) {\n throw new Error(\"not ASN.1 hex string\");\n }\n\n if (c.getTLVbyListEx(b, 0, [0, 0]) !== \"06092a864886f70d010101\") {\n throw new Error(\"not PKCS8 RSA public key\");\n }\n\n var a = c.getTLVbyListEx(b, 0, [1, 0]);\n this.readPKCS5PubKeyHex(a);\n};\n\nRSAKey.prototype.readCertPubKeyHex = function (b, d) {\n var a, c;\n a = new X509();\n a.readCertHex(b);\n c = a.getPublicKeyHex();\n this.readPKCS8PubKeyHex(c);\n};\n\nvar _RE_HEXDECONLY = new RegExp(\"[^0-9a-f]\", \"gi\");\n\nfunction _rsasign_getHexPaddedDigestInfoForString(d, e, a) {\n var b = function b(f) {\n return KJUR.crypto.Util.hashString(f, a);\n };\n\n var c = b(d);\n return KJUR.crypto.Util.getPaddedDigestInfoHex(c, a, e);\n}\n\nfunction _zeroPaddingOfSignature(e, d) {\n var c = \"\";\n var a = d / 4 - e.length;\n\n for (var b = 0; b < a; b++) {\n c = c + \"0\";\n }\n\n return c + e;\n}\n\nRSAKey.prototype.sign = function (d, a) {\n var b = function b(e) {\n return KJUR.crypto.Util.hashString(e, a);\n };\n\n var c = b(d);\n return this.signWithMessageHash(c, a);\n};\n\nRSAKey.prototype.signWithMessageHash = function (e, c) {\n var f = KJUR.crypto.Util.getPaddedDigestInfoHex(e, c, this.n.bitLength());\n var b = parseBigInt(f, 16);\n var d = this.doPrivate(b);\n var a = d.toString(16);\n return _zeroPaddingOfSignature(a, this.n.bitLength());\n};\n\nfunction pss_mgf1_str(c, a, e) {\n var b = \"\",\n d = 0;\n\n while (b.length < a) {\n b += hextorstr(e(rstrtohex(c + String.fromCharCode.apply(String, [(d & 4278190080) >> 24, (d & 16711680) >> 16, (d & 65280) >> 8, d & 255]))));\n d += 1;\n }\n\n return b;\n}\n\nRSAKey.prototype.signPSS = function (e, a, d) {\n var c = function c(f) {\n return KJUR.crypto.Util.hashHex(f, a);\n };\n\n var b = c(rstrtohex(e));\n\n if (d === undefined) {\n d = -1;\n }\n\n return this.signWithMessageHashPSS(b, a, d);\n};\n\nRSAKey.prototype.signWithMessageHashPSS = function (l, a, k) {\n var b = hextorstr(l);\n var g = b.length;\n var m = this.n.bitLength() - 1;\n var c = Math.ceil(m / 8);\n var d;\n\n var o = function o(i) {\n return KJUR.crypto.Util.hashHex(i, a);\n };\n\n if (k === -1 || k === undefined) {\n k = g;\n } else {\n if (k === -2) {\n k = c - g - 2;\n } else {\n if (k < -2) {\n throw new Error(\"invalid salt length\");\n }\n }\n }\n\n if (c < g + k + 2) {\n throw new Error(\"data too long\");\n }\n\n var f = \"\";\n\n if (k > 0) {\n f = new Array(k);\n new SecureRandom().nextBytes(f);\n f = String.fromCharCode.apply(String, f);\n }\n\n var n = hextorstr(o(rstrtohex(\"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\" + b + f)));\n var j = [];\n\n for (d = 0; d < c - k - g - 2; d += 1) {\n j[d] = 0;\n }\n\n var e = String.fromCharCode.apply(String, j) + \"\\x01\" + f;\n var h = pss_mgf1_str(n, e.length, o);\n var q = [];\n\n for (d = 0; d < e.length; d += 1) {\n q[d] = e.charCodeAt(d) ^ h.charCodeAt(d);\n }\n\n var p = 65280 >> 8 * c - m & 255;\n q[0] &= ~p;\n\n for (d = 0; d < g; d++) {\n q.push(n.charCodeAt(d));\n }\n\n q.push(188);\n return _zeroPaddingOfSignature(this.doPrivate(new BigInteger(q)).toString(16), this.n.bitLength());\n};\n\nfunction _rsasign_getDecryptSignatureBI(a, d, c) {\n var b = new RSAKey();\n b.setPublic(d, c);\n var e = b.doPublic(a);\n return e;\n}\n\nfunction _rsasign_getHexDigestInfoFromSig(a, c, b) {\n var e = _rsasign_getDecryptSignatureBI(a, c, b);\n\n var d = e.toString(16).replace(/^1f+00/, \"\");\n return d;\n}\n\nfunction _rsasign_getAlgNameAndHashFromHexDisgestInfo(f) {\n for (var e in KJUR.crypto.Util.DIGESTINFOHEAD) {\n var d = KJUR.crypto.Util.DIGESTINFOHEAD[e];\n var b = d.length;\n\n if (f.substring(0, b) == d) {\n var c = [e, f.substring(b)];\n return c;\n }\n }\n\n return [];\n}\n\nRSAKey.prototype.verify = function (f, j) {\n j = j.replace(_RE_HEXDECONLY, \"\");\n j = j.replace(/[ \\n]+/g, \"\");\n var b = parseBigInt(j, 16);\n\n if (b.bitLength() > this.n.bitLength()) {\n return 0;\n }\n\n var i = this.doPublic(b);\n var e = i.toString(16).replace(/^1f+00/, \"\");\n\n var g = _rsasign_getAlgNameAndHashFromHexDisgestInfo(e);\n\n if (g.length == 0) {\n return false;\n }\n\n var d = g[0];\n var h = g[1];\n\n var a = function a(k) {\n return KJUR.crypto.Util.hashString(k, d);\n };\n\n var c = a(f);\n return h == c;\n};\n\nRSAKey.prototype.verifyWithMessageHash = function (e, a) {\n if (a.length != Math.ceil(this.n.bitLength() / 4)) {\n return false;\n }\n\n var b = parseBigInt(a, 16);\n\n if (b.bitLength() > this.n.bitLength()) {\n return 0;\n }\n\n var h = this.doPublic(b);\n var g = h.toString(16).replace(/^1f+00/, \"\");\n\n var c = _rsasign_getAlgNameAndHashFromHexDisgestInfo(g);\n\n if (c.length == 0) {\n return false;\n }\n\n var d = c[0];\n var f = c[1];\n return f == e;\n};\n\nRSAKey.prototype.verifyPSS = function (c, b, a, f) {\n var e = function e(g) {\n return KJUR.crypto.Util.hashHex(g, a);\n };\n\n var d = e(rstrtohex(c));\n\n if (f === undefined) {\n f = -1;\n }\n\n return this.verifyWithMessageHashPSS(d, b, a, f);\n};\n\nRSAKey.prototype.verifyWithMessageHashPSS = function (f, s, l, c) {\n if (s.length != Math.ceil(this.n.bitLength() / 4)) {\n return false;\n }\n\n var k = new BigInteger(s, 16);\n\n var r = function r(i) {\n return KJUR.crypto.Util.hashHex(i, l);\n };\n\n var j = hextorstr(f);\n var h = j.length;\n var g = this.n.bitLength() - 1;\n var m = Math.ceil(g / 8);\n var q;\n\n if (c === -1 || c === undefined) {\n c = h;\n } else {\n if (c === -2) {\n c = m - h - 2;\n } else {\n if (c < -2) {\n throw new Error(\"invalid salt length\");\n }\n }\n }\n\n if (m < h + c + 2) {\n throw new Error(\"data too long\");\n }\n\n var a = this.doPublic(k).toByteArray();\n\n for (q = 0; q < a.length; q += 1) {\n a[q] &= 255;\n }\n\n while (a.length < m) {\n a.unshift(0);\n }\n\n if (a[m - 1] !== 188) {\n throw new Error(\"encoded message does not end in 0xbc\");\n }\n\n a = String.fromCharCode.apply(String, a);\n var d = a.substr(0, m - h - 1);\n var e = a.substr(d.length, h);\n var p = 65280 >> 8 * m - g & 255;\n\n if ((d.charCodeAt(0) & p) !== 0) {\n throw new Error(\"bits beyond keysize not zero\");\n }\n\n var n = pss_mgf1_str(e, d.length, r);\n var o = [];\n\n for (q = 0; q < d.length; q += 1) {\n o[q] = d.charCodeAt(q) ^ n.charCodeAt(q);\n }\n\n o[0] &= ~p;\n var b = m - h - c - 2;\n\n for (q = 0; q < b; q += 1) {\n if (o[q] !== 0) {\n throw new Error(\"leftmost octets not zero\");\n }\n }\n\n if (o[b] !== 1) {\n throw new Error(\"0x01 marker not found\");\n }\n\n return e === hextorstr(r(rstrtohex(\"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\" + j + String.fromCharCode.apply(String, o.slice(-c)))));\n};\n\nRSAKey.SALT_LEN_HLEN = -1;\nRSAKey.SALT_LEN_MAX = -2;\nRSAKey.SALT_LEN_RECOVER = -2;\n\nfunction X509() {\n var q = ASN1HEX,\n o = q.getChildIdx,\n m = q.getV,\n c = q.getTLV,\n j = q.getVbyList,\n p = q.getVbyListEx,\n d = q.getTLVbyList,\n f = q.getTLVbyListEx,\n k = q.getIdxbyList,\n i = q.getIdxbyListEx,\n e = q.getVidx,\n n = q.oidname,\n a = q.hextooidstr,\n b = X509,\n h = pemtohex,\n g;\n\n try {\n g = KJUR.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;\n } catch (l) {}\n\n this.HEX2STAG = {\n \"0c\": \"utf8\",\n \"13\": \"prn\",\n \"16\": \"ia5\",\n \"1a\": \"vis\",\n \"1e\": \"bmp\"\n };\n this.hex = null;\n this.version = 0;\n this.foffset = 0;\n this.aExtInfo = null;\n\n this.getVersion = function () {\n if (this.hex === null || this.version !== 0) {\n return this.version;\n }\n\n if (d(this.hex, 0, [0, 0]) !== \"a003020102\") {\n this.version = 1;\n this.foffset = -1;\n return 1;\n }\n\n this.version = 3;\n return 3;\n };\n\n this.getSerialNumberHex = function () {\n return p(this.hex, 0, [0, 0], \"02\");\n };\n\n this.getSignatureAlgorithmField = function () {\n var r = f(this.hex, 0, [0, 1]);\n return this.getAlgorithmIdentifierName(r);\n };\n\n this.getAlgorithmIdentifierName = function (r) {\n for (var s in g) {\n if (r === g[s]) {\n return s;\n }\n }\n\n return n(p(r, 0, [0], \"06\"));\n };\n\n this.getIssuer = function () {\n var r = {};\n r.array = this.getX500Name(this.getIssuerHex());\n r.str = this.getIssuerString();\n return r;\n };\n\n this.getIssuerHex = function () {\n return d(this.hex, 0, [0, 3 + this.foffset], \"30\");\n };\n\n this.getIssuerString = function () {\n return b.hex2dn(this.getIssuerHex());\n };\n\n this.getSubject = function () {\n var r = {};\n r.array = this.getX500Name(this.getSubjectHex());\n r.str = this.getSubjectString();\n return r;\n };\n\n this.getSubjectHex = function () {\n return d(this.hex, 0, [0, 5 + this.foffset], \"30\");\n };\n\n this.getSubjectString = function () {\n return b.hex2dn(this.getSubjectHex());\n };\n\n this.getNotBefore = function () {\n var r = j(this.hex, 0, [0, 4 + this.foffset, 0]);\n r = r.replace(/(..)/g, \"%$1\");\n r = decodeURIComponent(r);\n return r;\n };\n\n this.getNotAfter = function () {\n var r = j(this.hex, 0, [0, 4 + this.foffset, 1]);\n r = r.replace(/(..)/g, \"%$1\");\n r = decodeURIComponent(r);\n return r;\n };\n\n this.getPublicKeyHex = function () {\n return q.getTLVbyList(this.hex, 0, [0, 6 + this.foffset], \"30\");\n };\n\n this.getPublicKeyIdx = function () {\n return k(this.hex, 0, [0, 6 + this.foffset], \"30\");\n };\n\n this.getPublicKeyContentIdx = function () {\n var r = this.getPublicKeyIdx();\n return k(this.hex, r, [1, 0], \"30\");\n };\n\n this.getPublicKey = function () {\n return KEYUTIL.getKey(this.getPublicKeyHex(), null, \"pkcs8pub\");\n };\n\n this.getSignatureAlgorithmName = function () {\n var r = d(this.hex, 0, [1], \"30\");\n return this.getAlgorithmIdentifierName(r);\n };\n\n this.getSignatureValueHex = function () {\n return j(this.hex, 0, [2], \"03\", true);\n };\n\n this.verifySignature = function (t) {\n var u = this.getSignatureAlgorithmField();\n var r = this.getSignatureValueHex();\n var s = d(this.hex, 0, [0], \"30\");\n var v = new KJUR.crypto.Signature({\n alg: u\n });\n v.init(t);\n v.updateHex(s);\n return v.verify(r);\n };\n\n this.parseExt = function (A) {\n var t, r, v;\n\n if (A === undefined) {\n v = this.hex;\n\n if (this.version !== 3) {\n return -1;\n }\n\n t = k(v, 0, [0, 7, 0], \"30\");\n r = o(v, t);\n } else {\n v = pemtohex(A);\n var w = k(v, 0, [0, 3, 0, 0], \"06\");\n\n if (m(v, w) != \"2a864886f70d01090e\") {\n this.aExtInfo = new Array();\n return;\n }\n\n t = k(v, 0, [0, 3, 0, 1, 0], \"30\");\n r = o(v, t);\n this.hex = v;\n }\n\n this.aExtInfo = new Array();\n\n for (var u = 0; u < r.length; u++) {\n var y = {};\n y.critical = false;\n var x = o(v, r[u]);\n var s = 0;\n\n if (x.length === 3) {\n y.critical = true;\n s = 1;\n }\n\n y.oid = q.hextooidstr(j(v, r[u], [0], \"06\"));\n var z = k(v, r[u], [1 + s]);\n y.vidx = e(v, z);\n this.aExtInfo.push(y);\n }\n };\n\n this.getExtInfo = function (t) {\n var r = this.aExtInfo;\n var u = t;\n\n if (!t.match(/^[0-9.]+$/)) {\n u = KJUR.asn1.x509.OID.name2oid(t);\n }\n\n if (u === \"\") {\n return undefined;\n }\n\n for (var s = 0; s < r.length; s++) {\n if (r[s].oid === u) {\n return r[s];\n }\n }\n\n return undefined;\n };\n\n this.getExtBasicConstraints = function (s, w) {\n if (s === undefined && w === undefined) {\n var u = this.getExtInfo(\"basicConstraints\");\n\n if (u === undefined) {\n return undefined;\n }\n\n s = c(this.hex, u.vidx);\n w = u.critical;\n }\n\n var r = {\n extname: \"basicConstraints\"\n };\n\n if (w) {\n r.critical = true;\n }\n\n if (s === \"3000\") {\n return r;\n }\n\n if (s === \"30030101ff\") {\n r.cA = true;\n return r;\n }\n\n if (s.substr(0, 12) === \"30060101ff02\") {\n var v = m(s, 10);\n var t = parseInt(v, 16);\n r.cA = true;\n r.pathLen = t;\n return r;\n }\n\n throw new Error(\"hExtV parse error: \" + s);\n };\n\n this.getExtKeyUsage = function (s, u) {\n if (s === undefined && u === undefined) {\n var t = this.getExtInfo(\"keyUsage\");\n\n if (t === undefined) {\n return undefined;\n }\n\n s = c(this.hex, t.vidx);\n u = t.critical;\n }\n\n var r = {\n extname: \"keyUsage\"\n };\n\n if (u) {\n r.critical = true;\n }\n\n r.names = this.getExtKeyUsageString(s).split(\",\");\n return r;\n };\n\n this.getExtKeyUsageBin = function (t) {\n if (t === undefined) {\n var u = this.getExtInfo(\"keyUsage\");\n\n if (u === undefined) {\n return \"\";\n }\n\n t = c(this.hex, u.vidx);\n }\n\n if (t.length != 8 && t.length != 10) {\n throw new Error(\"malformed key usage value: \" + t);\n }\n\n var r = \"000000000000000\" + parseInt(t.substr(6), 16).toString(2);\n\n if (t.length == 8) {\n r = r.slice(-8);\n }\n\n if (t.length == 10) {\n r = r.slice(-16);\n }\n\n r = r.replace(/0+$/, \"\");\n\n if (r == \"\") {\n r = \"0\";\n }\n\n return r;\n };\n\n this.getExtKeyUsageString = function (t) {\n var u = this.getExtKeyUsageBin(t);\n var r = new Array();\n\n for (var s = 0; s < u.length; s++) {\n if (u.substr(s, 1) == \"1\") {\n r.push(X509.KEYUSAGE_NAME[s]);\n }\n }\n\n return r.join(\",\");\n };\n\n this.getExtSubjectKeyIdentifier = function (t, v) {\n if (t === undefined && v === undefined) {\n var u = this.getExtInfo(\"subjectKeyIdentifier\");\n\n if (u === undefined) {\n return undefined;\n }\n\n t = c(this.hex, u.vidx);\n v = u.critical;\n }\n\n var r = {\n extname: \"subjectKeyIdentifier\"\n };\n\n if (v) {\n r.critical = true;\n }\n\n var s = m(t, 0);\n r.kid = {\n hex: s\n };\n return r;\n };\n\n this.getExtAuthorityKeyIdentifier = function (x, v) {\n if (x === undefined && v === undefined) {\n var r = this.getExtInfo(\"authorityKeyIdentifier\");\n\n if (r === undefined) {\n return undefined;\n }\n\n x = c(this.hex, r.vidx);\n v = r.critical;\n }\n\n var y = {\n extname: \"authorityKeyIdentifier\"\n };\n\n if (v) {\n y.critical = true;\n }\n\n var w = o(x, 0);\n\n for (var s = 0; s < w.length; s++) {\n var z = x.substr(w[s], 2);\n\n if (z === \"80\") {\n y.kid = {\n hex: m(x, w[s])\n };\n }\n\n if (z === \"a1\") {\n var u = c(x, w[s]);\n var t = this.getGeneralNames(u);\n y.issuer = t[0][\"dn\"];\n }\n\n if (z === \"82\") {\n y.sn = {\n hex: m(x, w[s])\n };\n }\n }\n\n return y;\n };\n\n this.getExtExtKeyUsage = function (u, w) {\n if (u === undefined && w === undefined) {\n var v = this.getExtInfo(\"extKeyUsage\");\n\n if (v === undefined) {\n return undefined;\n }\n\n u = c(this.hex, v.vidx);\n w = v.critical;\n }\n\n var r = {\n extname: \"extKeyUsage\",\n array: []\n };\n\n if (w) {\n r.critical = true;\n }\n\n var s = o(u, 0);\n\n for (var t = 0; t < s.length; t++) {\n r.array.push(n(m(u, s[t])));\n }\n\n return r;\n };\n\n this.getExtExtKeyUsageName = function () {\n var v = this.getExtInfo(\"extKeyUsage\");\n\n if (v === undefined) {\n return v;\n }\n\n var r = new Array();\n var u = c(this.hex, v.vidx);\n\n if (u === \"\") {\n return r;\n }\n\n var s = o(u, 0);\n\n for (var t = 0; t < s.length; t++) {\n r.push(n(m(u, s[t])));\n }\n\n return r;\n };\n\n this.getExtSubjectAltName = function (s, u) {\n if (s === undefined && u === undefined) {\n var t = this.getExtInfo(\"subjectAltName\");\n\n if (t === undefined) {\n return undefined;\n }\n\n s = c(this.hex, t.vidx);\n u = t.critical;\n }\n\n var r = {\n extname: \"subjectAltName\",\n array: []\n };\n\n if (u) {\n r.critical = true;\n }\n\n r.array = this.getGeneralNames(s);\n return r;\n };\n\n this.getExtIssuerAltName = function (s, u) {\n if (s === undefined && u === undefined) {\n var t = this.getExtInfo(\"issuerAltName\");\n\n if (t === undefined) {\n return undefined;\n }\n\n s = c(this.hex, t.vidx);\n u = t.critical;\n }\n\n var r = {\n extname: \"issuerAltName\",\n array: []\n };\n\n if (u) {\n r.critical = true;\n }\n\n r.array = this.getGeneralNames(s);\n return r;\n };\n\n this.getGeneralNames = function (v) {\n var t = o(v, 0);\n var r = [];\n\n for (var u = 0; u < t.length; u++) {\n var s = this.getGeneralName(c(v, t[u]));\n\n if (s !== undefined) {\n r.push(s);\n }\n }\n\n return r;\n };\n\n this.getGeneralName = function (s) {\n var r = s.substr(0, 2);\n var u = m(s, 0);\n var t = hextorstr(u);\n\n if (r == \"81\") {\n return {\n rfc822: t\n };\n }\n\n if (r == \"82\") {\n return {\n dns: t\n };\n }\n\n if (r == \"a4\") {\n return {\n dn: {\n hex: u\n }\n };\n }\n\n if (r == \"86\") {\n return {\n uri: t\n };\n }\n\n if (r == \"87\") {\n return {\n ip: hextoip(u)\n };\n }\n\n return undefined;\n };\n\n this.getExtSubjectAltName2 = function () {\n var v, y, x;\n var w = this.getExtInfo(\"subjectAltName\");\n\n if (w === undefined) {\n return w;\n }\n\n var r = new Array();\n var u = c(this.hex, w.vidx);\n var s = o(u, 0);\n\n for (var t = 0; t < s.length; t++) {\n x = u.substr(s[t], 2);\n v = m(u, s[t]);\n\n if (x === \"81\") {\n y = hextoutf8(v);\n r.push([\"MAIL\", y]);\n }\n\n if (x === \"82\") {\n y = hextoutf8(v);\n r.push([\"DNS\", y]);\n }\n\n if (x === \"84\") {\n y = X509.hex2dn(v, 0);\n r.push([\"DN\", y]);\n }\n\n if (x === \"86\") {\n y = hextoutf8(v);\n r.push([\"URI\", y]);\n }\n\n if (x === \"87\") {\n y = hextoip(v);\n r.push([\"IP\", y]);\n }\n }\n\n return r;\n };\n\n this.getExtCRLDistributionPoints = function (v, x) {\n if (v === undefined && x === undefined) {\n var w = this.getExtInfo(\"cRLDistributionPoints\");\n\n if (w === undefined) {\n return undefined;\n }\n\n v = c(this.hex, w.vidx);\n x = w.critical;\n }\n\n var s = {\n extname: \"cRLDistributionPoints\",\n array: []\n };\n\n if (x) {\n s.critical = true;\n }\n\n var t = o(v, 0);\n\n for (var u = 0; u < t.length; u++) {\n var r = c(v, t[u]);\n s.array.push(this.getDistributionPoint(r));\n }\n\n return s;\n };\n\n this.getDistributionPoint = function (w) {\n var t = {};\n var u = o(w, 0);\n\n for (var v = 0; v < u.length; v++) {\n var s = w.substr(u[v], 2);\n var r = c(w, u[v]);\n\n if (s == \"a0\") {\n t.dpname = this.getDistributionPointName(r);\n }\n }\n\n return t;\n };\n\n this.getDistributionPointName = function (w) {\n var t = {};\n var u = o(w, 0);\n\n for (var v = 0; v < u.length; v++) {\n var s = w.substr(u[v], 2);\n var r = c(w, u[v]);\n\n if (s == \"a0\") {\n t.full = this.getGeneralNames(r);\n }\n }\n\n return t;\n };\n\n this.getExtCRLDistributionPointsURI = function () {\n var w = this.getExtInfo(\"cRLDistributionPoints\");\n\n if (w === undefined) {\n return w;\n }\n\n var r = new Array();\n var s = o(this.hex, w.vidx);\n\n for (var u = 0; u < s.length; u++) {\n try {\n var x = j(this.hex, s[u], [0, 0, 0], \"86\");\n var v = hextoutf8(x);\n r.push(v);\n } catch (t) {}\n }\n\n return r;\n };\n\n this.getExtAIAInfo = function () {\n var v = this.getExtInfo(\"authorityInfoAccess\");\n\n if (v === undefined) {\n return v;\n }\n\n var r = {\n ocsp: [],\n caissuer: []\n };\n var s = o(this.hex, v.vidx);\n\n for (var t = 0; t < s.length; t++) {\n var w = j(this.hex, s[t], [0], \"06\");\n var u = j(this.hex, s[t], [1], \"86\");\n\n if (w === \"2b06010505073001\") {\n r.ocsp.push(hextoutf8(u));\n }\n\n if (w === \"2b06010505073002\") {\n r.caissuer.push(hextoutf8(u));\n }\n }\n\n return r;\n };\n\n this.getExtAuthorityInfoAccess = function (y, w) {\n if (y === undefined && w === undefined) {\n var r = this.getExtInfo(\"authorityInfoAccess\");\n\n if (r === undefined) {\n return undefined;\n }\n\n y = c(this.hex, r.vidx);\n w = r.critical;\n }\n\n var z = {\n extname: \"authorityInfoAccess\",\n array: []\n };\n\n if (w) {\n z.critical = true;\n }\n\n var x = o(y, 0);\n\n for (var s = 0; s < x.length; s++) {\n var v = p(y, x[s], [0], \"06\");\n var t = j(y, x[s], [1], \"86\");\n var u = hextoutf8(t);\n\n if (v == \"2b06010505073001\") {\n z.array.push({\n ocsp: u\n });\n } else {\n if (v == \"2b06010505073002\") {\n z.array.push({\n caissuer: u\n });\n } else {\n throw new Error(\"unknown method: \" + v);\n }\n }\n }\n\n return z;\n };\n\n this.getExtCertificatePolicies = function (v, y) {\n if (v === undefined && y === undefined) {\n var x = this.getExtInfo(\"certificatePolicies\");\n\n if (x === undefined) {\n return undefined;\n }\n\n v = c(this.hex, x.vidx);\n y = x.critical;\n }\n\n var r = {\n extname: \"certificatePolicies\",\n array: []\n };\n\n if (y) {\n r.critical = true;\n }\n\n var s = o(v, 0);\n\n for (var t = 0; t < s.length; t++) {\n var w = c(v, s[t]);\n var u = this.getPolicyInformation(w);\n r.array.push(u);\n }\n\n return r;\n };\n\n this.getPolicyInformation = function (v) {\n var r = {};\n var x = j(v, 0, [0], \"06\");\n r.policyoid = n(x);\n var y = i(v, 0, [1], \"30\");\n\n if (y != -1) {\n r.array = [];\n var s = o(v, y);\n\n for (var t = 0; t < s.length; t++) {\n var w = c(v, s[t]);\n var u = this.getPolicyQualifierInfo(w);\n r.array.push(u);\n }\n }\n\n return r;\n };\n\n this.getPolicyQualifierInfo = function (s) {\n var r = {};\n var t = j(s, 0, [0], \"06\");\n\n if (t === \"2b06010505070201\") {\n var v = p(s, 0, [1], \"16\");\n r.cps = hextorstr(v);\n } else {\n if (t === \"2b06010505070202\") {\n var u = d(s, 0, [1], \"30\");\n r.unotice = this.getUserNotice(u);\n }\n }\n\n return r;\n };\n\n this.getUserNotice = function (v) {\n var s = {};\n var t = o(v, 0);\n\n for (var u = 0; u < t.length; u++) {\n var r = c(v, t[u]);\n\n if (r.substr(0, 2) != \"30\") {\n s.exptext = this.getDisplayText(r);\n }\n }\n\n return s;\n };\n\n this.getDisplayText = function (s) {\n var t = {\n \"0c\": \"utf8\",\n \"16\": \"ia5\",\n \"1a\": \"vis\",\n \"1e\": \"bmp\"\n };\n var r = {};\n r.type = t[s.substr(0, 2)];\n r.str = hextorstr(m(s, 0));\n return r;\n };\n\n this.getExtCRLNumber = function (s, t) {\n var r = {\n extname: \"cRLNumber\"\n };\n\n if (t) {\n r.critical = true;\n }\n\n if (s.substr(0, 2) == \"02\") {\n r.num = {\n hex: m(s, 0)\n };\n return r;\n }\n\n throw new Error(\"hExtV parse error: \" + s);\n };\n\n this.getExtCRLReason = function (s, t) {\n var r = {\n extname: \"cRLReason\"\n };\n\n if (t) {\n r.critical = true;\n }\n\n if (s.substr(0, 2) == \"0a\") {\n r.code = parseInt(m(s, 0), 16);\n return r;\n }\n\n throw new Error(\"hExtV parse error: \" + s);\n };\n\n this.getExtOcspNonce = function (s, u) {\n var r = {\n extname: \"ocspNonce\"\n };\n\n if (u) {\n r.critical = true;\n }\n\n var t = m(s, 0);\n r.hex = t;\n return r;\n };\n\n this.getExtOcspNoCheck = function (s, t) {\n var r = {\n extname: \"ocspNoCheck\"\n };\n\n if (t) {\n r.critical = true;\n }\n\n return r;\n };\n\n this.getX500NameRule = function (r) {\n var y = true;\n var C = true;\n var B = false;\n var s = \"\";\n var v = \"\";\n var E = null;\n var z = [];\n\n for (var u = 0; u < r.length; u++) {\n var w = r[u];\n\n for (var t = 0; t < w.length; t++) {\n z.push(w[t]);\n }\n }\n\n for (var u = 0; u < z.length; u++) {\n var D = z[u];\n var F = D.ds;\n var A = D.value;\n var x = D.type;\n s += \":\" + F;\n\n if (F != \"prn\" && F != \"utf8\" && F != \"ia5\") {\n return \"mixed\";\n }\n\n if (F == \"ia5\") {\n if (x != \"CN\") {\n return \"mixed\";\n } else {\n if (!KJUR.lang.String.isMail(A)) {\n return \"mixed\";\n } else {\n continue;\n }\n }\n }\n\n if (x == \"C\") {\n if (F == \"prn\") {\n continue;\n } else {\n return \"mixed\";\n }\n }\n\n v += \":\" + F;\n\n if (E == null) {\n E = F;\n } else {\n if (E !== F) {\n return \"mixed\";\n }\n }\n }\n\n if (E == null) {\n return \"prn\";\n } else {\n return E;\n }\n };\n\n this.getX500Name = function (u) {\n var r = [];\n var s = o(u, 0);\n\n for (var t = 0; t < s.length; t++) {\n r.push(this.getRDN(c(u, s[t])));\n }\n\n return r;\n };\n\n this.getRDN = function (u) {\n var r = [];\n var s = o(u, 0);\n\n for (var t = 0; t < s.length; t++) {\n r.push(this.getAttrTypeAndValue(c(u, s[t])));\n }\n\n return r;\n };\n\n this.getAttrTypeAndValue = function (t) {\n var r = {\n type: null,\n value: null,\n ds: null\n };\n var s = o(t, 0);\n var w = j(t, s[0], [], \"06\");\n var v = j(t, s[1], []);\n var u = KJUR.asn1.ASN1Util.oidHexToInt(w);\n r.type = KJUR.asn1.x509.OID.oid2atype(u);\n r.value = hextorstr(v);\n r.ds = this.HEX2STAG[t.substr(s[1], 2)];\n return r;\n };\n\n this.readCertPEM = function (r) {\n this.readCertHex(h(r));\n };\n\n this.readCertHex = function (r) {\n this.hex = r;\n this.getVersion();\n\n try {\n k(this.hex, 0, [0, 7], \"a3\");\n this.parseExt();\n } catch (s) {}\n };\n\n this.getParam = function () {\n var r = {};\n r.version = this.getVersion();\n r.serial = {\n hex: this.getSerialNumberHex()\n };\n r.sigalg = this.getSignatureAlgorithmField();\n r.issuer = this.getIssuer();\n r.notbefore = this.getNotBefore();\n r.notafter = this.getNotAfter();\n r.subject = this.getSubject();\n r.sbjpubkey = hextopem(this.getPublicKeyHex(), \"PUBLIC KEY\");\n\n if (this.aExtInfo.length > 0) {\n r.ext = this.getExtParamArray();\n }\n\n r.sighex = this.getSignatureValueHex();\n return r;\n };\n\n this.getExtParamArray = function (s) {\n if (s == undefined) {\n var u = i(this.hex, 0, [0, \"[3]\"]);\n\n if (u != -1) {\n s = f(this.hex, 0, [0, \"[3]\", 0], \"30\");\n }\n }\n\n var r = [];\n var t = o(s, 0);\n\n for (var v = 0; v < t.length; v++) {\n var x = c(s, t[v]);\n var w = this.getExtParam(x);\n\n if (w != null) {\n r.push(w);\n }\n }\n\n return r;\n };\n\n this.getExtParam = function (s) {\n var z = {};\n var u = o(s, 0);\n var v = u.length;\n\n if (v != 2 && v != 3) {\n throw new Error(\"wrong number elements in Extension: \" + v + \" \" + s);\n }\n\n var t = a(j(s, 0, [0], \"06\"));\n var x = false;\n\n if (v == 3 && d(s, 0, [1]) == \"0101ff\") {\n x = true;\n }\n\n var y = d(s, 0, [v - 1, 0]);\n var w = undefined;\n\n if (t == \"2.5.29.14\") {\n w = this.getExtSubjectKeyIdentifier(y, x);\n } else {\n if (t == \"2.5.29.15\") {\n w = this.getExtKeyUsage(y, x);\n } else {\n if (t == \"2.5.29.17\") {\n w = this.getExtSubjectAltName(y, x);\n } else {\n if (t == \"2.5.29.18\") {\n w = this.getExtIssuerAltName(y, x);\n } else {\n if (t == \"2.5.29.19\") {\n w = this.getExtBasicConstraints(y, x);\n } else {\n if (t == \"2.5.29.31\") {\n w = this.getExtCRLDistributionPoints(y, x);\n } else {\n if (t == \"2.5.29.32\") {\n w = this.getExtCertificatePolicies(y, x);\n } else {\n if (t == \"2.5.29.35\") {\n w = this.getExtAuthorityKeyIdentifier(y, x);\n } else {\n if (t == \"2.5.29.37\") {\n w = this.getExtExtKeyUsage(y, x);\n } else {\n if (t == \"1.3.6.1.5.5.7.1.1\") {\n w = this.getExtAuthorityInfoAccess(y, x);\n } else {\n if (t == \"2.5.29.20\") {\n w = this.getExtCRLNumber(y, x);\n } else {\n if (t == \"2.5.29.21\") {\n w = this.getExtCRLReason(y, x);\n } else {\n if (t == \"1.3.6.1.5.5.7.48.1.2\") {\n w = this.getExtOcspNonce(y, x);\n } else {\n if (t == \"1.3.6.1.5.5.7.48.1.5\") {\n w = this.getExtOcspNoCheck(y, x);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n if (w != undefined) {\n return w;\n }\n\n var r = {\n extname: t,\n extn: y\n };\n\n if (x) {\n r.critical = true;\n }\n\n return r;\n };\n\n this.getInfo = function () {\n var t = function t(L) {\n var K = JSON.stringify(L.array).replace(/[\\[\\]\\{\\}\\\"]/g, \"\");\n return K;\n };\n\n var z = function z(Q) {\n var O = \"\";\n var K = Q.array;\n\n for (var N = 0; N < K.length; N++) {\n var P = K[N];\n O += \" policy oid: \" + P.policyoid + \"\\n\";\n\n if (P.array === undefined) {\n continue;\n }\n\n for (var M = 0; M < P.array.length; M++) {\n var L = P.array[M];\n\n if (L.cps !== undefined) {\n O += \" cps: \" + L.cps + \"\\n\";\n }\n }\n }\n\n return O;\n };\n\n var C = function C(O) {\n var N = \"\";\n var K = O.array;\n\n for (var M = 0; M < K.length; M++) {\n var P = K[M];\n\n try {\n if (P.dpname.full[0].uri !== undefined) {\n N += \" \" + P.dpname.full[0].uri + \"\\n\";\n }\n } catch (L) {}\n\n try {\n if (P.dname.full[0].dn.hex !== undefined) {\n N += \" \" + X509.hex2dn(P.dpname.full[0].dn.hex) + \"\\n\";\n }\n } catch (L) {}\n }\n\n return N;\n };\n\n var A = function A(O) {\n var N = \"\";\n var K = O.array;\n\n for (var L = 0; L < K.length; L++) {\n var M = K[L];\n\n if (M.caissuer !== undefined) {\n N += \" caissuer: \" + M.caissuer + \"\\n\";\n }\n\n if (M.ocsp !== undefined) {\n N += \" ocsp: \" + M.ocsp + \"\\n\";\n }\n }\n\n return N;\n };\n\n var u = X509;\n var E, D, J;\n E = \"Basic Fields\\n\";\n E += \" serial number: \" + this.getSerialNumberHex() + \"\\n\";\n E += \" signature algorithm: \" + this.getSignatureAlgorithmField() + \"\\n\";\n E += \" issuer: \" + this.getIssuerString() + \"\\n\";\n E += \" notBefore: \" + this.getNotBefore() + \"\\n\";\n E += \" notAfter: \" + this.getNotAfter() + \"\\n\";\n E += \" subject: \" + this.getSubjectString() + \"\\n\";\n E += \" subject public key info: \\n\";\n D = this.getPublicKey();\n E += \" key algorithm: \" + D.type + \"\\n\";\n\n if (D.type === \"RSA\") {\n E += \" n=\" + hextoposhex(D.n.toString(16)).substr(0, 16) + \"...\\n\";\n E += \" e=\" + hextoposhex(D.e.toString(16)) + \"\\n\";\n }\n\n J = this.aExtInfo;\n\n if (J !== undefined && J !== null) {\n E += \"X509v3 Extensions:\\n\";\n\n for (var G = 0; G < J.length; G++) {\n var I = J[G];\n var r = KJUR.asn1.x509.OID.oid2name(I.oid);\n\n if (r === \"\") {\n r = I.oid;\n }\n\n var F = \"\";\n\n if (I.critical === true) {\n F = \"CRITICAL\";\n }\n\n E += \" \" + r + \" \" + F + \":\\n\";\n\n if (r === \"basicConstraints\") {\n var v = this.getExtBasicConstraints();\n\n if (v.cA === undefined) {\n E += \" {}\\n\";\n } else {\n E += \" cA=true\";\n\n if (v.pathLen !== undefined) {\n E += \", pathLen=\" + v.pathLen;\n }\n\n E += \"\\n\";\n }\n } else {\n if (r === \"keyUsage\") {\n E += \" \" + this.getExtKeyUsageString() + \"\\n\";\n } else {\n if (r === \"subjectKeyIdentifier\") {\n E += \" \" + this.getExtSubjectKeyIdentifier().kid.hex + \"\\n\";\n } else {\n if (r === \"authorityKeyIdentifier\") {\n var w = this.getExtAuthorityKeyIdentifier();\n\n if (w.kid !== undefined) {\n E += \" kid=\" + w.kid.hex + \"\\n\";\n }\n } else {\n if (r === \"extKeyUsage\") {\n var H = this.getExtExtKeyUsage().array;\n E += \" \" + H.join(\", \") + \"\\n\";\n } else {\n if (r === \"subjectAltName\") {\n var x = t(this.getExtSubjectAltName());\n E += \" \" + x + \"\\n\";\n } else {\n if (r === \"cRLDistributionPoints\") {\n var B = this.getExtCRLDistributionPoints();\n E += C(B);\n } else {\n if (r === \"authorityInfoAccess\") {\n var y = this.getExtAuthorityInfoAccess();\n E += A(y);\n } else {\n if (r === \"certificatePolicies\") {\n E += z(this.getExtCertificatePolicies());\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n E += \"signature algorithm: \" + this.getSignatureAlgorithmName() + \"\\n\";\n E += \"signature: \" + this.getSignatureValueHex().substr(0, 16) + \"...\\n\";\n return E;\n };\n}\n\nX509.hex2dn = function (f, b) {\n if (b === undefined) {\n b = 0;\n }\n\n if (f.substr(b, 2) !== \"30\") {\n throw new Error(\"malformed DN\");\n }\n\n var c = new Array();\n var d = ASN1HEX.getChildIdx(f, b);\n\n for (var e = 0; e < d.length; e++) {\n c.push(X509.hex2rdn(f, d[e]));\n }\n\n c = c.map(function (a) {\n return a.replace(\"/\", \"\\\\/\");\n });\n return \"/\" + c.join(\"/\");\n};\n\nX509.hex2rdn = function (f, b) {\n if (b === undefined) {\n b = 0;\n }\n\n if (f.substr(b, 2) !== \"31\") {\n throw new Error(\"malformed RDN\");\n }\n\n var c = new Array();\n var d = ASN1HEX.getChildIdx(f, b);\n\n for (var e = 0; e < d.length; e++) {\n c.push(X509.hex2attrTypeValue(f, d[e]));\n }\n\n c = c.map(function (a) {\n return a.replace(\"+\", \"\\\\+\");\n });\n return c.join(\"+\");\n};\n\nX509.hex2attrTypeValue = function (d, i) {\n var j = ASN1HEX;\n var h = j.getV;\n\n if (i === undefined) {\n i = 0;\n }\n\n if (d.substr(i, 2) !== \"30\") {\n throw new Error(\"malformed attribute type and value\");\n }\n\n var g = j.getChildIdx(d, i);\n\n if (g.length !== 2 || d.substr(g[0], 2) !== \"06\") {\n \"malformed attribute type and value\";\n }\n\n var b = h(d, g[0]);\n var f = KJUR.asn1.ASN1Util.oidHexToInt(b);\n var e = KJUR.asn1.x509.OID.oid2atype(f);\n var a = h(d, g[1]);\n var c = hextorstr(a);\n return e + \"=\" + c;\n};\n\nX509.getPublicKeyFromCertHex = function (b) {\n var a = new X509();\n a.readCertHex(b);\n return a.getPublicKey();\n};\n\nX509.getPublicKeyFromCertPEM = function (b) {\n var a = new X509();\n a.readCertPEM(b);\n return a.getPublicKey();\n};\n\nX509.getPublicKeyInfoPropOfCertPEM = function (c) {\n var e = ASN1HEX;\n var g = e.getVbyList;\n var b = {};\n var a, f, d;\n b.algparam = null;\n a = new X509();\n a.readCertPEM(c);\n f = a.getPublicKeyHex();\n b.keyhex = g(f, 0, [1], \"03\").substr(2);\n b.algoid = g(f, 0, [0, 0], \"06\");\n\n if (b.algoid === \"2a8648ce3d0201\") {\n b.algparam = g(f, 0, [0, 1], \"06\");\n }\n\n return b;\n};\n\nX509.KEYUSAGE_NAME = [\"digitalSignature\", \"nonRepudiation\", \"keyEncipherment\", \"dataEncipherment\", \"keyAgreement\", \"keyCertSign\", \"cRLSign\", \"encipherOnly\", \"decipherOnly\"];\n\nvar X509CRL = function X509CRL(e) {\n var a = KJUR,\n f = a.lang.String.isHex,\n m = ASN1HEX,\n k = m.getV,\n b = m.getTLV,\n h = m.getVbyList,\n c = m.getTLVbyList,\n d = m.getTLVbyListEx,\n i = m.getIdxbyList,\n g = m.getIdxbyListEx,\n l = m.getChildIdx,\n j = new X509();\n this.hex = null;\n this.posSigAlg = null;\n this.posRevCert = null;\n\n this._setPos = function () {\n var o = i(this.hex, 0, [0, 0]);\n var n = this.hex.substr(o, 2);\n\n if (n == \"02\") {\n this.posSigAlg = 1;\n } else {\n if (n == \"30\") {\n this.posSigAlg = 0;\n } else {\n throw new Error(\"malformed 1st item of TBSCertList: \" + n);\n }\n }\n\n var s = i(this.hex, 0, [0, this.posSigAlg + 3]);\n var r = this.hex.substr(s, 2);\n\n if (r == \"17\" || r == \"18\") {\n var q, p;\n q = i(this.hex, 0, [0, this.posSigAlg + 4]);\n this.posRevCert = null;\n\n if (q != -1) {\n p = this.hex.substr(q, 2);\n\n if (p == \"30\") {\n this.posRevCert = this.posSigAlg + 4;\n }\n }\n } else {\n if (r == \"30\") {\n this.posRevCert = this.posSigAlg + 3;\n } else {\n if (r == \"a0\") {\n this.posRevCert = null;\n } else {\n throw new Error(\"malformed nextUpdate or revCert tag: \" + r);\n }\n }\n }\n };\n\n this.getVersion = function () {\n if (this.posSigAlg == 0) {\n return null;\n }\n\n return parseInt(h(this.hex, 0, [0, 0], \"02\"), 16) + 1;\n };\n\n this.getSignatureAlgorithmField = function () {\n var n = c(this.hex, 0, [0, this.posSigAlg], \"30\");\n return j.getAlgorithmIdentifierName(n);\n };\n\n this.getIssuer = function () {\n var o = c(this.hex, 0, [0, this.posSigAlg + 1], \"30\");\n var n = {};\n n.array = j.getX500Name(o);\n return n;\n };\n\n this.getThisUpdate = function () {\n var n = h(this.hex, 0, [0, this.posSigAlg + 2]);\n return result = hextorstr(n);\n };\n\n this.getNextUpdate = function () {\n var o = i(this.hex, 0, [0, this.posSigAlg + 3]);\n var n = this.hex.substr(o, 2);\n\n if (n != \"17\" && n != \"18\") {\n return null;\n }\n\n return hextorstr(k(this.hex, o));\n };\n\n this.getRevCertArray = function () {\n if (this.posRevCert == null) {\n return null;\n }\n\n var o = [];\n var n = i(this.hex, 0, [0, this.posRevCert]);\n var p = l(this.hex, n);\n\n for (var q = 0; q < p.length; q++) {\n var r = b(this.hex, p[q]);\n o.push(this.getRevCert(r));\n }\n\n return o;\n };\n\n this.getRevCert = function (p) {\n var o = {};\n var n = l(p, 0);\n o.sn = {\n hex: h(p, 0, [0], \"02\")\n };\n o.date = hextorstr(h(p, 0, [1]));\n\n if (n.length == 3) {\n o.ext = j.getExtParamArray(c(p, 0, [2]));\n }\n\n return o;\n };\n\n this.getSignatureValueHex = function () {\n return h(this.hex, 0, [2], \"03\", true);\n };\n\n this.verifySignature = function (o) {\n var p = this.getSignatureAlgorithmField();\n var n = this.getSignatureValueHex();\n var q = c(this.hex, 0, [0], \"30\");\n var r = new KJUR.crypto.Signature({\n alg: p\n });\n r.init(o);\n r.updateHex(q);\n return r.verify(n);\n };\n\n this.getParam = function () {\n var n = {};\n var p = this.getVersion();\n\n if (p != null) {\n n.version = p;\n }\n\n n.sigalg = this.getSignatureAlgorithmField();\n n.issuer = this.getIssuer();\n n.thisupdate = this.getThisUpdate();\n var q = this.getNextUpdate();\n\n if (q != null) {\n n.nextupdate = q;\n }\n\n var s = this.getRevCertArray();\n\n if (s != null) {\n n.revcert = s;\n }\n\n var r = g(this.hex, 0, [0, \"[0]\"]);\n\n if (r != -1) {\n var o = d(this.hex, 0, [0, \"[0]\", 0]);\n n.ext = j.getExtParamArray(o);\n }\n\n n.sighex = this.getSignatureValueHex();\n return n;\n };\n\n if (typeof e == \"string\") {\n if (f(e)) {\n this.hex = e;\n } else {\n if (e.match(/-----BEGIN X509 CRL/)) {\n this.hex = pemtohex(e);\n }\n }\n\n this._setPos();\n }\n};\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.jws == \"undefined\" || !KJUR.jws) {\n KJUR.jws = {};\n}\n\nKJUR.jws.JWS = function () {\n var b = KJUR,\n a = b.jws.JWS,\n c = a.isSafeJSONString;\n\n this.parseJWS = function (g, j) {\n if (this.parsedJWS !== undefined && (j || this.parsedJWS.sigvalH !== undefined)) {\n return;\n }\n\n var i = g.match(/^([^.]+)\\.([^.]+)\\.([^.]+)$/);\n\n if (i == null) {\n throw \"JWS signature is not a form of 'Head.Payload.SigValue'.\";\n }\n\n var k = i[1];\n var e = i[2];\n var l = i[3];\n var n = k + \".\" + e;\n this.parsedJWS = {};\n this.parsedJWS.headB64U = k;\n this.parsedJWS.payloadB64U = e;\n this.parsedJWS.sigvalB64U = l;\n this.parsedJWS.si = n;\n\n if (!j) {\n var h = b64utohex(l);\n var f = parseBigInt(h, 16);\n this.parsedJWS.sigvalH = h;\n this.parsedJWS.sigvalBI = f;\n }\n\n var d = b64utoutf8(k);\n var m = b64utoutf8(e);\n this.parsedJWS.headS = d;\n this.parsedJWS.payloadS = m;\n\n if (!c(d, this.parsedJWS, \"headP\")) {\n throw \"malformed JSON string for JWS Head: \" + d;\n }\n };\n};\n\nKJUR.jws.JWS.sign = function (j, w, z, A, a) {\n var x = KJUR,\n n = x.jws,\n r = n.JWS,\n h = r.readSafeJSONString,\n q = r.isSafeJSONString,\n d = x.crypto,\n l = d.ECDSA,\n p = d.Mac,\n c = d.Signature,\n u = JSON;\n var t, k, o;\n\n if (typeof w != \"string\" && _typeof(w) != \"object\") {\n throw \"spHeader must be JSON string or object: \" + w;\n }\n\n if (_typeof(w) == \"object\") {\n k = w;\n t = u.stringify(k);\n }\n\n if (typeof w == \"string\") {\n t = w;\n\n if (!q(t)) {\n throw \"JWS Head is not safe JSON string: \" + t;\n }\n\n k = h(t);\n }\n\n o = z;\n\n if (_typeof(z) == \"object\") {\n o = u.stringify(z);\n }\n\n if ((j == \"\" || j == null) && k.alg !== undefined) {\n j = k.alg;\n }\n\n if (j != \"\" && j != null && k.alg === undefined) {\n k.alg = j;\n t = u.stringify(k);\n }\n\n if (j !== k.alg) {\n throw \"alg and sHeader.alg doesn't match: \" + j + \"!=\" + k.alg;\n }\n\n var s = null;\n\n if (r.jwsalg2sigalg[j] === undefined) {\n throw \"unsupported alg name: \" + j;\n } else {\n s = r.jwsalg2sigalg[j];\n }\n\n var e = utf8tob64u(t);\n var m = utf8tob64u(o);\n var b = e + \".\" + m;\n var y = \"\";\n\n if (s.substr(0, 4) == \"Hmac\") {\n if (A === undefined) {\n throw \"mac key shall be specified for HS* alg\";\n }\n\n var i = new p({\n alg: s,\n prov: \"cryptojs\",\n pass: A\n });\n i.updateString(b);\n y = i.doFinal();\n } else {\n if (s.indexOf(\"withECDSA\") != -1) {\n var f = new c({\n alg: s\n });\n f.init(A, a);\n f.updateString(b);\n var g = f.sign();\n y = KJUR.crypto.ECDSA.asn1SigToConcatSig(g);\n } else {\n if (s != \"none\") {\n var f = new c({\n alg: s\n });\n f.init(A, a);\n f.updateString(b);\n y = f.sign();\n }\n }\n }\n\n var v = hextob64u(y);\n return b + \".\" + v;\n};\n\nKJUR.jws.JWS.verify = function (w, B, n) {\n var x = KJUR,\n q = x.jws,\n t = q.JWS,\n i = t.readSafeJSONString,\n e = x.crypto,\n p = e.ECDSA,\n s = e.Mac,\n d = e.Signature,\n m;\n\n if (_typeof(RSAKey) !== undefined) {\n m = RSAKey;\n }\n\n var y = w.split(\".\");\n\n if (y.length !== 3) {\n return false;\n }\n\n var f = y[0];\n var r = y[1];\n var c = f + \".\" + r;\n var A = b64utohex(y[2]);\n var l = i(b64utoutf8(y[0]));\n var k = null;\n var z = null;\n\n if (l.alg === undefined) {\n throw \"algorithm not specified in header\";\n } else {\n k = l.alg;\n z = k.substr(0, 2);\n }\n\n if (n != null && Object.prototype.toString.call(n) === \"[object Array]\" && n.length > 0) {\n var b = \":\" + n.join(\":\") + \":\";\n\n if (b.indexOf(\":\" + k + \":\") == -1) {\n throw \"algorithm '\" + k + \"' not accepted in the list\";\n }\n }\n\n if (k != \"none\" && B === null) {\n throw \"key shall be specified to verify.\";\n }\n\n if (typeof B == \"string\" && B.indexOf(\"-----BEGIN \") != -1) {\n B = KEYUTIL.getKey(B);\n }\n\n if (z == \"RS\" || z == \"PS\") {\n if (!(B instanceof m)) {\n throw \"key shall be a RSAKey obj for RS* and PS* algs\";\n }\n }\n\n if (z == \"ES\") {\n if (!(B instanceof p)) {\n throw \"key shall be a ECDSA obj for ES* algs\";\n }\n }\n\n if (k == \"none\") {}\n\n var u = null;\n\n if (t.jwsalg2sigalg[l.alg] === undefined) {\n throw \"unsupported alg name: \" + k;\n } else {\n u = t.jwsalg2sigalg[k];\n }\n\n if (u == \"none\") {\n throw \"not supported\";\n } else {\n if (u.substr(0, 4) == \"Hmac\") {\n var o = null;\n\n if (B === undefined) {\n throw \"hexadecimal key shall be specified for HMAC\";\n }\n\n var j = new s({\n alg: u,\n pass: B\n });\n j.updateString(c);\n o = j.doFinal();\n return A == o;\n } else {\n if (u.indexOf(\"withECDSA\") != -1) {\n var h = null;\n\n try {\n h = p.concatSigToASN1Sig(A);\n } catch (v) {\n return false;\n }\n\n var g = new d({\n alg: u\n });\n g.init(B);\n g.updateString(c);\n return g.verify(h);\n } else {\n var g = new d({\n alg: u\n });\n g.init(B);\n g.updateString(c);\n return g.verify(A);\n }\n }\n }\n};\n\nKJUR.jws.JWS.parse = function (g) {\n var c = g.split(\".\");\n var b = {};\n var f, e, d;\n\n if (c.length != 2 && c.length != 3) {\n throw \"malformed sJWS: wrong number of '.' splitted elements\";\n }\n\n f = c[0];\n e = c[1];\n\n if (c.length == 3) {\n d = c[2];\n }\n\n b.headerObj = KJUR.jws.JWS.readSafeJSONString(b64utoutf8(f));\n b.payloadObj = KJUR.jws.JWS.readSafeJSONString(b64utoutf8(e));\n b.headerPP = JSON.stringify(b.headerObj, null, \" \");\n\n if (b.payloadObj == null) {\n b.payloadPP = b64utoutf8(e);\n } else {\n b.payloadPP = JSON.stringify(b.payloadObj, null, \" \");\n }\n\n if (d !== undefined) {\n b.sigHex = b64utohex(d);\n }\n\n return b;\n};\n\nKJUR.jws.JWS.verifyJWT = function (e, l, r) {\n var d = KJUR,\n j = d.jws,\n o = j.JWS,\n n = o.readSafeJSONString,\n p = o.inArray,\n f = o.includedArray;\n var k = e.split(\".\");\n var c = k[0];\n var i = k[1];\n var q = c + \".\" + i;\n var m = b64utohex(k[2]);\n var h = n(b64utoutf8(c));\n var g = n(b64utoutf8(i));\n\n if (h.alg === undefined) {\n return false;\n }\n\n if (r.alg === undefined) {\n throw \"acceptField.alg shall be specified\";\n }\n\n if (!p(h.alg, r.alg)) {\n return false;\n }\n\n if (g.iss !== undefined && _typeof(r.iss) === \"object\") {\n if (!p(g.iss, r.iss)) {\n return false;\n }\n }\n\n if (g.sub !== undefined && _typeof(r.sub) === \"object\") {\n if (!p(g.sub, r.sub)) {\n return false;\n }\n }\n\n if (g.aud !== undefined && _typeof(r.aud) === \"object\") {\n if (typeof g.aud == \"string\") {\n if (!p(g.aud, r.aud)) {\n return false;\n }\n } else {\n if (_typeof(g.aud) == \"object\") {\n if (!f(g.aud, r.aud)) {\n return false;\n }\n }\n }\n }\n\n var b = j.IntDate.getNow();\n\n if (r.verifyAt !== undefined && typeof r.verifyAt === \"number\") {\n b = r.verifyAt;\n }\n\n if (r.gracePeriod === undefined || typeof r.gracePeriod !== \"number\") {\n r.gracePeriod = 0;\n }\n\n if (g.exp !== undefined && typeof g.exp == \"number\") {\n if (g.exp + r.gracePeriod < b) {\n return false;\n }\n }\n\n if (g.nbf !== undefined && typeof g.nbf == \"number\") {\n if (b < g.nbf - r.gracePeriod) {\n return false;\n }\n }\n\n if (g.iat !== undefined && typeof g.iat == \"number\") {\n if (b < g.iat - r.gracePeriod) {\n return false;\n }\n }\n\n if (g.jti !== undefined && r.jti !== undefined) {\n if (g.jti !== r.jti) {\n return false;\n }\n }\n\n if (!o.verify(e, l, r.alg)) {\n return false;\n }\n\n return true;\n};\n\nKJUR.jws.JWS.includedArray = function (b, a) {\n var c = KJUR.jws.JWS.inArray;\n\n if (b === null) {\n return false;\n }\n\n if (_typeof(b) !== \"object\") {\n return false;\n }\n\n if (typeof b.length !== \"number\") {\n return false;\n }\n\n for (var d = 0; d < b.length; d++) {\n if (!c(b[d], a)) {\n return false;\n }\n }\n\n return true;\n};\n\nKJUR.jws.JWS.inArray = function (d, b) {\n if (b === null) {\n return false;\n }\n\n if (_typeof(b) !== \"object\") {\n return false;\n }\n\n if (typeof b.length !== \"number\") {\n return false;\n }\n\n for (var c = 0; c < b.length; c++) {\n if (b[c] == d) {\n return true;\n }\n }\n\n return false;\n};\n\nKJUR.jws.JWS.jwsalg2sigalg = {\n HS256: \"HmacSHA256\",\n HS384: \"HmacSHA384\",\n HS512: \"HmacSHA512\",\n RS256: \"SHA256withRSA\",\n RS384: \"SHA384withRSA\",\n RS512: \"SHA512withRSA\",\n ES256: \"SHA256withECDSA\",\n ES384: \"SHA384withECDSA\",\n PS256: \"SHA256withRSAandMGF1\",\n PS384: \"SHA384withRSAandMGF1\",\n PS512: \"SHA512withRSAandMGF1\",\n none: \"none\"\n};\n\nKJUR.jws.JWS.isSafeJSONString = function (c, b, d) {\n var e = null;\n\n try {\n e = jsonParse(c);\n\n if (_typeof(e) != \"object\") {\n return 0;\n }\n\n if (e.constructor === Array) {\n return 0;\n }\n\n if (b) {\n b[d] = e;\n }\n\n return 1;\n } catch (a) {\n return 0;\n }\n};\n\nKJUR.jws.JWS.readSafeJSONString = function (b) {\n var c = null;\n\n try {\n c = jsonParse(b);\n\n if (_typeof(c) != \"object\") {\n return null;\n }\n\n if (c.constructor === Array) {\n return null;\n }\n\n return c;\n } catch (a) {\n return null;\n }\n};\n\nKJUR.jws.JWS.getEncodedSignatureValueFromJWS = function (b) {\n var a = b.match(/^[^.]+\\.[^.]+\\.([^.]+)$/);\n\n if (a == null) {\n throw \"JWS signature is not a form of 'Head.Payload.SigValue'.\";\n }\n\n return a[1];\n};\n\nKJUR.jws.JWS.getJWKthumbprint = function (d) {\n if (d.kty !== \"RSA\" && d.kty !== \"EC\" && d.kty !== \"oct\") {\n throw \"unsupported algorithm for JWK Thumprint\";\n }\n\n var a = \"{\";\n\n if (d.kty === \"RSA\") {\n if (typeof d.n != \"string\" || typeof d.e != \"string\") {\n throw \"wrong n and e value for RSA key\";\n }\n\n a += '\"e\":\"' + d.e + '\",';\n a += '\"kty\":\"' + d.kty + '\",';\n a += '\"n\":\"' + d.n + '\"}';\n } else {\n if (d.kty === \"EC\") {\n if (typeof d.crv != \"string\" || typeof d.x != \"string\" || typeof d.y != \"string\") {\n throw \"wrong crv, x and y value for EC key\";\n }\n\n a += '\"crv\":\"' + d.crv + '\",';\n a += '\"kty\":\"' + d.kty + '\",';\n a += '\"x\":\"' + d.x + '\",';\n a += '\"y\":\"' + d.y + '\"}';\n } else {\n if (d.kty === \"oct\") {\n if (typeof d.k != \"string\") {\n throw \"wrong k value for oct(symmetric) key\";\n }\n\n a += '\"kty\":\"' + d.kty + '\",';\n a += '\"k\":\"' + d.k + '\"}';\n }\n }\n }\n\n var b = rstrtohex(a);\n var c = KJUR.crypto.Util.hashHex(b, \"sha256\");\n var e = hextob64u(c);\n return e;\n};\n\nKJUR.jws.IntDate = {};\n\nKJUR.jws.IntDate.get = function (c) {\n var b = KJUR.jws.IntDate,\n d = b.getNow,\n a = b.getZulu;\n\n if (c == \"now\") {\n return d();\n } else {\n if (c == \"now + 1hour\") {\n return d() + 60 * 60;\n } else {\n if (c == \"now + 1day\") {\n return d() + 60 * 60 * 24;\n } else {\n if (c == \"now + 1month\") {\n return d() + 60 * 60 * 24 * 30;\n } else {\n if (c == \"now + 1year\") {\n return d() + 60 * 60 * 24 * 365;\n } else {\n if (c.match(/Z$/)) {\n return a(c);\n } else {\n if (c.match(/^[0-9]+$/)) {\n return parseInt(c);\n }\n }\n }\n }\n }\n }\n }\n\n throw \"unsupported format: \" + c;\n};\n\nKJUR.jws.IntDate.getZulu = function (a) {\n return zulutosec(a);\n};\n\nKJUR.jws.IntDate.getNow = function () {\n var a = ~~(new Date() / 1000);\n return a;\n};\n\nKJUR.jws.IntDate.intDate2UTCString = function (a) {\n var b = new Date(a * 1000);\n return b.toUTCString();\n};\n\nKJUR.jws.IntDate.intDate2Zulu = function (e) {\n var i = new Date(e * 1000),\n h = (\"0000\" + i.getUTCFullYear()).slice(-4),\n g = (\"00\" + (i.getUTCMonth() + 1)).slice(-2),\n b = (\"00\" + i.getUTCDate()).slice(-2),\n a = (\"00\" + i.getUTCHours()).slice(-2),\n c = (\"00\" + i.getUTCMinutes()).slice(-2),\n f = (\"00\" + i.getUTCSeconds()).slice(-2);\n return h + g + b + a + c + f + \"Z\";\n};\n\nif (typeof KJUR == \"undefined\" || !KJUR) {\n KJUR = {};\n}\n\nif (typeof KJUR.jws == \"undefined\" || !KJUR.jws) {\n KJUR.jws = {};\n}\n\nKJUR.jws.JWSJS = function () {\n var c = KJUR,\n b = c.jws,\n a = b.JWS,\n d = a.readSafeJSONString;\n this.aHeader = [];\n this.sPayload = \"\";\n this.aSignature = [];\n\n this.init = function () {\n this.aHeader = [];\n this.sPayload = undefined;\n this.aSignature = [];\n };\n\n this.initWithJWS = function (f) {\n this.init();\n var e = f.split(\".\");\n\n if (e.length != 3) {\n throw \"malformed input JWS\";\n }\n\n this.aHeader.push(e[0]);\n this.sPayload = e[1];\n this.aSignature.push(e[2]);\n };\n\n this.addSignature = function (e, h, m, k) {\n if (this.sPayload === undefined || this.sPayload === null) {\n throw \"there's no JSON-JS signature to add.\";\n }\n\n var l = this.aHeader.length;\n\n if (this.aHeader.length != this.aSignature.length) {\n throw \"aHeader.length != aSignature.length\";\n }\n\n try {\n var f = KJUR.jws.JWS.sign(e, h, this.sPayload, m, k);\n var j = f.split(\".\");\n var n = j[0];\n var g = j[2];\n this.aHeader.push(j[0]);\n this.aSignature.push(j[2]);\n } catch (i) {\n if (this.aHeader.length > l) {\n this.aHeader.pop();\n }\n\n if (this.aSignature.length > l) {\n this.aSignature.pop();\n }\n\n throw \"addSignature failed: \" + i;\n }\n };\n\n this.verifyAll = function (h) {\n if (this.aHeader.length !== h.length || this.aSignature.length !== h.length) {\n return false;\n }\n\n for (var g = 0; g < h.length; g++) {\n var f = h[g];\n\n if (f.length !== 2) {\n return false;\n }\n\n var e = this.verifyNth(g, f[0], f[1]);\n\n if (e === false) {\n return false;\n }\n }\n\n return true;\n };\n\n this.verifyNth = function (f, j, g) {\n if (this.aHeader.length <= f || this.aSignature.length <= f) {\n return false;\n }\n\n var h = this.aHeader[f];\n var k = this.aSignature[f];\n var l = h + \".\" + this.sPayload + \".\" + k;\n var e = false;\n\n try {\n e = a.verify(l, j, g);\n } catch (i) {\n return false;\n }\n\n return e;\n };\n\n this.readJWSJS = function (g) {\n if (typeof g === \"string\") {\n var f = d(g);\n\n if (f == null) {\n throw \"argument is not safe JSON object string\";\n }\n\n this.aHeader = f.headers;\n this.sPayload = f.payload;\n this.aSignature = f.signatures;\n } else {\n try {\n if (g.headers.length > 0) {\n this.aHeader = g.headers;\n } else {\n throw \"malformed header\";\n }\n\n if (typeof g.payload === \"string\") {\n this.sPayload = g.payload;\n } else {\n throw \"malformed signatures\";\n }\n\n if (g.signatures.length > 0) {\n this.aSignature = g.signatures;\n } else {\n throw \"malformed signatures\";\n }\n } catch (e) {\n throw \"malformed JWS-JS JSON object: \" + e;\n }\n }\n };\n\n this.getJSON = function () {\n return {\n headers: this.aHeader,\n payload: this.sPayload,\n signatures: this.aSignature\n };\n };\n\n this.isEmpty = function () {\n if (this.aHeader.length == 0) {\n return 1;\n }\n\n return 0;\n };\n};\n\nexports.SecureRandom = SecureRandom;\nexports.rng_seed_time = rng_seed_time;\nexports.BigInteger = BigInteger;\nexports.RSAKey = RSAKey;\nexports.ECDSA = KJUR.crypto.ECDSA;\nexports.DSA = KJUR.crypto.DSA;\nexports.Signature = KJUR.crypto.Signature;\nexports.MessageDigest = KJUR.crypto.MessageDigest;\nexports.Mac = KJUR.crypto.Mac;\nexports.Cipher = KJUR.crypto.Cipher;\nexports.KEYUTIL = KEYUTIL;\nexports.ASN1HEX = ASN1HEX;\nexports.X509 = X509;\nexports.X509CRL = X509CRL;\nexports.CryptoJS = CryptoJS; // ext/base64.js\n\nexports.b64tohex = b64tohex;\nexports.b64toBA = b64toBA; // ext/ec*.js\n\nexports.ECFieldElementFp = ECFieldElementFp;\nexports.ECPointFp = ECPointFp;\nexports.ECCurveFp = ECCurveFp; // base64x.js\n\nexports.stoBA = stoBA;\nexports.BAtos = BAtos;\nexports.BAtohex = BAtohex;\nexports.stohex = stohex;\nexports.stob64 = stob64;\nexports.stob64u = stob64u;\nexports.b64utos = b64utos;\nexports.b64tob64u = b64tob64u;\nexports.b64utob64 = b64utob64;\nexports.hex2b64 = hex2b64;\nexports.hextob64u = hextob64u;\nexports.b64utohex = b64utohex;\nexports.utf8tob64u = utf8tob64u;\nexports.b64utoutf8 = b64utoutf8;\nexports.utf8tob64 = utf8tob64;\nexports.b64toutf8 = b64toutf8;\nexports.utf8tohex = utf8tohex;\nexports.hextoutf8 = hextoutf8;\nexports.hextorstr = hextorstr;\nexports.rstrtohex = rstrtohex;\nexports.hextob64 = hextob64;\nexports.hextob64nl = hextob64nl;\nexports.b64nltohex = b64nltohex;\nexports.hextopem = hextopem;\nexports.pemtohex = pemtohex;\nexports.hextoArrayBuffer = hextoArrayBuffer;\nexports.ArrayBuffertohex = ArrayBuffertohex;\nexports.zulutomsec = zulutomsec;\nexports.zulutosec = zulutosec;\nexports.zulutodate = zulutodate;\nexports.datetozulu = datetozulu;\nexports.uricmptohex = uricmptohex;\nexports.hextouricmp = hextouricmp;\nexports.ipv6tohex = ipv6tohex;\nexports.hextoipv6 = hextoipv6;\nexports.hextoip = hextoip;\nexports.iptohex = iptohex;\nexports.encodeURIComponentAll = encodeURIComponentAll;\nexports.newline_toUnix = newline_toUnix;\nexports.newline_toDos = newline_toDos;\nexports.hextoposhex = hextoposhex;\nexports.intarystrtohex = intarystrtohex;\nexports.strdiffidx = strdiffidx; // name spaces\n\nexports.KJUR = KJUR;\nexports.crypto = KJUR.crypto;\nexports.asn1 = KJUR.asn1;\nexports.jws = KJUR.jws;\nexports.lang = KJUR.lang;","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\n\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n} // Add methods to `Hash`.\n\n\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\nmodule.exports = Hash;","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\n\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n} // Add methods to `ListCache`.\n\n\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\nmodule.exports = ListCache;","var getNative = require('./_getNative'),\n root = require('./_root');\n/* Built-in method references that are verified to be native. */\n\n\nvar Map = getNative(root, 'Map');\nmodule.exports = Map;","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\n\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n} // Add methods to `MapCache`.\n\n\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\nmodule.exports = MapCache;","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n\n\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n this.__data__ = new MapCache();\n\n while (++index < length) {\n this.add(values[index]);\n }\n} // Add methods to `SetCache`.\n\n\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\nmodule.exports = SetCache;","var root = require('./_root');\n/** Built-in value references. */\n\n\nvar _Symbol = root.Symbol;\nmodule.exports = _Symbol;","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0:\n return func.call(thisArg);\n\n case 1:\n return func.call(thisArg, args[0]);\n\n case 2:\n return func.call(thisArg, args[0], args[1]);\n\n case 3:\n return func.call(thisArg, args[0], args[1], args[2]);\n }\n\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;","var baseIndexOf = require('./_baseIndexOf');\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n\n\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n\n return false;\n}\n\nmodule.exports = arrayIncludesWith;","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n\n return result;\n}\n\nmodule.exports = arrayMap;","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n\n return array;\n}\n\nmodule.exports = arrayPush;","var eq = require('./eq');\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n\n\nfunction assocIndexOf(array, key) {\n var length = array.length;\n\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n\n return -1;\n}\n\nmodule.exports = assocIndexOf;","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n/** Used as the size to enable large array optimizations. */\n\n\nvar LARGE_ARRAY_SIZE = 200;\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n } else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n\n outer: while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n value = comparator || value !== 0 ? value : 0;\n\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n\n result.push(value);\n } else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n\n return result;\n}\n\nmodule.exports = baseDifference;","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while (fromRight ? index-- : ++index < length) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n\n return -1;\n}\n\nmodule.exports = baseFindIndex;","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n\n\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n\n return result;\n}\n\nmodule.exports = baseFlatten;","var _Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n/** `Object#toString` result references. */\n\n\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n/** Built-in value references. */\n\nvar symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n\n return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n}\n\nmodule.exports = baseGetTag;","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n\n\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\n\nvar nativeMin = Math.min;\n/**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n\nfunction baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined;\n }\n\n array = arrays[0];\n var index = -1,\n seen = caches[0];\n\n outer: while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n value = comparator || value !== 0 ? value : 0;\n\n if (!(seen ? cacheHas(seen, computed) : includes(result, computed, comparator))) {\n othIndex = othLength;\n\n while (--othIndex) {\n var cache = caches[othIndex];\n\n if (!(cache ? cacheHas(cache, computed) : includes(arrays[othIndex], computed, comparator))) {\n continue outer;\n }\n }\n\n if (seen) {\n seen.push(computed);\n }\n\n result.push(value);\n }\n }\n\n return result;\n}\n\nmodule.exports = baseIntersection;","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n/** `Object#toString` result references. */\n\n\nvar argsTag = '[object Arguments]';\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n\n\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n/** Used to detect host constructors (Safari). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/** Used for built-in method references. */\n\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar funcToString = funcProto.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n\n\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n\n\nvar baseSetToString = !defineProperty ? identity : function (func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\nmodule.exports = baseSetToString;","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function (value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;","var isArrayLikeObject = require('./isArrayLikeObject');\n/**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n\n\nfunction castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n}\n\nmodule.exports = castArrayLikeObject;","var root = require('./_root');\n/** Used to detect overreaching core-js shims. */\n\n\nvar coreJsData = root['__core-js_shared__'];\nmodule.exports = coreJsData;","var getNative = require('./_getNative');\n\nvar defineProperty = function () {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}();\n\nmodule.exports = defineProperty;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = (typeof global === \"undefined\" ? \"undefined\" : _typeof(global)) == 'object' && global && global.Object === Object && global;\nmodule.exports = freeGlobal;","var isKeyable = require('./_isKeyable');\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n\n\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;\n}\n\nmodule.exports = getMapData;","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\n\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;","var _Symbol = require('./_Symbol');\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar nativeObjectToString = objectProto.toString;\n/** Built-in value references. */\n\nvar symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n\n return result;\n}\n\nmodule.exports = getRawTag;","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;","var nativeCreate = require('./_nativeCreate');\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n\n\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;","var nativeCreate = require('./_nativeCreate');\n/** Used to stand-in for `undefined` hash values. */\n\n\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\nfunction hashGet(key) {\n var data = this.__data__;\n\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;","var nativeCreate = require('./_nativeCreate');\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;","var nativeCreate = require('./_nativeCreate');\n/** Used to stand-in for `undefined` hash values. */\n\n\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;","var _Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n/** Built-in value references. */\n\n\nvar spreadableSymbol = _Symbol ? _Symbol.isConcatSpreadable : undefined;\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = _typeof(value);\n\n return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;\n}\n\nmodule.exports = isKeyable;","var coreJsData = require('./_coreJsData');\n/** Used to detect methods masquerading as native. */\n\n\nvar maskSrcKey = function () {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? 'Symbol(src)_1.' + uid : '';\n}();\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n\n\nfunction isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n}\n\nmodule.exports = isMasked;","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;","var assocIndexOf = require('./_assocIndexOf');\n/** Used for built-in method references. */\n\n\nvar arrayProto = Array.prototype;\n/** Built-in value references. */\n\nvar splice = arrayProto.splice;\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n\n var lastIndex = data.length - 1;\n\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;","var assocIndexOf = require('./_assocIndexOf');\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\n\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;","var assocIndexOf = require('./_assocIndexOf');\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\n\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;","var assocIndexOf = require('./_assocIndexOf');\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n\n\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n\n return this;\n}\n\nmodule.exports = listCacheSet;","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n\n\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash(),\n 'map': new (Map || ListCache)(),\n 'string': new Hash()\n };\n}\n\nmodule.exports = mapCacheClear;","var getMapData = require('./_getMapData');\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\n\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;","var getMapData = require('./_getMapData');\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\n\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;","var getMapData = require('./_getMapData');\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\n\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;","var getMapData = require('./_getMapData');\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n\n\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;","var getNative = require('./_getNative');\n/* Built-in method references that are verified to be native. */\n\n\nvar nativeCreate = getNative(Object, 'create');\nmodule.exports = nativeCreate;","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar nativeObjectToString = objectProto.toString;\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;","var apply = require('./_apply');\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\n\nvar nativeMax = Math.max;\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? func.length - 1 : start, 0);\n return function () {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n\n index = -1;\n var otherArgs = Array(start + 1);\n\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar freeGlobal = require('./_freeGlobal');\n/** Detect free variable `self`. */\n\n\nvar freeSelf = (typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) == 'object' && self && self.Object === Object && self;\n/** Used as a reference to the global object. */\n\nvar root = freeGlobal || freeSelf || Function('return this')();\nmodule.exports = root;","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n\n return this;\n}\n\nmodule.exports = setCacheAdd;","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n\n\nvar setToString = shortOut(baseSetToString);\nmodule.exports = setToString;","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeNow = Date.now;\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n return function () {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n lastCalled = stamp;\n\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n\n return -1;\n}\n\nmodule.exports = strictIndexOf;","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar funcToString = funcProto.toString;\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n\n try {\n return func + '';\n } catch (e) {}\n }\n\n return '';\n}\n\nmodule.exports = toSource;","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function () {\n return value;\n };\n}\n\nmodule.exports = constant;","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n/** Error message constants. */\n\n\nvar FUNC_ERROR_TEXT = 'Expected a function';\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n\n wait = toNumber(wait) || 0;\n\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time; // Start the timer for the trailing edge.\n\n timerId = setTimeout(timerExpired, wait); // Invoke the leading edge.\n\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n\n return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;\n }\n\n function timerExpired() {\n var time = now();\n\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n } // Restart the timer.\n\n\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n\n return result;\n }\n\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n isArrayLikeObject = require('./isArrayLikeObject');\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n\n\nvar difference = baseRest(function (array, values) {\n return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : [];\n});\nmodule.exports = difference;","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || value !== value && other !== other;\n}\n\nmodule.exports = eq;","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;","var arrayMap = require('./_arrayMap'),\n baseIntersection = require('./_baseIntersection'),\n baseRest = require('./_baseRest'),\n castArrayLikeObject = require('./_castArrayLikeObject');\n/**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n\n\nvar intersection = baseRest(function (arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : [];\n});\nmodule.exports = intersection;","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n\nvar isArguments = baseIsArguments(function () {\n return arguments;\n}()) ? baseIsArguments : function (value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');\n};\nmodule.exports = isArguments;","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\nmodule.exports = isArray;","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n\n\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n\n\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n/** `Object#toString` result references. */\n\n\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n } // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n\n\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = _typeof(value);\n\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && _typeof(value) == 'object';\n}\n\nmodule.exports = isObjectLike;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n/** `Object#toString` result references. */\n\n\nvar symbolTag = '[object Symbol]';\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n\nfunction isSymbol(value) {\n return _typeof(value) == 'symbol' || isObjectLike(value) && baseGetTag(value) == symbolTag;\n}\n\nmodule.exports = isSymbol;","var root = require('./_root');\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n\n\nvar now = function now() {\n return root.Date.now();\n};\n\nmodule.exports = now;","var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n/** Used as references for various `Number` constants. */\n\n\nvar NAN = 0 / 0;\n/** Used to match leading and trailing whitespace. */\n\nvar reTrim = /^\\s+|\\s+$/g;\n/** Used to detect bad signed hexadecimal string values. */\n\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n/** Used to detect binary string values. */\n\nvar reIsBinary = /^0b[01]+$/i;\n/** Used to detect octal string values. */\n\nvar reIsOctal = /^0o[0-7]+$/i;\n/** Built-in method references without a dependency on `root`. */\n\nvar freeParseInt = parseInt;\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n\n if (isSymbol(value)) {\n return NAN;\n }\n\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? other + '' : other;\n }\n\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;\n}\n\nmodule.exports = toNumber;","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n\n/* eslint-disable no-proto */\n'use strict';\n\nvar base64 = require('base64-js');\n\nvar ieee754 = require('ieee754');\n\nvar isArray = require('isarray');\n\nexports.Buffer = Buffer;\nexports.SlowBuffer = SlowBuffer;\nexports.INSPECT_MAX_BYTES = 50;\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\n\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined ? global.TYPED_ARRAY_SUPPORT : typedArraySupport();\n/*\n * Export kMaxLength after typed array support is determined.\n */\n\nexports.kMaxLength = kMaxLength();\n\nfunction typedArraySupport() {\n try {\n var arr = new Uint8Array(1);\n arr.__proto__ = {\n __proto__: Uint8Array.prototype,\n foo: function foo() {\n return 42;\n }\n };\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0; // ie10 has broken `subarray`\n } catch (e) {\n return false;\n }\n}\n\nfunction kMaxLength() {\n return Buffer.TYPED_ARRAY_SUPPORT ? 0x7fffffff : 0x3fffffff;\n}\n\nfunction createBuffer(that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length');\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length);\n that.__proto__ = Buffer.prototype;\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length);\n }\n\n that.length = length;\n }\n\n return that;\n}\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\n\nfunction Buffer(arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length);\n } // Common case.\n\n\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error('If encoding is specified then the first argument must be a string');\n }\n\n return allocUnsafe(this, arg);\n }\n\n return from(this, arg, encodingOrOffset, length);\n}\n\nBuffer.poolSize = 8192; // not used by this implementation\n// TODO: Legacy, not needed anymore. Remove in next major version.\n\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype;\n return arr;\n};\n\nfunction from(that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number');\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length);\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset);\n }\n\n return fromObject(that, value);\n}\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\n\n\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length);\n};\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype;\n Buffer.__proto__ = Uint8Array;\n\n if (typeof Symbol !== 'undefined' && Symbol.species && Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n });\n }\n}\n\nfunction assertSize(size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number');\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative');\n }\n}\n\nfunction alloc(that, size, fill, encoding) {\n assertSize(size);\n\n if (size <= 0) {\n return createBuffer(that, size);\n }\n\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string' ? createBuffer(that, size).fill(fill, encoding) : createBuffer(that, size).fill(fill);\n }\n\n return createBuffer(that, size);\n}\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\n\n\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding);\n};\n\nfunction allocUnsafe(that, size) {\n assertSize(size);\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0);\n\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0;\n }\n }\n\n return that;\n}\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\n\n\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size);\n};\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\n\n\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size);\n};\n\nfunction fromString(that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8';\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding');\n }\n\n var length = byteLength(string, encoding) | 0;\n that = createBuffer(that, length);\n var actual = that.write(string, encoding);\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual);\n }\n\n return that;\n}\n\nfunction fromArrayLike(that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0;\n that = createBuffer(that, length);\n\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255;\n }\n\n return that;\n}\n\nfunction fromArrayBuffer(that, array, byteOffset, length) {\n array.byteLength; // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds');\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds');\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array);\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset);\n } else {\n array = new Uint8Array(array, byteOffset, length);\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array;\n that.__proto__ = Buffer.prototype;\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array);\n }\n\n return that;\n}\n\nfunction fromObject(that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0;\n that = createBuffer(that, len);\n\n if (that.length === 0) {\n return that;\n }\n\n obj.copy(that, 0, 0, len);\n return that;\n }\n\n if (obj) {\n if (typeof ArrayBuffer !== 'undefined' && obj.buffer instanceof ArrayBuffer || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0);\n }\n\n return fromArrayLike(that, obj);\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data);\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.');\n}\n\nfunction checked(length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' + 'size: 0x' + kMaxLength().toString(16) + ' bytes');\n }\n\n return length | 0;\n}\n\nfunction SlowBuffer(length) {\n if (+length != length) {\n // eslint-disable-line eqeqeq\n length = 0;\n }\n\n return Buffer.alloc(+length);\n}\n\nBuffer.isBuffer = function isBuffer(b) {\n return !!(b != null && b._isBuffer);\n};\n\nBuffer.compare = function compare(a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers');\n }\n\n if (a === b) return 0;\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) return -1;\n if (y < x) return 1;\n return 0;\n};\n\nBuffer.isEncoding = function isEncoding(encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true;\n\n default:\n return false;\n }\n};\n\nBuffer.concat = function concat(list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers');\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0);\n }\n\n var i;\n\n if (length === undefined) {\n length = 0;\n\n for (i = 0; i < list.length; ++i) {\n length += list[i].length;\n }\n }\n\n var buffer = Buffer.allocUnsafe(length);\n var pos = 0;\n\n for (i = 0; i < list.length; ++i) {\n var buf = list[i];\n\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers');\n }\n\n buf.copy(buffer, pos);\n pos += buf.length;\n }\n\n return buffer;\n};\n\nfunction byteLength(string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length;\n }\n\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' && (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength;\n }\n\n if (typeof string !== 'string') {\n string = '' + string;\n }\n\n var len = string.length;\n if (len === 0) return 0; // Use a for loop to avoid recursion\n\n var loweredCase = false;\n\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len;\n\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length;\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2;\n\n case 'hex':\n return len >>> 1;\n\n case 'base64':\n return base64ToBytes(string).length;\n\n default:\n if (loweredCase) return utf8ToBytes(string).length; // assume utf8\n\n encoding = ('' + encoding).toLowerCase();\n loweredCase = true;\n }\n }\n}\n\nBuffer.byteLength = byteLength;\n\nfunction slowToString(encoding, start, end) {\n var loweredCase = false; // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n\n if (start === undefined || start < 0) {\n start = 0;\n } // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n\n\n if (start > this.length) {\n return '';\n }\n\n if (end === undefined || end > this.length) {\n end = this.length;\n }\n\n if (end <= 0) {\n return '';\n } // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n\n\n end >>>= 0;\n start >>>= 0;\n\n if (end <= start) {\n return '';\n }\n\n if (!encoding) encoding = 'utf8';\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end);\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end);\n\n case 'ascii':\n return asciiSlice(this, start, end);\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end);\n\n case 'base64':\n return base64Slice(this, start, end);\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end);\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding);\n encoding = (encoding + '').toLowerCase();\n loweredCase = true;\n }\n }\n} // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\n\n\nBuffer.prototype._isBuffer = true;\n\nfunction swap(b, n, m) {\n var i = b[n];\n b[n] = b[m];\n b[m] = i;\n}\n\nBuffer.prototype.swap16 = function swap16() {\n var len = this.length;\n\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits');\n }\n\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1);\n }\n\n return this;\n};\n\nBuffer.prototype.swap32 = function swap32() {\n var len = this.length;\n\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits');\n }\n\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3);\n swap(this, i + 1, i + 2);\n }\n\n return this;\n};\n\nBuffer.prototype.swap64 = function swap64() {\n var len = this.length;\n\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits');\n }\n\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7);\n swap(this, i + 1, i + 6);\n swap(this, i + 2, i + 5);\n swap(this, i + 3, i + 4);\n }\n\n return this;\n};\n\nBuffer.prototype.toString = function toString() {\n var length = this.length | 0;\n if (length === 0) return '';\n if (arguments.length === 0) return utf8Slice(this, 0, length);\n return slowToString.apply(this, arguments);\n};\n\nBuffer.prototype.equals = function equals(b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer');\n if (this === b) return true;\n return Buffer.compare(this, b) === 0;\n};\n\nBuffer.prototype.inspect = function inspect() {\n var str = '';\n var max = exports.INSPECT_MAX_BYTES;\n\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ');\n if (this.length > max) str += ' ... ';\n }\n\n return '';\n};\n\nBuffer.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer');\n }\n\n if (start === undefined) {\n start = 0;\n }\n\n if (end === undefined) {\n end = target ? target.length : 0;\n }\n\n if (thisStart === undefined) {\n thisStart = 0;\n }\n\n if (thisEnd === undefined) {\n thisEnd = this.length;\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index');\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0;\n }\n\n if (thisStart >= thisEnd) {\n return -1;\n }\n\n if (start >= end) {\n return 1;\n }\n\n start >>>= 0;\n end >>>= 0;\n thisStart >>>= 0;\n thisEnd >>>= 0;\n if (this === target) return 0;\n var x = thisEnd - thisStart;\n var y = end - start;\n var len = Math.min(x, y);\n var thisCopy = this.slice(thisStart, thisEnd);\n var targetCopy = target.slice(start, end);\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i];\n y = targetCopy[i];\n break;\n }\n }\n\n if (x < y) return -1;\n if (y < x) return 1;\n return 0;\n}; // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\n\n\nfunction bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1; // Normalize byteOffset\n\n if (typeof byteOffset === 'string') {\n encoding = byteOffset;\n byteOffset = 0;\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff;\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000;\n }\n\n byteOffset = +byteOffset; // Coerce to Number.\n\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : buffer.length - 1;\n } // Normalize byteOffset: negative offsets start from the end of the buffer\n\n\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset;\n\n if (byteOffset >= buffer.length) {\n if (dir) return -1;else byteOffset = buffer.length - 1;\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0;else return -1;\n } // Normalize val\n\n\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding);\n } // Finally, search either indexOf (if dir is true) or lastIndexOf\n\n\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1;\n }\n\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir);\n } else if (typeof val === 'number') {\n val = val & 0xFF; // Search for a byte value [0-255]\n\n if (Buffer.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);\n }\n }\n\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir);\n }\n\n throw new TypeError('val must be string, number or Buffer');\n}\n\nfunction arrayIndexOf(arr, val, byteOffset, encoding, dir) {\n var indexSize = 1;\n var arrLength = arr.length;\n var valLength = val.length;\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase();\n\n if (encoding === 'ucs2' || encoding === 'ucs-2' || encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1;\n }\n\n indexSize = 2;\n arrLength /= 2;\n valLength /= 2;\n byteOffset /= 2;\n }\n }\n\n function read(buf, i) {\n if (indexSize === 1) {\n return buf[i];\n } else {\n return buf.readUInt16BE(i * indexSize);\n }\n }\n\n var i;\n\n if (dir) {\n var foundIndex = -1;\n\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i;\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;\n } else {\n if (foundIndex !== -1) i -= i - foundIndex;\n foundIndex = -1;\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;\n\n for (i = byteOffset; i >= 0; i--) {\n var found = true;\n\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false;\n break;\n }\n }\n\n if (found) return i;\n }\n }\n\n return -1;\n}\n\nBuffer.prototype.includes = function includes(val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1;\n};\n\nBuffer.prototype.indexOf = function indexOf(val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true);\n};\n\nBuffer.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false);\n};\n\nfunction hexWrite(buf, string, offset, length) {\n offset = Number(offset) || 0;\n var remaining = buf.length - offset;\n\n if (!length) {\n length = remaining;\n } else {\n length = Number(length);\n\n if (length > remaining) {\n length = remaining;\n }\n } // must be an even number of digits\n\n\n var strLen = string.length;\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string');\n\n if (length > strLen / 2) {\n length = strLen / 2;\n }\n\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16);\n if (isNaN(parsed)) return i;\n buf[offset + i] = parsed;\n }\n\n return i;\n}\n\nfunction utf8Write(buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);\n}\n\nfunction asciiWrite(buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length);\n}\n\nfunction latin1Write(buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length);\n}\n\nfunction base64Write(buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length);\n}\n\nfunction ucs2Write(buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);\n}\n\nBuffer.prototype.write = function write(string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8';\n length = this.length;\n offset = 0; // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset;\n length = this.length;\n offset = 0; // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0;\n\n if (isFinite(length)) {\n length = length | 0;\n if (encoding === undefined) encoding = 'utf8';\n } else {\n encoding = length;\n length = undefined;\n } // legacy write(string, encoding, offset, length) - remove in v0.13\n\n } else {\n throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported');\n }\n\n var remaining = this.length - offset;\n if (length === undefined || length > remaining) length = remaining;\n\n if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds');\n }\n\n if (!encoding) encoding = 'utf8';\n var loweredCase = false;\n\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length);\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length);\n\n case 'ascii':\n return asciiWrite(this, string, offset, length);\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length);\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length);\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length);\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding);\n encoding = ('' + encoding).toLowerCase();\n loweredCase = true;\n }\n }\n};\n\nBuffer.prototype.toJSON = function toJSON() {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n };\n};\n\nfunction base64Slice(buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf);\n } else {\n return base64.fromByteArray(buf.slice(start, end));\n }\n}\n\nfunction utf8Slice(buf, start, end) {\n end = Math.min(buf.length, end);\n var res = [];\n var i = start;\n\n while (i < end) {\n var firstByte = buf[i];\n var codePoint = null;\n var bytesPerSequence = firstByte > 0xEF ? 4 : firstByte > 0xDF ? 3 : firstByte > 0xBF ? 2 : 1;\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint;\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte;\n }\n\n break;\n\n case 2:\n secondByte = buf[i + 1];\n\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | secondByte & 0x3F;\n\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint;\n }\n }\n\n break;\n\n case 3:\n secondByte = buf[i + 1];\n thirdByte = buf[i + 2];\n\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | thirdByte & 0x3F;\n\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint;\n }\n }\n\n break;\n\n case 4:\n secondByte = buf[i + 1];\n thirdByte = buf[i + 2];\n fourthByte = buf[i + 3];\n\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | fourthByte & 0x3F;\n\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint;\n }\n }\n\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD;\n bytesPerSequence = 1;\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000;\n res.push(codePoint >>> 10 & 0x3FF | 0xD800);\n codePoint = 0xDC00 | codePoint & 0x3FF;\n }\n\n res.push(codePoint);\n i += bytesPerSequence;\n }\n\n return decodeCodePointsArray(res);\n} // Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\n\n\nvar MAX_ARGUMENTS_LENGTH = 0x1000;\n\nfunction decodeCodePointsArray(codePoints) {\n var len = codePoints.length;\n\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints); // avoid extra slice()\n } // Decode in chunks to avoid \"call stack size exceeded\".\n\n\n var res = '';\n var i = 0;\n\n while (i < len) {\n res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));\n }\n\n return res;\n}\n\nfunction asciiSlice(buf, start, end) {\n var ret = '';\n end = Math.min(buf.length, end);\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F);\n }\n\n return ret;\n}\n\nfunction latin1Slice(buf, start, end) {\n var ret = '';\n end = Math.min(buf.length, end);\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i]);\n }\n\n return ret;\n}\n\nfunction hexSlice(buf, start, end) {\n var len = buf.length;\n if (!start || start < 0) start = 0;\n if (!end || end < 0 || end > len) end = len;\n var out = '';\n\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i]);\n }\n\n return out;\n}\n\nfunction utf16leSlice(buf, start, end) {\n var bytes = buf.slice(start, end);\n var res = '';\n\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);\n }\n\n return res;\n}\n\nBuffer.prototype.slice = function slice(start, end) {\n var len = this.length;\n start = ~~start;\n end = end === undefined ? len : ~~end;\n\n if (start < 0) {\n start += len;\n if (start < 0) start = 0;\n } else if (start > len) {\n start = len;\n }\n\n if (end < 0) {\n end += len;\n if (end < 0) end = 0;\n } else if (end > len) {\n end = len;\n }\n\n if (end < start) end = start;\n var newBuf;\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end);\n newBuf.__proto__ = Buffer.prototype;\n } else {\n var sliceLen = end - start;\n newBuf = new Buffer(sliceLen, undefined);\n\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start];\n }\n }\n\n return newBuf;\n};\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\n\n\nfunction checkOffset(offset, ext, length) {\n if (offset % 1 !== 0 || offset < 0) throw new RangeError('offset is not uint');\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length');\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE(offset, byteLength, noAssert) {\n offset = offset | 0;\n byteLength = byteLength | 0;\n if (!noAssert) checkOffset(offset, byteLength, this.length);\n var val = this[offset];\n var mul = 1;\n var i = 0;\n\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul;\n }\n\n return val;\n};\n\nBuffer.prototype.readUIntBE = function readUIntBE(offset, byteLength, noAssert) {\n offset = offset | 0;\n byteLength = byteLength | 0;\n\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length);\n }\n\n var val = this[offset + --byteLength];\n var mul = 1;\n\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul;\n }\n\n return val;\n};\n\nBuffer.prototype.readUInt8 = function readUInt8(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length);\n return this[offset];\n};\n\nBuffer.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length);\n return this[offset] | this[offset + 1] << 8;\n};\n\nBuffer.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length);\n return this[offset] << 8 | this[offset + 1];\n};\n\nBuffer.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 0x1000000;\n};\n\nBuffer.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n return this[offset] * 0x1000000 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);\n};\n\nBuffer.prototype.readIntLE = function readIntLE(offset, byteLength, noAssert) {\n offset = offset | 0;\n byteLength = byteLength | 0;\n if (!noAssert) checkOffset(offset, byteLength, this.length);\n var val = this[offset];\n var mul = 1;\n var i = 0;\n\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul;\n }\n\n mul *= 0x80;\n if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n return val;\n};\n\nBuffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) {\n offset = offset | 0;\n byteLength = byteLength | 0;\n if (!noAssert) checkOffset(offset, byteLength, this.length);\n var i = byteLength;\n var mul = 1;\n var val = this[offset + --i];\n\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul;\n }\n\n mul *= 0x80;\n if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n return val;\n};\n\nBuffer.prototype.readInt8 = function readInt8(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length);\n if (!(this[offset] & 0x80)) return this[offset];\n return (0xff - this[offset] + 1) * -1;\n};\n\nBuffer.prototype.readInt16LE = function readInt16LE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length);\n var val = this[offset] | this[offset + 1] << 8;\n return val & 0x8000 ? val | 0xFFFF0000 : val;\n};\n\nBuffer.prototype.readInt16BE = function readInt16BE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length);\n var val = this[offset + 1] | this[offset] << 8;\n return val & 0x8000 ? val | 0xFFFF0000 : val;\n};\n\nBuffer.prototype.readInt32LE = function readInt32LE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;\n};\n\nBuffer.prototype.readInt32BE = function readInt32BE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];\n};\n\nBuffer.prototype.readFloatLE = function readFloatLE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n return ieee754.read(this, offset, true, 23, 4);\n};\n\nBuffer.prototype.readFloatBE = function readFloatBE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n return ieee754.read(this, offset, false, 23, 4);\n};\n\nBuffer.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length);\n return ieee754.read(this, offset, true, 52, 8);\n};\n\nBuffer.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length);\n return ieee754.read(this, offset, false, 52, 8);\n};\n\nfunction checkInt(buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance');\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds');\n if (offset + ext > buf.length) throw new RangeError('Index out of range');\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset | 0;\n byteLength = byteLength | 0;\n\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1;\n checkInt(this, value, offset, byteLength, maxBytes, 0);\n }\n\n var mul = 1;\n var i = 0;\n this[offset] = value & 0xFF;\n\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = value / mul & 0xFF;\n }\n\n return offset + byteLength;\n};\n\nBuffer.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset | 0;\n byteLength = byteLength | 0;\n\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1;\n checkInt(this, value, offset, byteLength, maxBytes, 0);\n }\n\n var i = byteLength - 1;\n var mul = 1;\n this[offset + i] = value & 0xFF;\n\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = value / mul & 0xFF;\n }\n\n return offset + byteLength;\n};\n\nBuffer.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0);\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value);\n this[offset] = value & 0xff;\n return offset + 1;\n};\n\nfunction objectWriteUInt16(buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1;\n\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & 0xff << 8 * (littleEndian ? i : 1 - i)) >>> (littleEndian ? i : 1 - i) * 8;\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = value & 0xff;\n this[offset + 1] = value >>> 8;\n } else {\n objectWriteUInt16(this, value, offset, true);\n }\n\n return offset + 2;\n};\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = value >>> 8;\n this[offset + 1] = value & 0xff;\n } else {\n objectWriteUInt16(this, value, offset, false);\n }\n\n return offset + 2;\n};\n\nfunction objectWriteUInt32(buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1;\n\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = value >>> (littleEndian ? i : 3 - i) * 8 & 0xff;\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = value >>> 24;\n this[offset + 2] = value >>> 16;\n this[offset + 1] = value >>> 8;\n this[offset] = value & 0xff;\n } else {\n objectWriteUInt32(this, value, offset, true);\n }\n\n return offset + 4;\n};\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = value >>> 24;\n this[offset + 1] = value >>> 16;\n this[offset + 2] = value >>> 8;\n this[offset + 3] = value & 0xff;\n } else {\n objectWriteUInt32(this, value, offset, false);\n }\n\n return offset + 4;\n};\n\nBuffer.prototype.writeIntLE = function writeIntLE(value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset | 0;\n\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1);\n checkInt(this, value, offset, byteLength, limit - 1, -limit);\n }\n\n var i = 0;\n var mul = 1;\n var sub = 0;\n this[offset] = value & 0xFF;\n\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1;\n }\n\n this[offset + i] = (value / mul >> 0) - sub & 0xFF;\n }\n\n return offset + byteLength;\n};\n\nBuffer.prototype.writeIntBE = function writeIntBE(value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset | 0;\n\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1);\n checkInt(this, value, offset, byteLength, limit - 1, -limit);\n }\n\n var i = byteLength - 1;\n var mul = 1;\n var sub = 0;\n this[offset + i] = value & 0xFF;\n\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1;\n }\n\n this[offset + i] = (value / mul >> 0) - sub & 0xFF;\n }\n\n return offset + byteLength;\n};\n\nBuffer.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80);\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value);\n if (value < 0) value = 0xff + value + 1;\n this[offset] = value & 0xff;\n return offset + 1;\n};\n\nBuffer.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = value & 0xff;\n this[offset + 1] = value >>> 8;\n } else {\n objectWriteUInt16(this, value, offset, true);\n }\n\n return offset + 2;\n};\n\nBuffer.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = value >>> 8;\n this[offset + 1] = value & 0xff;\n } else {\n objectWriteUInt16(this, value, offset, false);\n }\n\n return offset + 2;\n};\n\nBuffer.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = value & 0xff;\n this[offset + 1] = value >>> 8;\n this[offset + 2] = value >>> 16;\n this[offset + 3] = value >>> 24;\n } else {\n objectWriteUInt32(this, value, offset, true);\n }\n\n return offset + 4;\n};\n\nBuffer.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);\n if (value < 0) value = 0xffffffff + value + 1;\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = value >>> 24;\n this[offset + 1] = value >>> 16;\n this[offset + 2] = value >>> 8;\n this[offset + 3] = value & 0xff;\n } else {\n objectWriteUInt32(this, value, offset, false);\n }\n\n return offset + 4;\n};\n\nfunction checkIEEE754(buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range');\n if (offset < 0) throw new RangeError('Index out of range');\n}\n\nfunction writeFloat(buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38);\n }\n\n ieee754.write(buf, value, offset, littleEndian, 23, 4);\n return offset + 4;\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert);\n};\n\nBuffer.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert);\n};\n\nfunction writeDouble(buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308);\n }\n\n ieee754.write(buf, value, offset, littleEndian, 52, 8);\n return offset + 8;\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert);\n};\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert);\n}; // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\n\n\nBuffer.prototype.copy = function copy(target, targetStart, start, end) {\n if (!start) start = 0;\n if (!end && end !== 0) end = this.length;\n if (targetStart >= target.length) targetStart = target.length;\n if (!targetStart) targetStart = 0;\n if (end > 0 && end < start) end = start; // Copy 0 bytes; we're done\n\n if (end === start) return 0;\n if (target.length === 0 || this.length === 0) return 0; // Fatal error conditions\n\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds');\n }\n\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds');\n if (end < 0) throw new RangeError('sourceEnd out of bounds'); // Are we oob?\n\n if (end > this.length) end = this.length;\n\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start;\n }\n\n var len = end - start;\n var i;\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start];\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start];\n }\n } else {\n Uint8Array.prototype.set.call(target, this.subarray(start, start + len), targetStart);\n }\n\n return len;\n}; // Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\n\n\nBuffer.prototype.fill = function fill(val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start;\n start = 0;\n end = this.length;\n } else if (typeof end === 'string') {\n encoding = end;\n end = this.length;\n }\n\n if (val.length === 1) {\n var code = val.charCodeAt(0);\n\n if (code < 256) {\n val = code;\n }\n }\n\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string');\n }\n\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding);\n }\n } else if (typeof val === 'number') {\n val = val & 255;\n } // Invalid ranges are not set to a default, so can range check early.\n\n\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index');\n }\n\n if (end <= start) {\n return this;\n }\n\n start = start >>> 0;\n end = end === undefined ? this.length : end >>> 0;\n if (!val) val = 0;\n var i;\n\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val;\n }\n } else {\n var bytes = Buffer.isBuffer(val) ? val : utf8ToBytes(new Buffer(val, encoding).toString());\n var len = bytes.length;\n\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len];\n }\n }\n\n return this;\n}; // HELPER FUNCTIONS\n// ================\n\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g;\n\nfunction base64clean(str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, ''); // Node converts strings with length < 2 to ''\n\n if (str.length < 2) return ''; // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n\n while (str.length % 4 !== 0) {\n str = str + '=';\n }\n\n return str;\n}\n\nfunction stringtrim(str) {\n if (str.trim) return str.trim();\n return str.replace(/^\\s+|\\s+$/g, '');\n}\n\nfunction toHex(n) {\n if (n < 16) return '0' + n.toString(16);\n return n.toString(16);\n}\n\nfunction utf8ToBytes(string, units) {\n units = units || Infinity;\n var codePoint;\n var length = string.length;\n var leadSurrogate = null;\n var bytes = [];\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i); // is surrogate component\n\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);\n continue;\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);\n continue;\n } // valid lead\n\n\n leadSurrogate = codePoint;\n continue;\n } // 2 leads in a row\n\n\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);\n leadSurrogate = codePoint;\n continue;\n } // valid surrogate pair\n\n\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000;\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);\n }\n\n leadSurrogate = null; // encode utf8\n\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break;\n bytes.push(codePoint);\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break;\n bytes.push(codePoint >> 0x6 | 0xC0, codePoint & 0x3F | 0x80);\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break;\n bytes.push(codePoint >> 0xC | 0xE0, codePoint >> 0x6 & 0x3F | 0x80, codePoint & 0x3F | 0x80);\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break;\n bytes.push(codePoint >> 0x12 | 0xF0, codePoint >> 0xC & 0x3F | 0x80, codePoint >> 0x6 & 0x3F | 0x80, codePoint & 0x3F | 0x80);\n } else {\n throw new Error('Invalid code point');\n }\n }\n\n return bytes;\n}\n\nfunction asciiToBytes(str) {\n var byteArray = [];\n\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF);\n }\n\n return byteArray;\n}\n\nfunction utf16leToBytes(str, units) {\n var c, hi, lo;\n var byteArray = [];\n\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break;\n c = str.charCodeAt(i);\n hi = c >> 8;\n lo = c % 256;\n byteArray.push(lo);\n byteArray.push(hi);\n }\n\n return byteArray;\n}\n\nfunction base64ToBytes(str) {\n return base64.toByteArray(base64clean(str));\n}\n\nfunction blitBuffer(src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if (i + offset >= dst.length || i >= src.length) break;\n dst[i + offset] = src[i];\n }\n\n return i;\n}\n\nfunction isnan(val) {\n return val !== val; // eslint-disable-line no-self-compare\n}","/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.16.1\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';\n\nvar timeoutDuration = function () {\n var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];\n\n for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {\n if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {\n return 1;\n }\n }\n\n return 0;\n}();\n\nfunction microtaskDebounce(fn) {\n var called = false;\n return function () {\n if (called) {\n return;\n }\n\n called = true;\n window.Promise.resolve().then(function () {\n called = false;\n fn();\n });\n };\n}\n\nfunction taskDebounce(fn) {\n var scheduled = false;\n return function () {\n if (!scheduled) {\n scheduled = true;\n setTimeout(function () {\n scheduled = false;\n fn();\n }, timeoutDuration);\n }\n };\n}\n\nvar supportsMicroTasks = isBrowser && window.Promise;\n/**\n* Create a debounced version of a method, that's asynchronously deferred\n* but called in the minimum time possible.\n*\n* @method\n* @memberof Popper.Utils\n* @argument {Function} fn\n* @returns {Function}\n*/\n\nvar debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;\n/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\n\nfunction isFunction(functionToCheck) {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n}\n/**\n * Get CSS computed property of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Eement} element\n * @argument {String} property\n */\n\n\nfunction getStyleComputedProperty(element, property) {\n if (element.nodeType !== 1) {\n return [];\n } // NOTE: 1 DOM access here\n\n\n var window = element.ownerDocument.defaultView;\n var css = window.getComputedStyle(element, null);\n return property ? css[property] : css;\n}\n/**\n * Returns the parentNode or the host of the element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} parent\n */\n\n\nfunction getParentNode(element) {\n if (element.nodeName === 'HTML') {\n return element;\n }\n\n return element.parentNode || element.host;\n}\n/**\n * Returns the scrolling parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} scroll parent\n */\n\n\nfunction getScrollParent(element) {\n // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n if (!element) {\n return document.body;\n }\n\n switch (element.nodeName) {\n case 'HTML':\n case 'BODY':\n return element.ownerDocument.body;\n\n case '#document':\n return element.body;\n } // Firefox want us to check `-x` and `-y` variations as well\n\n\n var _getStyleComputedProp = getStyleComputedProperty(element),\n overflow = _getStyleComputedProp.overflow,\n overflowX = _getStyleComputedProp.overflowX,\n overflowY = _getStyleComputedProp.overflowY;\n\n if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {\n return element;\n }\n\n return getScrollParent(getParentNode(element));\n}\n/**\n * Returns the reference node of the reference object, or the reference object itself.\n * @method\n * @memberof Popper.Utils\n * @param {Element|Object} reference - the reference element (the popper will be relative to this)\n * @returns {Element} parent\n */\n\n\nfunction getReferenceNode(reference) {\n return reference && reference.referenceNode ? reference.referenceNode : reference;\n}\n\nvar isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);\nvar isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);\n/**\n * Determines if the browser is Internet Explorer\n * @method\n * @memberof Popper.Utils\n * @param {Number} version to check\n * @returns {Boolean} isIE\n */\n\nfunction isIE(version) {\n if (version === 11) {\n return isIE11;\n }\n\n if (version === 10) {\n return isIE10;\n }\n\n return isIE11 || isIE10;\n}\n/**\n * Returns the offset parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} offset parent\n */\n\n\nfunction getOffsetParent(element) {\n if (!element) {\n return document.documentElement;\n }\n\n var noOffsetParent = isIE(10) ? document.body : null; // NOTE: 1 DOM access here\n\n var offsetParent = element.offsetParent || null; // Skip hidden elements which don't have an offsetParent\n\n while (offsetParent === noOffsetParent && element.nextElementSibling) {\n offsetParent = (element = element.nextElementSibling).offsetParent;\n }\n\n var nodeName = offsetParent && offsetParent.nodeName;\n\n if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n return element ? element.ownerDocument.documentElement : document.documentElement;\n } // .offsetParent will return the closest TH, TD or TABLE in case\n // no offsetParent is present, I hate this job...\n\n\n if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {\n return getOffsetParent(offsetParent);\n }\n\n return offsetParent;\n}\n\nfunction isOffsetContainer(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY') {\n return false;\n }\n\n return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;\n}\n/**\n * Finds the root node (document, shadowDOM root) of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} node\n * @returns {Element} root node\n */\n\n\nfunction getRoot(node) {\n if (node.parentNode !== null) {\n return getRoot(node.parentNode);\n }\n\n return node;\n}\n/**\n * Finds the offset parent common to the two provided nodes\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element1\n * @argument {Element} element2\n * @returns {Element} common offset parent\n */\n\n\nfunction findCommonOffsetParent(element1, element2) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n return document.documentElement;\n } // Here we make sure to give as \"start\" the element that comes first in the DOM\n\n\n var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;\n var start = order ? element1 : element2;\n var end = order ? element2 : element1; // Get common ancestor container\n\n var range = document.createRange();\n range.setStart(start, 0);\n range.setEnd(end, 0);\n var commonAncestorContainer = range.commonAncestorContainer; // Both nodes are inside #document\n\n if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {\n if (isOffsetContainer(commonAncestorContainer)) {\n return commonAncestorContainer;\n }\n\n return getOffsetParent(commonAncestorContainer);\n } // one of the nodes is inside shadowDOM, find which one\n\n\n var element1root = getRoot(element1);\n\n if (element1root.host) {\n return findCommonOffsetParent(element1root.host, element2);\n } else {\n return findCommonOffsetParent(element1, getRoot(element2).host);\n }\n}\n/**\n * Gets the scroll value of the given element in the given side (top and left)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {String} side `top` or `left`\n * @returns {number} amount of scrolled pixels\n */\n\n\nfunction getScroll(element) {\n var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';\n var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n var html = element.ownerDocument.documentElement;\n var scrollingElement = element.ownerDocument.scrollingElement || html;\n return scrollingElement[upperSide];\n }\n\n return element[upperSide];\n}\n/*\n * Sum or subtract the element scroll values (left and top) from a given rect object\n * @method\n * @memberof Popper.Utils\n * @param {Object} rect - Rect object you want to change\n * @param {HTMLElement} element - The element from the function reads the scroll values\n * @param {Boolean} subtract - set to true if you want to subtract the scroll values\n * @return {Object} rect - The modifier rect object\n */\n\n\nfunction includeScroll(rect, element) {\n var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n var modifier = subtract ? -1 : 1;\n rect.top += scrollTop * modifier;\n rect.bottom += scrollTop * modifier;\n rect.left += scrollLeft * modifier;\n rect.right += scrollLeft * modifier;\n return rect;\n}\n/*\n * Helper to detect borders of a given element\n * @method\n * @memberof Popper.Utils\n * @param {CSSStyleDeclaration} styles\n * Result of `getStyleComputedProperty` on the given element\n * @param {String} axis - `x` or `y`\n * @return {number} borders - The borders size of the given axis\n */\n\n\nfunction getBordersSize(styles, axis) {\n var sideA = axis === 'x' ? 'Left' : 'Top';\n var sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);\n}\n\nfunction getSize(axis, body, html, computedStyle) {\n return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);\n}\n\nfunction getWindowSizes(document) {\n var body = document.body;\n var html = document.documentElement;\n var computedStyle = isIE(10) && getComputedStyle(html);\n return {\n height: getSize('Height', body, html, computedStyle),\n width: getSize('Width', body, html, computedStyle)\n };\n}\n\nvar classCallCheck = function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar defineProperty = function defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n/**\n * Given element offsets, generate an output similar to getBoundingClientRect\n * @method\n * @memberof Popper.Utils\n * @argument {Object} offsets\n * @returns {Object} ClientRect like output\n */\n\n\nfunction getClientRect(offsets) {\n return _extends({}, offsets, {\n right: offsets.left + offsets.width,\n bottom: offsets.top + offsets.height\n });\n}\n/**\n * Get bounding client rect of given element\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} element\n * @return {Object} client rect\n */\n\n\nfunction getBoundingClientRect(element) {\n var rect = {}; // IE10 10 FIX: Please, don't ask, the element isn't\n // considered in DOM in some circumstances...\n // This isn't reproducible in IE10 compatibility mode of IE11\n\n try {\n if (isIE(10)) {\n rect = element.getBoundingClientRect();\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n rect.top += scrollTop;\n rect.left += scrollLeft;\n rect.bottom += scrollTop;\n rect.right += scrollLeft;\n } else {\n rect = element.getBoundingClientRect();\n }\n } catch (e) {}\n\n var result = {\n left: rect.left,\n top: rect.top,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n }; // subtract scrollbar size from sizes\n\n var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};\n var width = sizes.width || element.clientWidth || result.width;\n var height = sizes.height || element.clientHeight || result.height;\n var horizScrollbar = element.offsetWidth - width;\n var vertScrollbar = element.offsetHeight - height; // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n // we make this check conditional for performance reasons\n\n if (horizScrollbar || vertScrollbar) {\n var styles = getStyleComputedProperty(element);\n horizScrollbar -= getBordersSize(styles, 'x');\n vertScrollbar -= getBordersSize(styles, 'y');\n result.width -= horizScrollbar;\n result.height -= vertScrollbar;\n }\n\n return getClientRect(result);\n}\n\nfunction getOffsetRectRelativeToArbitraryNode(children, parent) {\n var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isIE10 = isIE(10);\n var isHTML = parent.nodeName === 'HTML';\n var childrenRect = getBoundingClientRect(children);\n var parentRect = getBoundingClientRect(parent);\n var scrollParent = getScrollParent(children);\n var styles = getStyleComputedProperty(parent);\n var borderTopWidth = parseFloat(styles.borderTopWidth);\n var borderLeftWidth = parseFloat(styles.borderLeftWidth); // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n\n if (fixedPosition && isHTML) {\n parentRect.top = Math.max(parentRect.top, 0);\n parentRect.left = Math.max(parentRect.left, 0);\n }\n\n var offsets = getClientRect({\n top: childrenRect.top - parentRect.top - borderTopWidth,\n left: childrenRect.left - parentRect.left - borderLeftWidth,\n width: childrenRect.width,\n height: childrenRect.height\n });\n offsets.marginTop = 0;\n offsets.marginLeft = 0; // Subtract margins of documentElement in case it's being used as parent\n // we do this only on HTML because it's the only element that behaves\n // differently when margins are applied to it. The margins are included in\n // the box of the documentElement, in the other cases not.\n\n if (!isIE10 && isHTML) {\n var marginTop = parseFloat(styles.marginTop);\n var marginLeft = parseFloat(styles.marginLeft);\n offsets.top -= borderTopWidth - marginTop;\n offsets.bottom -= borderTopWidth - marginTop;\n offsets.left -= borderLeftWidth - marginLeft;\n offsets.right -= borderLeftWidth - marginLeft; // Attach marginTop and marginLeft because in some circumstances we may need them\n\n offsets.marginTop = marginTop;\n offsets.marginLeft = marginLeft;\n }\n\n if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {\n offsets = includeScroll(offsets, parent);\n }\n\n return offsets;\n}\n\nfunction getViewportOffsetRectRelativeToArtbitraryNode(element) {\n var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var html = element.ownerDocument.documentElement;\n var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n var width = Math.max(html.clientWidth, window.innerWidth || 0);\n var height = Math.max(html.clientHeight, window.innerHeight || 0);\n var scrollTop = !excludeScroll ? getScroll(html) : 0;\n var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n var offset = {\n top: scrollTop - relativeOffset.top + relativeOffset.marginTop,\n left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,\n width: width,\n height: height\n };\n return getClientRect(offset);\n}\n/**\n * Check if the given element is fixed or is inside a fixed parent\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {Element} customContainer\n * @returns {Boolean} answer to \"isFixed?\"\n */\n\n\nfunction isFixed(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n return false;\n }\n\n if (getStyleComputedProperty(element, 'position') === 'fixed') {\n return true;\n }\n\n var parentNode = getParentNode(element);\n\n if (!parentNode) {\n return false;\n }\n\n return isFixed(parentNode);\n}\n/**\n * Finds the first parent of an element that has a transformed property defined\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} first transformed parent or documentElement\n */\n\n\nfunction getFixedPositionOffsetParent(element) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element || !element.parentElement || isIE()) {\n return document.documentElement;\n }\n\n var el = element.parentElement;\n\n while (el && getStyleComputedProperty(el, 'transform') === 'none') {\n el = el.parentElement;\n }\n\n return el || document.documentElement;\n}\n/**\n * Computed the boundaries limits and return them\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} popper\n * @param {HTMLElement} reference\n * @param {number} padding\n * @param {HTMLElement} boundariesElement - Element used to define the boundaries\n * @param {Boolean} fixedPosition - Is in fixed position mode\n * @returns {Object} Coordinates of the boundaries\n */\n\n\nfunction getBoundaries(popper, reference, padding, boundariesElement) {\n var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; // NOTE: 1 DOM access here\n\n var boundaries = {\n top: 0,\n left: 0\n };\n var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); // Handle viewport case\n\n if (boundariesElement === 'viewport') {\n boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n } else {\n // Handle other cases based on DOM element used as boundaries\n var boundariesNode = void 0;\n\n if (boundariesElement === 'scrollParent') {\n boundariesNode = getScrollParent(getParentNode(reference));\n\n if (boundariesNode.nodeName === 'BODY') {\n boundariesNode = popper.ownerDocument.documentElement;\n }\n } else if (boundariesElement === 'window') {\n boundariesNode = popper.ownerDocument.documentElement;\n } else {\n boundariesNode = boundariesElement;\n }\n\n var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); // In case of HTML, we need a different computation\n\n if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n var _getWindowSizes = getWindowSizes(popper.ownerDocument),\n height = _getWindowSizes.height,\n width = _getWindowSizes.width;\n\n boundaries.top += offsets.top - offsets.marginTop;\n boundaries.bottom = height + offsets.top;\n boundaries.left += offsets.left - offsets.marginLeft;\n boundaries.right = width + offsets.left;\n } else {\n // for all the other DOM elements, this one is good\n boundaries = offsets;\n }\n } // Add paddings\n\n\n padding = padding || 0;\n var isPaddingNumber = typeof padding === 'number';\n boundaries.left += isPaddingNumber ? padding : padding.left || 0;\n boundaries.top += isPaddingNumber ? padding : padding.top || 0;\n boundaries.right -= isPaddingNumber ? padding : padding.right || 0;\n boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;\n return boundaries;\n}\n\nfunction getArea(_ref) {\n var width = _ref.width,\n height = _ref.height;\n return width * height;\n}\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n * @method\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {\n var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;\n\n if (placement.indexOf('auto') === -1) {\n return placement;\n }\n\n var boundaries = getBoundaries(popper, reference, padding, boundariesElement);\n var rects = {\n top: {\n width: boundaries.width,\n height: refRect.top - boundaries.top\n },\n right: {\n width: boundaries.right - refRect.right,\n height: boundaries.height\n },\n bottom: {\n width: boundaries.width,\n height: boundaries.bottom - refRect.bottom\n },\n left: {\n width: refRect.left - boundaries.left,\n height: boundaries.height\n }\n };\n var sortedAreas = Object.keys(rects).map(function (key) {\n return _extends({\n key: key\n }, rects[key], {\n area: getArea(rects[key])\n });\n }).sort(function (a, b) {\n return b.area - a.area;\n });\n var filteredAreas = sortedAreas.filter(function (_ref2) {\n var width = _ref2.width,\n height = _ref2.height;\n return width >= popper.clientWidth && height >= popper.clientHeight;\n });\n var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;\n var variation = placement.split('-')[1];\n return computedPlacement + (variation ? '-' + variation : '');\n}\n/**\n * Get offsets to the reference element\n * @method\n * @memberof Popper.Utils\n * @param {Object} state\n * @param {Element} popper - the popper element\n * @param {Element} reference - the reference element (the popper will be relative to this)\n * @param {Element} fixedPosition - is in fixed position mode\n * @returns {Object} An object containing the offsets which will be applied to the popper\n */\n\n\nfunction getReferenceOffsets(state, popper, reference) {\n var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);\n}\n/**\n * Get the outer sizes of the given element (offset size + margins)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Object} object containing width and height properties\n */\n\n\nfunction getOuterSizes(element) {\n var window = element.ownerDocument.defaultView;\n var styles = window.getComputedStyle(element);\n var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);\n var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);\n var result = {\n width: element.offsetWidth + y,\n height: element.offsetHeight + x\n };\n return result;\n}\n/**\n * Get the opposite placement of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement\n * @returns {String} flipped placement\n */\n\n\nfunction getOppositePlacement(placement) {\n var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n };\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}\n/**\n * Get offsets to the popper\n * @method\n * @memberof Popper.Utils\n * @param {Object} position - CSS position the Popper will get applied\n * @param {HTMLElement} popper - the popper element\n * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)\n * @param {String} placement - one of the valid placement options\n * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper\n */\n\n\nfunction getPopperOffsets(popper, referenceOffsets, placement) {\n placement = placement.split('-')[0]; // Get popper node sizes\n\n var popperRect = getOuterSizes(popper); // Add position, width and height to our offsets object\n\n var popperOffsets = {\n width: popperRect.width,\n height: popperRect.height\n }; // depending by the popper placement we have to compute its offsets slightly differently\n\n var isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n var mainSide = isHoriz ? 'top' : 'left';\n var secondarySide = isHoriz ? 'left' : 'top';\n var measurement = isHoriz ? 'height' : 'width';\n var secondaryMeasurement = !isHoriz ? 'height' : 'width';\n popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;\n\n if (placement === secondarySide) {\n popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];\n } else {\n popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];\n }\n\n return popperOffsets;\n}\n/**\n * Mimics the `find` method of Array\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\n\n\nfunction find(arr, check) {\n // use native find if supported\n if (Array.prototype.find) {\n return arr.find(check);\n } // use `filter` to obtain the same behavior of `find`\n\n\n return arr.filter(check)[0];\n}\n/**\n * Return the index of the matching object\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\n\n\nfunction findIndex(arr, prop, value) {\n // use native findIndex if supported\n if (Array.prototype.findIndex) {\n return arr.findIndex(function (cur) {\n return cur[prop] === value;\n });\n } // use `find` + `indexOf` if `findIndex` isn't supported\n\n\n var match = find(arr, function (obj) {\n return obj[prop] === value;\n });\n return arr.indexOf(match);\n}\n/**\n * Loop trough the list of modifiers and run them in order,\n * each of them will then edit the data object.\n * @method\n * @memberof Popper.Utils\n * @param {dataObject} data\n * @param {Array} modifiers\n * @param {String} ends - Optional modifier name used as stopper\n * @returns {dataObject}\n */\n\n\nfunction runModifiers(modifiers, data, ends) {\n var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));\n modifiersToRun.forEach(function (modifier) {\n if (modifier['function']) {\n // eslint-disable-line dot-notation\n console.warn('`modifier.function` is deprecated, use `modifier.fn`!');\n }\n\n var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation\n\n if (modifier.enabled && isFunction(fn)) {\n // Add properties to offsets to make them a complete clientRect object\n // we do this before each modifier to make sure the previous one doesn't\n // mess with these values\n data.offsets.popper = getClientRect(data.offsets.popper);\n data.offsets.reference = getClientRect(data.offsets.reference);\n data = fn(data, modifier);\n }\n });\n return data;\n}\n/**\n * Updates the position of the popper, computing the new offsets and applying\n * the new style.
\n * Prefer `scheduleUpdate` over `update` because of performance reasons.\n * @method\n * @memberof Popper\n */\n\n\nfunction update() {\n // if popper is destroyed, don't perform any further update\n if (this.state.isDestroyed) {\n return;\n }\n\n var data = {\n instance: this,\n styles: {},\n arrowStyles: {},\n attributes: {},\n flipped: false,\n offsets: {}\n }; // compute reference element offsets\n\n data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n\n data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); // store the computed placement inside `originalPlacement`\n\n data.originalPlacement = data.placement;\n data.positionFixed = this.options.positionFixed; // compute the popper offsets\n\n data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);\n data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; // run the modifiers\n\n data = runModifiers(this.modifiers, data); // the first `update` will call `onCreate` callback\n // the other ones will call `onUpdate` callback\n\n if (!this.state.isCreated) {\n this.state.isCreated = true;\n this.options.onCreate(data);\n } else {\n this.options.onUpdate(data);\n }\n}\n/**\n * Helper used to know if the given modifier is enabled.\n * @method\n * @memberof Popper.Utils\n * @returns {Boolean}\n */\n\n\nfunction isModifierEnabled(modifiers, modifierName) {\n return modifiers.some(function (_ref) {\n var name = _ref.name,\n enabled = _ref.enabled;\n return enabled && name === modifierName;\n });\n}\n/**\n * Get the prefixed supported property name\n * @method\n * @memberof Popper.Utils\n * @argument {String} property (camelCase)\n * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)\n */\n\n\nfunction getSupportedPropertyName(property) {\n var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];\n var upperProp = property.charAt(0).toUpperCase() + property.slice(1);\n\n for (var i = 0; i < prefixes.length; i++) {\n var prefix = prefixes[i];\n var toCheck = prefix ? '' + prefix + upperProp : property;\n\n if (typeof document.body.style[toCheck] !== 'undefined') {\n return toCheck;\n }\n }\n\n return null;\n}\n/**\n * Destroys the popper.\n * @method\n * @memberof Popper\n */\n\n\nfunction destroy() {\n this.state.isDestroyed = true; // touch DOM only if `applyStyle` modifier is enabled\n\n if (isModifierEnabled(this.modifiers, 'applyStyle')) {\n this.popper.removeAttribute('x-placement');\n this.popper.style.position = '';\n this.popper.style.top = '';\n this.popper.style.left = '';\n this.popper.style.right = '';\n this.popper.style.bottom = '';\n this.popper.style.willChange = '';\n this.popper.style[getSupportedPropertyName('transform')] = '';\n }\n\n this.disableEventListeners(); // remove the popper if user explicitly asked for the deletion on destroy\n // do not use `remove` because IE11 doesn't support it\n\n if (this.options.removeOnDestroy) {\n this.popper.parentNode.removeChild(this.popper);\n }\n\n return this;\n}\n/**\n * Get the window associated with the element\n * @argument {Element} element\n * @returns {Window}\n */\n\n\nfunction getWindow(element) {\n var ownerDocument = element.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView : window;\n}\n\nfunction attachToScrollParents(scrollParent, event, callback, scrollParents) {\n var isBody = scrollParent.nodeName === 'BODY';\n var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;\n target.addEventListener(event, callback, {\n passive: true\n });\n\n if (!isBody) {\n attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);\n }\n\n scrollParents.push(target);\n}\n/**\n * Setup needed event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\n\n\nfunction setupEventListeners(reference, options, state, updateBound) {\n // Resize event listener on window\n state.updateBound = updateBound;\n getWindow(reference).addEventListener('resize', state.updateBound, {\n passive: true\n }); // Scroll event listener on scroll parents\n\n var scrollElement = getScrollParent(reference);\n attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);\n state.scrollElement = scrollElement;\n state.eventsEnabled = true;\n return state;\n}\n/**\n * It will add resize/scroll events and start recalculating\n * position of the popper element when they are triggered.\n * @method\n * @memberof Popper\n */\n\n\nfunction enableEventListeners() {\n if (!this.state.eventsEnabled) {\n this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);\n }\n}\n/**\n * Remove event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\n\n\nfunction removeEventListeners(reference, state) {\n // Remove resize event listener on window\n getWindow(reference).removeEventListener('resize', state.updateBound); // Remove scroll event listener on scroll parents\n\n state.scrollParents.forEach(function (target) {\n target.removeEventListener('scroll', state.updateBound);\n }); // Reset state\n\n state.updateBound = null;\n state.scrollParents = [];\n state.scrollElement = null;\n state.eventsEnabled = false;\n return state;\n}\n/**\n * It will remove resize/scroll events and won't recalculate popper position\n * when they are triggered. It also won't trigger `onUpdate` callback anymore,\n * unless you call `update` method manually.\n * @method\n * @memberof Popper\n */\n\n\nfunction disableEventListeners() {\n if (this.state.eventsEnabled) {\n cancelAnimationFrame(this.scheduleUpdate);\n this.state = removeEventListeners(this.reference, this.state);\n }\n}\n/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\n\n\nfunction isNumeric(n) {\n return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\n\n\nfunction setStyles(element, styles) {\n Object.keys(styles).forEach(function (prop) {\n var unit = ''; // add unit if the value is numeric and is one of the following\n\n if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {\n unit = 'px';\n }\n\n element.style[prop] = styles[prop] + unit;\n });\n}\n/**\n * Set the attributes to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the attributes to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\n\n\nfunction setAttributes(element, attributes) {\n Object.keys(attributes).forEach(function (prop) {\n var value = attributes[prop];\n\n if (value !== false) {\n element.setAttribute(prop, attributes[prop]);\n } else {\n element.removeAttribute(prop);\n }\n });\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} data.styles - List of style properties - values to apply to popper element\n * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The same data object\n */\n\n\nfunction applyStyle(data) {\n // any property present in `data.styles` will be applied to the popper,\n // in this way we can make the 3rd party modifiers add custom styles to it\n // Be aware, modifiers could override the properties defined in the previous\n // lines of this modifier!\n setStyles(data.instance.popper, data.styles); // any property present in `data.attributes` will be applied to the popper,\n // they will be set as HTML attributes of the element\n\n setAttributes(data.instance.popper, data.attributes); // if arrowElement is defined and arrowStyles has some properties\n\n if (data.arrowElement && Object.keys(data.arrowStyles).length) {\n setStyles(data.arrowElement, data.arrowStyles);\n }\n\n return data;\n}\n/**\n * Set the x-placement attribute before everything else because it could be used\n * to add margins to the popper margins needs to be calculated to get the\n * correct popper offsets.\n * @method\n * @memberof Popper.modifiers\n * @param {HTMLElement} reference - The reference element used to position the popper\n * @param {HTMLElement} popper - The HTML element used as popper\n * @param {Object} options - Popper.js options\n */\n\n\nfunction applyStyleOnLoad(reference, popper, options, modifierOptions, state) {\n // compute reference element offsets\n var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n\n var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);\n popper.setAttribute('x-placement', placement); // Apply `position` to popper before anything else because\n // without the position applied we can't guarantee correct computations\n\n setStyles(popper, {\n position: options.positionFixed ? 'fixed' : 'absolute'\n });\n return options;\n}\n/**\n * @function\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Boolean} shouldRound - If the offsets should be rounded at all\n * @returns {Object} The popper's position offsets rounded\n *\n * The tale of pixel-perfect positioning. It's still not 100% perfect, but as\n * good as it can be within reason.\n * Discussion here: https://github.com/FezVrasta/popper.js/pull/715\n *\n * Low DPI screens cause a popper to be blurry if not using full pixels (Safari\n * as well on High DPI screens).\n *\n * Firefox prefers no rounding for positioning and does not have blurriness on\n * high DPI screens.\n *\n * Only horizontal placement and left/right values need to be considered.\n */\n\n\nfunction getRoundedOffsets(data, shouldRound) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var round = Math.round,\n floor = Math.floor;\n\n var noRound = function noRound(v) {\n return v;\n };\n\n var referenceWidth = round(reference.width);\n var popperWidth = round(popper.width);\n var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;\n var isVariation = data.placement.indexOf('-') !== -1;\n var sameWidthParity = referenceWidth % 2 === popperWidth % 2;\n var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;\n var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;\n var verticalToInteger = !shouldRound ? noRound : round;\n return {\n left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),\n top: verticalToInteger(popper.top),\n bottom: verticalToInteger(popper.bottom),\n right: horizontalToInteger(popper.right)\n };\n}\n\nvar isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\nfunction computeStyle(data, options) {\n var x = options.x,\n y = options.y;\n var popper = data.offsets.popper; // Remove this legacy support in Popper.js v2\n\n var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'applyStyle';\n }).gpuAcceleration;\n\n if (legacyGpuAccelerationOption !== undefined) {\n console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');\n }\n\n var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;\n var offsetParent = getOffsetParent(data.instance.popper);\n var offsetParentRect = getBoundingClientRect(offsetParent); // Styles\n\n var styles = {\n position: popper.position\n };\n var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);\n var sideA = x === 'bottom' ? 'top' : 'bottom';\n var sideB = y === 'right' ? 'left' : 'right'; // if gpuAcceleration is set to `true` and transform is supported,\n // we use `translate3d` to apply the position to the popper we\n // automatically use the supported prefixed version if needed\n\n var prefixedProperty = getSupportedPropertyName('transform'); // now, let's make a step back and look at this code closely (wtf?)\n // If the content of the popper grows once it's been positioned, it\n // may happen that the popper gets misplaced because of the new content\n // overflowing its reference element\n // To avoid this problem, we provide two options (x and y), which allow\n // the consumer to define the offset origin.\n // If we position a popper on top of a reference element, we can set\n // `x` to `top` to make the popper grow towards its top instead of\n // its bottom.\n\n var left = void 0,\n top = void 0;\n\n if (sideA === 'bottom') {\n // when offsetParent is the positioning is relative to the bottom of the screen (excluding the scrollbar)\n // and not the bottom of the html element\n if (offsetParent.nodeName === 'HTML') {\n top = -offsetParent.clientHeight + offsets.bottom;\n } else {\n top = -offsetParentRect.height + offsets.bottom;\n }\n } else {\n top = offsets.top;\n }\n\n if (sideB === 'right') {\n if (offsetParent.nodeName === 'HTML') {\n left = -offsetParent.clientWidth + offsets.right;\n } else {\n left = -offsetParentRect.width + offsets.right;\n }\n } else {\n left = offsets.left;\n }\n\n if (gpuAcceleration && prefixedProperty) {\n styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';\n styles[sideA] = 0;\n styles[sideB] = 0;\n styles.willChange = 'transform';\n } else {\n // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties\n var invertTop = sideA === 'bottom' ? -1 : 1;\n var invertLeft = sideB === 'right' ? -1 : 1;\n styles[sideA] = top * invertTop;\n styles[sideB] = left * invertLeft;\n styles.willChange = sideA + ', ' + sideB;\n } // Attributes\n\n\n var attributes = {\n 'x-placement': data.placement\n }; // Update `data` attributes, styles and arrowStyles\n\n data.attributes = _extends({}, attributes, data.attributes);\n data.styles = _extends({}, styles, data.styles);\n data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);\n return data;\n}\n/**\n * Helper used to know if the given modifier depends from another one.
\n * It checks if the needed modifier is listed and enabled.\n * @method\n * @memberof Popper.Utils\n * @param {Array} modifiers - list of modifiers\n * @param {String} requestingName - name of requesting modifier\n * @param {String} requestedName - name of requested modifier\n * @returns {Boolean}\n */\n\n\nfunction isModifierRequired(modifiers, requestingName, requestedName) {\n var requesting = find(modifiers, function (_ref) {\n var name = _ref.name;\n return name === requestingName;\n });\n var isRequired = !!requesting && modifiers.some(function (modifier) {\n return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;\n });\n\n if (!isRequired) {\n var _requesting = '`' + requestingName + '`';\n\n var requested = '`' + requestedName + '`';\n console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');\n }\n\n return isRequired;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction arrow(data, options) {\n var _data$offsets$arrow; // arrow depends on keepTogether in order to work\n\n\n if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {\n return data;\n }\n\n var arrowElement = options.element; // if arrowElement is a string, suppose it's a CSS selector\n\n if (typeof arrowElement === 'string') {\n arrowElement = data.instance.popper.querySelector(arrowElement); // if arrowElement is not found, don't run the modifier\n\n if (!arrowElement) {\n return data;\n }\n } else {\n // if the arrowElement isn't a query selector we must check that the\n // provided DOM node is child of its popper node\n if (!data.instance.popper.contains(arrowElement)) {\n console.warn('WARNING: `arrow.element` must be child of its popper element!');\n return data;\n }\n }\n\n var placement = data.placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var isVertical = ['left', 'right'].indexOf(placement) !== -1;\n var len = isVertical ? 'height' : 'width';\n var sideCapitalized = isVertical ? 'Top' : 'Left';\n var side = sideCapitalized.toLowerCase();\n var altSide = isVertical ? 'left' : 'top';\n var opSide = isVertical ? 'bottom' : 'right';\n var arrowElementSize = getOuterSizes(arrowElement)[len]; //\n // extends keepTogether behavior making sure the popper and its\n // reference have enough pixels in conjunction\n //\n // top/left side\n\n if (reference[opSide] - arrowElementSize < popper[side]) {\n data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);\n } // bottom/right side\n\n\n if (reference[side] + arrowElementSize > popper[opSide]) {\n data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];\n }\n\n data.offsets.popper = getClientRect(data.offsets.popper); // compute center of the popper\n\n var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; // Compute the sideValue using the updated popper offsets\n // take popper margin in account because we don't have this info available\n\n var css = getStyleComputedProperty(data.instance.popper);\n var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);\n var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);\n var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; // prevent arrowElement from being placed not contiguously to its popper\n\n sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);\n data.arrowElement = arrowElement;\n data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);\n return data;\n}\n/**\n * Get the opposite placement variation of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement variation\n * @returns {String} flipped placement variation\n */\n\n\nfunction getOppositeVariation(variation) {\n if (variation === 'end') {\n return 'start';\n } else if (variation === 'start') {\n return 'end';\n }\n\n return variation;\n}\n/**\n * List of accepted placements to use as values of the `placement` option.
\n * Valid placements are:\n * - `auto`\n * - `top`\n * - `right`\n * - `bottom`\n * - `left`\n *\n * Each placement can have a variation from this list:\n * - `-start`\n * - `-end`\n *\n * Variations are interpreted easily if you think of them as the left to right\n * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`\n * is right.
\n * Vertically (`left` and `right`), `start` is top and `end` is bottom.\n *\n * Some valid examples are:\n * - `top-end` (on top of reference, right aligned)\n * - `right-start` (on right of reference, top aligned)\n * - `bottom` (on bottom, centered)\n * - `auto-end` (on the side with more space available, alignment depends by placement)\n *\n * @static\n * @type {Array}\n * @enum {String}\n * @readonly\n * @method placements\n * @memberof Popper\n */\n\n\nvar placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; // Get rid of `auto` `auto-start` and `auto-end`\n\nvar validPlacements = placements.slice(3);\n/**\n * Given an initial placement, returns all the subsequent placements\n * clockwise (or counter-clockwise).\n *\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement - A valid placement (it accepts variations)\n * @argument {Boolean} counter - Set to true to walk the placements counterclockwise\n * @returns {Array} placements including their variations\n */\n\nfunction clockwise(placement) {\n var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var index = validPlacements.indexOf(placement);\n var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));\n return counter ? arr.reverse() : arr;\n}\n\nvar BEHAVIORS = {\n FLIP: 'flip',\n CLOCKWISE: 'clockwise',\n COUNTERCLOCKWISE: 'counterclockwise'\n};\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\nfunction flip(data, options) {\n // if `inner` modifier is enabled, we can't use the `flip` modifier\n if (isModifierEnabled(data.instance.modifiers, 'inner')) {\n return data;\n }\n\n if (data.flipped && data.placement === data.originalPlacement) {\n // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides\n return data;\n }\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);\n var placement = data.placement.split('-')[0];\n var placementOpposite = getOppositePlacement(placement);\n var variation = data.placement.split('-')[1] || '';\n var flipOrder = [];\n\n switch (options.behavior) {\n case BEHAVIORS.FLIP:\n flipOrder = [placement, placementOpposite];\n break;\n\n case BEHAVIORS.CLOCKWISE:\n flipOrder = clockwise(placement);\n break;\n\n case BEHAVIORS.COUNTERCLOCKWISE:\n flipOrder = clockwise(placement, true);\n break;\n\n default:\n flipOrder = options.behavior;\n }\n\n flipOrder.forEach(function (step, index) {\n if (placement !== step || flipOrder.length === index + 1) {\n return data;\n }\n\n placement = data.placement.split('-')[0];\n placementOpposite = getOppositePlacement(placement);\n var popperOffsets = data.offsets.popper;\n var refOffsets = data.offsets.reference; // using floor because the reference offsets may contain decimals we are not going to consider here\n\n var floor = Math.floor;\n var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);\n var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);\n var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; // flip the variation if required\n\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; // flips variation if reference element overflows boundaries\n\n var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); // flips variation if popper content overflows boundaries\n\n var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);\n var flippedVariation = flippedVariationByRef || flippedVariationByContent;\n\n if (overlapsRef || overflowsBoundaries || flippedVariation) {\n // this boolean to detect any flip loop\n data.flipped = true;\n\n if (overlapsRef || overflowsBoundaries) {\n placement = flipOrder[index + 1];\n }\n\n if (flippedVariation) {\n variation = getOppositeVariation(variation);\n }\n\n data.placement = placement + (variation ? '-' + variation : ''); // this object contains `position`, we want to preserve it along with\n // any additional property we may add in the future\n\n data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));\n data = runModifiers(data.instance.modifiers, data, 'flip');\n }\n });\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction keepTogether(data) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var placement = data.placement.split('-')[0];\n var floor = Math.floor;\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n var side = isVertical ? 'right' : 'bottom';\n var opSide = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n if (popper[side] < floor(reference[opSide])) {\n data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];\n }\n\n if (popper[opSide] > floor(reference[side])) {\n data.offsets.popper[opSide] = floor(reference[side]);\n }\n\n return data;\n}\n/**\n * Converts a string containing value + unit into a px value number\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} str - Value + unit string\n * @argument {String} measurement - `height` or `width`\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @returns {Number|String}\n * Value in pixels, or original string if no values were extracted\n */\n\n\nfunction toValue(str, measurement, popperOffsets, referenceOffsets) {\n // separate value from unit\n var split = str.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/);\n var value = +split[1];\n var unit = split[2]; // If it's not a number it's an operator, I guess\n\n if (!value) {\n return str;\n }\n\n if (unit.indexOf('%') === 0) {\n var element = void 0;\n\n switch (unit) {\n case '%p':\n element = popperOffsets;\n break;\n\n case '%':\n case '%r':\n default:\n element = referenceOffsets;\n }\n\n var rect = getClientRect(element);\n return rect[measurement] / 100 * value;\n } else if (unit === 'vh' || unit === 'vw') {\n // if is a vh or vw, we calculate the size based on the viewport\n var size = void 0;\n\n if (unit === 'vh') {\n size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n } else {\n size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n }\n\n return size / 100 * value;\n } else {\n // if is an explicit pixel unit, we get rid of the unit and keep the value\n // if is an implicit unit, it's px, and we return just the value\n return value;\n }\n}\n/**\n * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} offset\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @argument {String} basePlacement\n * @returns {Array} a two cells array with x and y offsets in numbers\n */\n\n\nfunction parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {\n var offsets = [0, 0]; // Use height if placement is left or right and index is 0 otherwise use width\n // in this way the first offset will use an axis and the second one\n // will use the other one\n\n var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; // Split the offset string to obtain a list of values and operands\n // The regex addresses values with the plus or minus sign in front (+10, -20, etc)\n\n var fragments = offset.split(/(\\+|\\-)/).map(function (frag) {\n return frag.trim();\n }); // Detect if the offset string contains a pair of values or a single one\n // they could be separated by comma or space\n\n var divider = fragments.indexOf(find(fragments, function (frag) {\n return frag.search(/,|\\s/) !== -1;\n }));\n\n if (fragments[divider] && fragments[divider].indexOf(',') === -1) {\n console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');\n } // If divider is found, we divide the list of values and operands to divide\n // them by ofset X and Y.\n\n\n var splitRegex = /\\s*,\\s*|\\s+/;\n var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; // Convert the values with units to absolute pixels to allow our computations\n\n ops = ops.map(function (op, index) {\n // Most of the units rely on the orientation of the popper\n var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';\n var mergeWithPrevious = false;\n return op // This aggregates any `+` or `-` sign that aren't considered operators\n // e.g.: 10 + +5 => [10, +, +5]\n .reduce(function (a, b) {\n if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {\n a[a.length - 1] = b;\n mergeWithPrevious = true;\n return a;\n } else if (mergeWithPrevious) {\n a[a.length - 1] += b;\n mergeWithPrevious = false;\n return a;\n } else {\n return a.concat(b);\n }\n }, []) // Here we convert the string values into number values (in px)\n .map(function (str) {\n return toValue(str, measurement, popperOffsets, referenceOffsets);\n });\n }); // Loop trough the offsets arrays and execute the operations\n\n ops.forEach(function (op, index) {\n op.forEach(function (frag, index2) {\n if (isNumeric(frag)) {\n offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);\n }\n });\n });\n return offsets;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @argument {Number|String} options.offset=0\n * The offset value as described in the modifier description\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction offset(data, _ref) {\n var offset = _ref.offset;\n var placement = data.placement,\n _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var basePlacement = placement.split('-')[0];\n var offsets = void 0;\n\n if (isNumeric(+offset)) {\n offsets = [+offset, 0];\n } else {\n offsets = parseOffset(offset, popper, reference, basePlacement);\n }\n\n if (basePlacement === 'left') {\n popper.top += offsets[0];\n popper.left -= offsets[1];\n } else if (basePlacement === 'right') {\n popper.top += offsets[0];\n popper.left += offsets[1];\n } else if (basePlacement === 'top') {\n popper.left += offsets[0];\n popper.top -= offsets[1];\n } else if (basePlacement === 'bottom') {\n popper.left += offsets[0];\n popper.top += offsets[1];\n }\n\n data.popper = popper;\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction preventOverflow(data, options) {\n var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); // If offsetParent is the reference element, we really want to\n // go one step up and use the next offsetParent as reference to\n // avoid to make this modifier completely useless and look like broken\n\n if (data.instance.reference === boundariesElement) {\n boundariesElement = getOffsetParent(boundariesElement);\n } // NOTE: DOM access here\n // resets the popper's position so that the document size can be calculated excluding\n // the size of the popper element itself\n\n\n var transformProp = getSupportedPropertyName('transform');\n var popperStyles = data.instance.popper.style; // assignment to help minification\n\n var top = popperStyles.top,\n left = popperStyles.left,\n transform = popperStyles[transformProp];\n popperStyles.top = '';\n popperStyles.left = '';\n popperStyles[transformProp] = '';\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); // NOTE: DOM access here\n // restores the original style properties after the offsets have been computed\n\n popperStyles.top = top;\n popperStyles.left = left;\n popperStyles[transformProp] = transform;\n options.boundaries = boundaries;\n var order = options.priority;\n var popper = data.offsets.popper;\n var check = {\n primary: function primary(placement) {\n var value = popper[placement];\n\n if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {\n value = Math.max(popper[placement], boundaries[placement]);\n }\n\n return defineProperty({}, placement, value);\n },\n secondary: function secondary(placement) {\n var mainSide = placement === 'right' ? 'left' : 'top';\n var value = popper[mainSide];\n\n if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {\n value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));\n }\n\n return defineProperty({}, mainSide, value);\n }\n };\n order.forEach(function (placement) {\n var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';\n popper = _extends({}, popper, check[side](placement));\n });\n data.offsets.popper = popper;\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction shift(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var shiftvariation = placement.split('-')[1]; // if shift shiftvariation is specified, run the modifier\n\n if (shiftvariation) {\n var _data$offsets = data.offsets,\n reference = _data$offsets.reference,\n popper = _data$offsets.popper;\n var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n var side = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n var shiftOffsets = {\n start: defineProperty({}, side, reference[side]),\n end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])\n };\n data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);\n }\n\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction hide(data) {\n if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {\n return data;\n }\n\n var refRect = data.offsets.reference;\n var bound = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'preventOverflow';\n }).boundaries;\n\n if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === true) {\n return data;\n }\n\n data.hide = true;\n data.attributes['x-out-of-boundaries'] = '';\n } else {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === false) {\n return data;\n }\n\n data.hide = false;\n data.attributes['x-out-of-boundaries'] = false;\n }\n\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction inner(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;\n var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;\n popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);\n data.placement = getOppositePlacement(placement);\n data.offsets.popper = getClientRect(popper);\n return data;\n}\n/**\n * Modifier function, each modifier can have a function of this type assigned\n * to its `fn` property.
\n * These functions will be called on each update, this means that you must\n * make sure they are performant enough to avoid performance bottlenecks.\n *\n * @function ModifierFn\n * @argument {dataObject} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {dataObject} The data object, properly modified\n */\n\n/**\n * Modifiers are plugins used to alter the behavior of your poppers.
\n * Popper.js uses a set of 9 modifiers to provide all the basic functionalities\n * needed by the library.\n *\n * Usually you don't want to override the `order`, `fn` and `onLoad` props.\n * All the other properties are configurations that could be tweaked.\n * @namespace modifiers\n */\n\n\nvar modifiers = {\n /**\n * Modifier used to shift the popper on the start or end of its reference\n * element.
\n * It will read the variation of the `placement` property.
\n * It can be one either `-end` or `-start`.\n * @memberof modifiers\n * @inner\n */\n shift: {\n /** @prop {number} order=100 - Index used to define the order of execution */\n order: 100,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: shift\n },\n\n /**\n * The `offset` modifier can shift your popper on both its axis.\n *\n * It accepts the following units:\n * - `px` or unit-less, interpreted as pixels\n * - `%` or `%r`, percentage relative to the length of the reference element\n * - `%p`, percentage relative to the length of the popper element\n * - `vw`, CSS viewport width unit\n * - `vh`, CSS viewport height unit\n *\n * For length is intended the main axis relative to the placement of the popper.
\n * This means that if the placement is `top` or `bottom`, the length will be the\n * `width`. In case of `left` or `right`, it will be the `height`.\n *\n * You can provide a single value (as `Number` or `String`), or a pair of values\n * as `String` divided by a comma or one (or more) white spaces.
\n * The latter is a deprecated method because it leads to confusion and will be\n * removed in v2.
\n * Additionally, it accepts additions and subtractions between different units.\n * Note that multiplications and divisions aren't supported.\n *\n * Valid examples are:\n * ```\n * 10\n * '10%'\n * '10, 10'\n * '10%, 10'\n * '10 + 10%'\n * '10 - 5vh + 3%'\n * '-10px + 5vh, 5px - 6%'\n * ```\n * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap\n * > with their reference element, unfortunately, you will have to disable the `flip` modifier.\n * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).\n *\n * @memberof modifiers\n * @inner\n */\n offset: {\n /** @prop {number} order=200 - Index used to define the order of execution */\n order: 200,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: offset,\n\n /** @prop {Number|String} offset=0\n * The offset value as described in the modifier description\n */\n offset: 0\n },\n\n /**\n * Modifier used to prevent the popper from being positioned outside the boundary.\n *\n * A scenario exists where the reference itself is not within the boundaries.
\n * We can say it has \"escaped the boundaries\" — or just \"escaped\".
\n * In this case we need to decide whether the popper should either:\n *\n * - detach from the reference and remain \"trapped\" in the boundaries, or\n * - if it should ignore the boundary and \"escape with its reference\"\n *\n * When `escapeWithReference` is set to`true` and reference is completely\n * outside its boundaries, the popper will overflow (or completely leave)\n * the boundaries in order to remain attached to the edge of the reference.\n *\n * @memberof modifiers\n * @inner\n */\n preventOverflow: {\n /** @prop {number} order=300 - Index used to define the order of execution */\n order: 300,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: preventOverflow,\n\n /**\n * @prop {Array} [priority=['left','right','top','bottom']]\n * Popper will try to prevent overflow following these priorities by default,\n * then, it could overflow on the left and on top of the `boundariesElement`\n */\n priority: ['left', 'right', 'top', 'bottom'],\n\n /**\n * @prop {number} padding=5\n * Amount of pixel used to define a minimum distance between the boundaries\n * and the popper. This makes sure the popper always has a little padding\n * between the edges of its container\n */\n padding: 5,\n\n /**\n * @prop {String|HTMLElement} boundariesElement='scrollParent'\n * Boundaries used by the modifier. Can be `scrollParent`, `window`,\n * `viewport` or any DOM element.\n */\n boundariesElement: 'scrollParent'\n },\n\n /**\n * Modifier used to make sure the reference and its popper stay near each other\n * without leaving any gap between the two. Especially useful when the arrow is\n * enabled and you want to ensure that it points to its reference element.\n * It cares only about the first axis. You can still have poppers with margin\n * between the popper and its reference element.\n * @memberof modifiers\n * @inner\n */\n keepTogether: {\n /** @prop {number} order=400 - Index used to define the order of execution */\n order: 400,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: keepTogether\n },\n\n /**\n * This modifier is used to move the `arrowElement` of the popper to make\n * sure it is positioned between the reference element and its popper element.\n * It will read the outer size of the `arrowElement` node to detect how many\n * pixels of conjunction are needed.\n *\n * It has no effect if no `arrowElement` is provided.\n * @memberof modifiers\n * @inner\n */\n arrow: {\n /** @prop {number} order=500 - Index used to define the order of execution */\n order: 500,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: arrow,\n\n /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */\n element: '[x-arrow]'\n },\n\n /**\n * Modifier used to flip the popper's placement when it starts to overlap its\n * reference element.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n *\n * **NOTE:** this modifier will interrupt the current update cycle and will\n * restart it if it detects the need to flip the placement.\n * @memberof modifiers\n * @inner\n */\n flip: {\n /** @prop {number} order=600 - Index used to define the order of execution */\n order: 600,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: flip,\n\n /**\n * @prop {String|Array} behavior='flip'\n * The behavior used to change the popper's placement. It can be one of\n * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid\n * placements (with optional variations)\n */\n behavior: 'flip',\n\n /**\n * @prop {number} padding=5\n * The popper will flip if it hits the edges of the `boundariesElement`\n */\n padding: 5,\n\n /**\n * @prop {String|HTMLElement} boundariesElement='viewport'\n * The element which will define the boundaries of the popper position.\n * The popper will never be placed outside of the defined boundaries\n * (except if `keepTogether` is enabled)\n */\n boundariesElement: 'viewport',\n\n /**\n * @prop {Boolean} flipVariations=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the reference element overlaps its boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariations: false,\n\n /**\n * @prop {Boolean} flipVariationsByContent=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the popper element overlaps its reference boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariationsByContent: false\n },\n\n /**\n * Modifier used to make the popper flow toward the inner of the reference element.\n * By default, when this modifier is disabled, the popper will be placed outside\n * the reference element.\n * @memberof modifiers\n * @inner\n */\n inner: {\n /** @prop {number} order=700 - Index used to define the order of execution */\n order: 700,\n\n /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */\n enabled: false,\n\n /** @prop {ModifierFn} */\n fn: inner\n },\n\n /**\n * Modifier used to hide the popper when its reference element is outside of the\n * popper boundaries. It will set a `x-out-of-boundaries` attribute which can\n * be used to hide with a CSS selector the popper when its reference is\n * out of boundaries.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n * @memberof modifiers\n * @inner\n */\n hide: {\n /** @prop {number} order=800 - Index used to define the order of execution */\n order: 800,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: hide\n },\n\n /**\n * Computes the style that will be applied to the popper element to gets\n * properly positioned.\n *\n * Note that this modifier will not touch the DOM, it just prepares the styles\n * so that `applyStyle` modifier can apply it. This separation is useful\n * in case you need to replace `applyStyle` with a custom implementation.\n *\n * This modifier has `850` as `order` value to maintain backward compatibility\n * with previous versions of Popper.js. Expect the modifiers ordering method\n * to change in future major versions of the library.\n *\n * @memberof modifiers\n * @inner\n */\n computeStyle: {\n /** @prop {number} order=850 - Index used to define the order of execution */\n order: 850,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: computeStyle,\n\n /**\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: true,\n\n /**\n * @prop {string} [x='bottom']\n * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.\n * Change this if your popper should grow in a direction different from `bottom`\n */\n x: 'bottom',\n\n /**\n * @prop {string} [x='left']\n * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.\n * Change this if your popper should grow in a direction different from `right`\n */\n y: 'right'\n },\n\n /**\n * Applies the computed styles to the popper element.\n *\n * All the DOM manipulations are limited to this modifier. This is useful in case\n * you want to integrate Popper.js inside a framework or view library and you\n * want to delegate all the DOM manipulations to it.\n *\n * Note that if you disable this modifier, you must make sure the popper element\n * has its position set to `absolute` before Popper.js can do its work!\n *\n * Just disable this modifier and define your own to achieve the desired effect.\n *\n * @memberof modifiers\n * @inner\n */\n applyStyle: {\n /** @prop {number} order=900 - Index used to define the order of execution */\n order: 900,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: applyStyle,\n\n /** @prop {Function} */\n onLoad: applyStyleOnLoad,\n\n /**\n * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: undefined\n }\n};\n/**\n * The `dataObject` is an object containing all the information used by Popper.js.\n * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.\n * @name dataObject\n * @property {Object} data.instance The Popper.js instance\n * @property {String} data.placement Placement applied to popper\n * @property {String} data.originalPlacement Placement originally defined on init\n * @property {Boolean} data.flipped True if popper has been flipped by flip modifier\n * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper\n * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier\n * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.boundaries Offsets of the popper boundaries\n * @property {Object} data.offsets The measurements of popper, reference and arrow elements\n * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0\n */\n\n/**\n * Default options provided to Popper.js constructor.
\n * These can be overridden using the `options` argument of Popper.js.
\n * To override an option, simply pass an object with the same\n * structure of the `options` object, as the 3rd argument. For example:\n * ```\n * new Popper(ref, pop, {\n * modifiers: {\n * preventOverflow: { enabled: false }\n * }\n * })\n * ```\n * @type {Object}\n * @static\n * @memberof Popper\n */\n\nvar Defaults = {\n /**\n * Popper's placement.\n * @prop {Popper.placements} placement='bottom'\n */\n placement: 'bottom',\n\n /**\n * Set this to true if you want popper to position it self in 'fixed' mode\n * @prop {Boolean} positionFixed=false\n */\n positionFixed: false,\n\n /**\n * Whether events (resize, scroll) are initially enabled.\n * @prop {Boolean} eventsEnabled=true\n */\n eventsEnabled: true,\n\n /**\n * Set to true if you want to automatically remove the popper when\n * you call the `destroy` method.\n * @prop {Boolean} removeOnDestroy=false\n */\n removeOnDestroy: false,\n\n /**\n * Callback called when the popper is created.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onCreate}\n */\n onCreate: function onCreate() {},\n\n /**\n * Callback called when the popper is updated. This callback is not called\n * on the initialization/creation of the popper, but only on subsequent\n * updates.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onUpdate}\n */\n onUpdate: function onUpdate() {},\n\n /**\n * List of modifiers used to modify the offsets before they are applied to the popper.\n * They provide most of the functionalities of Popper.js.\n * @prop {modifiers}\n */\n modifiers: modifiers\n};\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n// Utils\n// Methods\n\nvar Popper = function () {\n /**\n * Creates a new Popper.js instance.\n * @class Popper\n * @param {Element|referenceObject} reference - The reference element used to position the popper\n * @param {Element} popper - The HTML / XML element used as the popper\n * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)\n * @return {Object} instance - The generated Popper.js instance\n */\n function Popper(reference, popper) {\n var _this = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n classCallCheck(this, Popper);\n\n this.scheduleUpdate = function () {\n return requestAnimationFrame(_this.update);\n }; // make update() debounced, so that it only runs at most once-per-tick\n\n\n this.update = debounce(this.update.bind(this)); // with {} we create a new object with the options inside it\n\n this.options = _extends({}, Popper.Defaults, options); // init state\n\n this.state = {\n isDestroyed: false,\n isCreated: false,\n scrollParents: []\n }; // get reference and popper elements (allow jQuery wrappers)\n\n this.reference = reference && reference.jquery ? reference[0] : reference;\n this.popper = popper && popper.jquery ? popper[0] : popper; // Deep merge modifiers options\n\n this.options.modifiers = {};\n Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {\n _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});\n }); // Refactoring modifiers' list (Object => Array)\n\n this.modifiers = Object.keys(this.options.modifiers).map(function (name) {\n return _extends({\n name: name\n }, _this.options.modifiers[name]);\n }) // sort the modifiers by order\n .sort(function (a, b) {\n return a.order - b.order;\n }); // modifiers have the ability to execute arbitrary code when Popper.js get inited\n // such code is executed in the same order of its modifier\n // they could add new properties to their options configuration\n // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!\n\n this.modifiers.forEach(function (modifierOptions) {\n if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {\n modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);\n }\n }); // fire the first update to position the popper in the right place\n\n this.update();\n var eventsEnabled = this.options.eventsEnabled;\n\n if (eventsEnabled) {\n // setup event listeners, they will take care of update the position in specific situations\n this.enableEventListeners();\n }\n\n this.state.eventsEnabled = eventsEnabled;\n } // We can't use class properties because they don't get listed in the\n // class prototype and break stuff like Sinon stubs\n\n\n createClass(Popper, [{\n key: 'update',\n value: function update$$1() {\n return update.call(this);\n }\n }, {\n key: 'destroy',\n value: function destroy$$1() {\n return destroy.call(this);\n }\n }, {\n key: 'enableEventListeners',\n value: function enableEventListeners$$1() {\n return enableEventListeners.call(this);\n }\n }, {\n key: 'disableEventListeners',\n value: function disableEventListeners$$1() {\n return disableEventListeners.call(this);\n }\n /**\n * Schedules an update. It will run on the next UI update available.\n * @method scheduleUpdate\n * @memberof Popper\n */\n\n /**\n * Collection of utilities useful when writing custom modifiers.\n * Starting from version 1.7, this method is available only if you\n * include `popper-utils.js` before `popper.js`.\n *\n * **DEPRECATION**: This way to access PopperUtils is deprecated\n * and will be removed in v2! Use the PopperUtils module directly instead.\n * Due to the high instability of the methods contained in Utils, we can't\n * guarantee them to follow semver. Use them at your own risk!\n * @static\n * @private\n * @type {Object}\n * @deprecated since version 1.8\n * @member Utils\n * @memberof Popper\n */\n\n }]);\n return Popper;\n}();\n/**\n * The `referenceObject` is an object that provides an interface compatible with Popper.js\n * and lets you use it as replacement of a real DOM node.
\n * You can use this method to position a popper relatively to a set of coordinates\n * in case you don't have a DOM node to use as reference.\n *\n * ```\n * new Popper(referenceObject, popperNode);\n * ```\n *\n * NB: This feature isn't supported in Internet Explorer 10.\n * @name referenceObject\n * @property {Function} data.getBoundingClientRect\n * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.\n * @property {number} data.clientWidth\n * An ES6 getter that will return the width of the virtual reference element.\n * @property {number} data.clientHeight\n * An ES6 getter that will return the height of the virtual reference element.\n */\n\n\nPopper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;\nPopper.placements = placements;\nPopper.Defaults = Defaults;\nexport default Popper;","// shim for using process in browser\nvar process = module.exports = {}; // cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\n\nfunction defaultClearTimeout() {\n throw new Error('clearTimeout has not been defined');\n}\n\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n})();\n\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n } // if setTimeout wasn't available but was latter defined\n\n\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n}\n\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n } // if clearTimeout wasn't available but was latter defined\n\n\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n}\n\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n\n draining = false;\n\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n var len = queue.length;\n\n while (len) {\n currentQueue = queue;\n queue = [];\n\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n\n queueIndex = -1;\n len = queue.length;\n }\n\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n\n queue.push(new Item(fun, args));\n\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n}; // v8 likes predictible objects\n\n\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\n\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\n\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) {\n return [];\n};\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () {\n return '/';\n};\n\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\n\nprocess.umask = function () {\n return 0;\n};","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n } // Copy function arguments\n\n\n var args = new Array(arguments.length - 1);\n\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n } // Store and register the task\n\n\n var task = {\n callback: callback,\n args: args\n };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n\n switch (args.length) {\n case 0:\n callback();\n break;\n\n case 1:\n callback(args[0]);\n break;\n\n case 2:\n callback(args[0], args[1]);\n break;\n\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n\n if (task) {\n currentlyRunningATask = true;\n\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function registerImmediate(handle) {\n process.nextTick(function () {\n runIfPresent(handle);\n });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n\n global.onmessage = function () {\n postMessageIsAsynchronous = false;\n };\n\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n\n var onGlobalMessage = function onGlobalMessage(event) {\n if (event.source === global && typeof event.data === \"string\" && event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function registerImmediate(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n\n channel.port1.onmessage = function (event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function registerImmediate(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n\n registerImmediate = function registerImmediate(handle) {\n // Create a